New module 'system-quote'.
[gnulib.git] / ChangeLog
1 2012-05-08  Bruno Haible  <bruno@clisp.org>
2
3         New module 'system-quote'.
4         * lib/system-quote.h: New file.
5         * lib/system-quote.c: New file.
6         * modules/system-quote: New file.
7
8 2012-05-08  Bruno Haible  <bruno@clisp.org>
9
10         sh-quote: Make C++ safe and allow multiple inclusion.
11         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
12         declarations in extern "C".
13
14 2012-05-08  Bruno Haible  <bruno@clisp.org>
15
16         sh-quote tests: Make tests stricter.
17         * tests/test-sh-quote.c (check_one): Check the return value of
18         shell_quote_copy.
19         (main): Check a string with a CR character. Check a string that
20         contains UCHAR_MAX.
21
22 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23
24         warnings.m4: provide a means to specify the program to compile.
25         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
26         (gl_WARN_ADD): here.
27         Use gl_AS_VAR_APPEND.
28         Support an argument to specify the program to compile.
29         (gl_WARN_ADD): Accept an argument to specify the program to compile.
30         AC_SUBST the WARN_CFLAGS when they are used.
31         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
32         leave this to gl_WARN_ADD.
33
34 2012-05-08  Eric Blake  <eblake@redhat.com>
35
36         doc: recommendations on gettext version
37         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38         choice between versions.
39         * DEPENDENCIES (gettext): Cover both approaches.
40
41 2012-05-08  Jim Meyering  <meyering@redhat.com>
42
43         init.sh: explain why EXEEXT support uses aliases rather than functions
44         * tests/init.sh: Add a comment.
45
46         init.sh: don't let bash aliases interfere with tests
47         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
48         is bash.  This avoids problems for those who alias standard commands to
49         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
50         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
51
52 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
53
54         stdint: be more consistent with glibc, SunOS libc
55         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
56         (gl_int_fast16_t, gl_uint_fast16_t)
57         (gl_int_fast32_t, gl_uint_fast32_t)
58         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
59         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
60         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61         Be consistent with glibc by default, and with SunOS 5.10 and later
62         if __sun is defined.  This lessens the likelihood of clashes if
63         code compiled for older hosts is combined with code compiled for
64         newer ones.  Problem reported by Niels Möller in
65         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
66
67 2012-05-07  Eric Blake  <eblake@redhat.com>
68
69         isatty: relax license to LGPLv2+
70         * modules/isatty (License): Relax license.
71
72 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73
74         stat-size: comment fix
75         * lib/stat-size.h: Remove obsolete comment about indenting.
76
77 2012-05-06  Bruno Haible  <bruno@clisp.org>
78
79         Tests for module 'sh-quote'.
80         * modules/sh-quote-tests: New file.
81         * tests/test-sh-quote.c: New file.
82
83 2012-05-06  Bruno Haible  <bruno@clisp.org>
84
85         sh-quote: Improve shell_quote_argv's signature.
86         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
87         * lib/sh-quote.c (shell_quote_argv): Likewise.
88
89 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
90
91         stdint: document issues with int_fast8_t etc.
92         * doc/posix-headers/stdint.texi (stdint.h): Say that other
93         stdint.h substitutes may define these types differently.  See
94         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
95
96 2012-05-05  Bruno Haible  <bruno@clisp.org>
97
98         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
99         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
100         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
101         or 'guessing no (mishandles large arguments)'.
102
103 2012-05-05  Bruno Haible  <bruno@clisp.org>
104
105         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
106         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
107         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
108         set gl_cv_func_link_follows_symlink to "guessing no".
109
110 2012-05-05  Bruno Haible  <bruno@clisp.org>
111
112         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
113         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
114         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
115         "guessing no".
116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
117
118 2012-05-05  Bruno Haible  <bruno@clisp.org>
119
120         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
121         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
122         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
123         set gl_cv_struct_dirent_d_ino to "guessing yes".
124
125 2012-05-05  Bruno Haible  <bruno@clisp.org>
126
127         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
128         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
129         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
130         "guessing yes".
131
132 2012-05-05  Bruno Haible  <bruno@clisp.org>
133
134         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
135         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
136         compiling to a glibc system, set gl_cv_func_signbit and
137         gl_cv_func_signbit_gcc to "guessing yes".
138
139 2012-05-05  Bruno Haible  <bruno@clisp.org>
140
141         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
142         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
143         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
144         to "guessing yes".
145         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
146         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
147
148 2012-05-05  Bruno Haible  <bruno@clisp.org>
149
150         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
151         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
152         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
153         gl_cv_func_realpath_works to "guessing yes".
154
155 2012-05-05  Bruno Haible  <bruno@clisp.org>
156
157         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
158         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
159         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
160
161 2012-05-04  Bruno Haible  <bruno@clisp.org>
162
163         Tweak last commit.
164         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
165         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
166
167 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
168
169         unistd_h: make it easier to avoid sys_types_h
170         This is useful for Emacs, which has its own method of porting to
171         Windows, and which therefore does not need the sys_types_h module.
172         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
173         code moved here from gl_SYS_TYPES_H.
174         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
175         using the code directly.
176         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
177         gl_SYS_TYPES_H.
178         * modules/sys_types (Files):
179         * modules/unistd (Files): Add m4/off_t.m4.
180
181 2012-05-03  Bruno Haible  <bruno@clisp.org>
182
183         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
184         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
185         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
186         "guessing yes" or "guessing no".
187         (gl_FUNC_LSTAT): Update.
188         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
189         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
190         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
191
192 2012-05-03  Bruno Haible  <bruno@clisp.org>
193
194         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
195         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
196         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
197         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
198         cross-compiling, choose the first alternative on glibc systems.
199         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
200
201 2012-05-03  Bruno Haible  <bruno@clisp.org>
202
203         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
204         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
205         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
206
207 2012-05-03  Bruno Haible  <bruno@clisp.org>
208
209         chown: Avoid "guessing no" when cross-compiling to glibc systems.
210         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
211
212 2012-05-03  Bruno Haible  <bruno@clisp.org>
213
214         Avoid "guessing no" guesses when cross-compiling to glibc systems.
215         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
216         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
217         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
218         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
219         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
220         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
221         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
223         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
224         compiling to glibc systems, set gl_cv_func_chown_slash_works,
225         gl_cv_func_chown_ctime_works to "guessing yes".
226         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
227         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
228         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
229         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
230         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
232         compiling to glibc systems, set gl_cv_func_open_directory_works to
233         "guessing yes".
234         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
235         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
236         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
237         "guessing yes".
238         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
239         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
240         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_floorf_ieee to
242         "guessing yes".
243         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
244         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
245         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
246         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
247         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
248         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
249         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
250         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
251         "guessing yes".
252         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
253         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
254         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
255         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
256         "guessing yes".
257         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
258         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
259         "guessing yes".
260         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
261         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
262         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
263         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
264         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
265         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
266         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
267         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
268         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
269         compiling to glibc systems, set gl_cv_func_log10f_ieee to
270         "guessing yes".
271         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
272         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
273         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
274         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
275         "guessing yes".
276         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
277         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
278         "guessing yes".
279         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
280         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
281         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
282         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
283         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
284         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
285         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
286         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
287         compiling to glibc systems, set gl_cv_func_mkfifo_works to
288         "guessing yes".
289         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
290         compiling to glibc systems, set gl_cv_func_mknod_works to
291         "guessing yes".
292         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
293         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
294         "guessing yes".
295         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
296         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
297         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
298         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
299         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
300         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
301         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
302         compiling to glibc systems, set gl_cv_func_svid_putenv to
303         "guessing yes".
304         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
305         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
306         "guessing yes".
307         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
308         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
309         "guessing yes".
310         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
311         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
312         to "guessing yes".
313         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
314         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
315         to "guessing yes".
316         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
317         compiling to glibc systems, set gl_cv_func_rmdir_works to
318         "guessing yes".
319         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
320         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
321         gl_cv_func_unlink_parent_fails to "guessing yes".
322         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
323         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
324         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
325         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
326         gl_cv_func_rename_dest_works to "guessing yes".
327         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
328         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
330         compiling to glibc systems, set gl_cv_func_roundf_ieee to
331         "guessing yes".
332         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
333         compiling to glibc systems, set gl_cv_func_roundl_ieee to
334         "guessing yes".
335         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
336         compiling to glibc systems, set gl_cv_func_setenv_works to
337         "guessing yes".
338         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
339         compiling to glibc systems, set gl_cv_func_unsetenv_works to
340         "guessing yes".
341         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
342         compiling to glibc systems, set gl_cv_func_sleep_works to
343         "guessing yes".
344         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
345         compiling to glibc systems, set gl_cv_func_stat_file_slash to
346         "guessing yes".
347         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
348         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
349         "guessing yes".
350         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
351         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
352         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
353         compiling to glibc systems, set gl_cv_func_truncf_ieee to
354         "guessing yes".
355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
356         compiling to glibc systems, set gl_cv_func_truncl_ieee to
357         "guessing yes".
358         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
359         compiling to glibc systems, set gl_cv_func_usleep_works to
360         "guessing yes".
361         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
362         compiling to glibc systems, set gl_cv_func_futimesat_works to
363         "guessing yes".
364
365 2012-05-03  Bruno Haible  <bruno@clisp.org>
366
367         Say "guessing yes" or "guessing no" when cross-compiling.
368         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
369         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
370         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
371         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
372         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
373         am_cv_func_working_getline to "guessing yes" or "guessing no".
374         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
375         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
376         (gl_FUNC_MEMMEM): When cross-compiling, set
377         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
378         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
379         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
381         set gl_cv_func_strcasestr_works_always to "guessing yes" or
382         "guessing no".
383         (gl_FUNC_STRCASESTR): When cross-compiling, set
384         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
385         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
386         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
387         (gl_FUNC_STRSTR): When cross-compiling, set
388         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
389         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
390         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
391         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
392         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
393
394 2012-05-01  Bruno Haible  <bruno@clisp.org>
395
396         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
397         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
398         * build-aux/reloc-ldflags: Likewise.
399         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
400
401 2012-05-01  Bruno Haible  <bruno@clisp.org>
402
403         gnulib-tool: Remove transitional code.
404         * gnulib-tool: Don't warn about --import with 0 arguments any more.
405         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
406
407 2012-05-01  Bruno Haible  <bruno@clisp.org>
408
409         getcwd: Fix misindentation.
410         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
411
412 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
413
414         exclude: process exclude and include directives in order
415         This restores the pre-2009 behavior, and is part of a fix of a
416         grep bug reported by Quentin Arce in
417         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
418         * lib/exclude.c (struct exclude): Remove 'tail' member.
419         (new_exclude_segment): Prepend the new segment instead of appending.
420         Return void, since that's now more convenient.
421         (file_pattern_matches): Renamed from excluded_file_pattern_p.
422         (file_name_matches): Renamed from excluded_file_name_p.
423         (file_pattern_matches, file_name_matches):
424         Return true if the pattern matches, not if it excludes.
425         All callers changed.
426         (excluded_file_name): Process the list in reverse order;
427         since the list is now reversed this restores the pre-2009 behavior.
428         (add_exclude): Adjust to new reversed-order list.  Use local var
429         rather than macro, for clarity.
430         * tests/test-exclude7.sh: Adjust to corrected behavior.
431
432         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
433         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
434         it's not possible here.  Handle the case of \ at end of pattern
435         without dumping core.
436         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
437
438         _Noreturn: future-proof non-GNU and non-MSVC compilers
439         * build-aux/snippet/_Noreturn.h (_Noreturn):
440         * m4/gnulib-common.m4 (gl_COMMON_BODY):
441         Do not define _Noreturn if __STDC_VERSION__ indicates this is
442         C11 or later.  This is more likely to work with random future C
443         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
444         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
445
446         exclude: handle wildcards with FNM_EXTMATCH
447         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
448         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
449         comment that "has wildcards" really means "has or may have
450         wildcards".  Simplify by avoiding the need to call strcspn.
451
452 2012-04-29  Bruno Haible  <bruno@clisp.org>
453
454         gnulib-tool: Fix list of authors.
455         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
456
457 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
458
459         bootstrap: support Automake-NG in $buildreq
460         * bootstrap (check_versions): Handle automake and aclocal from
461         Automake-NG specially.  They can be specified as respectively
462         the "automake-ng" and "aclocal-ng" requirements.
463
464 2012-04-25  Eric Blake  <eblake@redhat.com>
465
466         bootstrap: only force latest Makefile.in.in for gettext module
467         * build-aux/bootstrap (with_gettext): Only install latest
468         Makefile.in.in for projects requesting bleeding edge gettext.
469
470 2012-04-22  Bruno Haible  <bruno@clisp.org>
471
472         doc: Mention reason for replacement on glibc/Linux systems.
473         * doc/posix-functions/dprintf.texi: Mention the problem with special
474         'long double' values.
475         * doc/posix-functions/fprintf.texi: Likewise.
476         * doc/posix-functions/printf.texi: Likewise.
477         * doc/posix-functions/snprintf.texi: Likewise.
478         * doc/posix-functions/sprintf.texi: Likewise.
479         * doc/posix-functions/vdprintf.texi: Likewise.
480         * doc/posix-functions/vfprintf.texi: Likewise.
481         * doc/posix-functions/vprintf.texi: Likewise.
482         * doc/posix-functions/vsnprintf.texi: Likewise.
483         * doc/posix-functions/vsprintf.texi: Likewise.
484         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
485         platforms with F_DUPFD_CLOEXEC problems.
486         * doc/posix-functions/glob.texi: Mention which platforms are affected
487         by the problem with symbolic links.
488         * doc/posix-functions/linkat.texi: Mention the problem with
489         AT_SYMLINK_FOLLOW on Linux.
490
491 2012-04-22  Bruno Haible  <bruno@clisp.org>
492
493         pwrite: Don't replace on all platforms.
494         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
495
496 2012-04-22  Bruno Haible  <bruno@clisp.org>
497
498         rint* tests: Avoid gcc warnings.
499         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
500         * tests/test-rintf.c (INFINITY, NAN): Likewise.
501         * tests/test-rintl.c (INFINITY, NAN): Likewise.
502
503 2012-04-21  Bruno Haible  <bruno@clisp.org>
504
505         users.txt: Update.
506         * users.txt: Add freedink, wdiff. Update URLs for projects that have
507         switched from CVS to git, bzr, or svn.
508
509 2012-04-21  Bruno Haible  <bruno@clisp.org>
510
511         Large File Support for native Windows platforms.
512
513         * m4/largefile.m4 (gl_LARGEFILE): New macro.
514         * modules/largefile (configure.ac): Require gl_LARGEFILE.
515
516         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
517         type.
518         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
519         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
520         * doc/posix-headers/sys_types.texi: Mention the effect of the
521         'largefile' module.
522
523         * lib/fcntl.in.h: Add comments about off_t.
524         * modules/fcntl-h (Depends-on): Add sys_types.
525
526         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
527         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
528         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
529         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
530         * modules/unistd (Depends-on): Add sys_types.
531         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
532
533         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
534         instead of lseek.
535         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
536         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
537         * modules/lseek (Depends-on): Add sys_types.
538
539         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
540         msvc-nothrow.h.
541         (SetFileSize): New function.
542         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
543         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
544         if Large File Support is requested.
545         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
546         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
547
548         * lib/stdio.in.h: Add comments about off_t.
549         * modules/stdio (Depends-on): Add sys_types.
550
551         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
552         instead of ftello.
553         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
554         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
555         (gl_PREREQ_FTELLO): New macro.
556         * modules/ftello (Depends-on): Add sys_types.
557         (configure.ac): Incoke gl_PREREQ_FTELLO.
558
559         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
560         instead of fseeko.
561         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
562         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
563         (gl_PREREQ_FSEEKO): New macro.
564         * modules/fseeko (Depends-on): Add sys_types.
565         (configure.ac): Invoke gl_PREREQ_FSEEKO.
566
567         * lib/sys_stat.in.h: Add comments about off_t.
568         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
569         64-bit integer for st_size in 'struct stat'.
570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
571         Define _GL_WINDOWS_64_BIT_ST_SIZE.
572         * modules/sys_stat (Depends-on): Add sys_types.
573         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
574
575         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
576         instead of stat or _stat.
577
578         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
579         'struct _stati64' instead of fstat and 'struct stat'.
580         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
581         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
582
583         Reported by Ray Satiro <raysatiro@yahoo.com>.
584
585 2012-04-19  Eric Blake  <eblake@redhat.com>
586
587         bootstrap: accommodate older libtool
588         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
589         Reported by Daniel P. Berrange.
590
591 2012-04-19  Jim Meyering  <meyering@redhat.com>
592
593         announce-gen: avoid failure due to lack of Digest::SHA1
594         Even with the preferred Digest::SHA available, this script
595         would fail when the backup module, Digest::SHA1, was not installed.
596         * build-aux/announce-gen: Quote the conditional use of "use".
597         Reported by Reuben Thomas in:
598         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
599
600         bootstrap: don't let a user's CDPATH setting affect this script
601         When CDPATH is set, cd will sometimes generate output.
602         When "cd" is run in a subshell whose output matters, that
603         surprising-to-some output can cause malfunction.
604         Unsetting CDPATH turns off this shell "feature."
605         * build-aux/bootstrap (CDPATH): Unset.
606         Reported by Reuben Thomas in:
607         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
608         and inspired by his patch here:
609         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
610
611 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
612         and Jim Meyering  <meyering@redhat.com>
613
614         maint.mk: catch "see @xref{}" and similar
615         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
616         prohibit "See also @xref{", "Also see @pxref{", and similar.
617
618 2012-04-16  Jim Meyering  <meyering@redhat.com>
619
620         bootstrap: really use gnulib's po/Makefile.in.in
621         * build-aux/bootstrap: Correct the source file name in previous change.
622         Reported by Akim Demaille.
623
624         configmake: correct minor inconsistency in Makefile rule
625         * modules/configmake (Makefile.am): All other rules like this one
626         run the final "mv -f ..." in the same backslash-continued command
627         as the one that does everything else.  This one put the mv -f ...
628         command on a separate, non-backslash-continued line.
629         Make it like the others.
630
631         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
632         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
633         the one from gettext.  Reported by Akim Demaille.
634
635 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
636
637         Fix recursion of install-* into po directories.
638         Bison's install-pdf bug reported by Hans Aberg at
639         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
640         * build-aux/po/Makefile.in.in (install-dvi, install-html)
641         (install-info, install-pdf, install-ps): New targets.
642
643 2012-04-16  Jim Meyering  <meyering@redhat.com>
644
645         maint: avoid spurious "make sc_maint" failure
646         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
647         exempt all *.class file names, for lib/javaversion.class.
648
649 2012-04-15  Bruno Haible  <bruno@clisp.org>
650
651         lseek: Make configure test independent of environment.
652         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
653         Windows, we know that lseek() on pipes is broken; skip the runtime
654         test.
655
656 2012-04-14  Bruno Haible  <bruno@clisp.org>
657
658         stat: Bypass buggy override in mingw64.
659         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
660         * lib/stat.c (stat) [mingw64]: Define to _stat.
661         * doc/posix-functions/stat.texi: Mention mingw64 bug.
662
663 2012-04-14  Bruno Haible  <bruno@clisp.org>
664
665         pathmax: Fix compilation error on MSVC 9.
666         * modules/pathmax (Depends-on): Add unistd.
667
668 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
669
670         README: document pointer comparison assumption
671         * README (Portability guidelines): Document assumption about
672         pointer comparisons, in response to a recent bug-gnulib comment by
673         Jeffrey Kegler.
674
675 2012-04-12  Bruno Haible  <bruno@clisp.org>
676
677         Tests for module 'getrusage'.
678         * modules/getrusage-tests: New file.
679         * tests/test-getrusage.c: New file.
680
681         New module 'getrusage'.
682         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
683         warn-on-use.h.
684         (getrusage): New declaration.
685         * lib/getrusage.c: New file.
686         * m4/getrusage.m4: New file.
687         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
688         is declared.
689         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
690         HAVE_GETRUSAGE.
691         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
692         snippet/c++defs, snippet/warn-on-use.
693         (Makefile.am): Update generation of sys/resource.h. Substitute
694         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
695         * modules/getrusage: New file.
696         * doc/posix-functions/getrusage.texi: Mention the new module.
697
698 2012-04-12  Bruno Haible  <bruno@clisp.org>
699
700         Tests for module 'sys_resource'.
701         * modules/sys_resource-tests: New file.
702         * tests/test-sys_resource.c: New file.
703
704         New module 'sys_resource'.
705         * lib/sys_resource.in.h: New file.
706         * m4/sys_resource_h.m4: New file.
707         * modules/sys_resource: New file.
708         * doc/posix-headers/sys_resource.texi: Mention the new module.
709
710 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
711
712         ioctl: Fix compilation error on mingw.
713         * lib/ioctl.c: Include <windows.h>.
714         Also reported by Ray Satiro <raysatiro@yahoo.com>.
715
716 2012-04-04  Jim Meyering  <meyering@redhat.com>
717
718         regex: correct #pragma guard expression
719         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
720         not 4.3.  Correct its cpp guard expression.
721
722 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
723
724         regex: remove unnecessary type punning
725         Problem reported by Vladimir Serbinenko in
726         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
727         * lib/regex.h (struct re_pattern_buffer): Change the type of
728         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
729         Fix comment to match code.
730         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
731         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
732         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
733         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
734         (set_regs):
735         Omit no-longer-necessary casts.
736
737 2012-04-03  Bruno Haible  <bruno@clisp.org>
738
739         Tests for module 'ilogbl'.
740         * modules/ilogbl-tests: New file.
741         * tests/test-ilogbl.c: New file.
742
743         New module 'ilogbl'.
744         * lib/math.in.h (ilogbl): New declaration.
745         * lib/ilogbl.c: New file.
746         * m4/ilogbl.m4: New file.
747         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
749         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
750         Split sed invocation, to avoid the limit of 100 substitutions of
751         HP-UX 'sed'.
752         * modules/ilogbl: New file.
753         * tests/test-math-c++.cc: Check the declaration of ilogbl.
754         * doc/posix-functions/ilogbl.texi: Mention the new module.
755
756 2012-04-03  Bruno Haible  <bruno@clisp.org>
757
758         Tests for module 'ilogbf'.
759         * modules/ilogbf-tests: New file.
760         * tests/test-ilogbf.c: New file.
761
762         New module 'ilogbf'.
763         * lib/math.in.h (ilogbf): New declaration.
764         * lib/ilogbf.c: New file.
765         * m4/ilogbf.m4: New file.
766         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
768         REPLACE_ILOGBF.
769         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
770         REPLACE_ILOGBF.
771         * modules/ilogbf: New file.
772         * tests/test-math-c++.cc: Check the declaration of ilogbf.
773         * doc/posix-functions/ilogbf.texi: Mention the new module.
774
775 2012-04-03  Bruno Haible  <bruno@clisp.org>
776
777         Tests for module 'ilogb'.
778         * modules/ilogb-tests: New file.
779         * tests/test-ilogb.c: New file.
780         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
781         tests/test-logb-ieee.h.
782
783         New module 'ilogb'.
784         * lib/math.in.h (ilogb): New declaration.
785         * lib/ilogb.c: New file.
786         * m4/ilogb.m4: New file.
787         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
789         REPLACE_ILOGB.
790         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
791         REPLACE_ILOGB.
792         * modules/ilogb: New file.
793         * tests/test-math-c++.cc: Check the declaration of ilogb.
794         * doc/posix-functions/ilogb.texi: Mention the new module.
795
796 2012-04-03  Bruno Haible  <bruno@clisp.org>
797
798         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
799         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
800         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
801         (main): Check their values.
802         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
803         problem.
804
805 2012-04-03  Bruno Haible  <bruno@clisp.org>
806
807         Tests for module 'logbl-ieee'.
808         * modules/logbl-ieee-tests: New file.
809         * tests/test-logbl-ieee.c: New file.
810
811         New module 'logbl-ieee'.
812         * modules/logbl-ieee: New file.
813
814         Tests for module 'logb-ieee'.
815         * modules/logb-ieee-tests: New file.
816         * tests/test-logb-ieee.c: New file.
817
818         New module 'logb-ieee'.
819         * modules/logb-ieee: New file.
820
821         Tests for module 'logbf-ieee'.
822         * modules/logbf-ieee-tests: New file.
823         * tests/test-logbf-ieee.c: New file.
824         * tests/test-logb-ieee.h: New file.
825
826         New module 'logbf-ieee'.
827         * modules/logbf-ieee: New file.
828
829 2012-04-03  Bruno Haible  <bruno@clisp.org>
830
831         Tests for module 'logbl'.
832         * modules/logbl-tests: New file.
833         * tests/test-logbl.c: New file.
834
835         New module 'logbl'.
836         * lib/math.in.h (logbl): New declaration.
837         * lib/logbl.c: New file.
838         * m4/logbl.m4: New file.
839         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
841         REPLACE_LOGBL.
842         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
843         REPLACE_LOGBL.
844         * modules/logbl: New file.
845         * tests/test-math-c++.cc: Check the declaration of logbl.
846         * doc/posix-functions/logbl.texi: Mention the new module.
847
848 2012-04-02  Bruno Haible  <bruno@clisp.org>
849
850         Tests for module 'logbf'.
851         * modules/logbf-tests: New file.
852         * tests/test-logbf.c: New file.
853
854         New module 'logbf'.
855         * lib/math.in.h (logbf): New declaration.
856         * lib/logbf.c: New file.
857         * m4/logbf.m4: New file.
858         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
860         REPLACE_LOGBF.
861         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
862         REPLACE_LOGBF.
863         * modules/logbf: New file.
864         * tests/test-math-c++.cc: Check the declaration of logbf.
865         * doc/posix-functions/logbf.texi: Mention the new module.
866
867 2012-04-02  Bruno Haible  <bruno@clisp.org>
868
869         logb tests: More tests.
870         * tests/test-logb.h: New file, based on tests/test-logb.c and
871         tests/test-frexp.h.
872         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
873         (main): Just invoke test_function.
874         * modules/logb-tests (Files): Add tests/test-logb.h,
875         tests/minus-zero.h, tests/randomd.c.
876         (Makefile.am): Add randomd.c to test_logb_SOURCES.
877
878         logb: Provide replacement and workarounds.
879         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
880         is 1.
881         * lib/logb.c: New file.
882         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
883         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
885         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
886         * modules/logb (Files): Add lib/logb.c.
887         (Depends-on): Add isfinite, frexp, isnand.
888         (configure.ac): Compile the replacement code logb.c if needed.
889         * tests/test-math-c++.cc: Check the declaration of logb.
890         * doc/posix-functions/logb.texi: Mention the replacement and the bug
891         with subnormal numbers.
892
893 2012-04-02  Bruno Haible  <bruno@clisp.org>
894
895         log10* tests: Speed up.
896         * tests/test-log10.h (test_function): Reduce amount of random numbers
897         to test.
898
899 2012-04-01  Bruno Haible  <bruno@clisp.org>
900
901         logf-ieee: Fix test whether logf works.
902         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
903
904 2012-04-01  Bruno Haible  <bruno@clisp.org>
905
906         log10l: Work around log10l-ieee test failure on IRIX 6.5.
907         * lib/log10l.c: Include <float.h>
908         (log10l): On IRIX, normalize the +Infinity value.
909         * modules/log10l (Depends-on): Add 'float'.
910         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
911         +Infinity.
912
913         log10f-ieee: Work around test failure on NetBSD 5.1.
914         * m4/log10f-ieee.m4: New file.
915         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
916         test whether log10f works with a negative argument. Replace it if not.
917         * lib/log10f.c (log10f): For negative arguments, return NaN.
918         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
919         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
920         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
921
922         log10f-ieee: Work around test failure on Solaris 9.
923         * modules/log10f-ieee (Depends-on): Add log10-ieee.
924         (configure.ac): Require gl_FUNC_LOG10F.
925
926         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
927         * m4/log10-ieee.m4: New file.
928         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
929         whether log10 works with a negative argument. Replace it if not.
930         * lib/log10.c (log10): For negative arguments, return NaN.
931         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
932         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
933         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
934
935         Tests for module 'log10l-ieee'.
936         * modules/log10l-ieee-tests: New file.
937         * tests/test-log10l-ieee.c: New file.
938
939         New module 'log10l-ieee'.
940         * modules/log10l-ieee: New file.
941
942         Tests for module 'log10-ieee'.
943         * modules/log10-ieee-tests: New file.
944         * tests/test-log10-ieee.c: New file.
945
946         New module 'log10-ieee'.
947         * modules/log10-ieee: New file.
948
949         Tests for module 'log10f-ieee'.
950         * modules/log10f-ieee-tests: New file.
951         * tests/test-log10f-ieee.c: New file.
952         * tests/test-log10-ieee.h: New file.
953
954         New module 'log10f-ieee'.
955         * modules/log10f-ieee: New file.
956
957 2012-04-01  Bruno Haible  <bruno@clisp.org>
958
959         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
960         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
961         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
962         workaround.
963         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
964         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
966         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
967         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
968         (Depends-on): Update conditions.
969         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
970         IRIX 6.5, OSF/1 5.1 problems.
971
972 2012-04-01  Bruno Haible  <bruno@clisp.org>
973
974         log10f: Work around OSF/1 5.1 bug.
975         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
976         * lib/log10f.c (log10f): If logf exists, use it and provide just the
977         workaround.
978         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
979         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
981         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
982         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
983         (Depends-on): Update conditions.
984         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
985
986 2012-04-01  Bruno Haible  <bruno@clisp.org>
987
988         log10: Work around OSF/1 5.1 bug.
989         * lib/math.in.h (log10): New declaration.
990         * lib/log10.c: New file.
991         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
992         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
993         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
994         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
995         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
996         * modules/log10 (Files): Add lib/log10.c.
997         (Depends-on): Add math.
998         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
999         * tests/test-math-c++.cc: Check the declaration of log10.
1000         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1001
1002 2012-03-31  Bruno Haible  <bruno@clisp.org>
1003
1004         log10l tests: More tests.
1005         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1006         tests/minus-zero.h, tests/randoml.c.
1007         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1008         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1009         (main): Invoke test_function.
1010
1011         log10f tests: More tests.
1012         * modules/log10f-tests (Files): Add tests/test-log10.h,
1013         tests/minus-zero.h, tests/randomf.c.
1014         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1015         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1016         (main): Invoke test_function.
1017
1018         log10 tests: More tests.
1019         * tests/test-log10.h: New file.
1020         * modules/log10-tests (Files): Add tests/test-log10.h,
1021         tests/minus-zero.h, tests/randomd.c.
1022         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1023         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1024         (main): Invoke test_function.
1025
1026 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1027
1028         fflush: Fix syntax error.
1029         * lib/fflush.c: Include unused-parameter.h, needed for
1030         _GL_UNUSED_PARAMETER.
1031         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1032
1033 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1034
1035         regex: pacify GCC when compiling GRUB
1036         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1037         a diagnostic.  Reported by Vladimir Serbinenko in
1038         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1039
1040 2012-03-29  Eric Blake  <eblake@redhat.com>
1041
1042         stdio: don't assume gets any more
1043         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1044         support.
1045         * modules/stdio (Makefile.am): Likewise.
1046         * lib/stdio-read.c (gets): Likewise.
1047         * tests/test-stdio-c++.cc: Likewise.
1048         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1049         * lib/stdio.in.h (gets): Make warning occur in more places.
1050         * doc/posix-functions/gets.texi (gets): Update documentation.
1051         Reported by Christer Solskogen.
1052
1053         maint.mk: fix syntax checks without exclusions
1054         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1055         Reported by Daniel P. Berrange.
1056
1057         strerror_r: avoid compiler warning
1058         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1059         level.
1060
1061         fflush: avoid compiler warning
1062         * lib/fflush.c (update_fpos_cache): Mark variables that are
1063         potentially unused.
1064
1065 2012-03-25  Bruno Haible  <bruno@clisp.org>
1066
1067         Tests for module 'localeconv'.
1068         * modules/localeconv-tests: New file.
1069         * tests/test-localeconv.c: New file.
1070
1071         New module 'localeconv'.
1072         * lib/locale.in.h (localeconv): New declaration.
1073         * lib/localeconv.c: New file.
1074         * m4/localeconv.m4: New file.
1075         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1076         REPLACE_LOCALECONV.
1077         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1078         REPLACE_LOCALECONV.
1079         * modules/localeconv: New file.
1080         * modules/nl_langinfo (Depends-on): Add localeconv.
1081         * modules/human (Depends-on): Likewise.
1082         * doc/posix-functions/localeconv.texi: Mention the new module.
1083
1084 2012-03-25  Bruno Haible  <bruno@clisp.org>
1085
1086         locale: Provide a complete 'struct lconv'.
1087         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1088         'struct lconv' does not contain int_p_cs_precedes.
1089         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1090         * doc/posix-headers/locale.texi: Update.
1091
1092         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1093         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1094         * doc/posix-headers/locale.texi: Update.
1095
1096         locale: Provide a working 'struct lconv'.
1097         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1098         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1099         'struct lconv' does not even contain decimal_point.
1100         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1101         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1102         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1103         * doc/posix-headers/locale.texi: Mention the problems with
1104         'struct lconv'.
1105         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1106
1107 2012-03-24  Bruno Haible  <bruno@clisp.org>
1108
1109         Enable common subexpression optimization in GCC.
1110         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1111         macros.
1112         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1113         GCC attribute 'const'.
1114         (uc_locale_language): Declare with GCC attribute 'pure'.
1115         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1116         with GCC attribute 'const'.
1117         * lib/unictype.in.h (uc_is_general_category_withtable,
1118         uc_combining_class, uc_combining_class_name,
1119         uc_combining_class_long_name, uc_bidi_class_name,
1120         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1121         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1122         uc_decimal_value, uc_digit_value, uc_numeric_value,
1123         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1124         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1125         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1126         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1127         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1128         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1129         Declare with GCC attribute 'const'.
1130         (uc_general_category_name, uc_general_category_long_name,
1131         uc_general_category_byname, uc_general_category,
1132         uc_is_general_category, uc_combining_class_byname,
1133         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1134         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1135         Declare with GCC attribute 'pure'.
1136         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1137         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1138         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1139         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1140         with GCC attribute 'pure'.
1141         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1142         'const'.
1143         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1144         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1145         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1146         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1147         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1148         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1149         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1150         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1151         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1152         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1153         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1154         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1155         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1156         GCC attribute 'pure'.
1157         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1158         'const'.
1159         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1160         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1161         u32_strwidth): Declare with GCC attribute 'pure'.
1162
1163         Enable common subexpression optimization in GCC.
1164         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1165         (alphasort): Declare with GCC attribute 'pure'.
1166         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1167         (atoll): Declare with GCC attribute 'pure'.
1168         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1169         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1170         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1171         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1172         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1173         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1174         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1175
1176 2012-03-24  Bruno Haible  <bruno@clisp.org>
1177
1178         gnulib-tool: Avoid unintended error output from 'cmp'.
1179         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1180         "cmp -s", not "cmp > /dev/null".
1181
1182 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1183
1184         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1185
1186         It's not just Automake versions < 1.9b that creates an empty
1187         pkgdatadir at installation time if pkgdata_DATA is specified
1188         to empty; modern automake versions do this as well, at least
1189         until automake 1.11.4 (not yet released at the moment of writing,
1190         but soon to appear).  That behaviour was generally considered a
1191         feature rather than a bug, at least until this discussion:
1192         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1193
1194         See also automake bugs #10997 and #11030.
1195
1196         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1197         reference to relevant automake bug numbers.
1198         (func_emit_tests_Makefile_am): Likewise.
1199
1200 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1201
1202         announce-gen: use Digest::SHA when possible
1203         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1204         back to Digest::SHA1 if necessary.
1205
1206 2012-03-20  Jim Meyering  <meyering@redhat.com>
1207
1208         tests: avoid gcc warnings about argv vs. const initializers
1209         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1210         warnings about discarding 'const' qualifier from pointer target type.
1211         * tests/test-posix_spawn2.c (main): Likewise.
1212
1213 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1214
1215         README-release: simplify slightly
1216         * top/README-release: Run "git checkout master" only once.
1217
1218 2012-03-15  Mark Wielaard  <mark@klomp.org>
1219
1220         git-merge-changelog: add specific example on how to use with hg.
1221         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1222
1223 2012-03-18  Mark Wielaard  <mark@klomp.org>
1224
1225         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1226
1227 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1228
1229         git-version-gen: don't let "prefix" envvar cause trouble
1230         * build-aux/git-version-gen (prefix): Initialize properly,
1231         so as not to use a value specified via the environment.
1232         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1233
1234 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         regex: diagnose too-large repeat counts in EREs
1237         Previously, the code did not diagnose the too-large repeat count
1238         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1239         as if it were 'b\{1000000000}', which is unexpected.
1240         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1241         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1242         is a reasonable one for this problem.  Another option would be to
1243         create a new REG_OVERFLOW error for repeat counts that are too large.
1244         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1245         count is too large, so that the caller can distinguish the two cases.
1246         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1247         "Too large" return code, and that repeat counts are one example of this.
1248
1249 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1250
1251         doc: some glibc x32 integer width issues
1252         * doc/posix-headers/sys_types.texi (sys/types.h):
1253         * doc/posix-headers/time.texi (time.h):
1254         Mention that glibc x32 does not conform to POSIX in a couple of
1255         areas related to integer widths.
1256
1257 2012-03-15  Bruno Haible  <bruno@clisp.org>
1258
1259         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1260         * lib/fma.c (VOLATILE): New macro.
1261         (FUNC): Use it to work around a GCC compiler bug.
1262
1263 2012-03-13  Bruno Haible  <bruno@clisp.org>
1264
1265         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1266         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1267         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1268         REPLACE_HYPOTL to 1.
1269         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1270
1271 2012-03-13  Bruno Haible  <bruno@clisp.org>
1272
1273         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1274         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1275         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1276         REPLACE_REMAINDERL to 1.
1277         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1278         bug.
1279
1280 2012-03-13  Bruno Haible  <bruno@clisp.org>
1281
1282         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1283         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1284         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1285         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1286         too big rounding errors.
1287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1288         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1289         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1290         (Depends-on): Update conditions.
1291         * tests/test-sqrtl.c (my_ldexpl): New function.
1292         (main): Add test of a particular value.
1293         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1294
1295 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1296
1297         doc: Update timer_* platform portability notes.
1298         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1299         that always return ENOSYS.
1300         * doc/posix-functions/timer_delete.texi: Likewise.
1301         * doc/posix-functions/timer_gettime.texi: Likewise.
1302         * doc/posix-functions/timer_settime.texi: Likewise.
1303
1304 2012-03-13  Bruno Haible  <bruno@clisp.org>
1305
1306         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1307         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1308         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1309         REPLACE_CBRTL to 1.
1310         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1311
1312 2012-03-13  Bruno Haible  <bruno@clisp.org>
1313
1314         remainderl: Avoid compilation error on AIX >= 5.2.
1315         * lib/math.in.h (remainderl): Undefine macro from the system header.
1316
1317 2012-03-13  Bruno Haible  <bruno@clisp.org>
1318
1319         Avoid compilation errors with MSVC option -fp:strict.
1320         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1321         * lib/cbrtf.c: Likewise.
1322         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1323
1324 2012-03-12  Bruno Haible  <bruno@clisp.org>
1325
1326         uninorm: Don't crash in out-of-memory conditions.
1327         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1328         gracefully.
1329         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1330         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1331
1332 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1333
1334         quote: fix syntax-check
1335         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1336         also exports quote_quoting_options.
1337
1338 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1339
1340         Collapse list of copyright years to ranges.  See
1341         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1342         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1343         build-aux/csharpexec.sh.in, build-aux/gnupload,
1344         build-aux/install-reloc, build-aux/javacomp.sh.in,
1345         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1346         build-aux/move-if-change, build-aux/reloc-ldflags,
1347         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1348
1349 2012-03-11  Bruno Haible  <bruno@clisp.org>
1350
1351         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1352         * m4/log2f-ieee.m4: New file.
1353         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1354         whether log2f works with a minus zero argument. Replace it if not.
1355         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1356         (Depends-on): Add log2-ieee.
1357         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1358         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1359
1360         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1361         * m4/log2-ieee.m4: New file.
1362         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1363         whether log2 works with a minus zero argument. Replace it if not.
1364         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1365         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1366         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1367
1368         Tests for module 'log2l-ieee'.
1369         * modules/log2l-ieee-tests: New file.
1370         * tests/test-log2l-ieee.c: New file.
1371
1372         New module 'log2l-ieee'.
1373         * modules/log2l-ieee: New file.
1374
1375         Tests for module 'log2-ieee'.
1376         * modules/log2-ieee-tests: New file.
1377         * tests/test-log2-ieee.c: New file.
1378
1379         New module 'log2-ieee'.
1380         * modules/log2-ieee: New file.
1381
1382         Tests for module 'log2f-ieee'.
1383         * modules/log2f-ieee-tests: New file.
1384         * tests/test-log2f-ieee.c: New file.
1385         * tests/test-log2-ieee.h: New file.
1386
1387         New module 'log2f-ieee'.
1388         * modules/log2f-ieee: New file.
1389
1390 2012-03-11  Bruno Haible  <bruno@clisp.org>
1391
1392         Tests for module 'log2l'.
1393         * modules/log2l-tests: New file.
1394         * tests/test-log2l.c: New file.
1395
1396         New module 'log2l'.
1397         * lib/math.in.h (log2l): New declaration.
1398         * lib/log2l.c: New file.
1399         * m4/log2l.m4: New file.
1400         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1401         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1402         REPLACE_LOG2L.
1403         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1404         REPLACE_LOG2L.
1405         * modules/log2l: New file.
1406         * tests/test-math-c++.cc: Check the declaration of log2l.
1407         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1408         and OSF/1 problems.
1409
1410 2012-03-11  Bruno Haible  <bruno@clisp.org>
1411
1412         Tests for module 'log2f'.
1413         * modules/log2f-tests: New file.
1414         * tests/test-log2f.c: New file.
1415
1416         New module 'log2f'.
1417         * lib/math.in.h (log2f): New declaration.
1418         * lib/log2f.c: New file.
1419         * m4/log2f.m4: New file.
1420         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1421         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1422         REPLACE_LOG2F.
1423         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1424         REPLACE_LOG2F.
1425         * modules/log2f: New file.
1426         * tests/test-math-c++.cc: Check the declaration of log2f.
1427         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1428         and OSF/1 and Cygwin problems.
1429
1430 2012-03-11  Bruno Haible  <bruno@clisp.org>
1431
1432         Tests for module 'log2'.
1433         * modules/log2-tests: New file.
1434         * tests/test-log2.c: New file.
1435         * tests/test-log2.h: New file.
1436
1437         New module 'log2'.
1438         * lib/math.in.h (log2): New declaration.
1439         * lib/log2.c: New file.
1440         * m4/log2.m4: New file.
1441         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1443         REPLACE_LOG2.
1444         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1445         REPLACE_LOG2.
1446         * modules/log2: New file.
1447         * tests/test-math-c++.cc: Check the declaration of log2.
1448         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1449         and OSF/1 and Cygwin problems.
1450
1451 2012-03-11  Bruno Haible  <bruno@clisp.org>
1452
1453         exp2* tests: More tests.
1454         * tests/test-exp2.h (test_function): Test all integral arguments that
1455         don't need to overflow or denormalized numbers.
1456         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1457         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1458         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1459
1460 2012-03-10  Bruno Haible  <bruno@clisp.org>
1461
1462         log1pl-ieee: Work around test failure on AIX 7.1.
1463         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1464
1465         log1pl-ieee: Work around test failure on IRIX 6.5.
1466         * m4/log1pl-ieee.m4: New file.
1467         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1468         test whether log1pl works with a minus zero argument. Replace it if
1469         not.
1470         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1472         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1473         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1474         (Depends-on): Update conditions.
1475         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1476         m4/signbit.m4.
1477         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1478         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1479
1480         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1481         * m4/log1pf-ieee.m4: New file.
1482         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1483         test whether log1pf works with a minus zero argument. Replace it if
1484         not.
1485         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1486         m4/signbit.m4.
1487         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1488         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1489
1490         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1491         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1492         (configure.ac): Require gl_FUNC_LOG1PF.
1493
1494         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1495         * m4/log1p-ieee.m4: New file.
1496         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1497         whether log1p works with a minus zero argument. Replace it if not.
1498         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1500         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1501         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1502         (Depends-on): Update conditions.
1503         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1504         m4/signbit.m4.
1505         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1506         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1507
1508         Tests for module 'log1pl-ieee'.
1509         * modules/log1pl-ieee-tests: New file.
1510         * tests/test-log1pl-ieee.c: New file.
1511
1512         New module 'log1pl-ieee'.
1513         * modules/log1pl-ieee: New file.
1514
1515         Tests for module 'log1p-ieee'.
1516         * modules/log1p-ieee-tests: New file.
1517         * tests/test-log1p-ieee.c: New file.
1518
1519         New module 'log1p-ieee'.
1520         * modules/log1p-ieee: New file.
1521
1522         Tests for module 'log1pf-ieee'.
1523         * modules/log1pf-ieee-tests: New file.
1524         * tests/test-log1pf-ieee.c: New file.
1525         * tests/test-log1p-ieee.h: New file.
1526
1527         New module 'log1pf-ieee'.
1528         * modules/log1pf-ieee: New file.
1529
1530 2012-03-10  Bruno Haible  <bruno@clisp.org>
1531
1532         Tests for module 'log1pl'.
1533         * modules/log1pl-tests: New file.
1534         * tests/test-log1pl.c: New file.
1535
1536         New module 'log1pl'.
1537         * lib/math.in.h (log1pl): New declaration.
1538         * lib/log1pl.c: New file.
1539         * m4/log1pl.m4: New file.
1540         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1542         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1543         * modules/log1pl: New file.
1544         * tests/test-math-c++.cc: Check the declaration of log1pl.
1545         * doc/posix-functions/log1pl.texi: Mention the new module.
1546
1547 2012-03-10  Bruno Haible  <bruno@clisp.org>
1548
1549         Tests for module 'log1pf'.
1550         * modules/log1pf-tests: New file.
1551         * tests/test-log1pf.c: New file.
1552
1553         New module 'log1pf'.
1554         * lib/math.in.h (log1pf): New declaration.
1555         * lib/log1pf.c: New file.
1556         * m4/log1pf.m4: New file.
1557         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1559         REPLACE_LOG1PF.
1560         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1561         REPLACE_LOG1PF.
1562         * modules/log1pf: New file.
1563         * tests/test-math-c++.cc: Check the declaration of log1pf.
1564         * doc/posix-functions/log1pf.texi: Mention the new module.
1565
1566 2012-03-10  Bruno Haible  <bruno@clisp.org>
1567
1568         log1p tests: More tests.
1569         * tests/test-log1p.h: New file.
1570         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1571         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1572         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1573         (main): Invoke test_function.
1574
1575         log1p: Provide replacement for Minix and MSVC.
1576         * lib/math.in.h (log1p): New declaration.
1577         * lib/log1p.c: New file.
1578         * m4/log1p.m4: New file.
1579         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1580         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1581         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1582         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1583         (Depends-on): Add math, isnand, log, round.
1584         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1585         HAVE_LOG1P is 0.
1586         * tests/test-math-c++.cc: Check the declaration of log1p.
1587         * doc/posix-functions/log1p.texi: Mention the replacement.
1588
1589 2012-03-10  Bruno Haible  <bruno@clisp.org>
1590
1591         math tests: Small simplification.
1592         * tests/test-exp.h (test_function): Use the same err_bound for
1593         'double' on platforms with sizeof (long double) == sizeof (double)
1594         than on platforms with sizeof (long double) > sizeof (double).
1595         * tests/test-exp2.h (test_function): Likewise.
1596         * tests/test-expm1.h (test_function): Likewise.
1597         * tests/test-log.h (test_function): Likewise.
1598
1599 2012-03-10  Bruno Haible  <bruno@clisp.org>
1600
1601         Fix some comments.
1602         * lib/expl.c: Fix an ambiguous comment.
1603         * lib/expm1.c: Likewise.
1604         * lib/expm1l.c: Likewise.
1605         * lib/exp2.c: Likewise.
1606         * lib/exp2l.c: Likewise.
1607
1608 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1609
1610         regex: allow inclusion of <regex.h> before <limits.h>
1611         Without this patch, portable programs had to include <limits.h> before
1612         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1613         I ran into this problem with a test version of GNU grep on Solaris 8.
1614         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1615         This is done conditionally so that this change can be merged
1616         back to glibc.
1617         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1618         using the included regex.
1619
1620         fts: depend on fdopendir
1621         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1622         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1623         problem was introduced when fdopendir was split out.
1624
1625 2012-03-10  Bruno Haible  <bruno@clisp.org>
1626
1627         Remove unused variables.
1628         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1629         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1630
1631 2012-03-10  Bruno Haible  <bruno@clisp.org>
1632
1633         isnanf-nolibm: Fix last commit.
1634         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1635
1636         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1637         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1638
1639 2012-03-10  Bruno Haible  <bruno@clisp.org>
1640
1641         logf-ieee: Work around test failure on NetBSD 5.1.
1642         * m4/logf-ieee.m4: New file.
1643         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1644         whether logf works with a negative argument. Replace it if not.
1645         * lib/logf.c (logf): For negative arguments, return NaN.
1646         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1647         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1648         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1649
1650         logf-ieee: Work around test failure on Solaris 9.
1651         * modules/logf-ieee (Depends-on): Add log-ieee.
1652         (configure.ac): Require gl_FUNC_LOGF.
1653
1654         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1655         * m4/log-ieee.m4: New file.
1656         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1657         log works with a negative argument. Replace it if not.
1658         * lib/log.c (log): For negative arguments, return NaN.
1659         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1660         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1661         * doc/posix-functions/log.texi: Mention the log-ieee module.
1662
1663         Tests for module 'logl-ieee'.
1664         * modules/logl-ieee-tests: New file.
1665         * tests/test-logl-ieee.c: New file.
1666
1667         New module 'logl-ieee'.
1668         * modules/logl-ieee: New file.
1669
1670         Tests for module 'log-ieee'.
1671         * modules/log-ieee-tests: New file.
1672         * tests/test-log-ieee.c: New file.
1673
1674         New module 'log-ieee'.
1675         * modules/log-ieee: New file.
1676
1677         Tests for module 'logf-ieee'.
1678         * modules/logf-ieee-tests: New file.
1679         * tests/test-logf-ieee.c: New file.
1680         * tests/test-log-ieee.h: New file.
1681
1682         New module 'logf-ieee'.
1683         * modules/logf-ieee: New file.
1684
1685 2012-03-10  Bruno Haible  <bruno@clisp.org>
1686
1687         log: Fix bug introduced on 2012-03-09.
1688         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1689
1690 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1691
1692         timer-time: link explicitly with pthreads on glibc
1693         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1694         to support static linking, when newer glibc is
1695         detected, as that contains pthread emulation of
1696         POSIX timer functions where required.
1697         * modules/timer-time: Depend on threadlib to
1698         pull in the appropriate library to link.
1699
1700 2012-03-10  Bruno Haible  <bruno@clisp.org>
1701
1702         log* tests: More tests.
1703         * tests/test-log.h: New file.
1704         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1705         (main): Invoke test_function.
1706         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1707         (main): Invoke test_function.
1708         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1709         (main): Invoke test_function.
1710         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1711         tests/randomd.c.
1712         (Makefile.am): Add randomd.c to test_log_SOURCES.
1713         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1714         tests/randomf.c.
1715         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1716         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1717         tests/randoml.c.
1718         (Depends-on): Add 'float'.
1719         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1720
1721 2012-03-09  Bruno Haible  <bruno@clisp.org>
1722
1723         logl: Work around OSF/1 5.1 bug.
1724         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1725         * lib/logl.c (logl): If logl exists, use it and provide just the
1726         workaround.
1727         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1728         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1730         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1731         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1732         (Depends-on): Update conditions.
1733         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1734
1735 2012-03-09  Bruno Haible  <bruno@clisp.org>
1736
1737         logf: Work around OSF/1 5.1 bug.
1738         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1739         * lib/logf.c (logf): If logf exists, use it and provide just the
1740         workaround.
1741         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1742         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1744         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1745         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1746         (Depends-on): Update conditions.
1747         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1748
1749 2012-03-09  Bruno Haible  <bruno@clisp.org>
1750
1751         log: Work around OSF/1 5.1 bug.
1752         * lib/math.in.h (log): New declaration.
1753         * lib/log.c: New file.
1754         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1755         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1756         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1758         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1759         * modules/log (Files): Add lib/log.c.
1760         (Depends-on): Add math.
1761         (configure.ac): If REPLACE_LOG is 1, compile an override.
1762         * tests/test-math-c++.cc: Check the declaration of log.
1763         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1764
1765 2012-03-09  Jim Meyering  <meyering@redhat.com>
1766
1767         readtokens.c: adjust wording in a comment
1768         * lib/readtokens.c: Insert omitted "that" in a comment.
1769
1770 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1771
1772         modechange: add notations +40, 00440, etc.
1773         * lib/modechange.c (mode_compile): Support new notations
1774         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1775
1776 2012-03-08  Bruno Haible  <bruno@clisp.org>
1777
1778         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1779         * m4/exp2l-ieee.m4: New file.
1780         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1781         test whether exp2l works with a NaN argument and with a negative
1782         infinity argument. Replace it if not.
1783         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1785         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1786         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1787         (Depends-on): Update conditions.
1788         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1789         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1790         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1791
1792         Tests for module 'exp2l-ieee'.
1793         * modules/exp2l-ieee-tests: New file.
1794         * tests/test-exp2l-ieee.c: New file.
1795
1796         New module 'exp2l-ieee'.
1797         * modules/exp2l-ieee: New file.
1798
1799         Tests for module 'exp2-ieee'.
1800         * modules/exp2-ieee-tests: New file.
1801         * tests/test-exp2-ieee.c: New file.
1802
1803         New module 'exp2-ieee'.
1804         * modules/exp2-ieee: New file.
1805
1806         Tests for module 'exp2f-ieee'.
1807         * modules/exp2f-ieee-tests: New file.
1808         * tests/test-exp2f-ieee.c: New file.
1809         * tests/test-exp2-ieee.h: New file.
1810
1811         New module 'exp2f-ieee'.
1812         * modules/exp2f-ieee: New file.
1813
1814 2012-03-08  Bruno Haible  <bruno@clisp.org>
1815
1816         Tests for module 'exp2l'.
1817         * modules/exp2l-tests: New file.
1818         * tests/test-exp2l.c: New file.
1819
1820         New module 'exp2l'.
1821         * lib/math.in.h (exp2l): New declaration.
1822         * lib/exp2l.c: New file.
1823         * lib/expl-table.c: New file, extracted from lib/expl.c.
1824         * lib/expl.c (gl_expl_table): New declaration.
1825         (expl): Remove expl_table. Update reference.
1826         * m4/exp2l.m4: New file.
1827         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1829         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1830         * modules/exp2l: New file.
1831         * modules/expl (Files): Add lib/expl-table.c.
1832         (configure.ac): Compile also expl-table.c.
1833         * tests/test-math-c++.cc: Check the declaration of exp2l.
1834         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1835         problem.
1836
1837 2012-03-08  Bruno Haible  <bruno@clisp.org>
1838
1839         Tests for module 'exp2f'.
1840         * modules/exp2f-tests: New file.
1841         * tests/test-exp2f.c: New file.
1842
1843         New module 'exp2f'.
1844         * lib/math.in.h (exp2f): New declaration.
1845         * lib/exp2f.c: New file.
1846         * m4/exp2f.m4: New file.
1847         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1849         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1850         * modules/exp2f: New file.
1851         * tests/test-math-c++.cc: Check the declaration of exp2f.
1852         * doc/posix-functions/exp2f.texi: Mention the new module and the
1853         IRIX problem.
1854
1855 2012-03-08  Bruno Haible  <bruno@clisp.org>
1856
1857         Tests for module 'exp2'.
1858         * modules/exp2-tests: New file.
1859         * tests/test-exp2.c: New file.
1860         * tests/test-exp2.h: New file.
1861
1862         New module 'exp2'.
1863         * lib/math.in.h (exp2): New declaration.
1864         * lib/exp2.c: New file.
1865         * m4/exp2.m4: New file.
1866         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1868         REPLACE_EXP2.
1869         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1870         REPLACE_EXP2.
1871         * modules/exp2: New file.
1872         * tests/test-math-c++.cc: Check the declaration of exp2.
1873         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1874         and OpenBSD problems.
1875
1876 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1877
1878         savedir: fix comment typo
1879         * lib/savedir.c (savedirstream): Fix typo in comment.
1880
1881 2012-03-08  Bruno Haible  <bruno@clisp.org>
1882
1883         test-readtokens.c: use const; remove unwarranted cast
1884         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1885
1886 2012-03-08  Bruno Haible  <bruno@clisp.org>
1887
1888         fmal: Avoid compilation error on AIX.
1889         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1890         AIX 5.2..7.1.
1891
1892 2012-03-08  Bruno Haible  <bruno@clisp.org>
1893
1894         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1895         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1896         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1897         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1898         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1899         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1900         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1901
1902 2012-03-08  Bruno Haible  <bruno@clisp.org>
1903
1904         remainderf: Override buggy system function on IRIX 6.5.
1905         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1906         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1907         when it exists.
1908         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1909
1910 2012-03-08  Jim Meyering  <meyering@redhat.com>
1911
1912         test-readtokens.c: avoid const-related compilation warnings
1913         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1914
1915 2012-03-07  Jim Meyering  <meyering@redhat.com>
1916             Bruno Haible  <bruno@clisp.org>
1917
1918         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1919         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1920         tests/randomd.c.
1921         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1922         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1923         tests/randoml.c.
1924         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1925
1926 2012-03-07  Bruno Haible  <bruno@clisp.org>
1927
1928         expm1l: Avoid compilation error on AIX.
1929         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1930         AIX 5.2..7.1.
1931
1932 2012-03-07  Bruno Haible  <bruno@clisp.org>
1933
1934         expm1l: Don't override undeclared system function on IRIX 6.5.
1935         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1936         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1937         it exists. Set HAVE_DECL_EXPM1L.
1938         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1939         HAVE_EXPM1L.
1940         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1941         HAVE_EXPM1L.
1942         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1943
1944 2012-03-07  Bruno Haible  <bruno@clisp.org>
1945
1946         remainderl: Don't override undeclared system function on IRIX 6.5.
1947         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1948         HAVE_REMAINDERL.
1949         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1950         declared when it exists. Set HAVE_DECL_REMAINDERL.
1951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1952         not HAVE_REMAINDERL.
1953         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1954         HAVE_REMAINDERL.
1955         * doc/posix-functions/remainderl.texi: Mention missing declaration
1956         problem.
1957
1958 2012-03-07  Bruno Haible  <bruno@clisp.org>
1959
1960         rintf: Don't override undeclared system function on IRIX 6.5.
1961         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1962         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1963         exists. Set HAVE_DECL_RINTF.
1964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1965         HAVE_RINTF.
1966         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1967         HAVE_RINTF.
1968         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1969
1970 2012-03-07  Bruno Haible  <bruno@clisp.org>
1971
1972         roundl: Avoid compilation error on AIX.
1973         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1974         AIX 5.2..7.1.
1975
1976 2012-03-07  Bruno Haible  <bruno@clisp.org>
1977
1978         roundl: Don't override undeclared system function on IRIX 6.5.
1979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1980         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1981         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1982         * modules/roundl (configure.ac): For replacement code, test
1983         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1984         (Depends-on): Update conditions.
1985         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1986
1987 2012-03-07  Bruno Haible  <bruno@clisp.org>
1988
1989         roundf: Don't override undeclared system function on IRIX 6.5.
1990         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1991         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1992         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1993         * modules/roundf (configure.ac): For replacement code, test
1994         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1995         (Depends-on): Update conditions.
1996         * modules/roundf-ieee (Depends-on): Update conditions.
1997         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1998
1999 2012-03-07  Bruno Haible  <bruno@clisp.org>
2000
2001         round: Don't override undeclared system function on IRIX 6.5.
2002         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2003         argument.
2004         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2005         also when it is not declared. Set HAVE_ROUND. For replacement code,
2006         test HAVE_ROUND, not HAVE_DECL_ROUND.
2007         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2008         not HAVE_DECL_ROUND.
2009         (Depends-on): Update conditions.
2010         * modules/round-ieee (Depends-on): Update conditions.
2011         * doc/posix-functions/round.texi: Mention the IRIX problem.
2012
2013 2012-03-07  Bruno Haible  <bruno@clisp.org>
2014
2015         copysignf: Don't override undeclared system function on IRIX 6.5.
2016         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2017         HAVE_COPYSIGNF.
2018         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2019         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2021         not HAVE_COPYSIGNF.
2022         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2023         HAVE_COPYSIGNF.
2024         * doc/posix-functions/copysignf.texi: Mention missing declaration
2025         problem.
2026
2027 2012-03-07  Jim Meyering  <meyering@redhat.com>
2028
2029         readtokens: add tests
2030         * modules/readtokens-tests: New file.
2031         * tests/test-readtokens.c: New file.
2032
2033 2012-03-07  Jim Meyering  <meyering@redhat.com>
2034
2035         quotearg: the module must now include quote.h
2036         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2037         So must the module.
2038         * modules/quotearg (Files): Add quote.h.
2039
2040 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2041
2042         readtokens: avoid core dumps with unusual calling patterns
2043         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2044         * lib/readtokens.c: Include limits.h.
2045         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2046         (readtoken): Don't cache the delimiters; the cache code was buggy
2047         if !delim && saved_delim, or if the new n_delim differs from the old.
2048         Also, it wasn't thread-safe.
2049
2050 2012-03-07  Bruno Haible  <bruno@clisp.org>
2051
2052         quote: Adhere to common module description layout.
2053         * modules/quote (Makefile.am): Add back empty section.
2054
2055 2012-03-06  Akim Demaille  <demaille@gostai.com>
2056
2057         quote: fuse into quotearg
2058         This patch is made for the benefit of Bison.
2059         quote does not leave the choice of the quoting style to the user.
2060         quoting_style provides poor customizability, yet quoting_options,
2061         which is very rich, is hidden inside quotearg.c.  So in order to
2062         allow quote customization, move its implementation to quotearg.c.
2063         * lib/quote.c: Remove.
2064         * modules/quote: Adjust.
2065         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2066         warning: provide all the members of literal structs.
2067         (quote_quoting_options): New.
2068         (quote, quote_n): Import implementation from quote.c.
2069         * lib/quote.h: Import the comments from quote.c.
2070         (quote_quoting_options): New.
2071
2072 2012-03-06  Bruno Haible  <bruno@clisp.org>
2073
2074         Tests for module 'expm1l-ieee'.
2075         * modules/expm1l-ieee-tests: New file.
2076         * tests/test-expm1l-ieee.c: New file.
2077
2078         New module 'expm1l-ieee'.
2079         * modules/expm1l-ieee: New file.
2080
2081         Tests for module 'expm1f-ieee'.
2082         * modules/expm1f-ieee-tests: New file.
2083         * tests/test-expm1f-ieee.c: New file.
2084
2085         New module 'expm1f-ieee'.
2086         * modules/expm1f-ieee: New file.
2087
2088         Tests for module 'expm1-ieee'.
2089         * modules/expm1-ieee-tests: New file.
2090         * tests/test-expm1-ieee.c: New file.
2091         * tests/test-expm1-ieee.h: New file.
2092
2093         New module 'expm1-ieee'.
2094         * modules/expm1-ieee: New file.
2095         * m4/expm1-ieee.m4: New file.
2096         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2097         whether expm1 works with a minus zero argument. Replace it if not.
2098         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2100         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2101         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2102         (Depends-on): Update conditions.
2103         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2104         AIX problem.
2105
2106 2012-03-06  Bruno Haible  <bruno@clisp.org>
2107
2108         Work around expm1f bug on IRIX 6.5.
2109         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2110         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2111         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2112         not work.
2113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2114         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2115         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2116         (Depends-on): Update conditions.
2117         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2118
2119 2012-03-06  Bruno Haible  <bruno@clisp.org>
2120
2121         Tests for module 'expm1l'.
2122         * modules/expm1l-tests: New file.
2123         * tests/test-expm1l.c: New file.
2124
2125         New module 'expm1l'.
2126         * lib/math.in.h (expm1l): New declaration.
2127         * lib/expm1l.c: New file.
2128         * m4/expm1l.m4: New file.
2129         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2130         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2131         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2132         * modules/expm1l: New file.
2133         * tests/test-math-c++.cc: Check the declaration of expm1l.
2134         * doc/posix-functions/expm1l.texi: Mention the new module.
2135
2136 2012-03-06  Bruno Haible  <bruno@clisp.org>
2137
2138         Tests for module 'expm1f'.
2139         * modules/expm1f-tests: New file.
2140         * tests/test-expm1f.c: New file.
2141
2142         New module 'expm1f'.
2143         * lib/math.in.h (expm1f): New declaration.
2144         * lib/expm1f.c: New file.
2145         * m4/expm1f.m4: New file.
2146         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2148         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2149         * modules/expm1f: New file.
2150         * tests/test-math-c++.cc: Check the declaration of expm1f.
2151         * doc/posix-functions/expm1f.texi: Mention the new module.
2152
2153 2012-03-06  Bruno Haible  <bruno@clisp.org>
2154
2155         Tests for module 'expm1'.
2156         * modules/expm1-tests: New file.
2157         * tests/test-expm1.c: New file.
2158         * tests/test-expm1.h: New file.
2159
2160         New module 'expm1'.
2161         * lib/math.in.h (expm1): New declaration.
2162         * lib/expm1.c: New file.
2163         * m4/expm1.m4: New file.
2164         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2166         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2167         * modules/expm1: New file.
2168         * tests/test-math-c++.cc: Check the declaration of expm1.
2169         * doc/posix-functions/expm1.texi: Mention the new module.
2170
2171 2012-03-06  Bruno Haible  <bruno@clisp.org>
2172
2173         math: Ensure declarations of math functions.
2174         * modules/acosf (Depends-on): Add 'extensions'.
2175         * modules/asinf (Depends-on): Likewise.
2176         * modules/atan2f (Depends-on): Likewise.
2177         * modules/atanf (Depends-on): Likewise.
2178         * modules/cbrt (Depends-on): Likewise.
2179         * modules/cbrtf (Depends-on): Likewise.
2180         * modules/cbrtl (Depends-on): Likewise.
2181         * modules/copysignf (Depends-on): Likewise.
2182         * modules/copysignl (Depends-on): Likewise.
2183         * modules/cosf (Depends-on): Likewise.
2184         * modules/coshf (Depends-on): Likewise.
2185         * modules/expf (Depends-on): Likewise.
2186         * modules/fabsf (Depends-on): Likewise.
2187         * modules/fabsl (Depends-on): Likewise.
2188         * modules/fmaf (Depends-on): Likewise.
2189         * modules/fmal (Depends-on): Likewise.
2190         * modules/fmodf (Depends-on): Likewise.
2191         * modules/fmodl (Depends-on): Likewise.
2192         * modules/frexpf (Depends-on): Likewise.
2193         * modules/frexpl (Depends-on): Likewise.
2194         * modules/hypot (Depends-on): Likewise.
2195         * modules/hypotf (Depends-on): Likewise.
2196         * modules/hypotl (Depends-on): Likewise.
2197         * modules/ldexpf (Depends-on): Likewise.
2198         * modules/ldexpl (Depends-on): Likewise.
2199         * modules/log10f (Depends-on): Likewise.
2200         * modules/log10l (Depends-on): Likewise.
2201         * modules/log1p (Depends-on): Likewise.
2202         * modules/logb (Depends-on): Likewise.
2203         * modules/logf (Depends-on): Likewise.
2204         * modules/modff (Depends-on): Likewise.
2205         * modules/modfl (Depends-on): Likewise.
2206         * modules/powf (Depends-on): Likewise.
2207         * modules/remainderf (Depends-on): Likewise.
2208         * modules/remainderl (Depends-on): Likewise.
2209         * modules/rintf (Depends-on): Likewise.
2210         * modules/rintl (Depends-on): Likewise.
2211         * modules/sinf (Depends-on): Likewise.
2212         * modules/sinhf (Depends-on): Likewise.
2213         * modules/sqrtf (Depends-on): Likewise.
2214         * modules/tanf (Depends-on): Likewise.
2215         * modules/tanhf (Depends-on): Likewise.
2216         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2217         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2218         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2219         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2220         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2221         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2222         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2223         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2224         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2225         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2226         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2227         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2228         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2229         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2230         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2231         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2232         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2233         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2234         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2235         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2236         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2237         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2238         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2239         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2241         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2242         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2243         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2244         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2245         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2246         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2247         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2248         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2249         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2250         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2251         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2252         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2253         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2254         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2255         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2256         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2257
2258 2012-03-06  Bruno Haible  <bruno@clisp.org>
2259
2260         math: Update module names in warnings.
2261         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2262         tanl): Use specific module name in warn-on-use warning.
2263
2264 2012-03-06  Bruno Haible  <bruno@clisp.org>
2265
2266         expl: Simplify computation.
2267         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2268
2269 2012-03-05  Bruno Haible  <bruno@clisp.org>
2270
2271         exp* tests: More tests.
2272         * tests/test-exp.h: New file.
2273         * tests/test-exp.c: Include <float.h> and test-exp.h.
2274         (main): Invoke test_function.
2275         * tests/test-expf.c: Include <float.h> and test-exp.h.
2276         (main): Invoke test_function.
2277         * tests/test-expl.c: Include <float.h> and test-exp.h.
2278         (main): Invoke test_function.
2279         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2280         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2281         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2282         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2283         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2284         (Depends-on): Add 'float'.
2285         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2286
2287         expl: Fix precision of computed result.
2288         * lib/expl.c: Completely rewritten.
2289         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2290         (Maintainer): Add me.
2291         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2292
2293 2012-03-05  Bruno Haible  <bruno@clisp.org>
2294
2295         cbrt* tests: More tests.
2296         * tests/test-cbrt.h: New file.
2297         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2298         (main): Invoke test_function.
2299         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2300         (main): Invoke test_function.
2301         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2302         (main): Invoke test_function.
2303         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2304         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2305         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2306         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2307         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2308         (Depends-on): Add 'float'.
2309         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2310
2311 2012-03-05  Bruno Haible  <bruno@clisp.org>
2312
2313         hypot* tests: More tests.
2314         * tests/test-hypot.h: New file, partially extracted from
2315         tests/test-hypotl.c.
2316         * tests/test-hypot.c: Include test-hypot.h.
2317         (main): Invoke test_function.
2318         * tests/test-hypotf.c: Include test-hypot.h.
2319         (main): Invoke test_function.
2320         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2321         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2322         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2323         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2324         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2325         tests/randomf.c.
2326         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2327         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2328         tests/randoml.c.
2329         (Depends-on): Add 'fpucw', 'float'.
2330         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2331
2332 2012-03-05  Bruno Haible  <bruno@clisp.org>
2333
2334         fpucw: Doc about FreeBSD.
2335         * lib/fpucw.h: Mention FreeBSD in comments.
2336
2337 2012-03-04  Bruno Haible  <bruno@clisp.org>
2338
2339         sqrt* tests: More tests.
2340         * tests/test-sqrt.h: New file.
2341         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2342         (main): Invoke test_function.
2343         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2344         (main): Invoke test_function.
2345         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2346         (main): Invoke test_function.
2347         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2348         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2349         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2350         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2351         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2352         (Depends-on): Add 'float'.
2353         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2354
2355 2012-03-04  Bruno Haible  <bruno@clisp.org>
2356
2357         remainder* tests: More tests.
2358         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2359         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2360         (main): Invoke test_function.
2361         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2362         (main): Invoke test_function.
2363         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2364         (main): Invoke test_function.
2365         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2366         tests/randomd.c.
2367         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2368         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2369         tests/randomf.c.
2370         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2371         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2372         tests/randoml.c.
2373         (Depends-on): Add 'float'.
2374         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2375
2376 2012-03-04  Bruno Haible  <bruno@clisp.org>
2377
2378         remainder, remainderf, remainderl: Fix computation for large quotients.
2379         * lib/remainder.c: Completely rewritten.
2380         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2381         USE_FLOAT.
2382         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2383         USE_LONG_DOUBLE.
2384         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2385         isnand, isinf. Remove round, fma.
2386         * modules/remainderf (Files): Add lib/remainder.c.
2387         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2388         Remove roundf, fmaf.
2389         * modules/remainderl (Files): Add lib/remainder.c.
2390         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2391         isinf. Remove roundl, fmal.
2392         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2393         REMAINDER_LIBM.
2394         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2395         REMAINDERF_LIBM.
2396         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2397         REMAINDERL_LIBM.
2398
2399 2012-03-04  Bruno Haible  <bruno@clisp.org>
2400
2401         fmod* tests: More tests.
2402         * tests/test-fmod.h (my_ldexp): New function.
2403         (test_function): Reduce amount of random numbers to test. Add tests
2404         of very large quotients x / y.
2405         * tests/test-fmod.c (MAX_EXP): New macro.
2406         * tests/test-fmodf.c (MAX_EXP): Likewise.
2407         * tests/test-fmodl.c (MAX_EXP): Likewise.
2408
2409 2012-03-04  Bruno Haible  <bruno@clisp.org>
2410
2411         fmod, fmodl: Fix computation for large quotients x / y.
2412         * lib/fmod.c: Completely rewritten.
2413         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2414         USE_LONG_DOUBLE.
2415         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2416         isnand. Remove fma.
2417         * modules/fmodl (Files): Add lib/fmod.c.
2418         (Depends-on): Add float, isfinite, signbit, fabsl,
2419         frexpl, ldexpl, isnanl. Remove fma.
2420         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2421         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2422
2423 2012-03-03  Bruno Haible  <bruno@clisp.org>
2424
2425         fmod* tests: More tests.
2426         * tests/test-fmod.h: New file.
2427         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2428         (main): Invoke test_function.
2429         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2430         (main): Invoke test_function.
2431         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2432         (main): Invoke test_function.
2433         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2434         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2435         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2436         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2437         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2438         (Depends-on): Add 'float'.
2439         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2440
2441 2012-03-03  Bruno Haible  <bruno@clisp.org>
2442
2443         rint* tests: More tests.
2444         * tests/test-rint.h: New file, partially extracted from
2445         tests/test-rintl.c.
2446         * tests/test-rint.c: Include test-rint.h.
2447         (main): Invoke test_function.
2448         * tests/test-rintf.c: Include test-rint.h.
2449         (main): Invoke test_function.
2450         * tests/test-rintl.c: Include test-rint.h.
2451         (main): Invoke test_function.
2452         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2453         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2454         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2455         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2456         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2457         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2458
2459 2012-03-03  Bruno Haible  <bruno@clisp.org>
2460
2461         modf* tests: More tests.
2462         * tests/test-modf.h: New file.
2463         * tests/test-modf.c: Include <float.h> and test-modf.h.
2464         (main): Invoke test_function.
2465         * tests/test-modff.c: Include <float.h> and test-modf.h.
2466         (main): Invoke test_function.
2467         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2468         (main): Invoke test_function.
2469         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2470         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2471         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2472         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2473         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2474         (Depends-on): Add 'float'.
2475         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2476
2477 2012-03-03  Bruno Haible  <bruno@clisp.org>
2478
2479         fabs* tests: More tests.
2480         * tests/test-fabs.h: New file, partially extracted from
2481         tests/test-fabsl.c.
2482         * tests/test-fabs.c (RANDOM): New macro.
2483         * tests/test-fabsf.c (RANDOM): New macro.
2484         * tests/test-fabsl.c (RANDOM): New macro.
2485         * modules/fabs-tests (Files): Add tests/randomd.c.
2486         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2487         * modules/fabsf-tests (Files): Add tests/randomf.c.
2488         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2489         * modules/fabsl-tests (Files): Add tests/randoml.c.
2490         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2491
2492 2012-03-03  Bruno Haible  <bruno@clisp.org>
2493
2494         ldexp* tests: More tests.
2495         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2496         * tests/test-ldexp.c (RANDOM): New macro.
2497         * tests/test-ldexpf.c (RANDOM): New macro.
2498         * tests/test-ldexpl.c (RANDOM): New macro.
2499         * modules/ldexp-tests (Files): Add tests/randomd.c.
2500         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2501         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2502         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2503         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2504         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2505
2506 2012-03-03  Bruno Haible  <bruno@clisp.org>
2507
2508         frexp* tests: More tests.
2509         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2510         * tests/test-frexp.c (RANDOM): New macro.
2511         * tests/test-frexpf.c (RANDOM): New macro.
2512         * tests/test-frexpl.c (RANDOM): New macro.
2513         * modules/frexp-tests (Files): Add tests/randomd.c.
2514         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2515         * modules/frexpf-tests (Files): Add tests/randomf.c.
2516         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2517         * modules/frexpl-tests (Files): Add tests/randoml.c.
2518         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2519
2520 2012-03-03  Bruno Haible  <bruno@clisp.org>
2521
2522         Support for pseudo-random numbers in tests.
2523         * tests/randomf.c: New file.
2524         * tests/randomd.c: New file.
2525         * tests/randoml.c: New file.
2526         * tests/macros.h (randomf, randomd, randoml): New declarations.
2527
2528 2012-03-03  Bruno Haible  <bruno@clisp.org>
2529
2530         frexp* tests: Refactor.
2531         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2532         * tests/test-frexp.c: Include and use it.
2533         * tests/test-frexpf.c: Likewise.
2534         * tests/test-frexpl.c: Likewise.
2535         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2536         * modules/frexpf-tests (Files): Likewise.
2537         * modules/frexpl-tests (Files): Likewise.
2538
2539 2012-03-02  Jim Meyering  <meyering@redhat.com>
2540
2541         maint: don't specify XZ_OPT=-9ev in dist-related rule
2542         Using xz's -9 option is warranted only if you have a very large
2543         tarball (see xz's documentation for the sizes vs. presets), and
2544         requires 64MiB of memory at decompression time.
2545         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2546         Automake's default of just "-e" is fine.  Override on a
2547         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2548
2549 2012-03-01  Eric Blake  <eblake@redhat.com>
2550
2551         maint.mk: allow announcement for non-gnulib project
2552         * maint.mk (announcement): Skip gnulib version if not used.
2553
2554 2012-03-01  Jim Meyering  <meyering@redhat.com>
2555
2556         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2557         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2558         envvar settings cannot interfere.  Otherwise, setting envvars like
2559         prohibit=foo require=bar, etc. would cause spurious test failures.
2560
2561 2012-03-01  Eric Blake  <eblake@redhat.com>
2562
2563         maint.mk: add per-line exclusions to prohibitions
2564         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2565         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2566         (sc_const_long_option): Use it.
2567
2568 2012-03-01  Bruno Haible  <bruno@clisp.org>
2569
2570         Tests for module 'expl-ieee'.
2571         * modules/expl-ieee-tests: New file.
2572         * tests/test-expl-ieee.c: New file.
2573
2574         New module 'expl-ieee'.
2575         * modules/expl-ieee: New file.
2576
2577         Tests for module 'exp-ieee'.
2578         * modules/exp-ieee-tests: New file.
2579         * tests/test-exp-ieee.c: New file.
2580
2581         New module 'exp-ieee'.
2582         * modules/exp-ieee: New file.
2583
2584         Tests for module 'expf-ieee'.
2585         * modules/expf-ieee-tests: New file.
2586         * tests/test-expf-ieee.c: New file.
2587         * tests/test-exp-ieee.h: New file.
2588
2589         New module 'expf-ieee'.
2590         * modules/expf-ieee: New file.
2591
2592 2012-02-29  Bruno Haible  <bruno@clisp.org>
2593
2594         cbrtl-ieee: Work around test failure on IRIX 6.5.
2595         * m4/cbrtl-ieee.m4: New file.
2596         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2597         test whether cbrtl works with a minus zero argument. Replace it if not.
2598         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2600         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2601         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2602         (Depends-on): Update conditions.
2603         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2604         m4/signbit.m4.
2605         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2606         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2607         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2608
2609         Tests for module 'cbrtl-ieee'.
2610         * modules/cbrtl-ieee-tests: New file.
2611         * tests/test-cbrtl-ieee.c: New file.
2612
2613         New module 'cbrtl-ieee'.
2614         * modules/cbrtl-ieee: New file.
2615
2616         Tests for module 'cbrt-ieee'.
2617         * modules/cbrt-ieee-tests: New file.
2618         * tests/test-cbrt-ieee.c: New file.
2619
2620         New module 'cbrt-ieee'.
2621         * modules/cbrt-ieee: New file.
2622
2623         Tests for module 'cbrtf-ieee'.
2624         * modules/cbrtf-ieee-tests: New file.
2625         * tests/test-cbrtf-ieee.c: New file.
2626         * tests/test-cbrt-ieee.h: New file.
2627
2628         New module 'cbrtf-ieee'.
2629         * modules/cbrtf-ieee: New file.
2630
2631 2012-02-29  Bruno Haible  <bruno@clisp.org>
2632
2633         cbrtf: Work around bug in IRIX 6.5 system function.
2634         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2635         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2636         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2637         work.
2638         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2639         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2640         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2641         (Depends-on): Update conditions.
2642         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2643
2644 2012-02-29  Bruno Haible  <bruno@clisp.org>
2645
2646         Tests for module 'cbrtl'.
2647         * modules/cbrtl-tests: New file.
2648         * tests/test-cbrtl.c: New file.
2649
2650         New module 'cbrtl'.
2651         * lib/math.in.h (cbrtl): New declaration.
2652         * lib/cbrtl.c: New file.
2653         * m4/cbrtl.m4: New file.
2654         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2656         HAVE_DECL_CBRTL.
2657         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2658         HAVE_DECL_CBRTL.
2659         * modules/cbrtl: New file.
2660         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2661         * doc/posix-functions/cbrtl.texi: Mention the new module.
2662
2663 2012-02-29  Bruno Haible  <bruno@clisp.org>
2664
2665         Tests for module 'cbrtf'.
2666         * modules/cbrtf-tests: New file.
2667         * tests/test-cbrtf.c: New file.
2668
2669         New module 'cbrtf'.
2670         * lib/math.in.h (cbrtf): New declaration.
2671         * lib/cbrtf.c: New file.
2672         * m4/cbrtf.m4: New file.
2673         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2675         HAVE_DECL_CBRTF.
2676         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2677         HAVE_DECL_CBRTF.
2678         * modules/cbrtf: New file.
2679         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2680         * doc/posix-functions/cbrtf.texi: Mention the new module.
2681
2682 2012-02-29  Bruno Haible  <bruno@clisp.org>
2683
2684         cbrt: Provide replacement on MSVC and Minix.
2685         * lib/math.in.h (cbrt): New declaration.
2686         * lib/cbrt.c: New file.
2687         * m4/cbrt.m4: New file.
2688         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2690         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2691         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2692         (Depends-on): Add dependencies.
2693         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2694         * tests/test-math-c++.cc: Check the declaration of cbrt.
2695         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2696         replacement.
2697
2698 2012-02-29  Bruno Haible  <bruno@clisp.org>
2699
2700         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2701         * m4/hypotl-ieee.m4: New file.
2702         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2703         test whether hypotl works with mixed NaN and Infinity arguments.
2704         Replace it if not.
2705         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2707         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2708         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2709         (Depends-on): Update conditions.
2710         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2711         (Depends-on): Add hypot-ieee.
2712         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2713         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2714
2715         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2716         * m4/hypotf-ieee.m4: New file.
2717         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2718         test whether hypotf works with mixed NaN and Infinity arguments.
2719         Replace it if not.
2720         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2721         (Depends-on): Add hypot-ieee.
2722         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2723         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2724
2725         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2726         * lib/math.in.h (hypot): New declaration.
2727         * lib/hypot.c: New file.
2728         * m4/hypot-ieee.m4: New file.
2729         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2730         whether hypot works with mixed NaN and Infinity arguments. Replace it
2731         if not.
2732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2733         REPLACE_HYPOT.
2734         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2735         * modules/hypot (Files): Add lib/hypot.c.
2736         (Depends-on): Add dependencies.
2737         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2738         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2739         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2740         * tests/test-math-c++.cc: Check the declaration of hypot.
2741         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2742
2743         Tests for module 'hypotl-ieee'.
2744         * modules/hypotl-ieee-tests: New file.
2745         * tests/test-hypotl-ieee.c: New file.
2746
2747         New module 'hypotl-ieee'.
2748         * modules/hypotl-ieee: New file.
2749
2750         Tests for module 'hypot-ieee'.
2751         * modules/hypot-ieee-tests: New file.
2752         * tests/test-hypot-ieee.c: New file.
2753
2754         New module 'hypot-ieee'.
2755         * modules/hypot-ieee: New file.
2756
2757         Tests for module 'hypotf-ieee'.
2758         * modules/hypotf-ieee-tests: New file.
2759         * tests/test-hypotf-ieee.c: New file.
2760         * tests/test-hypot-ieee.h: New file.
2761
2762         New module 'hypotf-ieee'.
2763         * modules/hypotf-ieee: New file.
2764
2765 2012-02-29  Bruno Haible  <bruno@clisp.org>
2766
2767         Remove unused variables.
2768         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2769         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2770         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2771         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2772
2773 2012-02-29  Eric Blake  <eblake@redhat.com>
2774
2775         termios: fix pid_t always, not just for tcgetsid
2776         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2777         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2778         just when building tcgetsid.
2779
2780 2012-02-29  Bruno Haible  <bruno@clisp.org>
2781
2782         Tests for module 'hypotl'.
2783         * modules/hypotl-tests: New file.
2784         * tests/test-hypotl.c: New file.
2785
2786         New module 'hypotl'.
2787         * lib/math.in.h (hypotl): New declaration.
2788         * lib/hypotl.c: New file.
2789         * m4/hypotl.m4: New file.
2790         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2792         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2793         * modules/hypotl: New file.
2794         * tests/test-math-c++.cc: Check the hypotl declaration.
2795         * doc/posix-functions/hypotl.texi: Mention the new module.
2796
2797 2012-02-29  Eric Blake  <eblake@redhat.com>
2798
2799         tcgetsid: fix cygwin header bug
2800         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2801
2802         docs: update cygwin progress
2803         * doc/posix-functions/llround.texi (llround): Added in cygwin
2804         1.7.8.
2805         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2806         * doc/glibc-functions/program_invocation_name.texi
2807         (program_invocation_name): Likewise.
2808         * doc/glibc-functions/program_invocation_short_name.texi
2809         (program_invocation_short_name): Likewise.
2810         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2811         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2812         Likewise.
2813         * doc/posix-functions/pthread_spin_destroy.texi
2814         (pthread_spin_destroy): Added in cygwin 1.7.10.
2815         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2816         Likewise.
2817         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2818         Likewise.
2819         * doc/posix-functions/pthread_spin_trylock.texi
2820         (pthread_spin_trylock): Likewise.
2821         * doc/posix-functions/pthread_spin_unlock.texi
2822         (pthread_spin_unlock): Likewise.
2823         * doc/posix-functions/pthread_setschedprio.texi
2824         (pthread_setschedprio): Likewise.
2825         * doc/posix-functions/pthread_attr_getstack.texi
2826         (pthread_attr_getstack): Likewise.
2827         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2828         (pthread_attr_getstackaddr): Likewise.
2829         * doc/glibc-functions/pthread_getattr_np.texi
2830         (pthread_getattr_np): Likewise.
2831         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2832         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2833         * doc/posix-functions/clock_settime.texi (clock_settime):
2834         Likewise.
2835         * doc/posix-functions/pthread_attr_getguardsize.texi
2836         (pthread_attr_getguardsize): Likewise.
2837         * doc/posix-functions/pthread_attr_setguardsize.texi
2838         (pthread_attr_setguardsize): Likewise.
2839         * doc/posix-functions/pthread_attr_setstack.texi
2840         (pthread_attr_setstack): Likewise.
2841         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2842         (pthread_attr_setstackaddr): Likewise.
2843         * doc/posix-functions/clock_getcpuclockid.texi
2844         (clock_getcpuclockid): Likewise.
2845         * doc/posix-functions/pthread_getcpuclockid.texi
2846         (pthread_getcpuclockid): Likewise.
2847         * doc/glibc-functions/error.texi (error): Likewise.
2848         * doc/glibc-functions/error_at_line.texi (error_at_line):
2849         Likewise.
2850         * doc/glibc-functions/error_message_count.texi
2851         (error_message_count): Likewise.
2852         * doc/glibc-functions/error_one_per_line.texi
2853         (error_one_per_line): Likewise.
2854         * doc/glibc-functions/error_print_progname.texi
2855         (error_print_progname): Likewise.
2856         * doc/posix-functions/pthread_condattr_getclock.texi
2857         (pthread_condattr_getclock): Likewise.
2858         * doc/posix-functions/pthread_condattr_setclock.texi
2859         (pthread_condattr_setclock): Likewise.
2860         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2861         Likewise.
2862         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2863         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2864         * doc/glibc-functions/get_current_dir_name.texi
2865         (get_current_dir_name): Likewise.
2866         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2867         Likewise.
2868         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2869         wrong return type.
2870         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2871         1.7.11.
2872
2873 2012-02-29  Bruno Haible  <bruno@clisp.org>
2874
2875         Tests for module 'hypotf'.
2876         * modules/hypotf-tests: New file.
2877         * tests/test-hypotf.c: New file.
2878
2879         New module 'hypotf'.
2880         * lib/math.in.h (hypotf): New declaration.
2881         * lib/hypotf.c: New file.
2882         * m4/hypotf.m4: New file.
2883         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2884         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2885         REPLACE_HYPOTF.
2886         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2887         REPLACE_HYPOTF.
2888         * modules/hypotf: New file.
2889         * tests/test-math-c++.cc: Check the hypotf declaration.
2890         * doc/posix-functions/hypotf.texi: Mention the new module.
2891
2892         hypot: Prepare for hypotf module.
2893         * m4/hypot.m4: New file.
2894         * modules/hypot (Files): Add m4/hypot.m4.
2895         (configure.ac): Invoke gl_FUNC_HYPOT.
2896
2897 2012-02-29  Bruno Haible  <bruno@clisp.org>
2898
2899         hypot tests: More tests.
2900         * tests/test-hypot.c: Include <float.h>.
2901         (main): Add tests about overflow and underflow.
2902
2903 2012-02-29  Bruno Haible  <bruno@clisp.org>
2904
2905         math code: Add comments.
2906         * lib/acosl.c: Add comment about related glibc source files.
2907         * lib/asinl.c: Likewise.
2908         * lib/atanl.c: Likewise.
2909         * lib/expl.c: Likewise.
2910         * lib/logl.c: Likewise.
2911         * lib/sincosl.c: Likewise.
2912         * lib/sinl.c: Likewise.
2913         * lib/tanl.c: Likewise.
2914         * lib/trigl.c: Likewise.
2915         * lib/cosl.c: Likewise. Fix comments.
2916
2917 2012-02-28  Bruno Haible  <bruno@clisp.org>
2918
2919         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2920         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2921         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2922         HUGE_VALL are defined.
2923         (numeric_equald): Renamed from numeric_equal.
2924         (numeric_equalf, numeric_equall): New functions.
2925         (main): Check also HUGE_VALF, HUGE_VALL.
2926         * modules/math-tests (Files): Add tests/macros.h.
2927         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2928         HUGE_VALL.
2929
2930 2012-02-28  Bruno Haible  <bruno@clisp.org>
2931
2932         doc: Move ISO C11 feature notes into POSIX chapters.
2933         * doc/posix-functions/aligned_alloc.texi: Renamed from
2934         doc/glibc-functions/aligned_alloc.texi.
2935         * doc/posix-functions/quick_exit.texi: Renamed from
2936         doc/glibc-functions/quick_exit.texi.
2937         * doc/posix-headers/uchar.texi: Renamed from
2938         doc/glibc-headers/uchar.texi.
2939         * doc/posix-functions/c16rtomb.texi: Renamed from
2940         doc/glibc-functions/c16rtomb.texi.
2941         * doc/posix-functions/c32rtomb.texi: Renamed from
2942         doc/glibc-functions/c32rtomb.texi.
2943         * doc/posix-functions/mbrtoc16.texi: Renamed from
2944         doc/glibc-functions/mbrtoc16.texi.
2945         * doc/posix-functions/mbrtoc32.texi: Renamed from
2946         doc/glibc-functions/mbrtoc32.texi.
2947         * doc/gnulib.texi: Update.
2948         (Glibc uchar.h): Remove section.
2949         Suggested by Eric Blake.
2950
2951 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2952
2953         stdnoreturn: port to MSVC better
2954         MSVC standard headers use __declspec(noreturn), so #define noreturn
2955         to empty on that platform.  Reported by Bruno Haible in
2956         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2957         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2958         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2959
2960 2012-02-28  Bruno Haible  <bruno@clisp.org>
2961
2962         doc: Mention new glibc headers and functions.
2963         * doc/glibc-headers/uchar.texi: New file.
2964         * doc/glibc-functions/aligned_alloc.texi: New file.
2965         * doc/glibc-functions/c16rtomb.texi: New file.
2966         * doc/glibc-functions/c32rtomb.texi: New file.
2967         * doc/glibc-functions/clock_adjtime.texi: New file.
2968         * doc/glibc-functions/fanotify_init.texi: New file.
2969         * doc/glibc-functions/fanotify_mark.texi: New file.
2970         * doc/glibc-functions/inet6_opt_append.texi: New file.
2971         * doc/glibc-functions/inet6_opt_find.texi: New file.
2972         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2973         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2974         * doc/glibc-functions/inet6_opt_init.texi: New file.
2975         * doc/glibc-functions/inet6_opt_next.texi: New file.
2976         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2977         * doc/glibc-functions/inet6_rth_add.texi: New file.
2978         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2979         * doc/glibc-functions/inet6_rth_init.texi: New file.
2980         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2981         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2982         * doc/glibc-functions/inet6_rth_space.texi: New file.
2983         * doc/glibc-functions/login.texi: New file.
2984         * doc/glibc-functions/mbrtoc16.texi: New file.
2985         * doc/glibc-functions/mbrtoc32.texi: New file.
2986         * doc/glibc-functions/name_to_handle_at.texi: New file.
2987         * doc/glibc-functions/ntp_gettimex.texi: New file.
2988         * doc/glibc-functions/open_by_handle_at.texi: New file.
2989         * doc/glibc-functions/prlimit.texi: New file.
2990         * doc/glibc-functions/process_vm_readv.texi: New file.
2991         * doc/glibc-functions/process_vm_writev.texi: New file.
2992         * doc/glibc-functions/recvmmsg.texi: New file.
2993         * doc/glibc-functions/scandirat.texi: New file.
2994         * doc/glibc-functions/sendmmsg.texi: New file.
2995         * doc/glibc-functions/setns.texi: New file.
2996         * doc/glibc-functions/timespec_get.texi: New file.
2997         * doc/gnulib.texi: Include them.
2998         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2999         sections.
3000         Reported by Eric Blake.
3001
3002 2012-02-28  Bruno Haible  <bruno@clisp.org>
3003
3004         Avoid compilation errors with MSVC option -fp:strict.
3005         * lib/floor.c: Use MSVC specific pragma fenv_access.
3006         * lib/ceil.c: Likewise.
3007         * lib/trunc.c: Likewise.
3008         * lib/round.c: Likewise.
3009         * lib/rint.c: Likewise.
3010         * lib/fma.c: Likewise.
3011         * lib/integer_length.c: Likewise.
3012         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3014         * tests/test-floor2.c: Likewise.
3015         * tests/test-floorf2.c: Likewise.
3016         * tests/test-ceil2.c: Likewise.
3017         * tests/test-ceilf2.c: Likewise.
3018         * tests/test-trunc2.c: Likewise.
3019         * tests/test-truncf2.c: Likewise.
3020         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3021
3022 2012-02-27  Bruno Haible  <bruno@clisp.org>
3023
3024         Tests for module 'sqrtl-ieee'.
3025         * modules/sqrtl-ieee-tests: New file.
3026         * tests/test-sqrtl-ieee.c: New file.
3027
3028         New module 'sqrtl-ieee'.
3029         * modules/sqrtl-ieee: New file.
3030
3031         Tests for module 'sqrt-ieee'.
3032         * modules/sqrt-ieee-tests: New file.
3033         * tests/test-sqrt-ieee.c: New file.
3034
3035         New module 'sqrt-ieee'.
3036         * modules/sqrt-ieee: New file.
3037
3038         Tests for module 'sqrtf-ieee'.
3039         * modules/sqrtf-ieee-tests: New file.
3040         * tests/test-sqrtf-ieee.c: New file.
3041         * tests/test-sqrt-ieee.h: New file.
3042
3043         New module 'sqrtf-ieee'.
3044         * modules/sqrtf-ieee: New file.
3045
3046 2012-02-27  Bruno Haible  <bruno@clisp.org>
3047
3048         remainderl-ieee: Work around test failure on OSF/1.
3049         * m4/remainderl-ieee.m4: New file.
3050         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3051         present, test whether remainderl works with a zero second argument.
3052         Replace it if not.
3053         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3054         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3055         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3056         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3057         (Depends-on): Update conditions.
3058         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3059         (Depends-on): Add remainder-ieee.
3060         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3061         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3062         module.
3063
3064         remainderf-ieee: Work around test failure on OSF/1.
3065         * m4/remainderf-ieee.m4: New file.
3066         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3067         present, test whether remainderf works with a zero second argument.
3068         Replace it if not.
3069         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3070         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3071         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3072         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3073         (Depends-on): Update conditions.
3074         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3075         (Depends-on): Add remainder-ieee.
3076         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3077         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3078         module.
3079
3080         remainder-ieee: Work around test failure on OSF/1.
3081         * m4/remainder-ieee.m4: New file.
3082         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3083         present, test whether remainder works with a zero second argument.
3084         Replace it if not.
3085         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3087         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3088         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3089         (Depends-on): Update dependencies.
3090         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3091         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3092         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3093
3094         Tests for module 'remainderl-ieee'.
3095         * modules/remainderl-ieee-tests: New file.
3096         * tests/test-remainderl-ieee.c: New file.
3097
3098         New module 'remainderl-ieee'.
3099         * modules/remainderl-ieee: New file.
3100
3101         Tests for module 'remainder-ieee'.
3102         * modules/remainder-ieee-tests: New file.
3103         * tests/test-remainder-ieee.c: New file.
3104
3105         New module 'remainder-ieee'.
3106         * modules/remainder-ieee: New file.
3107
3108         Tests for module 'remainderf-ieee'.
3109         * modules/remainderf-ieee-tests: New file.
3110         * tests/test-remainderf-ieee.c: New file.
3111         * tests/test-remainder-ieee.h: New file.
3112
3113         New module 'remainderf-ieee'.
3114         * modules/remainderf-ieee: New file.
3115
3116 2012-02-27  Bruno Haible  <bruno@clisp.org>
3117
3118         modff, modfl: Fix configure syntax error.
3119         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3120         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3121
3122 2012-02-27  Bruno Haible  <bruno@clisp.org>
3123
3124         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3125         * m4/fmodl-ieee.m4: New file.
3126         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3127         whether fmodl works with zero arguments. Replace it if not.
3128         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3129         (Depends-on): Add fmod-ieee.
3130         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3131         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3132
3133         fmodf-ieee: Work around test failure on OSF/1.
3134         * m4/fmodf-ieee.m4: New file.
3135         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3136         whether fmodf works with zero arguments. Replace it if not.
3137         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3139         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3140         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3141         (Depends-on): Update dependencies.
3142         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3143         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3144         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3145
3146         fmodf-ieee: Work around test failure on MSVC 9.
3147         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3148         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3149
3150         fmod-ieee: Work around test failures on OSF/1, mingw.
3151         * m4/fmod-ieee.m4: New file.
3152         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3153         whether fmod works with zero arguments. Replace it if not.
3154         * lib/math.in.h (fmod): New declaration.
3155         * lib/fmod.c: New file.
3156         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3158         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3159         * modules/fmod (Files): Add lib/fmod.c.
3160         (Depends-on): Add math, isinf, trunc, fma.
3161         (configure.ac): Arrange to compile lib/fmod.c if needed.
3162         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3163         m4/signbit.m4.
3164         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3165         * tests/test-math-c++.cc: Check the declaration of fmod.
3166         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3167
3168         fmodl-ieee: Fix test failures.
3169         * lib/fmodl.c (fmodl): Treat Inf specially.
3170         * modules/fmodl (Depends-on): Add isinf.
3171
3172         Tests for module 'fmodl-ieee'.
3173         * modules/fmodl-ieee-tests: New file.
3174         * tests/test-fmodl-ieee.c: New file.
3175
3176         New module 'fmodl-ieee'.
3177         * modules/fmodl-ieee: New file.
3178
3179         Tests for module 'fmod-ieee'.
3180         * modules/fmod-ieee-tests: New file.
3181         * tests/test-fmod-ieee.c: New file.
3182
3183         New module 'fmod-ieee'.
3184         * modules/fmod-ieee: New file.
3185
3186         Tests for module 'fmodf-ieee'.
3187         * modules/fmodf-ieee-tests: New file.
3188         * tests/test-fmodf-ieee.c: New file.
3189         * tests/test-fmod-ieee.h: New file.
3190
3191         New module 'fmodf-ieee'.
3192         * modules/fmodf-ieee: New file.
3193
3194 2012-02-27  Bruno Haible  <bruno@clisp.org>
3195
3196         Tests for module 'rintl-ieee'.
3197         * modules/rintl-ieee-tests: New file.
3198         * tests/test-rintl-ieee.c: New file.
3199
3200         New module 'rintl-ieee'.
3201         * modules/rintl-ieee: New file.
3202
3203         Tests for module 'rint-ieee'.
3204         * modules/rint-ieee-tests: New file.
3205         * tests/test-rint-ieee.c: New file.
3206
3207         New module 'rint-ieee'.
3208         * modules/rint-ieee: New file.
3209
3210         Tests for module 'rintf-ieee'.
3211         * modules/rintf-ieee-tests: New file.
3212         * tests/test-rintf-ieee.c: New file.
3213         * tests/test-rint-ieee.h: New file.
3214
3215         New module 'rintf-ieee'.
3216         * modules/rintf-ieee: New file.
3217
3218 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3219
3220         regex: re_search etc. should return -2 when memory exhausted
3221         This bug was uncovered when testing 'grep'.  Without the fix,
3222         re_search and friends return -1 when memory is exhausted, but -1
3223         means no match, and this causes grep to falsely report no-match
3224         instead of memory-exhaustion.  See
3225         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3226         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3227         trouble; this can occur if re_search_internal ran out of memory.
3228
3229 2012-02-26  Bruno Haible  <bruno@clisp.org>
3230
3231         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3232         * m4/modfl-ieee.m4: New file.
3233         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3234         whether modfl works with Inf. Replace it if not.
3235         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3237         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3238         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3239         (Depends-on): Update dependencies.
3240         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3241         m4/signbit.m4.
3242         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3243         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3244
3245         modfl-ieee: Fix dependencies.
3246         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3247
3248         modfl-ieee: Fix test failures.
3249         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3250         * modules/modfl (Depends-on): Add isfinite, isinf.
3251
3252         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3253         * m4/modff-ieee.m4: New file.
3254         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3255         whether modff works with NaN and Inf. Replace it if not.
3256         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3257         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3258         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3259         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3260         (Depends-on): Update dependencies.
3261         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3262         m4/signbit.m4.
3263         (Depends-on): Add modf-ieee.
3264         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3265         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3266
3267         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3268         * m4/modf-ieee.m4: New file.
3269         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3270         whether modf works with NaN and Inf. Replace it if not.
3271         * lib/math.in.h (modf): New declaration.
3272         * lib/modf.c: New file.
3273         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3275         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3276         * modules/modf (Files): Add lib/modf.c.
3277         (Depends-on): Add math, isfinite, trunc, isinf.
3278         (configure.ac): Addrange to compile lib/modf.c if needed.
3279         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3280         m4/signbit.m4.
3281         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3282         * tests/test-math-c++.cc: Check the declaration of modf.
3283         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3284
3285         Tests for module 'modfl-ieee'.
3286         * modules/modfl-ieee-tests: New file.
3287         * tests/test-modfl-ieee.c: New file.
3288
3289         New module 'modfl-ieee'.
3290         * modules/modfl-ieee: New file.
3291
3292         Tests for module 'modf-ieee'.
3293         * modules/modf-ieee-tests: New file.
3294         * tests/test-modf-ieee.c: New file.
3295
3296         New module 'modf-ieee'.
3297         * modules/modf-ieee: New file.
3298
3299         Tests for module 'modff-ieee'.
3300         * modules/modff-ieee-tests: New file.
3301         * tests/test-modff-ieee.c: New file.
3302         * tests/test-modf-ieee.h: New file.
3303
3304         New module 'modff-ieee'.
3305         * modules/modff-ieee: New file.
3306
3307 2012-02-26  Bruno Haible  <bruno@clisp.org>
3308
3309         Tests for module 'fabsl-ieee'.
3310         * modules/fabsl-ieee-tests: New file.
3311         * tests/test-fabsl-ieee.c: New file.
3312
3313         New module 'fabsl-ieee'.
3314         * modules/fabsl-ieee: New file.
3315
3316         Tests for module 'fabs-ieee'.
3317         * modules/fabs-ieee-tests: New file.
3318         * tests/test-fabs-ieee.c: New file.
3319
3320         New module 'fabs-ieee'.
3321         * modules/fabs-ieee: New file.
3322
3323         Tests for module 'fabsf-ieee'.
3324         * modules/fabsf-ieee-tests: New file.
3325         * tests/test-fabsf-ieee.c: New file.
3326         * tests/test-fabs-ieee.h: New file.
3327
3328         New module 'fabsf-ieee'.
3329         * modules/fabsf-ieee: New file.
3330
3331 2012-02-26  Bruno Haible  <bruno@clisp.org>
3332
3333         Tests for module 'fmal-ieee'.
3334         * modules/fmal-ieee-tests: New file.
3335         * tests/test-fmal-ieee.c: New file.
3336
3337         New module 'fmal-ieee'.
3338         * modules/fmal-ieee: New file.
3339
3340         Tests for module 'fma-ieee'.
3341         * modules/fma-ieee-tests: New file.
3342         * tests/test-fma-ieee.c: New file.
3343
3344         New module 'fma-ieee'.
3345         * modules/fma-ieee: New file.
3346
3347         Tests for module 'fmaf-ieee'.
3348         * modules/fmaf-ieee-tests: New file.
3349         * tests/test-fmaf-ieee.c: New file.
3350         * tests/test-fma-ieee.h: New file.
3351
3352         New module 'fmaf-ieee'.
3353         * modules/fmaf-ieee: New file.
3354
3355 2012-02-26  Bruno Haible  <bruno@clisp.org>
3356
3357         Tests for module 'ldexpl-ieee'.
3358         * modules/ldexpl-ieee-tests: New file.
3359         * tests/test-ldexpl-ieee.c: New file.
3360
3361         New module 'ldexpl-ieee'.
3362         * modules/ldexpl-ieee: New file.
3363
3364         Tests for module 'ldexp-ieee'.
3365         * modules/ldexp-ieee-tests: New file.
3366         * tests/test-ldexp-ieee.c: New file.
3367
3368         New module 'ldexp-ieee'.
3369         * modules/ldexp-ieee: New file.
3370
3371         Tests for module 'ldexpf-ieee'.
3372         * modules/ldexpf-ieee-tests: New file.
3373         * tests/test-ldexpf-ieee.c: New file.
3374         * tests/test-ldexp-ieee.h: New file.
3375
3376         New module 'ldexpf-ieee'.
3377         * modules/ldexpf-ieee: New file.
3378
3379 2012-02-26  Bruno Haible  <bruno@clisp.org>
3380
3381         Refactor frexp*-ieee tests.
3382         * tests/test-frexp-ieee.h: New file.
3383         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3384         (main): Just call test_function.
3385         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3386         (main): Just call test_function.
3387         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3388         (main): Just call test_function.
3389         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3390         * modules/frexp-ieee-tests (Files): Likewise.
3391         * modules/frexpl-ieee-tests (Files): Likewise.
3392
3393         Tests for module 'frexpl-ieee'.
3394         * modules/frexpl-ieee-tests: New file.
3395         * tests/test-frexpl-ieee.c: New file.
3396
3397         New module 'frexpl-ieee'.
3398         * modules/frexpl-ieee: New file.
3399
3400         Tests for module 'frexp-ieee'.
3401         * modules/frexp-ieee-tests: New file.
3402         * tests/test-frexp-ieee.c: New file.
3403
3404         New module 'frexp-ieee'.
3405         * modules/frexp-ieee: New file.
3406
3407         Tests for module 'frexpf-ieee'.
3408         * modules/frexpf-ieee-tests: New file.
3409         * tests/test-frexpf-ieee.c: New file.
3410
3411         New module 'frexpf-ieee'.
3412         * modules/frexpf-ieee: New file.
3413
3414 2012-02-26  Bruno Haible  <bruno@clisp.org>
3415
3416         roundl-ieee tests: More tests.
3417         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3418         (main): Add tests for [MX] shaded specification in POSIX.
3419         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3420         (Depends-on): Add isnanl-nolibm.
3421
3422         round-ieee tests: More tests.
3423         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3424         (main): Add tests for [MX] shaded specification in POSIX.
3425         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3426         (Depends-on): Add isnand-nolibm.
3427
3428         roundf-ieee tests: More tests.
3429         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3430         (main): Add tests for [MX] shaded specification in POSIX.
3431         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3432         (Depends-on): Add isnanf-nolibm.
3433
3434         truncl-ieee tests: More tests.
3435         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3436         (main): Add tests for [MX] shaded specification in POSIX.
3437         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3438         (Depends-on): Add isnanl-nolibm.
3439
3440         trunc-ieee tests: More tests.
3441         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3442         (main): Add tests for [MX] shaded specification in POSIX.
3443         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3444         (Depends-on): Add isnand-nolibm.
3445
3446         truncf-ieee tests: More tests.
3447         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3448         (main): Add tests for [MX] shaded specification in POSIX.
3449         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3450         (Depends-on): Add isnanf-nolibm.
3451
3452         ceill-ieee tests: More tests.
3453         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3454         (main): Add tests for [MX] shaded specification in POSIX.
3455         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3456         (Depends-on): Add isnanl-nolibm.
3457
3458         ceil-ieee tests: More tests.
3459         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3460         (main): Add tests for [MX] shaded specification in POSIX.
3461         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3462         (Depends-on): Add isnand-nolibm.
3463
3464         ceilf-ieee tests: More tests.
3465         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3466         (main): Add tests for [MX] shaded specification in POSIX.
3467         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3468         (Depends-on): Add isnanf-nolibm.
3469
3470         floorl-ieee tests: More tests.
3471         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3472         (main): Add tests for [MX] shaded specification in POSIX.
3473         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3474         (Depends-on): Add isnanl-nolibm.
3475
3476         floor-ieee tests: More tests.
3477         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3478         (main): Add tests for [MX] shaded specification in POSIX.
3479         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3480         (Depends-on): Add isnand-nolibm.
3481
3482         floorf-ieee tests: More tests.
3483         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3484         (main): Add tests for [MX] shaded specification in POSIX.
3485         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3486         (Depends-on): Add isnanf-nolibm.
3487
3488 2012-02-26  Bruno Haible  <bruno@clisp.org>
3489
3490         fpieee: More comments.
3491         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3492
3493 2012-02-25  Bruno Haible  <bruno@clisp.org>
3494
3495         Tests for module 'log10l'.
3496         * modules/log10l-tests: New file.
3497         * tests/test-log10l.c: New file.
3498         * tests/test-math-c++.cc: Check the declaration of log10l.
3499
3500         New module 'log10l'.
3501         * lib/math.in.h (log10l): New declaration.
3502         * lib/log10l.c: New file.
3503         * m4/log10l.m4: New file.
3504         * modules/log10l: New file.
3505         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3507         HAVE_DECL_LOG10L.
3508         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3509         HAVE_DECL_LOG10L.
3510         * doc/posix-functions/log10l.texi: Mention the new module.
3511
3512 2012-02-25  Bruno Haible  <bruno@clisp.org>
3513
3514         fmodl, remainder*: Avoid wrong results due to rounding errors.
3515         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3516         expected bounds.
3517         * lib/remainderf.c (remainderf): Likewise.
3518         * lib/remainder.c (remainder): Likewise.
3519         * lib/remainderl.c (remainderl): Likewise.
3520
3521 2012-02-25  Bruno Haible  <bruno@clisp.org>
3522
3523         Tests for module 'remainderl'.
3524         * modules/remainderl-tests: New file.
3525         * tests/test-remainderl.c: New file.
3526         * tests/test-math-c++.cc: Check the declaration of remainderl.
3527
3528         New module 'remainderl'.
3529         * lib/math.in.h (remainderl): New declaration.
3530         * lib/remainderl.c: New file.
3531         * m4/remainderl.m4: New file.
3532         * modules/remainderl: New file.
3533         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3535         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3536         HAVE_REMAINDERL.
3537         * doc/posix-functions/remainderl.texi: Mention the new module.
3538
3539 2012-02-25  Bruno Haible  <bruno@clisp.org>
3540
3541         Tests for module 'remainderf'.
3542         * modules/remainderf-tests: New file.
3543         * tests/test-remainderf.c: New file.
3544         * tests/test-math-c++.cc: Check the declaration of remainderf.
3545
3546         New module 'remainderf'.
3547         * lib/math.in.h (remainderf): New declaration.
3548         * lib/remainderf.c: New file.
3549         * m4/remainderf.m4: New file.
3550         * modules/remainderf: New file.
3551         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3553         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3554         HAVE_REMAINDERF.
3555         * doc/posix-functions/remainderf.texi: Mention the new module.
3556
3557 2012-02-25  Bruno Haible  <bruno@clisp.org>
3558
3559         remainder: Support for MSVC.
3560         * lib/math.in.h (remainder): New declaration.
3561         * lib/remainder.c: New file.
3562         * m4/remainder.m4: New file.
3563         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3564         (Depends-on): Add math, round, fma.
3565         (configure.ac): Use results of gl_FUNC_REMAINDER.
3566         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3568         HAVE_DECL_REMAINDER.
3569         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3570         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3571         * tests/test-math-c++.cc: Check the declaration of remainder.
3572         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3573         problems are fixed.
3574
3575 2012-02-25  Bruno Haible  <bruno@clisp.org>
3576
3577         Tests for module 'fmodl'.
3578         * modules/fmodl-tests: New file.
3579         * tests/test-fmodl.c: New file.
3580         * tests/test-math-c++.cc: Check the declaration of fmodl.
3581
3582         New module 'fmodl'.
3583         * lib/math.in.h (fmodl): New declaration.
3584         * lib/fmodl.c: New file.
3585         * m4/fmodl.m4: New file.
3586         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3588         REPLACE_FMODL.
3589         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3590         REPLACE_FMODL.
3591         * modules/fmodl: New file.
3592         * doc/posix-functions/fmodl.texi: Mention the new module.
3593
3594 2012-02-25  Bruno Haible  <bruno@clisp.org>
3595
3596         Tests for module 'modfl'.
3597         * modules/modfl-tests: New file.
3598         * tests/test-modfl.c: New file.
3599         * tests/test-math-c++.cc: Check the declaration of modfl.
3600
3601         New module 'modfl'.
3602         * lib/math.in.h (modfl): New declaration.
3603         * lib/modfl.c: New file.
3604         * m4/modfl.m4: New file.
3605         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3606         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3607         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3608         * modules/modfl: New file.
3609         * doc/posix-functions/modfl.texi: Mention the new module.
3610
3611 2012-02-25  Bruno Haible  <bruno@clisp.org>
3612
3613         Tests for module 'fabsl'.
3614         * modules/fabsl-tests: New file.
3615         * tests/test-fabsl.c: New file.
3616         * tests/test-math-c++.cc: Check the declaration of fabsl.
3617
3618         New module 'fabsl'.
3619         * lib/math.in.h (fabsl): New declaration.
3620         * lib/fabsl.c: New file.
3621         * m4/fabsl.m4: New file.
3622         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3624         REPLACE_FABSL.
3625         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3626         REPLACE_FABSL.
3627         * modules/fabsl: New file.
3628         * doc/posix-functions/fabsl.texi: Mention the new module.
3629
3630 2012-02-25  Bruno Haible  <bruno@clisp.org>
3631
3632         fabs tests: More tests.
3633         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3634         (zero): New variable.
3635         (main): Add tests for signed zero.
3636         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3637
3638         fabsf tests: More tests.
3639         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3640         (zero): New variable.
3641         (main): Add tests for signed zero.
3642         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3643
3644 2012-02-24  Bruno Haible  <bruno@clisp.org>
3645
3646         atanl: Provide function definition on MSVC.
3647         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3648         function pointer.
3649         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3650
3651 2012-02-24  Bruno Haible  <bruno@clisp.org>
3652
3653         acosl: Provide function definition on MSVC.
3654         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3655         function pointer.
3656         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3657
3658 2012-02-24  Bruno Haible  <bruno@clisp.org>
3659
3660         asinl: Provide function definition on MSVC.
3661         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3662         function pointer.
3663         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3664
3665 2012-02-24  Bruno Haible  <bruno@clisp.org>
3666
3667         tanl: Provide function definition on MSVC.
3668         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3669         function pointer.
3670         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3671
3672 2012-02-24  Bruno Haible  <bruno@clisp.org>
3673
3674         cosl: Provide function definition on MSVC.
3675         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3676         function pointer.
3677         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3678
3679 2012-02-24  Bruno Haible  <bruno@clisp.org>
3680
3681         sinl: Provide function definition on MSVC.
3682         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3683         function pointer.
3684         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3685
3686 2012-02-24  Bruno Haible  <bruno@clisp.org>
3687
3688         logl: Provide function definition on MSVC.
3689         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3690         function pointer.
3691         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3692
3693 2012-02-24  Bruno Haible  <bruno@clisp.org>
3694
3695         expl: Provide function definition on MSVC.
3696         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3697         function pointer.
3698         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3699
3700 2012-02-24  Bruno Haible  <bruno@clisp.org>
3701
3702         sqrtl: Provide function definition on MSVC.
3703         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3704         a function pointer.
3705         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3706
3707 2012-02-24  Bruno Haible  <bruno@clisp.org>
3708
3709         ceill: Provide function definition on MSVC.
3710         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3711         used as a function pointer.
3712         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3713
3714 2012-02-24  Bruno Haible  <bruno@clisp.org>
3715
3716         floorl: Provide function definition on MSVC.
3717         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3718         used as a function pointer.
3719         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3720
3721 2012-02-24  Bruno Haible  <bruno@clisp.org>
3722
3723         ceilf: Provide function definition on MSVC.
3724         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3725         used as a function pointer.
3726         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3727
3728 2012-02-24  Bruno Haible  <bruno@clisp.org>
3729
3730         floorf: Provide function definition on MSVC.
3731         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3732         used as a function pointer.
3733         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3734
3735 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3736
3737         stdnoreturn: new module
3738         This implements a replacement for C11's <stdnoreturn.h>.
3739         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3740         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3741         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3742         * tests/test-stdnoreturn.c: New files.
3743
3744 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3745
3746         regex: fix false multibyte matches in some regular expressions
3747         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3748         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3749         * lib/regex_internal.c (re_string_skip_chars):
3750         Fix miscomputation of remain_len that may cause incomplete
3751         multi-byte character and false match.
3752
3753 2012-02-24  Jim Meyering  <meyering@redhat.com>
3754
3755         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3756         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3757         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3758         Remove now-unnecessary str''cmp obfuscation.
3759         Suggested by Akim Demaille.
3760
3761 2012-02-24  Bruno Haible  <bruno@clisp.org>
3762
3763         streq: Rename macro.
3764         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3765         * NEWS: Mention the change.
3766         * lib/mbrtowc.c (mbrtowc): Update.
3767         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3768         * lib/wcwidth.c (wcwidth): Update.
3769         Suggested by Akim Demaille and Jim Meyering.
3770
3771 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3772
3773         regex: fix typo in definition of MIN
3774         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3775         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3776
3777 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3778             Bruno Haible  <bruno@clisp.org>
3779
3780         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3781         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3782         entries into a stack-allocated buffer directly.
3783         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3784
3785 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3786             Bruno Haible  <bruno@clisp.org>
3787
3788         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3789
3790          - There were several instances of this pattern:
3791
3792              for (;;) {
3793                n = acl (f, GETACLCNT, 0, NULL);
3794                [ allocate an array A of size N ]
3795                if (acl (f, GETACL, n, a) == n)
3796                  break;
3797              }
3798
3799            This loop might never terminate if some other process is constantly
3800            manipulating the file's ACL.  The loop should be rewritten to
3801            terminate.
3802
3803          - The acl (... GETACLNT ...) call is merely an optimization; its value
3804            is merely a hint as to how big to make the array.  A better
3805            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3806            and just guess a reasonably-big size, growing the size and trying
3807            again if it's not large enough.  This guarantees termination, and
3808            saves a system call.
3809
3810         * lib/acl-internal.h: Include <limits.h>.
3811         (MIN, SIZE_MAX): New macros.
3812         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3813         a stack-allocated buffer, and use malloc if it does not fit. Don't
3814         use GETACLCNT.
3815         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3816
3817 2012-02-19  Bruno Haible  <bruno@clisp.org>
3818
3819         acl: Fix endless loop on Solaris with vxfs.
3820         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3821         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3822         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3823         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3824         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3825         Reported by Bill Jones in
3826         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3827
3828 2012-02-19  Bruno Haible  <bruno@clisp.org>
3829
3830         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3831         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3832         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3833         that this function returns 0 in some more cases.
3834
3835 2012-02-19  Bruno Haible  <bruno@clisp.org>
3836
3837         acl: Update doc references.
3838         * doc/acl-resources.txt: Update links to Solaris documentation.
3839
3840 2012-02-19  Bruno Haible  <bruno@clisp.org>
3841
3842         Fix test failure in many locales on Solaris 11.
3843         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3844         'tr' arguments.
3845         * tests/test-pipe-filter-ii1.c (main): Likewise.
3846         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3847         expressions in the C locale.
3848         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3849         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3850
3851 2012-02-19  Bruno Haible  <bruno@clisp.org>
3852
3853         gnulib-tool: Improve usage message.
3854         * gnulib-tool (func_usage): Move doc of --help and --version to the
3855         section "Operation modes".
3856
3857 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3858
3859         README-release: make it easier to execute commands
3860         * top/README-release: break commands out on to separate lines.
3861
3862 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3863
3864         GNUmakefile: simplify detection of unconfigured trees
3865         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3866         whether the tree make is being run from is already configured or
3867         not.  Related simplifications.
3868
3869 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3870
3871         * gnulib-tool (func_usage): Document --help and --version.
3872
3873 2012-02-11  Jim Meyering  <meyering@redhat.com>
3874
3875         bootstrap: don't exit 0 upon gnulib-tool failure
3876         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3877         its exit status, not 0.
3878
3879 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3880
3881         README-release: various improvements
3882         * top/README-release: Give a command to push changes for the
3883         release.  Add "distcheck" to list of other pre-release checks.
3884         Fix instance of "make stable" which should be "make TYPE".
3885
3886 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3887
3888         maint: replace FSF snail-mail addresses with URLs
3889         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3890         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3891         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3892         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3893         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3894         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3895         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3896         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3897         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3898         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3899         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3900         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3901         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3902         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3903         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3904         * lib/glthread/thread.c, lib/glthread/thread.h:
3905         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3906         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3907         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3908         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3909         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3910         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3911         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3912         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3913         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3914         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3915         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3916         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3917         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3918         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3919         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3920         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3921         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3922         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3923         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3924         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3925         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3926         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3927         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3928         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3929         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3930         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3931         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3932         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3933         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3934         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3935         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3936         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3937         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3938         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3939         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3940         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3941         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3942         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3943         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3944         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3945         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3946         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3947         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3948         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3949         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3950         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3951         * tests/test-poll.c, tests/test-quotearg-simple.c:
3952         * tests/test-quotearg.c, tests/test-quotearg.h:
3953         * tests/test-round-ieee.c, tests/test-round1.c:
3954         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3955         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3956         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3957         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3958         * tests/test-strerror.c, tests/test-strerror_r.c:
3959         * tests/test-strsignal.c, tests/test-strverscmp.c:
3960         * tests/test-xmemdup0.c:
3961         Replace FSF snail mail addresses with URLs, as per GNU coding
3962         standards.  See glibc bug
3963         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3964
3965 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3966
3967         README-release: capitalize a word and split a line
3968         * top/README-release: Fix punctuation and spacing.
3969
3970 2012-02-08  Akim Demaille  <demaille@gostai.com>
3971
3972         fatal-signal: use C prototypes (with explicit void).
3973         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3974         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3975
3976 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3977
3978         regex: spelling fix
3979         * lib/regexec.c: spelling fix
3980
3981         regex: rely on stdint.h for SIZE_MAX
3982         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3983
3984 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3985
3986         regex: merge glibc changes
3987
3988         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3989         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3990         (init_word_char): Work even if bitset words are not exactly 32 or
3991         64 bits wide.  Don't assume there are no padding bits.
3992         * lib/regex.c [_LIBC]: Do not include <config.h>.
3993         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3994         and -Wtype-limits.
3995         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3996         needless disagreement with glibc.  All uses changed.  Define it to
3997         1 only if _GNU_SOURCE, to match glibc.
3998         (_REG_RM_NAME): Remove; no longer needed, since the names in
3999         question are now all protected by __USE_GNU.
4000         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4001         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4002         * lib/regex_internal.h (MIN): New macro.
4003
4004         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4005         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4006
4007         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4008         * lib/regex_internal.c (re_string_fetch_byte_case):
4009         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4010         is miscompiled, and it turns out it is because of an incorrect
4011         attribute on re_string_fetch_byte_case.  Unlike
4012         re_string_peek_byte_case, this one is really not pure, it modifies
4013         memory (increments pstr->cur_idx), and with the pure attribute GCC
4014         assumed it doesn't and it cached the presumed value of
4015         regexp->cur_idx in a variable across the
4016          for (;; ++i)
4017            {
4018              if (i >= BRACKET_NAME_BUF_SIZE)
4019                return REG_EBRACK;
4020              if (token->type == OP_OPEN_CHAR_CLASS)
4021                ch = re_string_fetch_byte_case (regexp);
4022              else
4023                ch = re_string_fetch_byte (regexp);
4024              if (re_string_eoi(regexp))
4025                return REG_EBRACK;
4026              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4027                break;
4028              elem->opr.name[i] = ch;
4029            }
4030
4031         2011-11-29 Andreas Schwab <schwab@redhat.com>
4032         * lib/regcomp.c (build_equiv_class):
4033         Fix access after end of search string in regex matcher.
4034
4035         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4036         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4037
4038         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4039         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4040
4041         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4042         * lib/regcomp.c (parse_branch, parse_sub_exp):
4043         More regex memory leak fixes and tests.
4044         (parse_sub_exp, parse_bracket_exp):
4045         Fix memory leak for some invalid regular expressions.
4046
4047         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4048         * lib/regex_internal.c, lib/regexec.c:
4049         Fix unnecessary overallocation due to incomplete character.  When
4050         incomplete characters are found at the end of a string the code
4051         ran amok and allocated lots of memory.  Stricter limits are now in
4052         place.
4053
4054         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4055         * lib/regex.h: Update documentation.
4056
4057         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4058         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4059
4060         2010-05-05 Andreas Schwab <schwab@redhat.com>
4061         * lib/regexec.c (find_collation_sequence_value):
4062         Fix lookup of collation sequence value during regexp matching.
4063
4064         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4065         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4066
4067         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4068         * lib/regex.h: Cleanup namespace.
4069
4070         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4071         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4072
4073         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4074         * lib/regex_internal.h: Prevent some declarations and definitions
4075         to be seen when used in tests.
4076
4077         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4078         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4079         __libc_lock_* macros if not _LIBC.
4080         (struct re_dfa_t): Add lock.
4081
4082 2012-02-07  Eric Blake  <eblake@redhat.com>
4083
4084         maint.mk: also prohibit lower-case @var@
4085         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4086         lower case, like @top_srcdir@.
4087
4088 2012-02-04  Eric Blake  <eblake@redhat.com>
4089
4090         canonicalize: avoid uninitialized memory use
4091         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4092         random '/' left in dest.
4093         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4094
4095 2012-02-04  Bruno Haible  <bruno@clisp.org>
4096
4097         isatty: Fix test failure of ptsname_r on native Windows.
4098         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4099         and don't set errno.
4100         (isatty): Test first whether fd is valid. Set errno when returning 0.
4101
4102 2012-02-04  Bruno Haible  <bruno@clisp.org>
4103
4104         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4105         * tests/test-spawn-pipe-main.c: Include progname.h.
4106         (main): Invoke set_program_name.
4107         * modules/spawn-pipe-tests (Depends-on): Add progname.
4108
4109         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4110         * tests/test-nonblocking-socket-main.c: Include progname.h.
4111         (main): Invoke set_program_name.
4112         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4113
4114         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4115         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4116         (main): Invoke set_program_name.
4117         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4118
4119 2012-02-04  Eric Blake  <eblake@redhat.com>
4120
4121         canonicalize-lgpl: fix // handling
4122         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4123
4124         canonicalize: fix // handling
4125         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4126         /// to //, since only // is special.
4127
4128 2012-02-04  Bruno Haible  <bruno@clisp.org>
4129
4130         ioctl: Fix test failure on native Windows.
4131         * lib/ioctl.c: Include msvc-nothrow.h.
4132         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4133
4134 2012-02-04  Bruno Haible  <bruno@clisp.org>
4135
4136         fsync: Avoid test failure on native Windows.
4137         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4138         read-only.
4139
4140 2012-02-04  Bruno Haible  <bruno@clisp.org>
4141
4142         sys_select: Avoid syntax error on OpenBSD 5.0.
4143         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4144         currently being included, just include the system's <sys/select.h>.
4145
4146 2012-02-04  Bruno Haible  <bruno@clisp.org>
4147
4148         sys_select: Avoid syntax error on OpenBSD 5.0.
4149         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4150         <sys/select.h>, not before.
4151         Reported by Jiri B <jirib@devio.us>.
4152
4153 2012-02-04  Bruno Haible  <bruno@clisp.org>
4154
4155         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4156         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4157         global variables.
4158         * tests/test-get-rusage-data.c (main): Likewise.
4159         Reported by Jim Meyering.
4160
4161 2012-02-04  Bruno Haible  <bruno@clisp.org>
4162
4163         stdioext: Fix last commit.
4164         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4165
4166 2012-02-03  Bruno Haible  <bruno@clisp.org>
4167
4168         stdioext: Add tentative support for Plan9.
4169         * lib/stdio-impl.h: Include <errno.h>.
4170         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4171         * lib/freadable.c (freadable): Likewise.
4172         * lib/fwritable.c (fwritable): Likewise.
4173         * lib/fbufmode.c (fbufmode): Likewise.
4174         * lib/freading.c (freading): Likewise.
4175         * lib/fwriting.c (fwriting): Likewise.
4176         * lib/freadptr.c (freadptr): Likewise.
4177         * lib/freadseek.c (freadptrinc): Likewise.
4178         * lib/freadahead.c (freadahead): Likewise.
4179         * lib/fpurge.c (fpurge): Likewise.
4180         * lib/fseeko.c (rpl_fseeko): Likewise.
4181         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4182         Reported by Jens Staal <staal1978@gmail.com>.
4183
4184 2012-02-02  Jim Meyering  <meyering@redhat.com>
4185
4186         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4187         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4188         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4189         not even to try to add the attribute.  Instead, add a pragma to suppress
4190         the suggestion/warning.
4191
4192 2012-01-31  Karl Berry  <karl@gnu.org>
4193
4194         setstate doc: typo.
4195         * doc/posix-functions/setstate.texi (setstate): { not (.
4196
4197 2012-01-31  Bruno Haible  <bruno@clisp.org>
4198
4199         popen: Make more robust on Windows.
4200         * lib/popen.c: On native Windows, use the _popen based code even if
4201         HAVE_POPEN is set.
4202         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4203         environment variable on native Windows.
4204
4205 2012-01-30  Bruno Haible  <bruno@clisp.org>
4206
4207         pclose: Fix typo.
4208         * lib/stdio.in.h (pclose): Fix typo in warning message.
4209
4210 2012-01-30  Bruno Haible  <bruno@clisp.org>
4211
4212         doc about getlogin_r, setstate.
4213         * doc/posix-functions/getlogin_r.texi: List the incompatible
4214         declaration problem under "not fixed by gnulib".
4215         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4216         problem on Solaris 11 and other platforms.
4217
4218 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4219             Bruno Haible  <bruno@clisp.org>
4220
4221         poll tests: Make test more robust.
4222         * tests/test-poll.c: Include macros.h.
4223         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4224         return value of various I/O operations.
4225         * modules/poll-tests (Files): Add tests/macros.h.
4226
4227 2012-01-30  Bruno Haible  <bruno@clisp.org>
4228
4229         sys_stat: Fix support for mingw64 and MSVC.
4230         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4231         header files already do it.
4232         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4233         stat itself.
4234         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4235
4236 2012-01-30  Bruno Haible  <bruno@clisp.org>
4237
4238         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4240         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4241
4242 2012-01-29  Bruno Haible  <bruno@clisp.org>
4243
4244         quotearg: Fix test failure on MacOS X 10.5.
4245         * tests/test-quotearg-simple.c: Include localcharset.h.
4246         (main): If the locale encoding is not ASCII, bypass the tests of
4247         locale_quoting_style and clocale_quoting_style.
4248         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4249
4250 2012-01-29  Jim Meyering  <meyering@redhat.com>
4251
4252         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4253         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4254         detect uses of canonicalize_file_name.
4255
4256 2012-01-28  Bruno Haible  <bruno@clisp.org>
4257
4258         test-framework-sh: Fix test failure with AIX 7.1 diff.
4259         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4260         in column 1, like 'diff -c' does.
4261         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4262         whether 'diff -u' is used. Instead, test whether the output contains
4263         some '@' character.
4264
4265 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4266
4267         strtoimax: eliminate need for stdint.h, inttypes.h checks
4268         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4269         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4270         the prerequisites for a recently-introduced strtoimax test.
4271         I guess this might cause strtoimax to be replaced when not
4272         strictly necessary on older hosts, but this shouldn't introduce
4273         any bugs and it should make Emacs 'configure' faster on typical
4274         modern hosts.  Problem discovered when importing the latest gnulib
4275         to an Emacs test version.
4276         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4277
4278 2012-01-28  Bruno Haible  <bruno@clisp.org>
4279
4280         sys_time: Override 'struct timeval' on some native Windows platforms.
4281         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4282         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4283         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4284         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4285         needs to be overridden.
4286         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4287         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4288         * tests/test-sys_select.c: Check that the tv_sec member has the same
4289         size as a 'time_t'.
4290         * tests/test-sys_time.c: Likewise.
4291         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4292         is set, set also REPLACE_GETTIMEOFDAY.
4293         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4294         convert the resulting 'struct timeval' before returning.
4295         * lib/select.c: Include <sys/time.h>.
4296         (select, timeval): Undefine at the right place.
4297         * modules/select (Depends-on): Add sys_time.
4298         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4299         some Windows platforms.
4300         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4301
4302 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4303
4304         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4305         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4306         an integer.
4307         * lib/fcntl.c (dupfd): Likewise.
4308         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4309
4310 2012-01-28  Bruno Haible  <bruno@clisp.org>
4311
4312         fcntl: Avoid compilation error on native Windows.
4313         * modules/fcntl (Depends-on): Add 'close'.
4314
4315 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4316
4317         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4318         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4319         pointer to an integer.
4320         * lib/poll.c (IsConsoleHandle): Likewise.
4321         * lib/isatty.c (IsConsoleHandle): Likewise.
4322
4323 2012-01-28  Jim Meyering  <meyering@redhat.com>
4324
4325         doc: clarify README-release
4326         * top/README-release: Clarify: you should make a point to have
4327         the latest stable versions of build tools in your PATH, and the
4328         reference to buildreq is solely for its list of tool names, not
4329         for its minimal-functional version numbers.
4330         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4331
4332         maint.mk: use more readable (yet functionally equivalent) quoting
4333         It is common to quote a single quote in a single quoted string like
4334         this:  '...'\''...'.  Unless you know the idiom, that looks like
4335         gibberish, so prefer to double-quote the string when possible.
4336         Then you can use a more readable, lone single quote: "...'..."
4337         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4338         "don't" is more readable than the equivalent 'don'\''t'.
4339         (sc_cast_of_x_alloc_return_value): Likewise.
4340         (sc_cast_of_alloca_return_value): Likewise.
4341         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4342         rather than '\'':'\''.
4343
4344 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4345
4346         stdalign: relax _Alignof and tighten _Alignas test
4347         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4348         as it was too strict: alignof must divide offsetof, but it need
4349         not equal offsetof.  Inspired by Joseph S. Myers's comment
4350         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4351         Conversely, tighten the _Alignas test a bit, as the resulting
4352         alignment must be exactly 8.
4353
4354 2012-01-27  Bruno Haible  <bruno@clisp.org>
4355
4356         stdalign: Document the last change.
4357         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4358
4359 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4360
4361         stdalign: check that alignof and offsetof are consistent
4362         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4363         Problem reported for gnulib by Richard W.M. Jones in
4364         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4365
4366 2012-01-27  Jim Meyering  <meyering@redhat.com>
4367
4368         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4369         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4370         convert a sequence with gaps to the minimal containing range.
4371         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4372         * tests/test-update-copyright.sh: Test for this.
4373         The FSF confirmed it is ok to do this, assuming there is at
4374         least one significant change per year in the affected range:
4375         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4376
4377 2012-01-26  Bruno Haible  <bruno@clisp.org>
4378
4379         pipe2: refine doc about thread-safety
4380         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4381         multithread-safety problem.
4382         * doc/glibc-functions/accept4.texi: Likewise.
4383
4384 2012-01-26  Bruno Haible  <bruno@clisp.org>
4385
4386         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4387         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4388         In the test program, include <fcntl.h>, for O_RDONLY.
4389
4390 2012-01-26  Eric Blake  <eblake@redhat.com>
4391
4392         pipe2: document lack of thread-safety in replacement
4393         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4394         issue in replacement.
4395         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4396         Based on a report by Eric Wong.
4397
4398 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4399             Bruno Haible  <bruno@clisp.org>
4400
4401         malloca: Avoid warnings on x86_64 mingw64.
4402         * lib/malloca.c: Include <stdint.h>.
4403         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4404         * modules/malloca (Depends-on): Add stdint.
4405         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4406
4407 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4408
4409         obstack: remove __STDC__ conditionals
4410         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4411         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4412         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4413         m4/include_next.m4 as the only gnulib-maintained places that still
4414         refer to __STDC__.
4415
4416 2012-01-24  Bruno Haible  <bruno@clisp.org>
4417
4418         havelib: Modern quoting.
4419         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4420         the recent change to the GNU coding standards.
4421
4422 2012-01-24  Bruno Haible  <bruno@clisp.org>
4423
4424         stdint: Improve support for Android.
4425         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4426         Reported by Simon Josefsson <simon@josefsson.org>.
4427
4428 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4429
4430         doc: omit trailing empty lines from INSTALL etc.
4431         * doc/Makefile (INSTALL): Omit trailing empty lines.
4432         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4433         omit trailing empty lines.  This simplifies the build procedure.
4434
4435 2012-01-23  Jim Meyering  <meyering@redhat.com>
4436
4437         tests: avoid spurious warnings about gl_sockets_startup
4438         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4439         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4440         reporting a "statement with no effect".
4441         * tests/test-accept.c (main): Mark as "(void)".
4442         * tests/test-accept4.c (main): Likewise.
4443         * tests/test-bind.c (main): Likewise.
4444         * tests/test-connect.c (main): Likewise.
4445         * tests/test-getpeername.c (main): Likewise.
4446         * tests/test-getsockname.c (main): Likewise.
4447         * tests/test-getsockopt.c (main): Likewise.
4448         * tests/test-listen.c (main): Likewise.
4449         * tests/test-recv.c (main): Likewise.
4450         * tests/test-recvfrom.c (main): Likewise.
4451         * tests/test-send.c (main): Likewise.
4452         * tests/test-sendto.c (main): Likewise.
4453         * tests/test-setsockopt.c (main): Likewise.
4454         * tests/test-shutdown.c (main): Likewise.
4455
4456 2012-01-21  Bruno Haible  <bruno@clisp.org>
4457
4458         locale-fr.m4: Fix for Android.
4459         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4460         failure of the test program on Bionic libc.
4461
4462 2012-01-21  Jim Meyering  <meyering@redhat.com>
4463
4464         bootstrap: fail when bootstrap_post_import_hook fails
4465         Otherwise, it's far too easy to miss diagnostics emitted
4466         between gnulib-tool's output and that of running configure.
4467         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4468
4469 2012-01-17  Jim Meyering  <meyering@redhat.com>
4470
4471         maint: enable sc_trailing_blank
4472         * build-aux/pmccabe.css: Remove trailing blanks.
4473         * doc/acl-cygwin.txt: Likewise.
4474         * doc/gnu-oids.texi: Likewise
4475         * cfg.mk: Enable sc_trailing_blank.
4476         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4477
4478 2012-01-17  Jim Meyering  <meyering@redhat.com>
4479
4480         maint: enable sc_prohibit_openat_without_use
4481         * cfg.mk: Enable sc_prohibit_openat_without_use.
4482         Exempt lib/selinux-at.c.
4483
4484 2012-01-17  Jim Meyering  <meyering@redhat.com>
4485
4486         maint: enable sc_prohibit_cloexec_without_use
4487         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4488         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4489
4490 2012-01-17  Jim Meyering  <meyering@redhat.com>
4491
4492         maint: enable sc_prohibit_intprops_without_use
4493         * cfg.mk: Enable sc_prohibit_intprops_without_use
4494         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4495
4496 2012-01-17  Jim Meyering  <meyering@redhat.com>
4497
4498         maint: enable sc_prohibit_hash_pjw_without_use
4499         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4500         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4501         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4502         following " (".
4503
4504 2012-01-17  Jim Meyering  <meyering@redhat.com>
4505
4506         maint: enable double-word-prohibiting rule
4507         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4508         Exempt three files.
4509
4510 2012-01-17  Jim Meyering  <meyering@redhat.com>
4511
4512         maint: remove empty lines at EOF, but excluding modules/*
4513         Apply syntax rules at home as well as abroad.  Most changes
4514         were induced by running this:
4515           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4516             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4517             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4518         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4519         Exempt modules/* and two binary files.
4520         Also exempt doc/INSTALL*, per request from Bruno Haible.
4521         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4522         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4523         * doc/Copyright/request-assign.future: Likewise.
4524         * doc/Copyright/request-disclaim.changes: Likewise.
4525         * doc/INSTALL: Likewise.
4526         * doc/INSTALL.ISO: Likewise.
4527         * doc/INSTALL.UTF-8: Likewise.
4528         * doc/acl-cygwin.txt: Likewise.
4529         * doc/acl-resources.txt: Likewise.
4530         * doc/fdl-1.2.texi: Likewise.
4531         * doc/fdl-1.3.texi: Likewise.
4532         * doc/fdl.texi: Likewise.
4533         * lib/argp-pin.c: Likewise.
4534         * lib/round.c: Likewise.
4535         * lib/unicase/u16-totitle.c: Likewise.
4536         * lib/unictype/block_test.c: Likewise.
4537         * lib/uninorm/canonical-decomposition.c: Likewise.
4538         * m4/README: Likewise.
4539         * m4/relocatable-lib.m4: Likewise.
4540         * tests/test-isnand-nolibm.c: Likewise.
4541         * tests/test-isnand.c: Likewise.
4542         * tests/uninorm/NormalizationTest.txt: Likewise.
4543
4544 2012-01-17  Jim Meyering  <meyering@redhat.com>
4545
4546         maint: add framework to run syntax-check rules against gnulib sources
4547         * cfg.mk: New file, to disable all currently-failing tests.
4548         We'll enable them one by one, as they are made to pass.
4549         * Makefile (sc_maint): New rule.
4550
4551 2012-01-21  Bruno Haible  <bruno@clisp.org>
4552
4553         stdint: Add support for Android.
4554         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4555         include the system's <stdint.h>.
4556         Reported by Simon Josefsson <simon@josefsson.org>.
4557
4558 2012-01-19  Jim Meyering  <meyering@redhat.com>
4559
4560         bootstrap: add bootstrap_post_import_hook
4561         Bison does still need something like the gnulib_mk_hook whose
4562         invocation I had to remove along with slurp in commit 767ccd40.
4563         Technically, we could get along without it, but doing so would
4564         have required living with a warning and a mandatory post-bootstrap
4565         automake rerun.
4566         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4567         (bootstrap_post_import_hook): New function.
4568         Invoke it after gnulib-tool --import and before autoreconf.
4569
4570 2012-01-18  Jim Meyering  <meyering@redhat.com>
4571
4572         gitlog-to-changelog: don't use "no_"-prefixed variable name
4573         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4574         to enable both --cluster and --no-cluster.  Change variable name,
4575         s/\$no_cluster/$cluster/, and reverse usage to match.
4576
4577         gitlog-to-changelog: use "||", not "or" in expressions
4578         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4579         expressions.
4580
4581 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4582
4583         gitlog-to-changelog: new option --no-cluster
4584         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4585         clustering of adjacent commit messages.
4586
4587 2012-01-17  Jim Meyering  <meyering@redhat.com>
4588
4589         maint: spell file systems with two words, not one
4590         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4591         two words, not one.
4592
4593 2012-01-16  Jim Meyering  <meyering@redhat.com>
4594
4595         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4596         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4597
4598 2012-01-16  Eric Blake  <eblake@redhat.com>
4599
4600         bootstrap: cater to autoconf 2.59
4601         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4602         is not available.
4603
4604         bootstrap: properly check for libtool
4605         * build-aux/bootstrap (libtoolize): Also run libtool when older
4606         usage is detected.
4607
4608 2012-01-15  Bruno Haible  <bruno@clisp.org>
4609
4610         Improve support for MSVC 9.
4611         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4612         clashes on MSVC.
4613         * lib/fcntl.in.h: Likewise.
4614         * lib/stdlib.in.h: Likewise.
4615         * lib/sys_stat.in.h: Likewise.
4616
4617 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4618
4619         gnupload: we hold the master copy of this script now
4620         For motivation and more information, see:
4621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4622         * build-aux/gnupload: Make it clear in the heading comments that the
4623         master copy of this file is maintained by gnulib.  Since we are at
4624         it, bump its copyright year and ...
4625         ($scriptversion): ... the date in its version.
4626         ($usage): Patches and bug reports should be sent to the gnulib list,
4627         not the automake one.
4628         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4629         anymore.
4630
4631 2012-01-15  Bruno Haible  <bruno@clisp.org>
4632
4633         Fix module 'random'.
4634         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4635         initstate, setstate are declared.
4636
4637 2012-01-14  Bruno Haible  <bruno@clisp.org>
4638
4639         Tests for module 'random'.
4640         * modules/random-tests: New file.
4641         * tests/test-random.c: New file, based on tests/test-random_r.c.
4642
4643         New module 'random'.
4644         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4645         declarations.
4646         * lib/random.c: New file, based on glibc/stdlib/random.c.
4647         * m4/random.m4: New file.
4648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4649         HAVE_RANDOM.
4650         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4651         * modules/random: New file.
4652         * config/srclist.txt: Add an entry for random.c.
4653         * doc/posix-functions/random.texi: Mention the 'random' module.
4654         * doc/posix-functions/initstate.texi: Likewise.
4655         * doc/posix-functions/setstate.texi: Likewise.
4656         * doc/posix-functions/srandom.texi: Likewise.
4657
4658 2012-01-12  Bruno Haible  <bruno@clisp.org>
4659
4660         random_r: Use common idioms.
4661         * lib/random_r.c: Include <stdlib.h> first.
4662
4663         random_r: Override incompatible API on AIX, OSF/1.
4664         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4665         Override the system function if REPLACE_RANDOM_R is 1.
4666         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4667         and OSF/1, set REPLACE_RANDOM_R.
4668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4669         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4670         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4671         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4672         * doc/glibc-functions/random_r.texi: Likewise.
4673         * doc/glibc-functions/setstate_r.texi: Likewise.
4674
4675         random_r: Support for MSVC 9.
4676         * lib/random_r.c: Include stdint.h, not inttypes.h.
4677
4678 2012-01-12  Eric Blake  <eblake@redhat.com>
4679
4680         inet_ntop: guard extra work by IF_LINT
4681         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4682         better code generation when not checking for warnings.
4683         Suggested by Paul Eggert and Jim Meyering.
4684
4685         strptime: fix regression on mingw
4686         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4687         Fix regression.  Reported by Bruno Haible.
4688
4689 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4690             Bruno Haible  <bruno@clisp.org>
4691
4692         copy-file: add error-code-returning variant.
4693         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4694         (qcopy_file_preserving): New declaration.
4695         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4696         copy_file_preserving. Change return type to 'int'. Don't emit an error
4697         message here.
4698         (copy_file_preserving): New function.
4699         * tests/test-copy-file.c: Include <stdlib.h>.
4700         (main): Test qcopy_file_preserving if the environment variable
4701         NO_STDERR_OUTPUT is set.
4702         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4703         with NO_STDERR_OUTPUT
4704         * tests/test-copy-file-2.sh: Likewise.
4705
4706 2012-01-10  Bruno Haible  <bruno@clisp.org>
4707
4708         copy-file: Use 'quote' module consistently.
4709         * lib/copy-file.c (copy_file_preserving): Use quote().
4710
4711         copy-file: Refactor.
4712         * lib/copy-file.c: Include quote.h.
4713         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4714         message here.
4715         * modules/copy-file (Depends-on): Add quote.
4716
4717         acl: Export qcopy_acl.
4718         * lib/acl.h (qcopy_acl): New declaration.
4719         * lib/copy-acl.c (qcopy_acl): Make non-static.
4720
4721         acl: Rename a local variable.
4722         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4723
4724         acl: Align return values of copy_acl and qcopy_acl.
4725         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4726         maybe < -1.
4727
4728 2012-01-11  Eric Blake  <eblake@redhat.com>
4729
4730         strptime: silence gcc warnings
4731         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4732         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4733         Reported by Daniel P. Berrange.
4734
4735         inet_ntop: silence gcc warning
4736         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4737         Reported by Daniel P. Berrange.
4738
4739 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4740
4741         getloadavg test: skip the test on GNU/Linux without /proc mounted
4742         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4743         file.  When /proc is not mounted, it always fails with ENOENT.
4744         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4745         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4746
4747 2012-01-10  Bruno Haible  <bruno@clisp.org>
4748
4749         regex: Avoid link error on MSVC 9.
4750         * modules/regex (Depends-on): Add wctype.
4751
4752 2012-01-10  Bruno Haible  <bruno@clisp.org>
4753
4754         doc: Mention --with-tests option.
4755         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4756         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4757         --with-tests.
4758         Reported by Reuben Thomas.
4759
4760 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4761
4762         users.txt: order package names lexicographically.
4763         * users.txt: Order package names lexicographically.
4764
4765 2012-01-10  Jim Meyering  <meyering@redhat.com>
4766
4767         maint.mk: fix description in comment
4768         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4769
4770         ignore-value: remove deprecated ignore_ptr function
4771         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4772         * NEWS: Note this.
4773
4774 2012-01-09  Jim Meyering  <meyering@redhat.com>
4775
4776         test-init.sh: avoid a subshell
4777         * tests/test-init.sh: Remove protective subshell.
4778         Suggested by Bernhard Voelker.  While a subshell is normally
4779         required to protect against older shells (Solaris, FreeBSD) that
4780         warn about a missing program before performing redirection, the
4781         shell-selection tests performed by init.sh probably exclude any
4782         offending shell.
4783
4784 2012-01-08  Bruno Haible  <bruno@clisp.org>
4785
4786         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4787         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4788         variable.
4789
4790 2012-01-08  Bruno Haible  <bruno@clisp.org>
4791
4792         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4793         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4794         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4795         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4796         macro.
4797         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4798         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4799         * lib/spawn_faction_addopen.c: Add workaround implementation if
4800         HAVE_WORKING_POSIX_SPAWN.
4801         * modules/spawn (Makefile): Substitute
4802         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4803         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4804         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4805         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4806         (Depends-on): Update conditions.
4807         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4808         the Solaris 11 bug.
4809
4810 2012-01-08  Bruno Haible  <bruno@clisp.org>
4811
4812         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4813         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4814         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4815         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4816         macro.
4817         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4818         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4819         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4820         HAVE_WORKING_POSIX_SPAWN.
4821         * modules/spawn (Makefile): Substitute
4822         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4823         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4824         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4825         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4826         (Depends-on): Update conditions.
4827         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4828         the Solaris 11 bug.
4829
4830 2012-01-08  Bruno Haible  <bruno@clisp.org>
4831
4832         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4833         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4834         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4835         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4836         HAVE_WORKING_POSIX_SPAWN.
4837         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4838         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4839         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4840         * lib/spawn_faction_addclose.c: Add workaround implementation if
4841         HAVE_WORKING_POSIX_SPAWN.
4842         * modules/spawn (Makefile): Substitute
4843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4844         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4845         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4846         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4847         (Depends-on): Update conditions.
4848         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4849         the Solaris 11 bug.
4850
4851 2012-01-08  Bruno Haible  <bruno@clisp.org>
4852
4853         doc: Update for Solaris 11 2011-11.
4854         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4855         * m4/printf.m4: Update comments.
4856
4857 2012-01-08  Bruno Haible  <bruno@clisp.org>
4858
4859         mktime: Avoid compilation error on Solaris 11.
4860         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4861
4862 2012-01-08  Bruno Haible  <bruno@clisp.org>
4863
4864         doc: Small fix.
4865         * doc/posix-headers/nl_types.texi: Correct platforms list.
4866
4867 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4868
4869         Add lgpl-3.0 module.
4870         * MODULES.html.sh (Support for building documentation): Add
4871         lgpl-3.0.
4872         * modules/lgpl-3.0: New file.
4873
4874 2012-01-08  Jim Meyering  <meyering@redhat.com>
4875
4876         select.c: indent with spaces, not TABs
4877         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4878
4879 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4880
4881         quotearg: do not use grave accent for left quote
4882         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4883         locale_quoting_style.
4884         (quotearg_buffer_restyled): Fix example.
4885         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4886
4887 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4888
4889         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4890         Most programs do not have translation catalogs for English and much
4891         less separate catalogs for British and American English.  Drop the
4892         suggestion to translators about these two, and provide it
4893         automatically for Unicode locales.  Like most programs, even those
4894         using American English, we use single quotation marks.  This conflicts
4895         with the American typographic convention, but works better when you
4896         cite the entire error message within double quotes.  It also tries not
4897         to clash with established practice and with what non-gnulib programs
4898         will usually do.
4899         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4900         using an UTF-8 or GB-18030 locale.  The list of other locales with
4901         quotes was provided by Bruno Haible.
4902         (quotearg_buffer_restyled): Adjust instructions to translators.
4903         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4904         text, since this would be wrong when using Unicode.
4905         * modules/quotearg: Depend on c-strcaseeq.
4906
4907 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4908
4909         quotearg: fix Wikipedia link
4910         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4911
4912 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4913
4914         Fix for mingw with MSVC9.
4915         * m4/ld-version-script.m4: Check that compiler rejects version
4916         scripts with syntax errors.  Reported by Bruno Haible
4917         <bruno@clisp.org>.
4918
4919 2012-01-06  Bruno Haible  <bruno@clisp.org>
4920
4921         Talk about "native Windows API", not "Woe32".
4922         * lib/accept4.c: Update comments to mention native Windows.
4923         * lib/execute.c: Likewise.
4924         * lib/fatal-signal.c: Likewise.
4925         * lib/localcharset.c: Likewise.
4926         * lib/nanosleep.c: Likewise.
4927         * lib/nl_langinfo.c: Likewise.
4928         * lib/pclose.c: Likewise.
4929         * lib/pipe-filter-gi.c: Likewise.
4930         * lib/pipe-filter-ii.c: Likewise.
4931         * lib/pipe.c: Likewise.
4932         * lib/pipe2.c: Likewise.
4933         * lib/popen.c: Likewise.
4934         * lib/progreloc.c: Likewise.
4935         * lib/relocatable.c: Likewise.
4936         * lib/sigaction.c: Likewise.
4937         * lib/sigprocmask.c: Likewise.
4938         * lib/spawn-pipe.h: Likewise.
4939         * lib/spawn-pipe.c: Likewise.
4940         * lib/spawni.c: Likewise.
4941         * lib/stat-time.h: Likewise.
4942         * lib/w32spawn.h: Likewise.
4943         * tests/test-isatty.c: Likewise.
4944         * lib/config.charset: More comments.
4945         * doc/gnulib-intro.texi: Mention native Windows.
4946         * doc/posix-functions/_Exit_C99.texi: Likewise.
4947         * doc/posix-headers/fcntl.texi: Likewise.
4948
4949 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4950
4951         argp: Avoid crash if translator uses % characters in a translation.
4952         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4953         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4954
4955 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4956
4957         doc: C11 and C++11 are now official
4958         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4959         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4960         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4961         * modules/stdalign:
4962         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4963
4964 2012-01-06  Bruno Haible  <bruno@clisp.org>
4965
4966         uc-is-grapheme-break tests: Tweak.
4967         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4968         message.
4969
4970 2012-01-06  Bruno Haible  <bruno@clisp.org>
4971
4972         test-init.sh: correct the test for diff -u
4973         * tests/test-init.sh: Also redirect stdout to /dev/null.
4974
4975 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4976
4977         Use ', not `, for quoting output.
4978         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4979         (print_changelog_deltas, get_tool_versions, main program):
4980         * build-aux/git-version-gen:
4981         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4982         * build-aux/move-if-change (help):
4983         * build-aux/useless-if-before-free (usage, main program):
4984         * check-module (parse_module_file, usage)
4985         (find_included_lib_files, check_module):
4986         * lib/argmatch.c (main) [TEST]:
4987         * lib/argp-help.c (_help):
4988         * lib/getopt1.c (main) [TEST]:
4989         * lib/git-merge-changelog.c (usage):
4990         * lib/xstrtol-error.c (xstrtol_error):
4991         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4992         * m4/argz.m4 (gl_FUNC_ARGZ):
4993         * m4/bison.m4 (gl_BISON):
4994         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4995         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4996         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4997         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4998         * m4/gc-random.m4 (gl_GC_RANDOM):
4999         * m4/intl.m4 (gt_CHECK_DECL):
5000         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5001         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5002         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5003         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5004         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5005         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5006         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5007         * tests/test-dirname.c (main):
5008         * tests/test-getpass.c (main):
5009         * tests/test-iconvme.c (main):
5010         * tests/test-parse-datetime.c (LOG):
5011         * tests/test-xstrtoimax.sh:
5012         * tests/test-xstrtol.sh:
5013         * tests/test-xstrtoll.sh:
5014         * tests/test-xstrtoumax.sh:
5015         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5016         * top/GNUmakefile (abort-due-to-no-makefile):
5017         Quote 'like this', not `like this', as per the recent change to
5018         the GNU coding standards.
5019
5020 2012-01-05  Bruno Haible  <bruno@clisp.org>
5021
5022         strtoimax: Don't force a replacement on systems where intmax_t is int.
5023         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5024         'intmax_t' is not larger than 'int'.
5025         Reported by Pádraig Brady <P@draigBrady.com>.
5026
5027 2012-01-05  Bruno Haible  <bruno@clisp.org>
5028
5029         doc: Mention NetBSD bugs.
5030         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5031         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5032
5033 2012-01-05  Bruno Haible  <bruno@clisp.org>
5034
5035         strtoumax tests: Enhance tests.
5036         * tests/test-strtoumax.c (main): Add tests for large values.
5037
5038 2012-01-05  Bruno Haible  <bruno@clisp.org>
5039
5040         strtoimax: Work around AIX 5.1 bug.
5041         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5042         definition.
5043         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5044         Set HAVE_STRTOIMAX.
5045         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5046         REPLACE_STRTOIMAX.
5047         * modules/inttypes-incomplete (Makefile.am): Substitute
5048         REPLACE_STRTOIMAX.
5049         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5050         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5051         (Depends-on): Update conditions.
5052         * tests/test-strtoimax.c (main): Add tests for large values.
5053         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5054
5055 2012-01-05  Bruno Haible  <bruno@clisp.org>
5056
5057         inttypes: Modernize.
5058         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5059         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5060         (Makefile.am): Update inttypes.h rule.
5061
5062 2012-01-05  Jim Meyering  <meyering@redhat.com>
5063
5064         init.sh: don't waste a subshell just to redirect stderr
5065         * tests/init.sh: In testing for diff -u and diff -c, use a
5066         stderr-redirecting exec inside `...` rather than a subshell.
5067
5068         test-init.sh: avoid failure on HP-UX 11.00
5069         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5070         resolves to diff -c or cmp.  Reported by Bruno Haible.
5071
5072 2012-01-05  Bruno Haible  <bruno@clisp.org>
5073
5074         Tests for module 'strtoull'.
5075         * modules/strtoull-tests: New file.
5076         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5077
5078 2012-01-05  Bruno Haible  <bruno@clisp.org>
5079
5080         Tests for module 'strtoll'.
5081         * modules/strtoll-tests: New file.
5082         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5083
5084 2012-01-05  Bruno Haible  <bruno@clisp.org>
5085
5086         Tests for module 'strtoul'.
5087         * modules/strtoul-tests: New file.
5088         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5089
5090 2012-01-05  Bruno Haible  <bruno@clisp.org>
5091
5092         Tests for module 'strtol'.
5093         * modules/strtol-tests: New file.
5094         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5095
5096 2012-01-04  Jim Meyering  <meyering@redhat.com>
5097
5098         test-init.sh: accommodate Solaris 5.10's different diff -u output
5099         * tests/test-init.sh: Also exempt @@ lines from the comparison
5100         of diff output, since Solaris 5.10 and GNU diff formats differ.
5101         Reported by Stefano Lattarini.
5102
5103 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5104
5105         test-posixtm: don't assume signed integer wraparound
5106         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5107         after signed integer overflow.  Inspired by (though it may not
5108         fix) Bruno Haible's bug report in
5109         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5110
5111         Spell out "Windows 9x" and "Windows XP".
5112         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5113         "Windows 9x" and "WinXP" with "Windows XP".
5114
5115 2012-01-04  Jim Meyering  <meyering@redhat.com>
5116
5117         test-vc-list-files-cvs.sh: remove obsolete comment
5118         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5119         double exit.  Now that's all encapsulated via skip_ and Exit.
5120
5121 2012-01-04  Bruno Haible  <bruno@clisp.org>
5122
5123         Talk about "native Windows API", not "Win32".
5124         * lib/classpath.c: Update comments to mention native Windows.
5125         * lib/csharpexec.c: Likewise.
5126         * lib/dup2.c: Likewise.
5127         * lib/error.c: Likewise.
5128         * lib/fcntl.c: Likewise.
5129         * lib/filename.h: Likewise.
5130         * lib/findprog.c: Likewise.
5131         * lib/get-rusage-as.c: Likewise.
5132         * lib/get-rusage-data.c: Likewise.
5133         * lib/getpagesize.c: Likewise.
5134         * lib/javaexec.c: Likewise.
5135         * lib/msvc-inval.c: Likewise.
5136         * lib/msvc-nothrow.c: Likewise.
5137         * lib/nanosleep.c: Likewise.
5138         * lib/nonblocking.c: Likewise.
5139         * lib/printf-parse.c: Likewise.
5140         * lib/setlocale.c: Likewise.
5141         * lib/sigaction.c: Likewise.
5142         * lib/strerror_r.c: Likewise.
5143         * lib/tmpdir.c: Likewise.
5144         * lib/vasnprintf.c: Likewise.
5145         * lib/w32spawn.h: Likewise.
5146         * lib/waitpid.c: Likewise.
5147         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5148         * m4/locale-ar.m4: Likewise.
5149         * m4/locale-fr.m4: Likewise.
5150         * m4/locale-ja.m4: Likewise.
5151         * m4/locale-tr.m4: Likewise.
5152         * m4/locale-zh.m4: Likewise.
5153         * m4/printf.m4: Likewise.
5154         * tests/test-cloexec.c: Likewise.
5155         * tests/test-copy-acl.sh: Likewise.
5156         * tests/test-copy-file.sh: Likewise.
5157         * tests/test-file-has-acl.sh: Likewise.
5158         * tests/test-set-mode-acl.sh: Likewise.
5159         * tests/test-dup-safer.c: Likewise.
5160         * tests/test-dup2.c: Likewise.
5161         * tests/test-dup3.c: Likewise.
5162         * tests/test-fcntl.c: Likewise.
5163         * tests/test-nonblocking-pipe.h: Likewise.
5164         * tests/test-nonblocking-socket.h: Likewise.
5165         * tests/test-pipe.c: Likewise.
5166         * tests/test-pipe2.c: Likewise.
5167         * tests/test-spawn-pipe-child.c: Likewise.
5168         * doc/acl-resources.txt: Likewise.
5169         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5170         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5171         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5172         * lib/localcharset.c: Update comments to mention native Windows.
5173         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5174         * lib/localename.c: Likewise.
5175         * lib/progreloc.c: Likewise.
5176         * lib/relocatable.c: Likewise.
5177         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5178         (windows_compute_revents): Renamed from win32_compute_revents.
5179         (windows_compute_revents_socket): Renamed from
5180         win32_compute_revents_socket.
5181         * lib/select.c: Update comments to mention native Windows.
5182         (windows_poll_handle): Renamed from win32_poll_handle.
5183         * m4/threadlib.m4: Update comments to mention native Windows.
5184         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5185         --enable-threads=windows instead of --enable-threads=win32. Set
5186         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5187         * lib/glthread/lock.h: Update comments to mention native Windows.
5188         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5189         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5190         USE_WIN32_THREADS.
5191         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5192         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5193         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5194         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5195         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5196         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5197         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5198         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5199         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5200         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5201         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5202         * tests/test-tls.c: Likewise.
5203         Rationale:
5204         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5205         on both 32-bit and 64-bit Windows systems.
5206         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5207         line of distinction is between "native Windows" on one side and Unix/
5208         POSIX systems on the other side. More details in
5209         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5210         Suggested by Paul Eggert.
5211
5212 2012-01-03  Bruno Haible  <bruno@clisp.org>
5213
5214         isatty: Support for MSVC 9.
5215         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5216         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5217         (_isatty_nothrow): New function.
5218         (isatty): Use it instead of _isatty.
5219         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5220         * lib/poll.c (IsConsoleHandle): Likewise.
5221         * lib/select.c (IsConsoleHandle): Likewise.
5222         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5223         (gl_PREREQ_ISATTY): New macro.
5224         * modules/isatty (Depends-on): Add msvc-inval.
5225         (configure.ac): Invoke gl_PREREQ_ISATTY.
5226
5227 2012-01-03  Jim Meyering  <meyering@redhat.com>
5228
5229         maint.mk: remove temporary transition aid from over 1.5 years ago
5230         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5231         purpose was to aid in the transition (avoiding silent malfunction)
5232         from that old name to the new _sc_search_regexp.  This shim was
5233         added by commit 219c504b.
5234
5235         init.sh: do not try to accommodate compare arguments starting with "-"
5236         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5237         compare arguments that start with "-".  Besides, we do not worry
5238         about this when invoking diff or cmp; why start now with sed?
5239         Using "--" to separate options from argument would trigger sed
5240         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5241         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5242
5243 2012-01-02  Bruno Haible  <bruno@clisp.org>
5244
5245         Enhance tests for module 'isatty'.
5246         * modules/isatty-tests (Depends-on): Add pipe-posix.
5247         * tests/test-isatty.c: Include <fcntl.h>.
5248         (DEV_NULL): New macro.
5249         (main): Test the resut of isatty() also on regular files, pipes, and
5250         /dev/null.
5251
5252         New module 'isatty'.
5253         * lib/unistd.in.h (isatty): New declaration.
5254         * lib/isatty.c: New file, based on an idea of
5255         Bastien Roucariès <roucaries.bastien@gmail.com>.
5256         * m4/isatty.m4: New file.
5257         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5259         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5260         REPLACE_ISATTY.
5261         * modules/isatty: New file.
5262         * doc/posix-functions/isatty.texi: Mention the new module.
5263         Suggested by Paolo Bonzini.
5264
5265 2012-01-02  Bruno Haible  <bruno@clisp.org>
5266
5267         canonicalize: Tweak 2011-12-29 commit.
5268         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5269         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5270
5271 2012-01-02  Jim Meyering  <meyering@redhat.com>
5272
5273         gitlog-to-changelog: describe input syntax in --help output
5274         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5275
5276         gitlog-to-changelog: fix typo in --help: show backslash before email @
5277         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5278         in sources, but not in actual output.
5279
5280 2011-12-30  Jim Meyering  <meyering@redhat.com>
5281
5282         gitlog-to-changelog: don't malfunction when name contains %-directive
5283         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5284         in a name string cause trouble.  E.g., with a user name of "%s",
5285         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5286
5287 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5288
5289         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5290         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5291         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5292         the "  (tiny change)" notation that is appended to the standard
5293         ChangeLog "date  name  email" header line.
5294
5295 2012-01-01  Jim Meyering  <meyering@redhat.com>
5296
5297         test-framework-sh: init.sh: fix "make dist" failure
5298         When using gnulib-tool's --with-tests option and any module that
5299         depends on test-framework-sh, "make dist" would fail due to the
5300         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5301         in the gltests directory, and not in the gllib/ directory.
5302         One way to work around that is to move the EXTRA_DIST += init.sh
5303         from the primary module to the -tests one:
5304         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5305         * modules/test-framework-sh (Makefile.am): ...not here.
5306         Reported by Tom G. Christensen in
5307         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5308
5309         version-etc: update copyright year reported by --version
5310         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5311
5312 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5313
5314         canonicalize: only stat() if required
5315         * lib/canonicalize.c (canonicalize_filename_mode):
5316         Avoid calling l?stat() when both CAN_MISSING,
5317         and CAN_NOLINKS are set, as we neither need
5318         to resolve symlinks or test component existence.
5319
5320 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5321
5322         doc: cover st_ino issues once; add OpenVMS etc.
5323         * doc/posix-functions/stat.texi (stat):
5324         * doc/posix-functions/lstat.texi (lstat):
5325         * doc/posix-functions/fstatat.texi (fstatat):
5326         * doc/posix-functions/fstat.texi (fstat):
5327         Move general 'struct stat' stuff to sys_stat.texi,
5328         leaving behind a pointer.
5329         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5330         Merge duplicate info about 'struct stat' problems into here.
5331         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5332         and suggest partial workarounds.
5333
5334         same-inode: port to OpenVMS
5335         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5336         three st_ino values.
5337
5338 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5339
5340         canonicalize: fix references to stat() and lstat()
5341         * lib/canonicalize.c (canonicalize_filename_mode):
5342         Ensure references always resolve to a replacement
5343         function if required (even via a macro).
5344
5345 2011-12-30  Jim Meyering  <meyering@redhat.com>
5346
5347         gitlog-to-changelog: remove a little duplication
5348         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5349         rather than twice.
5350
5351 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5352
5353         canonicalize: add support for not resolving symlinks
5354         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5355         indicate we don't want to follow symlinks.  Also
5356         provide CAN_MODE_MASK to aid setting these existing
5357         mutually exclusive values.
5358         * lib/canonicalize.c (canonicalize_filename_mode):
5359         Extract the flags from can_mode parameter, which
5360         are currently just used to select between stat()
5361         and lstat().  Also ensure that mutually exclusive
5362         values are flagged immediately as invalid.
5363         * tests/test-canonicalize.c: Verify symlinks are
5364         not followed, and that invalid flag combinations
5365         are diagnosed.
5366
5367 2011-12-25  Jim Meyering  <meyering@redhat.com>
5368
5369         gitlog-to-changelog: do not clump multi-paragraph entries
5370         Identical header lines (date,name,email+coauthors) are suppressed,
5371         thus putting all entries with those same characteristics under
5372         a single header.  However, when a log entry consists of two or
5373         more paragraphs, it may not be clear where it starts and ends.
5374         This change makes it so that such an entry is always separated
5375         from others by a header line, even when that header would
5376         otherwise be suppressed.
5377         * build-aux/gitlog-to-changelog: Implement the above.
5378         Inspired by a related request from Stefano Lattarini in
5379         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5380
5381 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5382
5383         announce-gen: fix `cmd' typo in diagnostic
5384         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5385         diagnostic: a missing '$' meant that the command was not output.
5386
5387 2011-12-23  Jim Meyering  <meyering@redhat.com>
5388
5389         test-framework-sh: distribute init.sh
5390         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5391         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5392         fail due to the lack of init.sh.
5393
5394         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5395         * modules/atexit-tests: Rather than listing tests/init.sh,
5396         now that there's a module for it, simply depend on that new module.
5397         * modules/closein-tests: Likewise.
5398         * modules/exclude-tests: Likewise.
5399         * modules/getcwd-tests: Likewise.
5400         * modules/perror-tests: Likewise.
5401         * modules/pread-tests: Likewise.
5402         * modules/pwrite-tests: Likewise.
5403         * modules/vc-list-files-tests: Likewise.
5404         * modules/verify-tests: Likewise.
5405         * modules/xalloc-die-tests: Likewise.
5406         * modules/xstrtoimax-tests: Likewise.
5407         * modules/xstrtol-tests: Likewise.
5408         * modules/xstrtoll-tests: Likewise.
5409         * modules/xstrtoumax-tests: Likewise.
5410         * modules/yesno-tests: Likewise.
5411
5412 2011-12-22  Jim Meyering  <meyering@redhat.com>
5413
5414         test-framework-sh: add minimal tests of init.sh's compare function
5415         * modules/test-framework-sh-tests: New file.
5416         * tests/test-init.sh: New file.
5417
5418         test-framework-sh: new module
5419         * modules/test-framework-sh: New file.
5420         * MODULES.html.sh (Support for maintaining and releasing projects):
5421         List it.
5422
5423         init.sh: do not emit simulated diff output to stderr
5424         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5425
5426 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5427
5428         .gitignore: ignore gnulib.dvi and regex.info
5429         * doc/.gitignore:add gnulib.dvi and regex.info
5430
5431 2011-12-22  Jim Meyering  <meyering@redhat.com>
5432
5433         init.sh: correct previous change
5434         * tests/init.sh (compare): My previous change was wrong.
5435         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5436
5437         init.sh: avoid unwarranted test failure when using "set -e"
5438         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5439         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5440         a use like "compare exp out" would get evoke an unconditional failure.
5441
5442 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5443
5444         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5445         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5446         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5447         autoreconf that did not.
5448         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5449         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5450
5451 2011-12-17  Jim Meyering  <meyering@redhat.com>
5452
5453         bootstrap: remove some now-unneeded code
5454         This script arose back when gnulib-tool was young.
5455         Since then, it has seen improvements that render much of this
5456         script unnecessary.  In particular, it can now make symlinks
5457         to the files it uses.  Also, I no longer see as much value in
5458         marking files as read-only via comments.
5459         If you relied on the symlink-creation feature of the preceding
5460         version of this script, you can get most of that functionality
5461         by adding the --symlink option to the definition of
5462         gnulib_tool_option_extras in your bootstrap.conf file.
5463         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5464         Run autopoint and libtoolize *before* gnulib-tool.
5465         After it, run an abbreviated autoreconf, rather than a loop around
5466         all tools.
5467         (slirp, bt_mark_as_generated): Remove functions.
5468
5469 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5470
5471         ftoastr: fix typo
5472         * lib/ftoastr.h: Fix misspelling in comment.
5473
5474 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5475
5476         * top/README-release: fix punctuation.
5477
5478 2011-12-17  Jim Meyering  <meyering@redhat.com>
5479
5480         bootstrap: correct the recent buildreq change
5481         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5482         had no effect.
5483         * build-aux/bootstrap (buildreq): Bracket each search term with
5484         "*...*", so that the shell "case" statement works as intended.
5485         Add comments.
5486
5487 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5488
5489         build: let bootstrap resort to wget when downloading .po files
5490         * build-aux/bootstrap (download_po_files): Fallback to wget when
5491         downloading the .po files via rsync fails.  This is necessary to
5492         bootstrap from behind a strict firewall.
5493
5494 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5495
5496         stdint: don't assume C++11 when compiling with g++
5497         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5499         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5500         work also in C++ before C++11, as that improperly inhibits
5501         generating a substitute stdint.h for that case.
5502
5503 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5504
5505         alloca: protect comment from gnulib-tool
5506         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5507         that gnulib-tool doesn't think it's a license, and munge it to
5508         say "GCC version 3".
5509
5510 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5511
5512         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5513         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5514         $(abs_top_builddir) instead of $(top_builddir).
5515
5516 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5517
5518         strftime-tests: also test nanoseconds
5519         * tests/test-strftime.c (T): Add a test of %N.
5520
5521 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5522
5523         inttypes, stdint: add C++11 support
5524         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5525         when including inttypes.h and stdint.h.  Support this change to
5526         the standard.
5527         * doc/posix-headers/inttypes.texi (inttypes.h):
5528         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5529         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5530         Define if not defined already, for the benefit of pre-C++11 hosts.
5531         Define the standard format macros (e.g., PRId8) always.
5532         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5533         Likewise, if __cpluspus.  Define the standard constant and limit
5534         macros (e.g., INT8_C, INT8_MAX) always.
5535         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5536         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5537         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5538         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5539         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5540         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5541         Likewise.
5542
5543 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5544
5545         nonblocking tests: Fix test failure on Linux/PPC.
5546         Suggested by Prerna Saxena in
5547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5548         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5549         Set to 1100000.
5550
5551 2011-12-12  Jim Meyering  <meyering@redhat.com>
5552
5553         argmatch: don't hard-code `' when listing valid option arguments
5554         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5555         use the quote function to add quotes.  Use fputs rather than
5556         fprintf for the format string with no format directive.
5557
5558 2011-12-07  Eric Blake  <eblake@redhat.com>
5559
5560         bootstrap: detect tools required by gnulib-tool
5561         * build-aux/bootstrap (buildreq): Provide minimum implicit
5562         dependencies.
5563         * DEPENDENCIES: Mention patch as a prereq.
5564
5565 2011-12-04  Bruno Haible  <bruno@clisp.org>
5566
5567         sethostname: Port to Windows platforms.
5568         * lib/sethostname.c: Provide an alternate implementation for Windows
5569         platforms.
5570         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5571         (main): Skip the test if sethostname() fails with EPERM. On Windows
5572         platforms, don't check the result of gethostname().
5573
5574 2011-12-04  Bruno Haible  <bruno@clisp.org>
5575             Jim Meyering  <meyering@redhat.com>
5576
5577         tests: Avoid spurious error message on platforms without mktemp program.
5578         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5579
5580 2011-12-04  Bruno Haible  <bruno@clisp.org>
5581
5582         sethostname: Fix documentation.
5583         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5584         "not fixed" section.
5585
5586 2011-12-03  Bruno Haible  <bruno@clisp.org>
5587
5588         gnulib-tool: Verify that the License field is present and non-empty.
5589         * gnulib-tool (func_get_license_raw): New function, extracted from
5590         func_get_license.
5591         (func_get_license): Use it. Warn if the module is not a test module and
5592         has no license.
5593         Suggested by Jim Meyering.
5594
5595 2011-12-03  Bruno Haible  <bruno@clisp.org>
5596
5597         sethostname tests: Fix link error on mingw.
5598         * tests/test-sethostname1.c: New file, extracted from
5599         tests/test-sethostname.c.
5600         * tests/test-sethostname2.c: New file, extracted from
5601         tests/test-sethostname.c.
5602         * tests/test-sethostname.c: Remove file.
5603         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5604         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5605         (Depends-on): Add gethostname.
5606         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5607         Link the latter with $(GETHOSTNAME_LIB).
5608
5609         sethostname tests: Fix compilation error on mingw.
5610         * tests/test-sethostname.c: Don't include <sys/types.h>.
5611         (geteuid): Use a dummy value without uid_t.
5612         * modules/sethostname-tests (Depends-on): Remove sys_types.
5613
5614         sethostname tests: Avoid a gcc warning.
5615         * tests/test-sethostname.c (main): Remove an unused variable.
5616
5617         Tweak last commit.
5618         * modules/sethostname-tests (Files): Sort by decreasing importance.
5619         (configure.ac): Check for geteuid.
5620         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5621         the test when there's nothing to test. Drop an unnecessary cast.
5622         Improve an error message. Verify that the final sethostname() call
5623         succeeds.
5624
5625 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5626
5627         Add a test suite for the sethostname module.
5628         * modules/sethostname-tests: New file.  A test program
5629         for the sethostname module.
5630         * tests/test-sethostname.c: Likewise.
5631
5632 2011-12-03  Bruno Haible  <bruno@clisp.org>
5633
5634         Tweak last commit.
5635         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5636         Fix preprocessor directives indentation. Fix typos.
5637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5638         * modules/unistd (Makefile): Likewise.
5639
5640 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5641
5642         Integrate the sethostname module into unistd.
5643         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5644         into the unistd.h header.
5645         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5646         preprocessor directives.
5647         * modules/unistd: Setup the Makefile substitutions of the
5648         SETHOSTNAME preprocessor directives.
5649
5650 2011-12-03  Bruno Haible  <bruno@clisp.org>
5651
5652         Tweak last commit.
5653         * lib/sethostname.c: Don't include <string.h>.
5654         (sethostname): No need to copy the argument string to the stack. Don't
5655         call clearerr. Preserve errno when fprintf failed.
5656         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5657         Don't invoke AC_REPLACE_FUNCS.
5658         * modules/sethostname (Link): Remove empty section.
5659         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5660         failure problem.
5661
5662 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5663
5664         New module 'sethostname'.
5665         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5666         for systems that lack it.
5667         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5668         sethostname declaration and function.
5669         * modules/sethostname: New file.  Define the sethostname module.
5670
5671 2011-12-03  Bruno Haible  <bruno@clisp.org>
5672
5673         Tweak last commit.
5674         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5675
5676 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5677
5678         Split the HOST_NAME_MAX detection into a separate m4 macro.
5679         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5680         macro so it can be used by the pending sethostname module.
5681
5682 2011-12-03  Bruno Haible  <bruno@clisp.org>
5683
5684         Fix module descriptions syntax.
5685         * modules/argv-iter (License): Fix syntax.
5686         * modules/di-set (License): Likewise.
5687         * modules/ino-map (License): Likewise.
5688         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5689
5690 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5691
5692         stdalign: port to Clang 3.0
5693         Problem reported by Simon Josefsson in
5694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5695         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5696         which has <stdalign.h> but which does not define alignof.
5697         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5698
5699 2011-12-01  Eric Blake  <eblake@redhat.com>
5700
5701         mktempd: silence dd usage
5702         * build-aux/mktempd (rand_bytes): Silence dd.
5703
5704 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5705
5706         manywarnings: Don't mention gcc version in docstring.
5707         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5708         Jim Meyering <meyering@redhat.com>.
5709
5710 2011-11-30  Jim Meyering  <meyering@redhat.com>
5711
5712         hash: mark a few floating point constants with "f" suffix
5713         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5714         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5715         floating point constants with "f", since they're destined to be
5716         saved/used as "float"s.
5717
5718 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5719
5720         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5721         * tests/test-float.c (test_long_double): Correct and re-enable the
5722         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5723
5724 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5725
5726         Avoid subtracting two pointers that don't point into the same block.
5727         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5728         only pointers into the same memory block are subtracted. We cannot
5729         assume that sizeof (ptrdiff_t) == sizeof (void *).
5730
5731 2011-11-29  Eric Blake  <eblake@redhat.com>
5732
5733         maint.mk: add syntax check for use of compare from init.sh
5734         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5735         moved here from coreutils.
5736
5737         manywarnings: drop -Wunsuffixed-float-constants
5738         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5739         '1.0D', which is the only way to silence this warning for 'double'.
5740
5741 2011-11-29  Jim Meyering  <meyering@redhat.com>
5742
5743         hash: mark compute_bucket_size with the pure attribute
5744         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5745
5746         quotearg, propername: correct pragma guard expression
5747         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5748         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5749
5750 2011-11-28  Jim Meyering  <meyering@redhat.com>
5751
5752         propername: do not mark proper_name with the const attribute
5753         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5754         since it examines data pointed to by its parameter.
5755         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5756         the suggestion from -Wsuggest-attribute=const.
5757
5758         propername: mark one more function as const
5759         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5760
5761 2011-11-27  Jim Meyering  <meyering@redhat.com>
5762
5763         mark functions with const and pure attributes
5764
5765         Mark functions per suggestions from gcc-4.6 when using these options:
5766         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5767         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5768         Follow these guidelines: when possible, apply the attribute to
5769         an extern declaration, not to its definition.  Apply it to the
5770         definition only when the definition is static.
5771         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5772         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5773         * lib/base64.h (isbase64): Likewise.
5774         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5775         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5776         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5777         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5778         (c_tolower, c_toupper): Likewise.
5779         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5780         * lib/chdir-long.c (find_non_slash): Likewise.
5781         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5782         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5783         * lib/file-type.h (file_type): Likewise.
5784         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5785         * lib/filevercmp.c (verrevcmp): Likewise.
5786         * lib/freadahead.h (freadahead): Likewise.
5787         * lib/fts.c (fts_maxarglen): Likewise.
5788         * lib/hash-pjw.h (hash_pjw): Likewise.
5789         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5790         * lib/hash.c (is_prime, next_prime): Likewise.
5791         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5792         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5793         (hash_table_ok, hash_get_first, hash_string): Likewise.
5794         (compute_bucket_size): Likewise.
5795         * lib/i-ring.h (i_ring_empty): Likewise.
5796         * lib/isnan.c (isnanl): Likewise.
5797         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5798         * lib/memcasecmp.h (memcasecmp): Likewise.
5799         * lib/memchr2.h (memchr2): Likewise.
5800         * lib/memcmp2.h (memcmp2): Likewise.
5801         * lib/parse-datetime.y (lookup_zone): Likewise.
5802         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5803         [!WINDOWS_SOCKETS]: Likewise.
5804         * lib/strnlen1.h (strnlen1): Likewise.
5805         * lib/uniwidth.in.h (uc_width): Likewise.
5806         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5807         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5808         (quoting_options_from_style): Add a comment.
5809         * lib/propername.h (proper_name): Add a comment.
5810
5811 2011-11-27  Bruno Haible  <bruno@clisp.org>
5812
5813         Remove unused macros from !_LIBC code in glibc-borrowed files.
5814         * lib/fnmatch.c (STRCOLL): Remove macro.
5815         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5816         * lib/glob.c (__stat, __readdir64): Remove macros.
5817         * lib/tempname.c (__open64, __xstat64): Remove macros.
5818         Suggested by Paul Eggert.
5819
5820 2011-11-27  Bruno Haible  <bruno@clisp.org>
5821
5822         getcwd: Fix link error on MSVC 9.
5823         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5824
5825 2011-11-27  Bruno Haible  <bruno@clisp.org>
5826
5827         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5828         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5829         HAVE_OPENDIR is 0.
5830         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5831         HAVE_CLOSEDIR is 0.
5832         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5833         is 0.
5834         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5835
5836 2011-11-27  Bruno Haible  <bruno@clisp.org>
5837
5838         getcwd: Fix bug from 2011-08-17.
5839         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5840         platforms that need it.
5841         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5842         code of 4 to be a failure, not a success. This ensures that
5843         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5844
5845 2011-11-27  Bruno Haible  <bruno@clisp.org>
5846
5847         binary-io tests: Avoid test failure on mingw when libtool is used.
5848         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5849         Don't verify the size of t-bin-out1.tmp here.
5850         * tests/test-binary-io.sh: Verify it here.
5851         Reported by Simon Josefsson.
5852
5853 2011-11-26  Bruno Haible  <bruno@clisp.org>
5854
5855         Fix conflict between two instantiations of module 'unistd'.
5856         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5857         ${include_guard_prefix} also in the autoconf snippet.
5858         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5860         GNULIB_UNISTD_H_GETOPT.
5861         * modules/getopt-posix (configure.ac): Set the
5862         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5863         * modules/getopt-gnu (configure.ac): Likewise.
5864         * modules/unistd (Makefile.am): Change the substitution value of
5865         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5866         Reported by Simon Josefsson.
5867
5868 2011-11-25  Bruno Haible  <bruno@clisp.org>
5869
5870         pagealign_alloc: Doc and comments.
5871         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5872         module.
5873         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5874
5875 2011-11-25  Jim Meyering  <meyering@redhat.com>
5876
5877         test-update-copyright.sh: avoid false-positive failure
5878         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5879         around false positive failure on Cygwin/Windows.  The latter was
5880         matching erroneously-created files with names like
5881         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5882
5883 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5884
5885         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5886         * m4/valgrind-tests.m4: Check that the parameters that will be
5887         used works, not just a subset of them.  Reported by Bruno Haible
5888         <bruno@clisp.org>.
5889
5890 2011-11-24  Jim Meyering  <meyering@redhat.com>
5891
5892         test-stdalign.c: comment out long double tests
5893         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5894         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5895         error: '_Alignas' specifiers cannot reduce alignment of \
5896         'static_longdouble_alignas'.
5897
5898 2011-11-22  Jim Meyering  <meyering@redhat.com>
5899
5900         init.sh: make "compare /dev/null FILE" output more readable
5901         * tests/init.sh (compare_): Document the preferred order of arguments.
5902         (emit_diff_u_header_): New function.
5903         (compare_dev_null_): Emit a simulated diff, rather than just the
5904         contents of the unexpected file.  Suggestion from Bruno Haible.
5905
5906 2011-11-21  Jim Meyering  <meyering@redhat.com>
5907             Eric Blake  <eblake@redhat.com>
5908
5909         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5910         * tests/init.sh: Make our compare function slightly more portable.
5911         Reported by Bruno Haible in
5912         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5913
5914 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5915
5916         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5917         before using it, in code that ends up in config.h.
5918
5919 2011-11-20  Bruno Haible  <bruno@clisp.org>
5920
5921         getcwd: Work around getcwd bug on AIX 5..7.
5922         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5923         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5924         Use a different value for gl_cv_func_getcwd_path_max. Move the
5925         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5926         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5927         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5928         Define HAVE_MINIMALLY_WORKING_GETCWD.
5929         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5930         where it is not even minimally working, that is, on AIX.
5931         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5932         m4/getcwd-path-max.m4.
5933         (main): Update exit code computation.
5934         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5935         getcwd does not handle long file names.
5936
5937 2011-11-20  Bruno Haible  <bruno@clisp.org>
5938
5939         getcwd: Fix bug from 2009-09-10.
5940         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5941         like "no".
5942
5943 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5944
5945         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5946
5947 2011-11-20  Bruno Haible  <bruno@clisp.org>
5948
5949         fma tests: Avoid shadowing local variables.
5950         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5951         expected.
5952
5953 2011-11-20  Bruno Haible  <bruno@clisp.org>
5954
5955         copysignf tests: Fix.
5956         * tests/test-copysignf.c: Fix signature check.
5957
5958 2011-11-20  Bruno Haible  <bruno@clisp.org>
5959
5960         fma: Remove unused code.
5961         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5962         unused macros.
5963
5964 2011-11-20  Bruno Haible  <bruno@clisp.org>
5965
5966         sethostname: Fix doc about AIX.
5967         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5968         sethostname; it has it.
5969
5970         sethostname: Mention more portability problems.
5971         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5972         problem.
5973         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5974
5975 2011-11-19  Bruno Haible  <bruno@clisp.org>
5976
5977         Depend on module fcntl-h when AT_FDCWD is used.
5978         * modules/utimens (Depends-on): Add fcntl-h.
5979         * modules/areadlinkat (Depends-on): Likewise.
5980         * modules/areadlinkat-with-size (Depends-on): Likewise.
5981         * modules/faccessat (Depends-on): Likewise.
5982         * modules/fchmodat (Depends-on): Likewise.
5983         * modules/fchownat (Depends-on): Likewise.
5984         * modules/getcwd (Depends-on): Likewise.
5985         * modules/mkdirat (Depends-on): Likewise.
5986         * modules/mkfifoat (Depends-on): Likewise.
5987         * modules/readlinkat (Depends-on): Likewise.
5988         * modules/symlinkat (Depends-on): Likewise.
5989         * modules/dup2-tests (Depends-on): Likewise.
5990         * modules/fdutimensat-tests (Depends-on): Likewise.
5991         * modules/futimens-tests (Depends-on): Likewise.
5992
5993 2011-11-19  Bruno Haible  <bruno@clisp.org>
5994
5995         euidaccess: Update a comment.
5996         * lib/euidaccess.c: Update comment about platforms with faccessat.
5997
5998 2011-11-19  Bruno Haible  <bruno@clisp.org>
5999
6000         openat: Fix file list.
6001         * modules/openat (Files): Remove lib/at-func.c.
6002
6003 2011-11-19  Bruno Haible  <bruno@clisp.org>
6004
6005         fstatat: Simplify.
6006         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6007         gnulib should define rpl_fstatat, there is a
6008         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6009
6010 2011-11-19  Bruno Haible  <bruno@clisp.org>
6011
6012         Ensure 'inline' can be used in tests/test-utimens-common.h.
6013         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6014         * modules/futimens-tests (configure.ac): Likewise.
6015         * modules/utimens-tests (configure.ac): Likewise.
6016         * modules/utimensat-tests (configure.ac): Likewise.
6017
6018 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6019
6020         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6021         not hash_insert0.
6022         (hash_insert_if_absent): Doc fix.
6023
6024 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6025
6026         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6027
6028 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6029
6030         test-getcwd: disambiguate exit status
6031         * tests/test-getcwd.c (test_long_name): Return 0..7.
6032         (main): Exit with an unambiguous exit status.  The old
6033         code yielded a mysterious mixture of two failure codes.
6034
6035         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6036         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6037         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6038         rpl_fstatat or fstatat.  This should fix the other problem
6039         reported by Kai Habel in
6040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6041         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6043         and I reproduced it on a Solaris 8 host we still have in production.
6044
6045 2011-11-18  Jim Meyering  <meyering@redhat.com>
6046
6047         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6048         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6049         Add a sentence to the comment.
6050         (hash_insert0): New function that simply calls hash_insert_if_absent.
6051         * lib/hash.h (hash_insert_if_absent): Declare it.
6052         (hash_insert0): Add deprecation attribute.
6053         (_GL_ATTRIBUTE_DEPRECATED): Define.
6054         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6055         not hash_insert0.
6056         * NEWS: Mention it, even though it's not really an incompatible change.
6057
6058 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6059
6060         openat: avoid compilation failure due to lack of <errno.h> inclusion
6061         * lib/openat.c: Include <errno.h>.
6062
6063 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6064
6065         * modules/getcwd (Depends-on): Add fdopendir.
6066         This fixes one of the two problems reported by Kai Habel in
6067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6068
6069         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6070         stdalign problem reported by Ian Beckwith in
6071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6072         * modules/crypto/gc-arcfour (Depends-on):
6073         Depend conditionally on crypto/arcfour.
6074         * modules/crypto/gc-arctwo (Depends-on):
6075         Depend conditionally on crypto/arctwo.
6076         * modules/crypto/gc-des (Depends-on):
6077         Depend conditionally on crypto/des.
6078         * modules/crypto/gc-hmac-md5 (Depends-on):
6079         Depend conditionally on crypto/hmac-md5.
6080         * modules/crypto/gc-hmac-sha1 (Depends-on):
6081         Depend conditionally on crypto/hmac-sha1.
6082         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6083         * modules/crypto/gc-md4 (Depends-on):
6084         Depend conditionally on crypto/md4.
6085         * modules/crypto/gc-md5 (Depends-on):
6086         Depend conditionally on crypto/md5.
6087         * modules/crypto/gc-rijndael (Depends-on):
6088         Depend conditionally on crypto/rijndael.
6089         * modules/crypto/gc-sha1 (Depends-on):
6090         Depend conditionally on crypto/sha1.
6091         * modules/crypto/gc-arcfour:
6092         * modules/crypto/gc-arctwo:
6093         * modules/crypto/gc-des:
6094         * modules/crypto/gc-hmac-md5:
6095         * modules/crypto/gc-hmac-sha1:
6096         * modules/crypto/gc-md2:
6097         * modules/crypto/gc-md4:
6098         * modules/crypto/gc-md5:
6099         * modules/crypto/gc-rijndael:
6100         * modules/crypto/gc-sha1:
6101         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6102         now that the conditional dependencies do the work for us.
6103
6104 2011-11-17  Jim Meyering  <meyering@redhat.com>
6105
6106         tests: factor st_ctime-comparison out of two headers
6107         * tests/test-utimens-common.h (ctime_compare): Define.
6108         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6109         * tests/test-lutimens.h (test_lutimens): Likewise.
6110         * tests/test-utimens.h (test_utimens): Likewise.
6111
6112         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6113         Invoke the test program via an init.sh-using wrapper.
6114         * tests/test-getcwd.sh: New file.
6115         * modules/getcwd-tests (Files): Add it.
6116         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6117
6118 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6119
6120         gitlog-to-changelog: support multi-author commits.
6121         The FSF cares about keeping track of all authors of patches to its
6122         projects, but Git doesn't provide obvious support for multi-author
6123         changesets. Consensus seems to be forming around the use of extra
6124         Signed-off-by inspired lines in the log message formatted as
6125         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6126         multi-author commits between version control systems.
6127         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6128         log message and output in standard ChangeLog multi-author format.
6129         Reported by Peter Rosin <peda@lysator.liu.se>
6130
6131 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6132             Bruno Haible  <bruno@clisp.org>
6133
6134         Fix some modules' file list.
6135         * modules/fstatat (Files): Add m4/lstat.m4.
6136         * modules/openat (Files): Likewise.
6137         * modules/unlinkat (Files): Likewise.
6138
6139 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6140
6141         maint.mk: fix tight-scope.mk generation in VPATH builds.
6142         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6143         reference with $(srcdir) so that the file is found correctly even
6144         when running `make syntax-check' in a VPATH build.
6145
6146 2011-11-13  Bruno Haible  <bruno@clisp.org>
6147             Jim Meyering  <meyering@redhat.com>
6148
6149         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6150         * tests/init.sh (compare): Remove "No differences encountered" or
6151         synonymous output from the 'diff' program.
6152
6153 2011-11-13  Bruno Haible  <bruno@clisp.org>
6154
6155         Makefile: Tweak indentation.
6156         * Makefile: Use tab as first character in every line that contains rule
6157         commands.
6158
6159 2011-11-13  Bruno Haible  <bruno@clisp.org>
6160
6161         Syntax check for copyright statements.
6162         * check-copyright: New file.
6163         * Makefile (sc_check_copyright): New rule.
6164
6165 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6166
6167         * build-aux/git-version-gen: Add --prefix to configure the tag
6168         match string.
6169
6170 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6171
6172         * build-aux/git-version-gen: Add --help and --version.
6173
6174 2011-11-12  Jim Meyering  <meyering@redhat.com>
6175
6176         revamp the other test-exclude?.sh scripts to use init.sh, too
6177         * tests/test-exclude1.sh: Use init.sh.
6178         * tests/test-exclude2.sh: Likewise.
6179         * tests/test-exclude3.sh: Likewise.
6180         * tests/test-exclude4.sh: Likewise.
6181         * tests/test-exclude5.sh: Likewise.
6182         * tests/test-exclude6.sh: Likewise.
6183         * tests/test-exclude7.sh: Likewise.
6184         * tests/test-exclude8.sh: Likewise.
6185         * modules/exclude-tests (Files): List init.sh.
6186
6187         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6188         These shell scripts ignored failure of the binary test-exclude,
6189         so making the latter return 77 didn't cause them to be skipped.
6190         * tests/test-exclude5.sh: Exit with test-exclude's error status
6191         when that program fails.  Revamp to use init.sh.
6192         * tests/test-exclude2.sh: Likewise.
6193
6194         test-exclude: fix a typo
6195         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6196
6197 2011-11-11  Bruno Haible  <bruno@clisp.org>
6198
6199         obstack: Fix compilation error on MSVC 9.
6200         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6201
6202 2011-11-11  Jim Meyering  <meyering@redhat.com>
6203
6204         test-exclude: skip tests rather than failing on deficient systems
6205         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6206         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6207         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6208         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6209
6210 2011-11-10  Bruno Haible  <bruno@clisp.org>
6211
6212         ptsname_r test: Avoid gcc warning on glibc systems.
6213         * tests/test-ptsname_r.c (null_ptr): New function.
6214         (test_errors): Use it.
6215
6216 2011-11-10  Bruno Haible  <bruno@clisp.org>
6217
6218         ptsname_r: Avoid compilation error on OSF/1 5.1.
6219         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6221         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6222         function is not declared or incompatibly declared.
6223         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6224         * modules/ptsname_r (Depends-on, configure.ac): Update.
6225         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6226
6227 2011-11-10  Bruno Haible  <bruno@clisp.org>
6228
6229         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6230         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6231         When cross-compiling, guess yes on all platforms except AIX.
6232         Reported by Ludovic Courtès <ludo@gnu.org>.
6233
6234 2011-11-09  Bruno Haible  <bruno@clisp.org>
6235
6236         ptsname_r tests: Fix bugs.
6237         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6238         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6239
6240 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6241
6242         fstatat: work with cross-compilation
6243         Problem reported by Ludovic Courtès in
6244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6245         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6246         "cross-compiling" and assume the bug is present.  Replace
6247         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6248         an inverted sense, to be more conservative about our assumptions.
6249         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6250
6251 2011-11-09  Bruno Haible  <bruno@clisp.org>
6252
6253         Improve MODULES.html output.
6254         * modules/mkfifoat (Description): Use the word "function".
6255         * modules/readlinkat (Description): Likewise.
6256         * modules/symlinkat (Description): Likewise.
6257
6258 2011-11-09  Eric Blake  <eblake@redhat.com>
6259
6260         ptsname_r-tests: new test module
6261         * modules/ptsname_r-tests: New module.
6262         * tests/test-ptsname_r.c: New file.
6263
6264         ptsname_r: new module
6265         * modules/ptsname_r: New module.
6266         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6267         * lib/ptsname.c (__ptsname_r): Split...
6268         * lib/ptsname_r.c: ...into new file.
6269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6270         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6271         * modules/stdlib (Makefile.am): Substitute witnesses.
6272         * lib/stdlib.in.h (ptsname_r): Declare it.
6273         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6274         * MODULES.html.sh (Misc): Likewise.
6275         * modules/ptsname (Depends-on): Alter dependency.
6276         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6277
6278 2011-11-09  Jim Meyering  <meyering@redhat.com>
6279
6280         announce-gen: be more concise when there's only one URL+tarball
6281         * build-aux/announce-gen (get_tool_versions): When you distribute
6282         only one type of tarball, combine the first two "Here are..."
6283         sections and make the key-checking grammar independent of
6284         how many tarballs there are.
6285
6286 2011-11-09  Eric Blake  <eblake@redhat.com>
6287
6288         openpty: provide a stub on mingw
6289         * lib/pty.in.h (includes): Provide forward declarations.
6290         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6291
6292         raise: fix mingw handling of SIGPIPE
6293         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6294
6295 2011-11-08  Bruno Haible  <bruno@clisp.org>
6296
6297         More conditional dependencies.
6298         * modules/faccessat (Depends-on): Add conditions.
6299         * modules/fchmodat (Depends-on): Likewise.
6300         * modules/fchownat (Depends-on): Likewise.
6301         * modules/fstatat (Depends-on): Likewise.
6302         * modules/mkfifoat (Depends-on): Likewise.
6303         * modules/readlinkat (Depends-on): Likewise.
6304         * modules/symlinkat (Depends-on): Likewise.
6305         * modules/unlinkat (Depends-on): Likewise.
6306         * modules/utimensat (Depends-on): Likewise.
6307         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6308         * modules/linkat (Depends-on): Refine the conditions.
6309         * modules/renameat (Depends-on): Likewise.
6310
6311 2011-11-08  Bruno Haible  <bruno@clisp.org>
6312
6313         faccessat: Move AC_LIBOBJ invocation to module description.
6314         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6315         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6316         invocation from here...
6317         * modules/faccessat (configure.ac): ... to here. Invoke
6318         gl_PREREQ_FACCESSAT.
6319
6320 2011-11-08  Bruno Haible  <bruno@clisp.org>
6321
6322         faccessat: Simplify autoconf macro.
6323         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6324         gl_FUNC_EUIDACCESS.
6325
6326 2011-11-08  Bruno Haible  <bruno@clisp.org>
6327
6328         renameat: Fix dependencies.
6329         * modules/renameat (Depends-on): Add stdbool.
6330
6331 2011-11-08  Bruno Haible  <bruno@clisp.org>
6332
6333         mkfifoat: Fix module description.
6334         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6335         not gl_UNISTD_MODULE_INDICATOR.
6336
6337 2011-11-08  Bruno Haible  <bruno@clisp.org>
6338
6339         fstatat: Remove unused dependency.
6340         * modules/fstatat (Depends-on): Remove fstat.
6341
6342 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6343
6344         GNUmakefile: behave when Makefile is missing.
6345         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6346
6347 2011-11-08  Bruno Haible  <bruno@clisp.org>
6348
6349         openat: Conditionalize dependencies.
6350         * lib/openat.c: Reduce the scope of some #includes.
6351         * modules/openat (Depends-on): Add conditions.
6352
6353 2011-11-07  Jim Meyering  <meyering@redhat.com>
6354
6355         maint.mk: extract GPG key ID without using a temporary file
6356         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6357         without using a temporary file.  Based on a suggestion from Werner Koch
6358         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6359
6360 2011-11-07  Eric Blake  <eblake@redhat.com>
6361
6362         grantpt: fix typo
6363         * lib/stdlib.in.h (grantpt): Check correct function.
6364
6365         maint.mk: silence new syntax check
6366         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6367
6368 2011-11-06  Bruno Haible  <bruno@clisp.org>
6369
6370         Doc about floating-point and math API.
6371         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6372         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6373
6374 2011-11-06  Bruno Haible  <bruno@clisp.org>
6375
6376         stdalign tests: Skip the test when compiled by Sun C.
6377         * tests/test-stdalign.c (main): Skip the test on Sun C.
6378
6379 2011-11-06  Bruno Haible  <bruno@clisp.org>
6380
6381         ansi-c++-opt: Complete the 2011-06-05 change.
6382         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6383         does not support namespaces, set the variable to "no", not to ":".
6384
6385 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6386
6387         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6388
6389 2011-11-06  Bruno Haible  <bruno@clisp.org>
6390
6391         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6392         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6393         (minus_zerol) [HP-UX]: New macro.
6394         (unary_minus) [HP-UX]: New function.
6395         (copysignl) [HP-UX]: Use unary_minus function.
6396
6397 2011-11-06  Bruno Haible  <bruno@clisp.org>
6398
6399         ldexp, ldexpf, ldexpl: Enhance tests.
6400         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6401         and tests/test-ldexpl.c.
6402         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6403         LDEXP, MIN_EXP, MAX_EXP): New macros.
6404         Include test-ldexp.h.
6405         (main): Just call test_function.
6406         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6407         infinity.h, nan.h.
6408         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6409         MAX_EXP): New macros.
6410         Include test-ldexp.h.
6411         (x, y): Remove variables.
6412         (main): Just call test_function.
6413         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6414         infinity.h, nan.h.
6415         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6416         MAX_EXP): New macros.
6417         Include test-ldexp.h.
6418         (x, y): Remove variables.
6419         (main): Just call test_function.
6420         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6421         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6422         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6423         (Depends-on): Add isnand-nolibm, signbit, float.
6424         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6425         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6426         (Depends-on): Add isnanf-nolibm, signbit, float.
6427
6428 2011-11-06  Bruno Haible  <bruno@clisp.org>
6429
6430         math tests: Cosmetics.
6431         * tests/test-math-c++.cc: Reorder declarations.
6432
6433 2011-11-05  Bruno Haible  <bruno@clisp.org>
6434
6435         fma*: Simplify test.
6436         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6437         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6438
6439         Tests for module 'fmal'.
6440         * modules/fmal-tests: New file.
6441         * tests/test-fmal1.c: New file.
6442         * tests/test-fmal2.c: New file.
6443
6444         New module 'fmal'.
6445         * lib/math.in.h (fmal): New declaration.
6446         * lib/fmal.c: New file.
6447         * m4/fmal.m4: New file.
6448         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6449         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6450         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6451         REPLACE_FMAL.
6452         * modules/fmal: New file.
6453         * doc/posix-functions/fmal.texi: Mention the new module and the various
6454         bugs.
6455
6456         Tests for module 'fmaf'.
6457         * modules/fmaf-tests: New file.
6458         * tests/test-fmaf1.c: New file.
6459         * tests/test-fmaf2.c: New file.
6460
6461         New module 'fmaf'.
6462         * lib/math.in.h (fmaf): New declaration.
6463         * lib/fmaf.c: New file.
6464         * m4/fmaf.m4: New file.
6465         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6467         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6468         REPLACE_FMAF.
6469         * modules/fmaf: New file.
6470         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6471         bugs.
6472
6473         Tests for module 'fma'.
6474         * modules/fma-tests: New file.
6475         * tests/test-fma1.c: New file.
6476         * tests/test-fma1.h: New file.
6477         * tests/test-fma2.c: New file.
6478         * tests/test-fma2.h: New file.
6479
6480         New module 'fma'.
6481         * lib/math.in.h (fma): New declaration.
6482         * lib/fma.c: New file.
6483         * m4/fma.m4: New file.
6484         * m4/fegetround.m4: New file.
6485         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6487         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6488         REPLACE_FMA.
6489         * modules/fma: New file.
6490         * doc/posix-functions/fma.texi: Mention the new module and the various
6491         bugs.
6492
6493         Extend gl_MATHFUNC.
6494         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6495         Support 'void' as argument type.
6496         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6497
6498 2011-11-05  Jim Meyering  <meyering@redhat.com>
6499
6500         maint.mk: also prohibit inclusion of dirent.h without use
6501         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6502
6503 2011-11-05  Bruno Haible  <bruno@clisp.org>
6504
6505         ldexpl tests: Avoid test failure on MSVC 9.
6506         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6507         value. Needed in order to enforce the conversion from a value greater
6508         than LDBL_MAX to Infinity.
6509
6510 2011-11-05  Bruno Haible  <bruno@clisp.org>
6511
6512         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6513         * modules/at-internal: New file, extracted from modules/openat.
6514         * modules/openat-h: New file.
6515         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6516         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6517         * modules/openat (Description): Add reference to POSIX function.
6518         (Files): Remove lib/openat.h, lib/openat-proc.c.
6519         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6520         intprops, unistd.
6521         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6522         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6523         gl_FCNTL_MODULE_INDICATOR.
6524         (Include): Remove unistd.h, openat.h.
6525         * modules/areadlinkat (Files): Add lib/at-func.c.
6526         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6527         openat-die, openat-h, save-cwd.
6528         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6529         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6530         openat-die, openat-h, save-cwd, unistd.
6531         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6532         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6533         openat-h, save-cwd. Remove fcntl-h, openat.
6534         * modules/fchmodat (Files): Remove lib/openat.h.
6535         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6536         openat, stdbool, unistd.
6537         * modules/fchownat (Files): Remove lib/openat.h.
6538         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6539         openat, stdbool, sys_stat.
6540         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6541         lib/openat-proc.c.
6542         (Depends-on): Add at-internal.
6543         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6544         * modules/fstatat (Files): Remove lib/openat.h.
6545         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6546         stdbool, unistd.
6547         * modules/fts (Depends-on): Add openat-h.
6548         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6549         openat.
6550         * modules/mkdirat (Files): Remove lib/openat.h.
6551         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6552         openat, stdbool, sys_stat.
6553         * modules/mkfifoat (Files): Add lib/at-func.c.
6554         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6555         openat-h, save-cwd. Remove fcntl-h, openat.
6556         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6557         * modules/readlinkat (Files): Add lib/at-func.c.
6558         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6559         openat-h, save-cwd. Remove fcntl-h, openat.
6560         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6561         openat.
6562         * modules/selinux-at (Files): Add lib/at-func.c.
6563         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6564         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6565         * modules/symlinkat (Files): Add lib/at-func.c.
6566         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6567         openat-h, save-cwd. Remove fcntl-h, openat.
6568         * modules/unlinkat (Files): Remove lib/openat.h.
6569         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6570         stdbool.
6571         * modules/utimensat (Files): Add lib/at-func.c.
6572         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6573         openat-die, openat-h, save-cwd.
6574         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6575         * modules/fdutimensat-tests (Depends-on): Add openat.
6576         * modules/fstatat-tests (Depends-on): Add openat-h.
6577         * modules/readlinkat-tests (Depends-on): Add openat.
6578         * modules/symlinkat-tests (Depends-on): Add openat.
6579
6580 2011-11-05  Bruno Haible  <bruno@clisp.org>
6581
6582         openat: Include <stdbool.h>.
6583         * lib/openat.c: Include <stdbool.h>.
6584
6585 2011-11-04  Bruno Haible  <bruno@clisp.org>
6586
6587         fchownat, renameat, unlinkat: Fix dependencies.
6588         * modules/fchownat (Depends-on): Add fstatat.
6589         * modules/renameat (Depends-on): Likewise.
6590         * modules/unlinkat (Depends-on): Likewise.
6591
6592 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6593
6594         openat: remove direct dependency on dirent
6595         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6596         and hasn't been needed ever since fdopendir was split into its own
6597         module on 2009-08-31.
6598         * modules/openat (Depends-on): Remove dirent.
6599
6600 2011-11-04  Bruno Haible  <bruno@clisp.org>
6601
6602         renameat: Optimize code size.
6603         * modules/renameat (configure.ac): Don't compile at-func2.c if
6604         REPLACE_RENAMEAT is 1.
6605
6606 2011-11-04  Bruno Haible  <bruno@clisp.org>
6607
6608         openat tests: Fix file list.
6609         * modules/openat-tests (Files): Add tests/test-open.h.
6610
6611 2011-11-04  Bruno Haible  <bruno@clisp.org>
6612
6613         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6614         * modules/fchmodat (Depends-on): Add openat-die.
6615         * modules/fchownat (Depends-on): Likewise.
6616         * modules/linkat (Depends-on): Likewise.
6617         * modules/renameat (Depends-on): Likewise.
6618         * modules/openat (Depends-on): Add dirent.
6619
6620 2011-11-04  Jim Meyering  <meyering@redhat.com>
6621
6622         at-func*.c: fix comments
6623         * lib/at-func2.c: Correct/improve first-line comment.
6624         * lib/at-func.c: Correct grammar in first-line comment.
6625
6626 2011-11-04  Bruno Haible  <bruno@clisp.org>
6627
6628         New module 'mkdirat', split off from module 'openat'.
6629         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6630         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6631         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6632         * modules/mkdirat: New file, extracted from modules/openat.
6633         * modules/openat (Files): Remove lib/mkdirat.c.
6634         (Depends-on): Remove mkdir.
6635         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6636         (Include): Remove <sys/stat.h>.
6637         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6638         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6639         tests/test-mkdir.h.
6640         (Depends-on): Remove ignore-value.
6641         (Makefile.am): Remove rules for test-mkdirat.
6642         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6643         of module 'openat'.
6644         * NEWS: Mention the change.
6645
6646 2011-11-04  Bruno Haible  <bruno@clisp.org>
6647
6648         closedir: Avoid warning on mingw.
6649         * lib/closedir.c: Include <unistd.h>.
6650
6651 2011-11-04  Bruno Haible  <bruno@clisp.org>
6652
6653         New module 'fstatat', split off from module 'openat'.
6654         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6655         defined.
6656         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6657         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6658         gl_FUNC_FSTATAT.
6659         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6660         * modules/fstatat: New file, extracted from modules/openat.
6661         * modules/openat (Files): Remove lib/fstatat.c.
6662         (Depends-on): Remove lstat.
6663         (configure.ac): Remove AC_LIBOBJ of fstatat.
6664         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6665         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6666         tests/test-lstat.h, tests/test-stat.h.
6667         (Depends-on): Remove getcwd-lgpl.
6668         (Makefile.am): Remove rules for test-fstatat.
6669         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6670         of module 'openat'.
6671         * NEWS: Mention the change.
6672         * modules/getcwd (Depends-on): Add fstatat.
6673         * modules/linkat (Depends-on): Likewise.
6674         * modules/mkfifoat-tests (Depends-on): Likewise.
6675         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6676
6677 2011-11-03  Bruno Haible  <bruno@clisp.org>
6678
6679         New module 'unlinkat', split off from module 'openat'.
6680         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6681         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6682         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6683         * modules/unlinkat: New file, extracted from modules/openat. Correct
6684         the dependency conditions.
6685         * modules/openat (Files): Remove lib/unlinkat.c.
6686         (Depends-on): Remove rmdir, unlink.
6687         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6688         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6689         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6690         tests/test-rmdir.h, tests/test-unlink.h.
6691         (Depends-on): Remove unlinkdir.
6692         (Makefile.am): Remove rules for test-unlinkat.
6693         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6694         of module 'openat'.
6695         * NEWS: Mention the change.
6696         * modules/linkat-tests (Depends-on): Add unlinkat.
6697         * modules/mkfifoat-tests (Depends-on): Likewise.
6698         * modules/readlinkat-tests (Depends-on): Likewise.
6699
6700 2011-11-02  Bruno Haible  <bruno@clisp.org>
6701
6702         New module 'fchmodat', split off from module 'openat'.
6703         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6704         defined.
6705         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6707         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6708         * modules/fchmodat: New file, extracted from modules/openat.
6709         * modules/openat (Files): Remove lib/fchmodat.c.
6710         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6711         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6712         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6713         (Makefile.am): Remove rules for test-fchmodat.
6714         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6715         of module 'openat'.
6716         * NEWS: Mention the change.
6717
6718 2011-11-02  Jim Meyering  <meyering@redhat.com>
6719
6720         putenv: indent #definition of "environ" to placate cppi
6721         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6722
6723         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6724         Git logs are often treated as immutable, because editing them
6725         changes the SHA1 checksums of all descendants.  Thus, errors in
6726         git logs tend to stay there forever.  However, when we generate
6727         a ChangeLog file -- typically for distribution -- from that git log,
6728         we can actually make corrections in the generated file.  The key
6729         lies in recording in machine-readable/applicable form the desired
6730         corrections.  See --help for description and an example.
6731         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6732         (usage): Describe it; alphabetize option descriptions.
6733         (main): Honor the new option, carefully.
6734
6735 2011-11-01  Jim Meyering  <meyering@redhat.com>
6736
6737         gitlog-to-changelog: avoid an infloop
6738         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6739         that ends up being empty.
6740
6741 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6742
6743         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6744         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6745         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6746         contains (possibly-quoted) backslashes.  This should avoid
6747         all-too-common shell bugs if COMPLICATED contains backslashes in
6748         the "wrong" places.  Reported by David Evans in
6749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6750         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6751         because we want ASCII ranges.  Is there some reason we don't use
6752         the C locale everywhere in this script?
6753         (func_module, top level): Avoid unwanted pathname expansion when
6754         $repo_url_prefix or $repo_url_suffix_repl contain shell
6755         metacharacters like '?' and '*'.
6756
6757 2011-11-01  Bruno Haible  <bruno@clisp.org>
6758
6759         fchownat: Improve description.
6760         * modules/fchownat (Description): Add link to function.
6761
6762 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6763
6764         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6765         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6767         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6768
6769 2011-11-01  Bruno Haible  <bruno@clisp.org>
6770
6771         alignof: Avoid collision with stdalign module.
6772         * lib/alignof.h (alignof): Remove macro.
6773         * NEWS: Mention the change.
6774         Reported by Paul Eggert.
6775
6776 2011-11-01  Bruno Haible  <bruno@clisp.org>
6777
6778         New module 'fchownat', split off from module 'openat'.
6779         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6780         defined.
6781         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6782         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6783         invoke gl_FUNC_FCHOWNAT.
6784         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6785         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6786         * modules/fchownat: New file, extracted from modules/openat.
6787         * modules/openat (Files): Remove lib/fchownat.c.
6788         (Depends-on): Remove lchown.
6789         (configure.ac): Remove AC_LIBOBJ of fchownat.
6790         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6791         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6792         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6793         (Depends-on): Remove mgetgroups, usleep, stat-time.
6794         (configure.ac): Remove test for getegid.
6795         (Makefile.am): Remove rules for test-fchownat.
6796         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6797         of module 'openat'.
6798         * NEWS: Mention the change.
6799
6800 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6801
6802         stdalign: port better to MSVC and to Sun C 5.11
6803         This fixes some of the problems reported by Bruno Haible in
6804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6805         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6806         shortcomings of MSVC and of Sun C 5.11.
6807         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6808         around __declspec arg.
6809         * modules/stdalign-tests (Files): Add tests/macros.h.
6810         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6811         Include macros.h, for ASSERT.
6812         (DECLARE_ALIGNED): Remove.
6813         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6814         to catch bug), and to 1 if not (simplifies the rest of the code).
6815         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6816         (CHECK_AUTO): Remove.
6817         (CHECK_ALIGNED): Check only the alignment of the static vars,
6818         since auto var alignment isn't supported by Sun C 5.11.
6819         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6820         ASSERT failures are easier to diagnose.
6821
6822 2011-10-31  Bruno Haible  <bruno@clisp.org>
6823
6824         doc about some IRIX 5.3 problems.
6825         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6826         on IRIX 5.3.
6827         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6828         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6829         5.3.
6830         * doc/posix-functions/grantpt.texi: Likewise.
6831         * doc/posix-functions/unlockpt.texi: Likewise.
6832         * doc/posix-functions/lgamma.texi: Likewise.
6833         * doc/posix-functions/nextafter.texi: Likewise.
6834         * doc/posix-functions/remainder.texi: Likewise.
6835         * doc/posix-functions/select.texi: Mention misplaced declaration on
6836         IRIX 5.3.
6837         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6838
6839 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6840
6841         gitlog-to-changelog: fix git-log invocation.
6842         git-log mishandles date strings before 1970-01-01 UTC, and there is
6843         no use to specify --since=1970-01-01 by default anyway.
6844         * build-aux/gitlog-to-changelog: By default, when no --since option
6845         was given, do not specify explicit --since option to git-log.
6846
6847 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6848
6849         gitlog-to-changelog: new option --append-dot.
6850         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6851         first non-blank line of each commit message terminated with a dot.
6852
6853 2011-10-30  Bruno Haible  <bruno@clisp.org>
6854
6855         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6856         * lib/ffsl.h: Include <config.h>.
6857         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6858
6859 2011-10-30  Jim Meyering  <meyering@redhat.com>
6860
6861         GNUmakefile: reenable "make syntax-check" for most projects
6862         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6863         build-aux variable", "syntax-check" would do nothing but succeed with
6864         the "No version control files detected..." diagnostic (unless you
6865         happened to override _build-aux via cfg.mk).
6866         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6867         to precede inclusion of maint.mk.  Otherwise, these variables would
6868         be used undefined in any project that does not override the default.
6869
6870 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6871
6872         gitlog-to-changelog: treat a message with only blank lines as empty.
6873         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6874         trailing blank lines before the code that issues a warning about an
6875         empty commit message.
6876
6877 2011-10-30  Jim Meyering  <meyering@redhat.com>
6878
6879         test-parse-datetime.c: avoid new DST-related false positive test failure
6880         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6881         based on the time/date we'll convert, not the current time.
6882         Otherwise, the moment we cross a DST boundary like today's in
6883         Europe, (CEST to CET), that offset ends up being one hour off.
6884
6885 2011-10-27  Bruno Haible  <bruno@clisp.org>
6886
6887         fstat: Tweak documentation.
6888         * modules/fstat (Description): More precise description.
6889
6890 2011-10-27  Bruno Haible  <bruno@clisp.org>
6891
6892         Update documentation regarding 'largefile' module.
6893         * doc/posix-functions/fstat.texi: Tweak wording.
6894         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6895         problems with huge directories and/or small ino_t types.
6896         * doc/posix-functions/readdir.texi: Likewise.
6897         * doc/posix-functions/rewinddir.texi: Likewise.
6898
6899 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6900
6901         maint.mk: don't maintain a second build-aux variable.
6902         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6903         depends on GNUmakefile, which already maintains a cfg.mk
6904         overridable $(_build-aux) for projects with a non-standard
6905         build-aux directory location, although without the $(srcdir)
6906         prefix.  Use that variable consistently instead of introducing a
6907         second one.  Adjust all call sites.
6908
6909 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6910
6911         Add stdalign module and use it in other modules.
6912         This is based on a previous proposal by Bruno Haible
6913         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6914
6915         stdalign: new module
6916         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6917         * modules/stdalign: New files.
6918         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6919         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6920
6921         stdalign-tests: new module
6922         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6923
6924         argp: use stdalign
6925         * lib/argp-parse.c: Include <stdalign.h>.
6926         (alignof): Remove.
6927         * modules/argp (Depends-on): Add stdalign.
6928
6929         crypto libraries: use stdalign
6930         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6931         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6932         Do not include <stdlib.h> twice, in md4.c.
6933         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6934         because we are accessing a pointer's bit-pattern, not a size.
6935         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6936         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6937         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6938         * modules/crypto/sha512: Likewise.
6939
6940         sys_socket: use stdalign, not alignof
6941         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6942         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6943
6944 2011-10-27  Bruno Haible  <bruno@clisp.org>
6945
6946         raise test: Avoid a test failure on Linux/MIPS.
6947         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6948         because 99 is a valid signal on Linux/MIPS.
6949
6950 2011-10-27  Bruno Haible  <bruno@clisp.org>
6951
6952         nonblocking tests: Fix test failure on Linux/MIPS.
6953         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6954         Set to 270000.
6955
6956 2011-10-27  Bruno Haible  <bruno@clisp.org>
6957
6958         utimensat: Work around problem on Linux/hppa.
6959         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6960         values.
6961         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6962
6963 2011-10-25  Jim Meyering  <meyering@redhat.com>
6964
6965         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6966         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6967         after symbols like NULL, size_t, etc.
6968         Reported by Alfred M. Szmidt.
6969
6970         maint.mk: exempt ENODATA from a syntax-check rule
6971         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6972         from the sc_prohibit_always-defined_macros syntax-check rule.
6973         Add a comment.  See this for more details:
6974         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6975
6976 2011-10-23  Jim Meyering  <meyering@redhat.com>
6977
6978         fts: close parent dir FD before returning from post-traversal fts_read
6979         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6980         unlink A, even though an FD open on A remained.  This is suboptimal
6981         (holding a file descriptor open longer than needed), but otherwise not
6982         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6983         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6984         that represents a real problem: it causes the removal of A to fail
6985         with e.g., "rm: cannot remove `A': Device or resource busy"
6986
6987         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6988         directory file descriptors.  After completing the final, FTS_DP,
6989         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6990         cache, but then proceeded to add a new FD to it via the subsequent
6991         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6992         final file descriptor would be closed only via fts_close's call to
6993         fd_ring_clear.  Now, it is usually closed earlier, via the final
6994         FTS_DP-returning fts_read call.
6995         * lib/fts.c (restore_initial_cwd): New function, converted from
6996         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6997         Update callers.
6998         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6999         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7000
7001 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7002             Bruno Haible  <bruno@clisp.org>
7003             Jim Meyering  <jim@meyering.net>
7004
7005         readme-release: improve safety of release prep instructions.
7006         * README-release: Don't git pull all branches when only master
7007         is needed for the release process.
7008         Run make maintainer-clean before changing trees and merging.
7009         Don't try to run ./configure right after git pull in case files
7010         that influence the bootstrap process have changed, move the
7011         ./configure step to after running ./bootstrap.
7012         Don't bootstrap "one last time"... it's the first time!
7013
7014 2011-10-22  Bruno Haible  <bruno@clisp.org>
7015
7016         errno, strerror-override: Support for MSVC 10.
7017         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7018         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7019         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7020         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7021         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7022         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7023         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7024         Assign values compatible with MSVC 10.
7025         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7026         New macros.
7027         (GNULIB_defined_EWINSOCK): New macro.
7028         * lib/strerror-override.c (strerror_override): Update accordingly.
7029         * lib/strerror-override.h: Likewise.
7030         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7031         longer equal to the corresponding errno value.
7032         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7033
7034 2011-10-22  Bruno Haible  <bruno@clisp.org>
7035
7036         perror: Recognize when test program crashes.
7037         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7038         strerror, set gl_cv_func_perror_works to no.
7039         Reported by Daniel Richard G. <skunk@iskunk.org>.
7040
7041         perror: Fix indentation.
7042         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7043
7044 2011-10-22  Bruno Haible  <bruno@clisp.org>
7045
7046         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7047         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7048         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7049         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7050         functions, not as a macro.
7051         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7052         macros.
7053         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7054         absence of macro.
7055         Suggested by Eric Blake.
7056         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7057
7058 2011-10-21  Bruno Haible  <bruno@clisp.org>
7059
7060         relocatable-prog-wrapper: Don't leave object files behind.
7061         * build-aux/install-reloc: Re-synchronize list of .o files to be
7062         removed with list of compilation units.
7063
7064 2011-10-20  Bruno Haible  <bruno@clisp.org>
7065
7066         openpty, posix_openpt: Remove code duplication.
7067         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7068         * lib/openpty.c: Include <stdlib.h>.
7069         (openpty): Use posix_openpt on all platforms except IRIX.
7070         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7071
7072 2011-10-20  Bruno Haible  <bruno@clisp.org>
7073
7074         unlockpt: Detect invalid argument.
7075         * lib/unlockpt.c: Include <fcntl.h>.
7076         (unlockpt): Check whether fd is valid, using fcntl().
7077         * modules/unlockpt (Depends-on): Add fcntl-h.
7078
7079 2011-10-20  Bruno Haible  <bruno@clisp.org>
7080
7081         openpty: Avoid compilation error on AIX 6.1.
7082         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7083
7084 2011-10-20  Bruno Haible  <bruno@clisp.org>
7085
7086         posix_openpt: Support for OpenBSD.
7087         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7088         (posix_openpt) [OpenBSD]: New code.
7089         * lib/grantpt.c: Include <fcntl.h>.
7090         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7091         * modules/grantpt (Depends-on): Add fcntl-h.
7092
7093 2011-10-20  Bruno Haible  <bruno@clisp.org>
7094
7095         posix_openpt test: Coding style.
7096         * tests/test-posix_openpt.c: Use GNU coding style.
7097
7098 2011-10-20  Bruno Haible  <bruno@clisp.org>
7099
7100         grantpt: Support --avoid=pt_chown.
7101         * modules/grantpt (Files): Add lib/pty-private.h.
7102
7103 2011-10-20  Bruno Haible  <bruno@clisp.org>
7104
7105         posix_openpt: Fix autoconf macro.
7106         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7107         unneeded check for _getpty.
7108
7109 2011-10-20  Bruno Haible  <bruno@clisp.org>
7110
7111         openpty: Update comments.
7112         * lib/openpty.c: Add comments about Minix.
7113
7114 2011-10-19  Eric Blake  <eblake@redhat.com>
7115
7116         openpty: relax license
7117         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7118
7119         pt_chown: use configmake to simplify build
7120         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7121
7122         ptsname and others: relax license
7123         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7124         * modules/unlockpt (License): Likewise.
7125         * modules/pt_chown (License): Likewise.
7126         * modules/ptsname (License): Likewise.
7127         * modules/ttyname_r (License): Likewise.
7128
7129 2011-10-19  Jim Meyering  <meyering@redhat.com>
7130
7131         posix_openpt: remove spurious #endif
7132         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7133
7134 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7135
7136         maint.mk: Respect $(build_aux) in web-manual rule.
7137         * top/maint.mk (web-manual): Find gen-announce script in user's
7138         $(build_aux) directory instead of hard-coding 'build-aux'.
7139
7140 2011-10-19  Bruno Haible  <bruno@clisp.org>
7141
7142         posix_openpt: Fix compilation error.
7143         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7144         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7145         Mention the openpty module as an alternative.
7146
7147 2011-10-19  Bruno Haible  <bruno@clisp.org>
7148
7149         Support for old NeXTstep 3.3 frexp().
7150         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7151         execution time of the test to 5 seconds.
7152         Reported by Daniel Richard G. <skunk@iskunk.org>.
7153
7154 2011-10-19  Bruno Haible  <bruno@clisp.org>
7155
7156         Support for old NeXTstep 3.3 sed.
7157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7158         part, use /.../, not \|...|. Escape periods in the header file name.
7159         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7160         Reported by Daniel Richard G. <skunk@iskunk.org>.
7161
7162 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7163
7164         Support for old NeXTstep 3.3 gcc.
7165         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7166         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7167         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7168         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7169         * lib/regex.h (_Restrict_arr_): Likewise.
7170         * lib/regex_internal.h (re_token_t): Likewise.
7171         * lib/regexec.c (check_node_accept_bytes): Likewise.
7172         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7173
7174 2011-10-18  Eric Blake  <eblake@redhat.com>
7175
7176         posix_openpt: new module
7177         * modules/posix_openpt: New module.
7178         * m4/posix_openpt.m4: New file.
7179         * lib/posix_openpt.c: Likewise.
7180         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7181         (gl_STDLIB_H_DEFAULTS): Set defaults.
7182         * modules/stdlib (Makefile.am): Substitute macros.
7183         * lib/stdlib.in.h (posix_openpt): Declare.
7184         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7185         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7186         * modules/posix_openpt-tests: New test module.
7187         * tests/test-posix_openpt.c: New test.
7188
7189 2011-10-15  Bruno Haible  <bruno@clisp.org>
7190
7191         xstrtoll: Fix compilation failure.
7192         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7193         from lib/strtol.c.
7194         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7195         some platforms.
7196         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7197
7198 2011-10-15  Bruno Haible  <bruno@clisp.org>
7199
7200         vasnprintf: Optimize bit search operation.
7201         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7202         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7203         gl_DOUBLE_EXPONENT_LOCATION.
7204         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7205         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7206         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7207         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7208         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7209         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7210         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7211         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7212         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7213
7214 2011-10-15  Bruno Haible  <bruno@clisp.org>
7215
7216         vasnprintf: Fix comments.
7217         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7218
7219 2011-10-14  Bruno Haible  <bruno@clisp.org>
7220
7221         Tests for module 'integer_length_ll'.
7222         * modules/integer_length_ll-tests: New file.
7223         * tests/test-integer_length_ll.c: New file.
7224
7225         New module 'integer_length_ll'.
7226         * lib/integer_length_ll.c: New file.
7227         * modules/integer_length_ll: New file.
7228
7229 2011-10-14  Bruno Haible  <bruno@clisp.org>
7230
7231         Tests for module 'integer_length_l'.
7232         * modules/integer_length_l-tests: New file.
7233         * tests/test-integer_length_l.c: New file.
7234
7235         New module 'integer_length_l'.
7236         * lib/integer_length_l.c: New file.
7237         * modules/integer_length_l: New file.
7238
7239 2011-10-14  Bruno Haible  <bruno@clisp.org>
7240
7241         Tests for module 'integer_length'.
7242         * modules/integer_length-tests: New file.
7243         * tests/test-integer_length.c: New file.
7244
7245         New module 'integer_length'.
7246         * lib/integer_length.h: New file.
7247         * lib/integer_length.c: New file.
7248         * modules/integer_length: New file.
7249
7250 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7251
7252         popen: Fix dependency conditions.
7253         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7254
7255 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7256
7257         perror: Fix autoconf test.
7258         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7259         <stdlib.h> and <string.h>.
7260
7261 2011-10-14  Bruno Haible  <bruno@clisp.org>
7262
7263         ffsl: Optimize on 64-bit platforms.
7264         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7265         unrolling.
7266
7267 2011-10-13  Bruno Haible  <bruno@clisp.org>
7268
7269         ffsl: Optimize on 32-bit platforms.
7270         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7271         use ffs() without a loop.
7272
7273         ffsl, ffsll: Optimize for GCC.
7274         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7275         * lib/ffsl.c (GCC_BUILTIN): New macro.
7276         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7277
7278 2011-10-13  Bruno Haible  <bruno@clisp.org>
7279
7280         ffs, bcopy, memset: Support symbol renaming via config.h.
7281         * lib/ffs.c: Include <config.h>.
7282         * lib/bcopy.c: Likewise.
7283         * lib/memset.c: Likewise.
7284
7285 2011-10-10  Bruno Haible  <bruno@clisp.org>
7286
7287         atanl: Simplify for platforms where 'long double' == 'double'.
7288         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7289         alternative implementation.
7290         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7291         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7292         * modules/atanl (Depends-on): Add atan. Update conditions.
7293
7294 2011-10-10  Bruno Haible  <bruno@clisp.org>
7295
7296         acosl: Simplify for platforms where 'long double' == 'double'.
7297         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7298         alternative implementation.
7299         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7300         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7301         * modules/acosl (Depends-on): Add acos. Update conditions.
7302
7303 2011-10-10  Bruno Haible  <bruno@clisp.org>
7304
7305         asinl: Simplify for platforms where 'long double' == 'double'.
7306         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7307         alternative implementation.
7308         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7309         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7310         * modules/asinl (Depends-on): Add asin. Update conditions.
7311
7312 2011-10-10  Bruno Haible  <bruno@clisp.org>
7313
7314         tanl: Simplify for platforms where 'long double' == 'double'.
7315         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7316         implementation.
7317         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7318         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7319         * modules/tanl (Depends-on): Add tan. Update conditions.
7320         (configure.ac): Don't compile trigl.c if
7321         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7322
7323 2011-10-10  Bruno Haible  <bruno@clisp.org>
7324
7325         cosl: Simplify for platforms where 'long double' == 'double'.
7326         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7327         implementation.
7328         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7329         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7330         * modules/cosl (Depends-on): Add cos. Update conditions.
7331         (configure.ac): Don't compile sincosl.c and trigl.c if
7332         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7333
7334 2011-10-10  Bruno Haible  <bruno@clisp.org>
7335
7336         sinl: Simplify for platforms where 'long double' == 'double'.
7337         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7338         implementation.
7339         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7340         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7341         * modules/sinl (Depends-on): Add sin. Update conditions.
7342         (configure.ac): Don't compile sincosl.c and trigl.c if
7343         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7344
7345 2011-10-10  Bruno Haible  <bruno@clisp.org>
7346
7347         logl: Simplify for platforms where 'long double' == 'double'.
7348         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7349         implementation.
7350         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7351         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7352         * modules/logl (Depends-on): Add log. Update conditions.
7353
7354 2011-10-10  Bruno Haible  <bruno@clisp.org>
7355
7356         expl: Simplify for platforms where 'long double' == 'double'.
7357         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7358         implementation.
7359         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7360         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7361         * modules/expl (Depends-on): Add exp. Update conditions.
7362
7363 2011-10-10  Bruno Haible  <bruno@clisp.org>
7364
7365         sqrtl: Simplify for platforms where 'long double' == 'double'.
7366         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7367         alternative implementation.
7368         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7369         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7370         * modules/sqrtl (Depends-on): Update conditions.
7371
7372 2011-10-10  Bruno Haible  <bruno@clisp.org>
7373
7374         ldexpl: Simplify for platforms where 'long double' == 'double'.
7375         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7376         alternative implementation.
7377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7378         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7379         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7380
7381 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7382
7383         ffsll: set correct witness
7384         * modules/ffsll (configure.ac): Fix typo.
7385
7386 2011-10-10  Bruno Haible  <bruno@clisp.org>
7387
7388         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7389         * lib/printf-frexpl.c: Include <config.h>.
7390         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7391         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7392         second time.
7393         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7394         gl_LONG_DOUBLE_VS_DOUBLE.
7395         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7396         conditions.
7397
7398 2011-10-10  Bruno Haible  <bruno@clisp.org>
7399
7400         frexpl: Simplify for platforms where 'long double' == 'double'.
7401         * lib/frexpl.c: Include <config.h>.
7402         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7403         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7404         time.
7405         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7406         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7407         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7408         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7409         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7410         conditions.
7411
7412 2011-10-10  Jim Meyering  <meyering@redhat.com>
7413
7414         test-renameat: don't leave behind a temporary file
7415         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7416           ERROR: files left in build directory after distclean:
7417           ./gltests/test-renameat.too
7418           make[1]: *** [distcleancheck] Error 1
7419         Reported by Tom G. Christensen.
7420
7421 2011-10-09  Bruno Haible  <bruno@clisp.org>
7422
7423         rint: Determine RINT_LIBM correctly on AIX 7.
7424         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7425         directly, not only through a function pointer. Also accept an optional
7426         4th argument with extra code.
7427         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7428         rintf() call by gcc when optimizing.
7429
7430         mathfunc.m4: Refactor.
7431         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7432         m4 variable.
7433
7434 2011-10-09  Bruno Haible  <bruno@clisp.org>
7435
7436         rintl: Simplify for platforms where 'long double' == 'double'.
7437         * lib/rintl.c: Include <config.h>.
7438         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7439         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7440         time.
7441         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7442         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7443         * modules/rintl (Depends-on): Add rint. Update conditions.
7444
7445 2011-10-09  Bruno Haible  <bruno@clisp.org>
7446
7447         roundl: Simplify for platforms where 'long double' == 'double'.
7448         * lib/roundl.c: Include <config.h>.
7449         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7450         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7451         time.
7452         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7453         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7454         * modules/roundl (Depends-on): Add round. Update conditions.
7455
7456 2011-10-09  Bruno Haible  <bruno@clisp.org>
7457
7458         truncl: Simplify for platforms where 'long double' == 'double'.
7459         * lib/truncl.c: Include <config.h>.
7460         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7461         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7462         time.
7463         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7464         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7465         * modules/truncl (Depends-on): Add trunc. Update conditions.
7466
7467 2011-10-09  Bruno Haible  <bruno@clisp.org>
7468
7469         ceill: Simplify for platforms where 'long double' == 'double'.
7470         * lib/ceill.c: Include <config.h>.
7471         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7472         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7473         time.
7474         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7475         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7476         * modules/ceill (Depends-on): Add ceil. Update conditions.
7477
7478 2011-10-09  Bruno Haible  <bruno@clisp.org>
7479
7480         floorl: Simplify for platforms where 'long double' == 'double'.
7481         * lib/floorl.c: Include <config.h>.
7482         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7483         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7484         time.
7485         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7486         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7487         * modules/floorl (Depends-on): Add floor. Update conditions.
7488
7489 2011-10-09  Bruno Haible  <bruno@clisp.org>
7490
7491         rint: Fix ordering constraints.
7492         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7493         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7494         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7495
7496 2011-10-09  Bruno Haible  <bruno@clisp.org>
7497
7498         copysignl: Simplify for platforms where 'long double' == 'double'.
7499         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7500         alternative.
7501         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7502         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7503         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7504
7505 2011-10-09  Bruno Haible  <bruno@clisp.org>
7506
7507         Tests for module 'rintl'.
7508         * modules/rintl-tests: New file.
7509         * tests/test-rintl.c: New file.
7510
7511         New module 'rintl'.
7512         * lib/math.in.h (rintl): New declaration.
7513         * lib/rintl.c: New file.
7514         * m4/rintl.m4: New file.
7515         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7517         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7518         * modules/rintl: New file.
7519         * tests/test-math-c++.cc: Check the declaration of rintl.
7520         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7521         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7522         * doc/posix-functions/rintl.texi: Mention the new module.
7523
7524 2011-10-09  Bruno Haible  <bruno@clisp.org>
7525
7526         Tests for module 'rintf'.
7527         * modules/rintf-tests: New file.
7528         * tests/test-rintf.c: New file.
7529
7530         New module 'rintf'.
7531         * lib/math.in.h (rintf): New declaration.
7532         * lib/rintf.c: New file.
7533         * m4/rintf.m4: New file.
7534         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7536         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7537         * modules/rintf: New file.
7538         * tests/test-math-c++.cc: Check the declaration of rintf.
7539         * doc/posix-functions/rintf.texi: Mention the new module.
7540
7541 2011-10-09  Bruno Haible  <bruno@clisp.org>
7542
7543         rint: Support for MSVC.
7544         * lib/math.in.h (rint): New declaration.
7545         * lib/rint.c: New file.
7546         * m4/rint.m4: New file.
7547         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7549         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7550         * modules/rint (Description): Fix.
7551         (Files): Add lib/rint.c, m4/rint.m4.
7552         (Depends-on): Add math.
7553         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7554         gl_MATH_MODULE_INDICATOR.
7555         * tests/test-math-c++.cc: Check the declaration of rint.
7556         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7557         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7558         * doc/posix-functions/rint.texi: Mention the replacement provided by
7559         the module.
7560
7561         rint tests: More tests.
7562         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7563         minus-zero.h, infinity.h, nan.h.
7564         (main): Skip the test if the current rounding mode is not standard. Add
7565         tests for negative numbers, minus zero, infinity, NaN.
7566         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7567         tests/nan.h.
7568         (Depends-on): Add isnand-nolibm.
7569
7570 2011-10-09  Bruno Haible  <bruno@clisp.org>
7571
7572         Tests for module 'copysignl'.
7573         * modules/copysignl-tests: New file.
7574         * tests/test-copysignl.c: New file.
7575
7576         New module 'copysignl'.
7577         * lib/math.in.h (copysignl): New declaration.
7578         * lib/copysignl.c: New file.
7579         * m4/copysignl.m4: New file.
7580         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7582         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7583         HAVE_COPYSIGNL.
7584         * modules/copysignl: New file.
7585         * tests/test-math-c++.cc: Check the declaration of copysignl.
7586         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7587         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7588         * doc/posix-functions/copysignl.texi: Mention the new module.
7589
7590 2011-10-09  Bruno Haible  <bruno@clisp.org>
7591
7592         Tests for module 'copysignf'.
7593         * modules/copysignf-tests: New file.
7594         * tests/test-copysignf.c: New file.
7595
7596         New module 'copysignf'.
7597         * lib/math.in.h (copysignf): New declaration.
7598         * lib/copysignf.c: New file.
7599         * m4/copysignf.m4: New file.
7600         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7602         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7603         HAVE_COPYSIGNF.
7604         * modules/copysignf: New file.
7605         * tests/test-math-c++.cc: Check the declaration of copysignf.
7606         * doc/posix-functions/copysignf.texi: Mention the new module.
7607
7608 2011-10-09  Bruno Haible  <bruno@clisp.org>
7609
7610         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7611         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7612         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7613         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7614         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7615         gl_SIGNAL_H_DEFAULTS.
7616
7617 2011-10-09  Bruno Haible  <bruno@clisp.org>
7618
7619         poll: Make macro safer.
7620         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7621         ac_cv_header_poll_h is not set.
7622
7623 2011-10-09  Bruno Haible  <bruno@clisp.org>
7624
7625         copysign: Provide replacement.
7626         * lib/math.in.h (copysign): New declaration.
7627         * lib/copysign.c: New file.
7628         * m4/copysign.m4: New file.
7629         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7631         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7632         HAVE_COPYSIGN.
7633         * modules/copysign (Description): Clarify.
7634         (Files): Add lib/copysign.c, m4/copysign.m4.
7635         (Depends-on): Add math, signbit.
7636         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7637         gl_MATH_MODULE_INDICATOR.
7638         * tests/test-math-c++.cc: Check the declaration of copysign.
7639         * doc/posix-functions/copysign.texi: Mention the effects of the module
7640         on Minix and MSVC.
7641
7642 2011-10-09  Bruno Haible  <bruno@clisp.org>
7643
7644         isinf: Ensure macro on AIX 5.1.
7645         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7646         macro.
7647         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7648
7649 2011-10-09  Bruno Haible  <bruno@clisp.org>
7650
7651         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7652         * modules/snprintf-posix-tests (configure.ac): Require
7653         gl_LONG_DOUBLE_VS_DOUBLE.
7654         * modules/sprintf-posix-tests (configure.ac): Likewise.
7655         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7656         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7657         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7658         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7659         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7660         tests on platforms where 'long double' is the same as 'double'.
7661         * tests/test-sprintf-posix.h (test_function): Likewise.
7662         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7663         * tests/test-vasprintf-posix.c (test_function): Likewise.
7664
7665         *printf: Fix for platforms where 'long double' == 'double'.
7666         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7667         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7668         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7669         * modules/fprintf-posix (Files): Likewise.
7670         * modules/obstack-printf-posix (Files): Likewise.
7671         * modules/snprintf-posix (Files): Likewise.
7672         * modules/sprintf-posix (Files): Likewise.
7673         * modules/vasnprintf (Files): Likewise.
7674         * modules/vasnprintf-posix (Files): Likewise.
7675         * modules/vasprintf-posix (Files): Likewise.
7676         * modules/vdprintf-posix (Files): Likewise.
7677         * modules/vfprintf-posix (Files): Likewise.
7678         * modules/vsnprintf-posix (Files): Likewise.
7679         * modules/vsprintf-posix (Files): Likewise.
7680         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7681         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7682         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7683         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7684         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7685         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7686         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7687
7688         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7689         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7690         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7691         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7692         'long double'.
7693         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7694
7695         isinf: Fix for platforms where 'long double' == 'double'.
7696         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7697         Don't blindly assume 80-bit 'long double'.
7698
7699         isfinite: Fix for platforms where 'long double' == 'double'.
7700         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7701         Don't blindly assume 80-bit 'long double'.
7702
7703         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7704         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7705         * modules/isfinite-tests (configure.ac): Require
7706         gl_LONG_DOUBLE_VS_DOUBLE.
7707         * modules/isinf-tests (configure.ac): Likewise.
7708         * modules/isnan-tests (configure.ac): Likewise.
7709         * modules/isnanl-tests (configure.ac): Likewise.
7710         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7711         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7712         tests on platforms where 'long double' is the same as 'double'.
7713         * tests/test-isinf.c (test_isinfl): Likewise.
7714         * tests/test-isnan.c (test_long_double): Likewise.
7715         * tests/test-isnanl.h (main): Likewise.
7716
7717 2011-10-08  Bruno Haible  <bruno@clisp.org>
7718
7719         Tests for module 'tanhf'.
7720         * modules/tanhf-tests: New file.
7721         * tests/test-tanhf.c: New file.
7722
7723         New module 'tanhf'.
7724         * lib/math.in.h (tanhf): New declaration.
7725         * lib/tanhf.c: New file.
7726         * m4/tanhf.m4: New file.
7727         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7729         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7730         * modules/tanhf: New file.
7731         * tests/test-math-c++.cc: Check the declaration of tanhf.
7732         * doc/posix-functions/tanhf.texi: Mention the new module.
7733
7734         tanh: Use a .m4 file.
7735         * m4/tanh.m4: New file.
7736         * modules/tanh (Files): Add it.
7737         (configure.ac): Just invoke gl_FUNC_TANH.
7738
7739 2011-10-08  Bruno Haible  <bruno@clisp.org>
7740
7741         Tests for module 'coshf'.
7742         * modules/coshf-tests: New file.
7743         * tests/test-coshf.c: New file.
7744
7745         New module 'coshf'.
7746         * lib/math.in.h (coshf): New declaration.
7747         * lib/coshf.c: New file.
7748         * m4/coshf.m4: New file.
7749         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7751         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7752         * modules/coshf: New file.
7753         * tests/test-math-c++.cc: Check the declaration of coshf.
7754         * doc/posix-functions/coshf.texi: Mention the new module.
7755
7756         cosh: Use a .m4 file.
7757         * m4/cosh.m4: New file.
7758         * modules/cosh (Files): Add it.
7759         (configure.ac): Just invoke gl_FUNC_COSH.
7760
7761 2011-10-08  Bruno Haible  <bruno@clisp.org>
7762
7763         Tests for module 'sinhf'.
7764         * modules/sinhf-tests: New file.
7765         * tests/test-sinhf.c: New file.
7766
7767         New module 'sinhf'.
7768         * lib/math.in.h (sinhf): New declaration.
7769         * lib/sinhf.c: New file.
7770         * m4/sinhf.m4: New file.
7771         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7773         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7774         * modules/sinhf: New file.
7775         * tests/test-math-c++.cc: Check the declaration of sinhf.
7776         * doc/posix-functions/sinhf.texi: Mention the new module.
7777
7778         sinh: Use a .m4 file.
7779         * m4/sinh.m4: New file.
7780         * modules/sinh (Files): Add it.
7781         (configure.ac): Just invoke gl_FUNC_SINH.
7782
7783 2011-10-08  Bruno Haible  <bruno@clisp.org>
7784
7785         Tests for module 'atan2f'.
7786         * modules/atan2f-tests: New file.
7787         * tests/test-atan2f.c: New file.
7788
7789         New module 'atan2f'.
7790         * lib/math.in.h (atan2f): New declaration.
7791         * lib/atan2f.c: New file.
7792         * m4/atan2f.m4: New file.
7793         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7795         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7796         * modules/atan2f: New file.
7797         * tests/test-math-c++.cc: Check the declaration of atan2f.
7798         * doc/posix-functions/atan2f.texi: Mention the new module.
7799
7800         atan2: Use a .m4 file.
7801         * m4/atan2.m4: New file.
7802         * modules/atan2 (Files): Add it.
7803         (configure.ac): Just invoke gl_FUNC_ATAN2.
7804
7805 2011-10-08  Bruno Haible  <bruno@clisp.org>
7806
7807         Tests for module 'atanf'.
7808         * modules/atanf-tests: New file.
7809         * tests/test-atanf.c: New file.
7810
7811         New module 'atanf'.
7812         * lib/math.in.h (atanf): New declaration.
7813         * lib/atanf.c: New file.
7814         * m4/atanf.m4: New file.
7815         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7817         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7818         * modules/atanf: New file.
7819         * tests/test-math-c++.cc: Check the declaration of atanf.
7820         * doc/posix-functions/atanf.texi: Mention the new module.
7821
7822         atan: Use a .m4 file.
7823         * m4/atan.m4: New file.
7824         * modules/atan (Files): Add it.
7825         (configure.ac): Just invoke gl_FUNC_ATAN.
7826
7827 2011-10-08  Bruno Haible  <bruno@clisp.org>
7828
7829         Tests for module 'acosf'.
7830         * modules/acosf-tests: New file.
7831         * tests/test-acosf.c: New file.
7832
7833         New module 'acosf'.
7834         * lib/math.in.h (acosf): New declaration.
7835         * lib/acosf.c: New file.
7836         * m4/acosf.m4: New file.
7837         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7839         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7840         * modules/acosf: New file.
7841         * tests/test-math-c++.cc: Check the declaration of acosf.
7842         * doc/posix-functions/acosf.texi: Mention the new module.
7843
7844         acos: Use a .m4 file.
7845         * m4/acos.m4: New file.
7846         * modules/acos (Files): Add it.
7847         (configure.ac): Just invoke gl_FUNC_ACOS.
7848
7849 2011-10-08  Bruno Haible  <bruno@clisp.org>
7850
7851         Tests for module 'asinf'.
7852         * modules/asinf-tests: New file.
7853         * tests/test-asinf.c: New file.
7854
7855         New module 'asinf'.
7856         * lib/math.in.h (asinf): New declaration.
7857         * lib/asinf.c: New file.
7858         * m4/asinf.m4: New file.
7859         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7860         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7861         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7862         * modules/asinf: New file.
7863         * tests/test-math-c++.cc: Check the declaration of asinf.
7864         * doc/posix-functions/asinf.texi: Mention the new module.
7865
7866         asin: Use a .m4 file.
7867         * m4/asin.m4: New file.
7868         * modules/asin (Files): Add it.
7869         (configure.ac): Just invoke gl_FUNC_ASIN.
7870
7871 2011-10-08  Bruno Haible  <bruno@clisp.org>
7872
7873         Tests for module 'tanf'.
7874         * modules/tanf-tests: New file.
7875         * tests/test-tanf.c: New file.
7876
7877         New module 'tanf'.
7878         * lib/math.in.h (tanf): New declaration.
7879         * lib/tanf.c: New file.
7880         * m4/tanf.m4: New file.
7881         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7883         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7884         * modules/tanf: New file.
7885         * tests/test-math-c++.cc: Check the declaration of tanf.
7886         * doc/posix-functions/tanf.texi: Mention the new module.
7887
7888         tan: Use a .m4 file.
7889         * m4/tan.m4: New file.
7890         * modules/tan (Files): Add it.
7891         (configure.ac): Just invoke gl_FUNC_TAN.
7892
7893 2011-10-08  Bruno Haible  <bruno@clisp.org>
7894
7895         Tests for module 'cosf'.
7896         * modules/cosf-tests: New file.
7897         * tests/test-cosf.c: New file.
7898
7899         New module 'cosf'.
7900         * lib/math.in.h (cosf): New declaration.
7901         * lib/cosf.c: New file.
7902         * m4/cosf.m4: New file.
7903         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7905         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7906         * modules/cosf: New file.
7907         * tests/test-math-c++.cc: Check the declaration of cosf.
7908         * doc/posix-functions/cosf.texi: Mention the new module.
7909
7910         cos: Use a .m4 file.
7911         * m4/cos.m4: New file.
7912         * modules/cos (Files): Add it.
7913         (configure.ac): Just invoke gl_FUNC_COS.
7914
7915 2011-10-08  Bruno Haible  <bruno@clisp.org>
7916
7917         Tests for module 'sinf'.
7918         * modules/sinf-tests: New file.
7919         * tests/test-sinf.c: New file.
7920
7921         New module 'sinf'.
7922         * lib/math.in.h (sinf): New declaration.
7923         * lib/sinf.c: New file.
7924         * m4/sinf.m4: New file.
7925         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7927         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7928         * modules/sinf: New file.
7929         * tests/test-math-c++.cc: Check the declaration of sinf.
7930         * doc/posix-functions/sinf.texi: Mention the new module.
7931
7932         sin: Use a .m4 file.
7933         * m4/sin.m4: New file.
7934         * modules/sin (Files): Add it.
7935         (configure.ac): Just invoke gl_FUNC_SIN.
7936
7937 2011-10-08  Bruno Haible  <bruno@clisp.org>
7938
7939         Tests for module 'powf'.
7940         * modules/powf-tests: New file.
7941         * tests/test-powf.c: New file.
7942
7943         New module 'powf'.
7944         * lib/math.in.h (powf): New declaration.
7945         * lib/powf.c: New file.
7946         * m4/powf.m4: New file.
7947         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7949         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7950         * modules/powf: New file.
7951         * tests/test-math-c++.cc: Check the declaration of powf.
7952         * doc/posix-functions/powf.texi: Mention the new module.
7953
7954         pow: Use a .m4 file.
7955         * m4/pow.m4: New file.
7956         * modules/pow (Files): Add it.
7957         (configure.ac): Just invoke gl_FUNC_POW.
7958
7959 2011-10-08  Bruno Haible  <bruno@clisp.org>
7960
7961         Tests for module 'log10f'.
7962         * modules/log10f-tests: New file.
7963         * tests/test-log10f.c: New file.
7964
7965         New module 'log10f'.
7966         * lib/math.in.h (log10f): New declaration.
7967         * lib/log10f.c: New file.
7968         * m4/log10f.m4: New file.
7969         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7971         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7972         * modules/log10f: New file.
7973         * tests/test-math-c++.cc: Check the declaration of log10f.
7974         * doc/posix-functions/log10f.texi: Mention the new module.
7975
7976         log10: Use a .m4 file.
7977         * m4/log10.m4: New file.
7978         * modules/log10 (Files): Add it.
7979         (configure.ac): Just invoke gl_FUNC_LOG10.
7980
7981 2011-10-08  Bruno Haible  <bruno@clisp.org>
7982
7983         Tests for module 'logf'.
7984         * modules/logf-tests: New file.
7985         * tests/test-logf.c: New file.
7986
7987         New module 'logf'.
7988         * lib/math.in.h (logf): New declaration.
7989         * lib/logf.c: New file.
7990         * m4/logf.m4: New file.
7991         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7992         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7993         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7994         * modules/logf: New file.
7995         * tests/test-math-c++.cc: Check the declaration of logf.
7996         * doc/posix-functions/logf.texi: Mention the new module.
7997
7998         log: Use a .m4 file.
7999         * m4/log.m4: New file.
8000         * modules/log (Files): Add it.
8001         (configure.ac): Just invoke gl_FUNC_LOG.
8002
8003 2011-10-08  Bruno Haible  <bruno@clisp.org>
8004
8005         Tests for module 'expf'.
8006         * modules/expf-tests: New file.
8007         * tests/test-expf.c: New file.
8008
8009         New module 'expf'.
8010         * lib/math.in.h (expf): New declaration.
8011         * lib/expf.c: New file.
8012         * m4/expf.m4: New file.
8013         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8015         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8016         * modules/expf: New file.
8017         * tests/test-math-c++.cc: Check the declaration of expf.
8018         * doc/posix-functions/expf.texi: Mention the new module.
8019
8020         exp: Use a .m4 file.
8021         * m4/exp.m4: New file.
8022         * modules/exp (Files): Add it.
8023         (configure.ac): Just invoke gl_FUNC_EXP.
8024
8025 2011-10-08  Bruno Haible  <bruno@clisp.org>
8026
8027         Tests for module 'sqrtf'.
8028         * modules/sqrtf-tests: New file.
8029         * tests/test-sqrtf.c: New file.
8030
8031         New module 'sqrtf'.
8032         * lib/math.in.h (sqrtf): New declaration.
8033         * lib/sqrtf.c: New file.
8034         * m4/sqrtf.m4: New file.
8035         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8037         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8038         * modules/sqrtf: New file.
8039         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8040         * doc/posix-functions/sqrtf.texi: Mention the new module.
8041
8042 2011-10-08  Bruno Haible  <bruno@clisp.org>
8043
8044         Tests: Avoid link failures w.r.t. libintl.
8045         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8046         $(LIBINTL).
8047         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8048         $(LIBINTL).
8049         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8050         against $(LIBINTL).
8051         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8052         $(LIBINTL).
8053         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8054         $(LIBINTL).
8055         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8056
8057 2011-10-08  Bruno Haible  <bruno@clisp.org>
8058
8059         pow tests: Defeat compiler optimizations.
8060         * tests/test-pow.c (main): Assign arguments to x and y before use.
8061
8062 2011-10-08  Bruno Haible  <bruno@clisp.org>
8063
8064         gnulib-tool: Improve last commit.
8065         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8066         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8067         ignore dependencies that are not among the modules list.
8068
8069 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         gnulib-tool: don't follow dependencies to avoided modules
8072         This fixes a bug that is related to the previous one.
8073         * gnulib-tool (func_modules_transitive_closure)
8074         (func_emit_autoconf_snippets):
8075         Check whether a dependency is acceptable before using it.
8076         (--extract-dependencies): Report an error if --avoid is also used,
8077         since this combination of options is not yet supported.
8078
8079         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8080         Problem reported by Peter Dyballa in
8081         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8082         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8083         when echoing "$condition".
8084
8085 2011-10-07  Bruno Haible  <bruno@clisp.org>
8086
8087         Fix documentation about math functions on MacOS X.
8088         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8089         MacOS X 10.5.
8090         * doc/posix-functions/fdim.texi: Likewise.
8091         * doc/posix-functions/feclearexcept.texi: Likewise.
8092         * doc/posix-functions/fegetenv.texi: Likewise.
8093         * doc/posix-functions/fegetround.texi: Likewise.
8094         * doc/posix-functions/feholdexcept.texi: Likewise.
8095         * doc/posix-functions/feraiseexcept.texi: Likewise.
8096         * doc/posix-functions/fesetenv.texi: Likewise.
8097         * doc/posix-functions/fesetround.texi: Likewise.
8098         * doc/posix-functions/fetestexcept.texi: Likewise.
8099         * doc/posix-functions/feupdateenv.texi: Likewise.
8100         * doc/posix-functions/fmax.texi: Likewise.
8101         * doc/posix-functions/fmin.texi: Likewise.
8102         * doc/posix-functions/log2.texi: Likewise.
8103         * doc/posix-functions/modff.texi: Likewise.
8104         * doc/posix-functions/nan.texi: Likewise.
8105         * doc/posix-functions/nanf.texi: Likewise.
8106         * doc/posix-functions/nextafterf.texi: Likewise.
8107         * doc/posix-functions/remquo.texi: Likewise.
8108
8109 2011-10-07  Bruno Haible  <bruno@clisp.org>
8110
8111         modff: Drop assumption about library that defines modff.
8112         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8113         AC_CHECK_FUNCS.
8114         * modules/modff (Files): Add m4/mathfunc.m4.
8115
8116 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8117
8118         raise tests: Avoid a GCC warning.
8119         * tests/test-raise.c (handler): Use _Noreturn.
8120
8121 2011-10-07  Bruno Haible  <bruno@clisp.org>
8122
8123         Tests for module 'ldexpf'.
8124         * modules/ldexpf-tests: New file.
8125         * tests/test-ldexpf.c: New file.
8126
8127         New module 'ldexpf'.
8128         * lib/math.in.h (ldexpf): New declaration.
8129         * lib/ldexpf.c: New file.
8130         * m4/ldexpf.m4: New file.
8131         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8133         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8134         * modules/ldexpf: New file.
8135         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8136         * doc/posix-functions/ldexpf.texi: Mention the new module.
8137
8138 2011-10-06  Bruno Haible  <bruno@clisp.org>
8139
8140         frexpf: Work around problems on IRIX and mingw.
8141         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8143         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8144         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8145         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8146         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8147         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8148
8149 2011-10-06  Bruno Haible  <bruno@clisp.org>
8150
8151         fabsf: Drop assumption about library that defines fabsf.
8152         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8153         AC_CHECK_FUNCS.
8154         * modules/fabsf (Files): Add m4/mathfunc.m4.
8155
8156 2011-10-06  Bruno Haible  <bruno@clisp.org>
8157
8158         frexpf: Drop assumption about library that defines frexpf.
8159         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8160         'int *', 'float *', 'long double *', 'float', 'long double'.
8161         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8162         AC_CHECK_FUNCS.
8163         * modules/frexpf (Files): Add m4/mathfunc.m4.
8164
8165         Tests for module 'frexpf'.
8166         * modules/frexpf-tests: New file.
8167         * tests/test-frexpf.c: New file.
8168
8169         New module 'frexpf'.
8170         * lib/math.in.h (frexpf): New declaration.
8171         * lib/frexpf.c: New file.
8172         * m4/frexpf.m4: New file.
8173         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8175         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8176         * modules/frexpf: New file.
8177         * tests/test-math-c++.cc: Check the declaration of frexpf.
8178         * doc/posix-functions/frexpf.texi: Mention the new module.
8179
8180 2011-10-06  Bruno Haible  <bruno@clisp.org>
8181
8182         math: Sort function declarations of math.in.h.
8183         * lib/math.in.h (frexp, logb): Move declarations.
8184
8185 2011-10-05  Bruno Haible  <bruno@clisp.org>
8186
8187         Tests for module 'modff'.
8188         * modules/modff-tests: New file.
8189         * tests/test-modff.c: New file.
8190
8191         New module 'modff'.
8192         * lib/math.in.h (modff): New declaration.
8193         * lib/modff.c: New file.
8194         * m4/modff.m4: New file.
8195         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8197         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8198         * modules/modff: New file.
8199         * tests/test-math-c++.cc: Check the declaration of modff.
8200         * doc/posix-functions/modff.texi: Mention the new module.
8201
8202         modf tests: Make test sharper.
8203         * tests/test-modf.c (main): Strengthen upper bound.
8204
8205         modf: Use a .m4 file.
8206         * m4/modf.m4: New file.
8207         * modules/modf (Files): Add it.
8208         (configure.ac): Just invoke gl_FUNC_MODF.
8209
8210 2011-10-05  Bruno Haible  <bruno@clisp.org>
8211
8212         Tests for module 'fmodf'.
8213         * modules/fmodf-tests: New file.
8214         * tests/test-fmodf.c: New file.
8215
8216         New module 'fmodf'.
8217         * lib/math.in.h (fmodf): New declaration.
8218         * lib/fmodf.c: New file.
8219         * m4/fmodf.m4: New file.
8220         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8222         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8223         * modules/fmodf: New file.
8224         * tests/test-math-c++.cc: Check the declaration of fmodf.
8225         * doc/posix-functions/fmodf.texi: Mention the new module.
8226
8227         fmod: Use a .m4 file.
8228         * m4/fmod.m4: New file.
8229         * modules/fmod (Files): Add it.
8230         (configure.ac): Just invoke gl_FUNC_FMOD.
8231
8232 2011-10-05  Bruno Haible  <bruno@clisp.org>
8233
8234         Tests for module 'fabsf'.
8235         * modules/fabsf-tests: New file.
8236         * tests/test-fabsf.c: New file.
8237
8238         New module 'fabsf'.
8239         * lib/math.in.h (fabsf): New declaration.
8240         * lib/fabsf.c: New file.
8241         * m4/fabsf.m4: New file.
8242         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8244         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8245         * modules/fabsf: New file.
8246         * tests/test-math-c++.cc: Check the declaration of fabsf.
8247         * doc/posix-functions/fabsf.texi: Mention the new module.
8248
8249         fabs: Use a .m4 file.
8250         * m4/fabs.m4: New file.
8251         * modules/fabs (Files): Add it.
8252         (configure.ac): Just invoke gl_FUNC_FABS.
8253
8254 2011-10-05  Jim Meyering  <meyering@redhat.com>
8255
8256         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8257         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8258         ls -lL regression introduced in coreutils-8.12, it does so at the
8259         cost of an additional stat call in the common case.  Besides, now
8260         that the kernel change that prompted commit 95f7c57f has been reverted
8261         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8262         we have no use for commit 95f7c57f, "file-has-acl: use
8263         acl_extended_file_nofollow if available".
8264
8265 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8266
8267         file-has-acl: revert unintended change in behavior of ls -L
8268         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8269         derived from...
8270         (file_has_acl): ...code here.  Call it.
8271         This problem was introduced with 2011-07-22 commit 95f7c57f,
8272         "file-has-acl: use acl_extended_file_nofollow if available".
8273         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8274
8275 2011-10-03  Bruno Haible  <bruno@clisp.org>
8276
8277         poll: Avoid link errors on MSVC.
8278         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8279         * modules/poll (Depends-on): Add sockets.
8280         (Link): New section.
8281         * NEWS: Mention the change.
8282         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8283         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8284         $(LIB_POLL) instead of $(LIBSOCKET).
8285
8286 2011-10-03  Bruno Haible  <bruno@clisp.org>
8287
8288         sys_select tests: Fix link error on MSVC 9.
8289         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8290         with $(LIB_SELECT) instead of $(LIBSOCKET).
8291
8292 2011-10-03  Bruno Haible  <bruno@clisp.org>
8293
8294         sys_select: Fix compilation error on mingw.
8295         * lib/sys_select.in.h: On native Windows, include <io.h>.
8296
8297 2011-10-03  Bruno Haible  <bruno@clisp.org>
8298
8299         wmemset: Support for MSVC.
8300         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8301         whether wmemset() exists.
8302
8303 2011-10-03  Bruno Haible  <bruno@clisp.org>
8304
8305         wmemmove: Support for MSVC.
8306         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8307         whether wmemmove() exists.
8308
8309 2011-10-03  Bruno Haible  <bruno@clisp.org>
8310
8311         wmemcpy: Support for MSVC.
8312         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8313         whether wmemcpy() exists.
8314
8315 2011-10-03  Bruno Haible  <bruno@clisp.org>
8316
8317         wmemcmp: Support for MSVC.
8318         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8319         whether wmemcmp() exists.
8320
8321 2011-10-03  Bruno Haible  <bruno@clisp.org>
8322
8323         wmemchr: Support for MSVC.
8324         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8325         whether wmemchr() exists.
8326
8327 2011-10-03  Bruno Haible  <bruno@clisp.org>
8328
8329         glthread/*, strsignal: Support for MSVC.
8330         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8331         including <winsock.h> on MSVC 9.
8332         * lib/glthread/lock.h: Likewise.
8333         * lib/glthread/thread.h: Likewise.
8334         * lib/glthread/tls.h: Likewise.
8335         * lib/glthread/yield.h: Likewise.
8336         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8337         if HAVE_UNISTD_H is false.
8338         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8339
8340 2011-10-03  Bruno Haible  <bruno@clisp.org>
8341
8342         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8343         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8344         Set to 100000.
8345
8346 2011-10-03  Bruno Haible  <bruno@clisp.org>
8347
8348         acl: Fix specification.
8349         * lib/file-has-acl.c (file_has_acl): Fix specification.
8350
8351 2011-10-03  Bruno Haible  <bruno@clisp.org>
8352
8353         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8354         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8355         (compute_curr_prefix, shared_library_fullname,
8356         find_shared_library_fullname, get_shared_library_fullname, relocate):
8357         Use it together with PIC && INSTALLDIR.
8358         Reported by <jojelino@gmail.com>
8359         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8360
8361 2011-10-01  Jim Meyering  <meyering@redhat.com>
8362
8363         maint.mk: adjust a release-related rule not to require use of gzip
8364         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8365         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8366         projects that build only .tar.xz files.  Also fix an erroneous test.
8367
8368         test-linkat: don't leave behind a temporary file
8369         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8370         Otherwise, coreutils' "make distcheck" would fail with this:
8371           Only in /c/cu/tests/torture/coreutils/test/\
8372             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8373           make[2]: *** [my-distcheck] Error 1
8374
8375         float, math: add omitted file
8376         * lib/itold.c: Add file, required for yesterday's float change.
8377
8378 2011-10-01  Bruno Haible  <bruno@clisp.org>
8379
8380         isinf: Fix for OpenBSD/x86.
8381         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8382         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8383         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8384
8385 2011-10-01  Bruno Haible  <bruno@clisp.org>
8386
8387         isfinite: Fix syntax error in configure test.
8388         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8389
8390         isfinite: Fix typo.
8391         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8392         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8393
8394 2011-10-01  Bruno Haible  <bruno@clisp.org>
8395
8396         nonblocking tests: Fix test failure on Linux/IA-64.
8397         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8398         Set to 270000.
8399
8400 2011-10-01  Bruno Haible  <bruno@clisp.org>
8401
8402         mkfifoat tests: Fix a test failure on mingw.
8403         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8404         with error ENOSYS.
8405
8406 2011-09-30  Bruno Haible  <bruno@clisp.org>
8407
8408         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8409         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8410         'long double'. Set REPLACE_ITOLD.
8411         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8412         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8413         * lib/itold.c: New file.
8414         * modules/float (Files): Add lib/itold.c.
8415         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8416         (Makefile.am): Substitute REPLACE_ITOLD.
8417         * modules/math (Depends-on): Add float.
8418         (Makefile.am): Substitute REPLACE_ITOLD.
8419         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8420         * doc/posix-headers/math.texi: Likewise.
8421         * doc/posix-functions/logl.texi: Likewise.
8422
8423 2011-09-30  Bruno Haible  <bruno@clisp.org>
8424
8425         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8426         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8427         Set to 140000.
8428
8429 2011-09-30  Bruno Haible  <bruno@clisp.org>
8430
8431         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8432         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8433         invocation, say "right after AC_PROG_CC_STDC", not "right after
8434         AC_PROG_CC".
8435         Reported by Gary V. Vaughan <gary@gnu.org>.
8436
8437 2011-09-30  Bruno Haible  <bruno@clisp.org>
8438
8439         Centralize C99 requirement.
8440         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8441         * modules/stdarg (configure.ac-early): Invoke it instead of
8442         AC_PROG_CC_STDC.
8443         Reported by Gary V. Vaughan and Paul Eggert.
8444
8445 2011-09-29  Bruno Haible  <bruno@clisp.org>
8446
8447         float: Fix LDBL_MAX value on Linux/PowerPC.
8448         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8449         on Linux/PowerPC.
8450         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8451         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8452         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8453         platform.
8454         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8455
8456 2011-09-29  Bruno Haible  <bruno@clisp.org>
8457
8458         doc: Improve doc about gl_EARLY.
8459         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8460         AC_PROG_CC_STDC invocation.
8461         Reported by Gary V. Vaughan <gary@gnu.org>.
8462
8463 2011-09-28  Bruno Haible  <bruno@clisp.org>
8464
8465         fgetc, fputc, fread, fwrite tests: Fix link error.
8466         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8467         on non-MSVC platforms.
8468         * tests/test-fputc.c (main): Likewise.
8469         * tests/test-fread.c (main): Likewise.
8470         * tests/test-fwrite.c (main): Likewise.
8471         Reported by Jim Meyering.
8472
8473 2011-09-27  Bruno Haible  <bruno@clisp.org>
8474
8475         fputc, fwrite tests: Avoid test failure on MSVC.
8476         * tests/test-fgetc.c: Include msvc-inval.h.
8477         (main): Invoke gl_msvc_inval_ensure_handler.
8478         * tests/test-fputc.c: Include msvc-inval.h.
8479         (main): Invoke gl_msvc_inval_ensure_handler.
8480         * tests/test-fread.c: Include msvc-inval.h.
8481         (main): Invoke gl_msvc_inval_ensure_handler.
8482         * tests/test-fwrite.c: Include msvc-inval.h.
8483         (main): Invoke gl_msvc_inval_ensure_handler.
8484         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8485         * modules/fputc-tests (Depends-on): Likewise.
8486         * modules/fread-tests (Depends-on): Likewise.
8487         * modules/fwrite-tests (Depends-on): Likewise.
8488
8489 2011-09-27  Bruno Haible  <bruno@clisp.org>
8490
8491         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8492         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8493         (raise): Remove older, duplicated declaration.
8494         (_gl_raise_SIGPIPE): New declaration.
8495         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8496         (rpl_raise): Remove function.
8497         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8498         a gnulib-defined SIGPIPE here.
8499         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8500         'sigprocmask' has detected missing signal-blocking and the module
8501         'sigpipe' is enabled.
8502         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8503
8504 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8505
8506         base64-tests: avoid memory leak
8507         * tests/test-base64.c (main): Plug memory leak.
8508
8509         base32: new module
8510         * modules/base32: New module.
8511         * lib/base32.c: New file.
8512         * lib/base32.h: Likewise.
8513         * m4/base32.m4: Likewise.
8514         * modules/base32-tests: New test.
8515         * tests/test-base32.c: Likewise.
8516         * MODULES.html.sh (Misc): Mention it.
8517
8518 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8519
8520         gnulib: use more-standard license notice wording
8521         * gnulib-tool (func_emit_copyright_notice): When emitting a
8522         license notice into a file, use the standard wording as suggested
8523         by the current information for GNU maintainers, except say "file"
8524         rather than "program".  The new wording gives a license version
8525         number, which addresses an issue raised by Glenn Morris in
8526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8527         * m4/onceonly.m4: Use that same wording here, too.
8528
8529         dup2: minor simplification
8530         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8531         as lib/dup2.c no longer uses 'inline'.
8532
8533 2011-09-25  Bruno Haible  <bruno@clisp.org>
8534
8535         strings: Fix compilation error on MSVC.
8536         * lib/strings.in.h: Include <stddef.h> for size_t.
8537
8538 2011-09-25  Bruno Haible  <bruno@clisp.org>
8539
8540         fflush et al.: Document limitation on MSVC.
8541         * doc/posix-functions/fflush.texi: Document possible crash in handling
8542         mode other than DEFAULT_HANDLING.
8543         * doc/posix-functions/fgetc.texi: Likewise.
8544         * doc/posix-functions/fputc.texi: Likewise.
8545         * doc/posix-functions/fread.texi: Likewise.
8546         * doc/posix-functions/fwrite.texi: Likewise.
8547
8548 2011-09-25  Bruno Haible  <bruno@clisp.org>
8549
8550         msvc-inval: Allow three invalid parameter handling modes.
8551         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8552         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8553         macros.
8554         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8555         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8556         SANE_LIBRARY_HANDLING as a no-op.
8557         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8558         <stdlib.h>.
8559         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8560
8561 2011-09-25  Bruno Haible  <bruno@clisp.org>
8562
8563         msvc-inval: Make handler multithread-safe.
8564         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8565         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8566         declarations.
8567         (gl_msvc_inval_current): New declaration.
8568         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8569         Operate on the structure returned by gl_msvc_inval_current().
8570         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8571         Remove varaiables.
8572         (tls_index, tls_initialized): New variables.
8573         (not_per_thread): New variable.
8574         (gl_msvc_inval_current): New function.
8575         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8576         returned by gl_msvc_inval_current().
8577
8578 2011-09-25  Bruno Haible  <bruno@clisp.org>
8579
8580         msvc-inval: Install handler globally.
8581         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8582         !_MSC_VER.
8583         (gl_msvc_invalid_parameter_handler): Remove declaration.
8584         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8585         declarations.
8586         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8587         Install the handler globally, don't uninstall it.
8588         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8589         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8590         currently valid, call RaiseException instead.
8591         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8592         for !_MSC_VER.
8593
8594 2011-09-25  Bruno Haible  <bruno@clisp.org>
8595
8596         strerror_r-posix: Fix for MSVC 9.
8597         * lib/strerror_r.c (local_snprintf): New function.
8598         (snprintf): Define to local_snprintf, not to _snprintf.
8599
8600 2011-09-25  Bruno Haible  <bruno@clisp.org>
8601
8602         ftruncate: Support for MSVC 9.
8603         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8604         (chsize_nothrow): New function.
8605         (chsize): Redefine as a macro.
8606         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8607         * modules/ftruncate (Depends-on): Add msvc-inval.
8608
8609 2011-09-25  Bruno Haible  <bruno@clisp.org>
8610
8611         New module 'fstat'.
8612         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8613         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8614         * lib/fchdir.c (rpl_fstat): Remove function.
8615         * m4/fstat.m4: New file.
8616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8617         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8618         declared.
8619         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8620         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8621         * modules/fstat: New file.
8622         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8623         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8624         is set.
8625         * doc/posix-functions/fstat.texi: Mention the new module and the
8626         problem on MSVC.
8627         * NEWS: Mention the change.
8628         * modules/acl (Depends-on): Add fstat.
8629         * modules/chdir-safer (Depends-on): Likewise.
8630         * modules/chown (Depends-on): Likewise.
8631         * modules/copy-file (Depends-on): Likewise.
8632         * modules/fchdir (Depends-on): Likewise.
8633         * modules/fdopendir (Depends-on): Likewise.
8634         * modules/fopen (Depends-on): Likewise.
8635         * modules/fts (Depends-on): Likewise.
8636         * modules/getcwd (Depends-on): Likewise.
8637         * modules/isapipe (Depends-on): Likewise.
8638         * modules/linkat (Depends-on): Likewise.
8639         * modules/lseek (Depends-on): Likewise.
8640         * modules/mkdir-p (Depends-on): Likewise.
8641         * modules/open (Depends-on): Likewise.
8642         * modules/openat (Depends-on): Likewise.
8643         * modules/read-file (Depends-on): Likewise.
8644         * modules/renameat (Depends-on): Likewise.
8645         * modules/utimens (Depends-on): Likewise.
8646
8647 2011-09-25  Bruno Haible  <bruno@clisp.org>
8648
8649         linkat: Fix compilation on MSVC 9.
8650         * lib/linkat.c: Don't include <stdint.h>.
8651
8652 2011-09-25  Bruno Haible  <bruno@clisp.org>
8653
8654         fclose: Support for MSVC 9.
8655         * lib/fclose.c: Include msvc-inval.h.
8656         (fclose_nothrow): New function.
8657         (rpl_fclose): Use it.
8658         * modules/fclose (Depends-on): Add msvc-inval.
8659         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8660
8661 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8662
8663         dup2: minor simplifications
8664         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8665         that it's a performance win.
8666         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8667         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8668
8669 2011-09-24  Jim Meyering  <meyering@redhat.com>
8670
8671         test-futimens: avoid a warning from gcc -Wshadow
8672         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8673         to avoid a shadowing warning.
8674
8675 2011-09-24  Bruno Haible  <bruno@clisp.org>
8676
8677         fdopen: Support for MSVC 9.
8678         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8679         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8680         * lib/fdopen.c: Include msvc-inval.h.
8681         (fdopen_nothrow): New function.
8682         (rpl_fdopen): Use it.
8683         * modules/fdopen (Depends-on): Add msvc-inval.
8684         * modules/fclose-tests (Depends-on): Add fdopen.
8685         * modules/fflush-tests (Depends-on): Likewise.
8686         * modules/fgetc-tests (Depends-on): Likewise.
8687         * modules/fputc-tests (Depends-on): Likewise.
8688         * modules/fread-tests (Depends-on): Likewise.
8689         * modules/freopen-tests (Depends-on): Likewise.
8690         * modules/fseeko-tests (Depends-on): Likewise.
8691         * modules/ftello-tests (Depends-on): Likewise.
8692         * modules/fwrite-tests  (Depends-on): Likewise.
8693         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8694
8695 2011-09-24  Bruno Haible  <bruno@clisp.org>
8696
8697         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8698         * modules/fgetc-tests (Depends-on): Add unistd.
8699         * modules/fputc-tests (Depends-on): Likewise.
8700         * modules/fread-tests (Depends-on): Likewise.
8701         * modules/fwrite-tests (Depends-on): Likewise.
8702
8703 2011-09-24  Bruno Haible  <bruno@clisp.org>
8704
8705         dup: Simplify autoconf test.
8706         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8707         on gl_MSVC_INVAL's result.
8708
8709 2011-09-24  Bruno Haible  <bruno@clisp.org>
8710
8711         Tests for function fwrite().
8712         * modules/fwrite-tests: New file.
8713         * tests/test-fwrite.c: New file.
8714         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8715
8716         Tests for function fread().
8717         * modules/fread-tests: New file.
8718         * tests/test-fread.c: New file.
8719         * modules/stdio-tests (Depends-on): Add fread-tests.
8720
8721         Activate fputc tests.
8722         * modules/stdio-tests (Depends-on): Add fputc-tests.
8723
8724         Enhance fgetc, fputc tests.
8725         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8726         * tests/test-fputc.c (main): Likewise.
8727
8728 2011-09-24  Bruno Haible  <bruno@clisp.org>
8729
8730         write: Support for MSVC 9.
8731         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8732         is not 1.
8733         * lib/write.c (write_nothrow): New function.
8734         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8735         not 1. Use write_nothrow.
8736         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8737         invalid parameter handler.
8738         (gl_PREREQ_WRITE): New macro.
8739         * modules/write (Depends-on): Add msvc-inval.
8740         (configure.ac): Invoke gl_PREREQ_WRITE.
8741         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8742
8743 2011-09-24  Bruno Haible  <bruno@clisp.org>
8744
8745         read: Fix last commit.
8746         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8747
8748 2011-09-24  Bruno Haible  <bruno@clisp.org>
8749
8750         dup2: Fix last commit.
8751         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8752         (rpl_dup2): Disable fcntl workaround on native Windows.
8753
8754         sigprocmask: Make code safer.
8755         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8756         section that changes macro definitions for this compilation unit.
8757
8758 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8759
8760         dup2: clarify by coalescing Windows-specific material
8761         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8762         "msvc-nothrow.h"' to the Windows-specific section, so that the
8763         Emacs source need not contain these include files.
8764         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8765         Windows-specific fixes into this function rather than just the
8766         nothrow fix, as this shortens and clarifies the code.  Always
8767         define as a function, as that's a bit cleaner than having it be
8768         sometimes a function and sometimes a macro.
8769         (rpl_dup2): Move the Windows-specific stuff out of here and into
8770         ms_windows_dup2.  Don't protect the Haiku-related fix with
8771         "#if !defined __linux__", as the same code also works around
8772         a Linux kernel bug, and it doesn't add any system calls on any
8773         platform.  Add comment about FreeBSD 6.1.
8774
8775         sigprocmask: move #include directive
8776         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8777         Windows-specific section, so that the Emacs source need not
8778         contain msvc-inval.h.
8779
8780 2011-09-23  Bruno Haible  <bruno@clisp.org>
8781
8782         read: Support for MSVC 9.
8783         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8784         is not 1.
8785         * lib/read.c (read_nothrow): New function.
8786         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8787         read_nothrow.
8788         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8789         invalid parameter handler.
8790         (gl_PREREQ_READ): New macro.
8791         * modules/read (Depends-on): Add msvc-inval.
8792         (configure.ac): Invoke gl_PREREQ_READ.
8793         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8794
8795 2011-09-23  Bruno Haible  <bruno@clisp.org>
8796
8797         close: Support for MSVC 9.
8798         * lib/close.c: Include <errno.h>, msvc-inval.h.
8799         (close_nothrow): New function.
8800         (rpl_close): Use it.
8801         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8802         invalid parameter handler.
8803         * modules/close (Depends-on): Add msvc-inval.
8804         * modules/dup2-tests (Depends-on): Add close.
8805         * modules/dup3-tests (Depends-on): Likewise.
8806         * modules/fcntl-tests (Depends-on): Likewise.
8807         * modules/spawn-pipe-tests (Depends-on): Likewise.
8808         * modules/unistd-safer-tests (Depends-on): Likewise.
8809         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8810
8811 2011-09-23  Bruno Haible  <bruno@clisp.org>
8812
8813         New module 'dup'.
8814         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8815         Allow replacement.
8816         * lib/dup.c: New file.
8817         * lib/fchdir.c (rpl_dup): Remove function.
8818         * m4/dup.m4: New file.
8819         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8820         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8821         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8822         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8823         * modules/dup: New file.
8824         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8825         'dup' module is in use.
8826         * modules/fdopendir (Depends-on): Add dup.
8827         * modules/fdutimensat-tests (Depends-on): Likewise.
8828         * modules/fts (Depends-on): Likewise.
8829         * modules/futimens-tests (Depends-on): Likewise.
8830         * modules/posix_spawnp-tests (Depends-on): Likewise.
8831         * modules/unistd-safer-tests (Depends-on): Likewise.
8832         * modules/utimens-tests (Depends-on): Likewise.
8833         * doc/posix-functions/dup.texi: Mention the new module and the problem
8834         on MSVC.
8835
8836 2011-09-23  Bruno Haible  <bruno@clisp.org>
8837
8838         getdtablesize: Support for MSVC 9.
8839         * lib/getdtablesize.c: Include msvc-inval.h.
8840         (_setmaxstdio_nothrow): New function.
8841         (_setmaxstdio): Redefine it.
8842         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8843         * modules/getdtablesize (Depends-on): Add msvc-inval.
8844         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8845
8846 2011-09-23  Bruno Haible  <bruno@clisp.org>
8847
8848         signal-h: Rename from signal.
8849         * modules/signal-h: Renamed from modules/signal.
8850         * modules/pthread_sigmask (Depends-on): Update.
8851         * modules/raise (Depends-on): Likewise.
8852         * modules/sigaction (Depends-on): Likewise.
8853         * modules/sigpipe (Depends-on): Likewise.
8854         * modules/sigprocmask (Depends-on): Likewise.
8855         * modules/sys_select (Depends-on): Likewise.
8856         * modules/signal-h-tests: Renamed from modules/signal-tests.
8857         (Files, Depends-on, Makefile.am): Update.
8858         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8859         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8860         (Files, Makefile.am): Update.
8861         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8862         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8863         * modules/signal: New placeholder file.
8864         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8865         * doc/posix-headers/signal.texi: Update.
8866         * NEWS: Mention the change.
8867
8868 2011-09-23  Bruno Haible  <bruno@clisp.org>
8869
8870         sigprocmask: Avoid crashes through signal() on MSVC 9.
8871         * lib/sigprocmask.c: Include msvc-inval.h.
8872         (signal_nothrow): New function.
8873         (signal): Redefine it.
8874         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8875         * modules/sigprocmask (Depends-on): Add msvc-inval.
8876         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8877
8878 2011-09-23  Bruno Haible  <bruno@clisp.org>
8879
8880         Tests for module 'raise'.
8881         * modules/raise-tests: New file.
8882         * tests/test-raise.c: New file.
8883
8884         raise: Support for MSVC.
8885         * lib/signal.in.h (raise): New declaration.
8886         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8887         for native Windows platforms.
8888         * m4/raise.m4: New file.
8889         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8890         HAVE_RAISE, REPLACE_RAISE.
8891         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8892         REPLACE_RAISE.
8893         * modules/raise (Status, Notice): Remove fields.
8894         (Files): Add m4/raise.m4.
8895         (Depends-on): Add signal, msvc-inval.
8896         (configure.ac): Use the common idioms.
8897         (Maintainer): Add me.
8898         * tests/test-signal-c++.cc: Check the signature of raise.
8899         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8900
8901 2011-09-23  Bruno Haible  <bruno@clisp.org>
8902
8903         pipe2: Fix compilation on pre-C99 compilers.
8904         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8905
8906 2011-09-23  Bruno Haible  <bruno@clisp.org>
8907
8908         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8909         * lib/msvc-nothrow.h: New file.
8910         * lib/msvc-nothrow.c: New file.
8911         * m4/msvc-nothrow.m4: New file.
8912         * modules/msvc-nothrow: New file.
8913         * lib/dup2.c: Include msvc-nothrow.h.
8914         (rpl_dup2): No need to protect _get_osfhandle call here.
8915         * lib/accept4.c: Include msvc-nothrow.h.
8916         * lib/error.c: Likewise.
8917         * lib/fcntl.c: Likewise.
8918         * lib/lseek.c: Likewise.
8919         * lib/nonblocking.c: Likewise.
8920         * lib/poll.c: Likewise.
8921         * lib/read.c: Likewise.
8922         * lib/select.c: Likewise.
8923         * lib/sockets.h: Likewise.
8924         * lib/sockets.c: Likewise.
8925         * lib/stdio-read.c: Likewise.
8926         * lib/stdio-write.c: Likewise.
8927         * lib/write.c: Likewise.
8928         * lib/w32sock.h: Likewise.
8929         * lib/w32spawn.h: Likewise.
8930         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8931         * lib/fsync.c: Likewise.
8932         * lib/isapipe.c: Likewise.
8933         * modules/dup2 (Depends-on): Add msvc-nothrow.
8934         * modules/accept4 (Depends-on): Likewise.
8935         * modules/error (Depends-on): Likewise.
8936         * modules/fcntl (Depends-on): Likewise.
8937         * modules/lseek (Depends-on): Likewise.
8938         * modules/nonblocking (Depends-on): Likewise.
8939         * modules/poll (Depends-on): Likewise.
8940         * modules/read (Depends-on): Likewise.
8941         * modules/select (Depends-on): Likewise.
8942         * modules/sockets (Depends-on): Likewise.
8943         * modules/sigpipe (Depends-on): Likewise.
8944         * modules/write (Depends-on): Likewise.
8945         * modules/accept (Depends-on): Likewise.
8946         * modules/bind (Depends-on): Likewise.
8947         * modules/connect (Depends-on): Likewise.
8948         * modules/gethostname (Depends-on): Likewise.
8949         * modules/getpeername (Depends-on): Likewise.
8950         * modules/getsockname (Depends-on): Likewise.
8951         * modules/getsockopt (Depends-on): Likewise.
8952         * modules/ioctl (Depends-on): Likewise.
8953         * modules/listen (Depends-on): Likewise.
8954         * modules/recv (Depends-on): Likewise.
8955         * modules/recvfrom (Depends-on): Likewise.
8956         * modules/send (Depends-on): Likewise.
8957         * modules/sendto (Depends-on): Likewise.
8958         * modules/setsockopt (Depends-on): Likewise.
8959         * modules/shutdown (Depends-on): Likewise.
8960         * modules/socket (Depends-on): Likewise.
8961         * modules/execute (Depends-on): Likewise.
8962         * modules/spawn-pipe (Depends-on): Likewise.
8963         * modules/flock (Depends-on): Likewise.
8964         * modules/fsync (Depends-on): Likewise.
8965         * modules/isapipe (Depends-on): Likewise.
8966         * tests/test-cloexec.c: Include msvc-nothrow.h.
8967         * tests/test-dup-safer.c: Likewise.
8968         * tests/test-dup2.c: Likewise.
8969         * tests/test-dup3.c: Likewise.
8970         * tests/test-fcntl.c: Likewise.
8971         * tests/test-pipe.c: Likewise.
8972         * tests/test-pipe2.c: Likewise.
8973         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8974         * modules/unistd-safer-tests (Depends-on): Likewise.
8975         * modules/dup2-tests (Depends-on): Likewise.
8976         * modules/dup3-tests (Depends-on): Likewise.
8977         * modules/fcntl-tests (Depends-on): Likewise.
8978         * modules/pipe-posix-tests (Depends-on): Likewise.
8979         * modules/pipe2-tests (Depends-on): Likewise.
8980
8981 2011-09-23  Bruno Haible  <bruno@clisp.org>
8982
8983         dup2: Make code more maintainable.
8984         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8985         (rpl_dup2): Use it.
8986         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8987         * modules/dup2 (configure.ac): Invoke it.
8988         Reported by Paul Eggert.
8989
8990 2011-09-23  Bruno Haible  <bruno@clisp.org>
8991
8992         msvc-inval: Fix compilation error.
8993         * lib/msvc-inval.h: Include <excpt.h>.
8994
8995 2011-09-23  Bruno Haible  <bruno@clisp.org>
8996
8997         mkdir: Tweak for MSVC 9.
8998         * lib/sys_stat.in.h: Update comments.
8999         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9000
9001         Tests for module 'chdir'.
9002         * modules/chdir-tests: New file.
9003         * tests/test-chdir.c: New file.
9004
9005         New module 'chdir'.
9006         * modules/chdir: New file.
9007         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9008         (chdir): New declaration.
9009         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9010         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9011         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9012         * tests/test-unistd-c++.cc: Check signature of chdir.
9013         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9014         * modules/chdir-long (Depends-on): Add chdir.
9015         * modules/fchdir (Depends-on): Likewise.
9016         * modules/rename (Depends-on): Likewise.
9017         * modules/savewd (Depends-on): Likewise.
9018
9019         rmdir: Support for mingw, MSVC 9.
9020         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9021         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9022
9023         getcwd: Tweak for MSVC 9.
9024         * lib/unistd.in.h: Update comments.
9025         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9026
9027 2011-09-22  Bruno Haible  <bruno@clisp.org>
9028
9029         strerror_r-posix: Avoid a link error on MSVC.
9030         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9031         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9032
9033 2011-09-22  Bruno Haible  <bruno@clisp.org>
9034
9035         select: Avoid link errors on MSVC.
9036         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9037         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9038         * modules/pselect (Link): Likewise.
9039         * NEWS: Mention the change.
9040         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9041         test-select-stdin against $(LIB_SELECT).
9042         * modules/pselect-tests (Makefile.am): Link test-pselect against
9043         $(LIB_SELECT).
9044
9045 2011-09-22  Bruno Haible  <bruno@clisp.org>
9046
9047         select: Avoid compilation error on MSVC.
9048         * lib/select.c: Don't include <stdbool.h>.
9049
9050 2011-09-21  Bruno Haible  <bruno@clisp.org>
9051
9052         Consolidate all uses of PATH_MAX in *.m4 files.
9053         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9054         macros.
9055         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9056         and gl_PATHMAX_SNIPPET.
9057         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9058         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9059         * modules/chdir-long (Files): Add m4/pathmax.m4.
9060         * modules/getcwd (Files): Likewise.
9061
9062 2011-09-21  Bruno Haible  <bruno@clisp.org>
9063
9064         ftruncate: Un-deprecate, concentrate on Win32 support.
9065         * modules/ftruncate (Status, Notice): Remove sections.
9066         (Depends-on): Add largefile.
9067         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9068         non-mingw platforms.
9069         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9070         include <io.h>.
9071         * modules/perror-tests (Depends-on): Add ftruncate.
9072         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9073         'ftruncate' module.
9074
9075 2011-09-21  Bruno Haible  <bruno@clisp.org>
9076
9077         Add dependencies to new dirent related modules.
9078         * modules/opendir (Depends-on): Add closedir.
9079         * modules/getcwd (Depends-on): Add opendir, closedir.
9080         * modules/dirent-safer-tests (Depends-on): Likewise.
9081         * modules/fdopendir-tests (Depends-on): Likewise.
9082         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9083         * modules/renameat-tests (Depends-on): Likewise.
9084
9085 2011-09-21  Bruno Haible  <bruno@clisp.org>
9086
9087         opendir: Avoid compilation error on mingw.
9088         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9089         * modules/opendir (Depends-on): Add unistd.
9090
9091 2011-09-21  Bruno Haible  <bruno@clisp.org>
9092
9093         ftruncate tests: Avoid a test failure on mingw.
9094         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9095
9096 2011-09-21  Bruno Haible  <bruno@clisp.org>
9097
9098         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9099         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9100         native Windows.
9101
9102 2011-09-21  Bruno Haible  <bruno@clisp.org>
9103
9104         New module 'fdopen'.
9105         * lib/stdio.in.h (fdopen): New declaration.
9106         * lib/fdopen.c: New file.
9107         * m4/fdopen.m4: New file.
9108         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9109         REPLACE_FDOPEN.
9110         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9111         REPLACE_FDOPEN.
9112         * modules/fdopen: New file.
9113         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9114         * tests/test-stdio-c++.cc: Check signature of fdopen.
9115         * doc/posix-functions/fdopen.texi: Mention the new module.
9116
9117 2011-09-21  Bruno Haible  <bruno@clisp.org>
9118
9119         unlockpt tests: Avoid test failure on NetBSD 5.1.
9120         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9121         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9122
9123 2011-09-21  Bruno Haible  <bruno@clisp.org>
9124
9125         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9126         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9127         * tests/test-getlogin_r.c (main): Likewise.
9128
9129 2011-09-20  Bruno Haible  <bruno@clisp.org>
9130
9131         time tests: Don't require pid_t.
9132         * doc/posix-headers/time.texi: Revert last change.
9133         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9134         * tests/test-time.c: Comment out the check for pid_t.
9135
9136 2011-09-20  Bruno Haible  <bruno@clisp.org>
9137
9138         fsync tests: Avoid a test failure on mingw.
9139         * tests/test-fsync.c (main): Allow a failure with EIO.
9140
9141 2011-09-20  Bruno Haible  <bruno@clisp.org>
9142
9143         euidaccess: Update comments.
9144         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9145
9146 2011-09-20  Bruno Haible  <bruno@clisp.org>
9147
9148         Ensure EBADF returns for socket functions on mingw.
9149         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9150         descriptor is invalid.
9151         * lib/bind.c (rpl_bind): Likewise.
9152         * lib/connect.c (rpl_connect): Likewise.
9153         * lib/getpeername.c (rpl_getpeername): Likewise.
9154         * lib/getsockname.c (rpl_getsockname): Likewise.
9155         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9156         * lib/listen.c (rpl_listen): Likewise.
9157         * lib/recv.c (rpl_recv): Likewise.
9158         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9159         * lib/send.c (rpl_send): Likewise.
9160         * lib/sendto.c (rpl_sendto): Likewise.
9161         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9162         * lib/shutdown.c (rpl_shutdown): Likewise.
9163
9164 2011-09-20  Bruno Haible  <bruno@clisp.org>
9165
9166         select tests: EBADF tests.
9167         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9168         test_bad_fd): New functions.
9169         (test_function): Invoke also test_bad_fd.
9170
9171 2011-09-20  Bruno Haible  <bruno@clisp.org>
9172
9173         Tests for module 'posix_spawn_file_actions_addopen.
9174         * modules/posix_spawn_file_actions_addopen-tests: New file.
9175         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9176
9177         Tests for module 'posix_spawn_file_actions_adddup2'.
9178         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9179         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9180
9181         Tests for module 'posix_spawn_file_actions_addclose'.
9182         * modules/posix_spawn_file_actions_addclose-tests: New file.
9183         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9184
9185 2011-09-20  Bruno Haible  <bruno@clisp.org>
9186
9187         Tests for module 'unlockpt'.
9188         * modules/unlockpt-tests: New file.
9189         * tests/test-unlockpt.c: New file.
9190         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9191
9192         Tests for module 'grantpt'.
9193         * modules/grantpt-tests: New file.
9194         * tests/test-grantpt.c: New file.
9195         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9196
9197 2011-09-20  Bruno Haible  <bruno@clisp.org>
9198
9199         freopen tests: EBADF tests.
9200         * tests/test-freopen.c: Include errno.h, unistd.h.
9201         (main): Add tests for EBADF, commented out for the moment.
9202
9203         fclose tests: EBADF tests.
9204         * tests/test-fclose.c (main): Add tests for EBADF.
9205
9206         fflush tests: EBADF tests.
9207         * tests/test-fflush.c: Include errno.h, macros.h.
9208         (main): Add tests for EBADF.
9209
9210         ftello tests: EBADF tests.
9211         * tests/test-ftello4.sh: New file.
9212         * tests/test-ftello4.c: New file.
9213         * modules/ftello-tests (Files): Add them.
9214         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9215
9216         fseeko tests: EBADF tests.
9217         * tests/test-fseeko4.sh: New file.
9218         * tests/test-fseeko4.c: New file.
9219         * modules/fseeko-tests (Files): Add them.
9220         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9221
9222         Tests for function fputc().
9223         * modules/fputc-tests: New file.
9224         * tests/test-fputc.c: New file.
9225         * modules/stdio-tests (Depends-on): Add fputc-tests.
9226
9227         Tests for function fgetc().
9228         * modules/fgetc-tests: New file.
9229         * tests/test-fgetc.c: New file.
9230         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9231
9232         Tests for function fdopen().
9233         * modules/fdopen-tests: New file.
9234         * tests/test-fdopen.c: New file.
9235         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9236
9237         Tests for module 'vdprintf'.
9238         * modules/vdprintf-tests: New file.
9239         * tests/test-vdprintf.c: New file.
9240
9241         Tests for module 'dprintf'.
9242         * modules/dprintf-tests: New file.
9243         * tests/test-dprintf.c: New file.
9244
9245 2011-09-20  Bruno Haible  <bruno@clisp.org>
9246
9247         Tests for module 'ioctl'.
9248         * modules/ioctl-tests: New file.
9249         * tests/test-ioctl.c: New file.
9250
9251 2011-09-20  Bruno Haible  <bruno@clisp.org>
9252
9253         fcntl tests: EBADF tests.
9254         * tests/test-fcntl.c (main): Add more tests for EBADF.
9255
9256 2011-09-20  Bruno Haible  <bruno@clisp.org>
9257
9258         utimensat tests: EBADF tests.
9259         * tests/test-utimensat.c (main): Add tests for EBADF.
9260
9261         renameat tests: EBADF tests.
9262         * tests/test-renameat.c (main): Add tests for EBADF.
9263
9264         mkfifoat tests: EBADF tests.
9265         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9266
9267         readlinkat tests: EBADF tests.
9268         * tests/test-readlinkat.c (main): Add tests for EBADF.
9269
9270         symlinkat tests: EBADF tests.
9271         * tests/test-symlinkat.c (main): Add tests for EBADF.
9272
9273         linkat tests: EBADF tests.
9274         * tests/test-linkat.c (main): Add tests for EBADF.
9275
9276         Tests for module 'faccessat'.
9277         * modules/faccessat-tests: New file.
9278         * tests/test-faccessat.c: New file.
9279
9280         fdopendir tests: EBADF tests.
9281         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9282
9283         openat tests: EBADF tests.
9284         * tests/test-fchownat.c (main): Add tests for EBADF.
9285         * tests/test-fstatat.c (main): Likewise.
9286         * tests/test-mkdirat.c (main): Likewise.
9287         * tests/test-openat.c (main): Likewise.
9288         * tests/test-unlinkat.c (main): Likewise.
9289         * tests/test-fchmodat.c: New file.
9290         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9291         (Makefile.am): Also run 'test-fchmodat'.
9292
9293 2011-09-20  Bruno Haible  <bruno@clisp.org>
9294
9295         utimens, futimens, fdutimensat tests: EBADF tests.
9296         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9297
9298         Tests for function fstat().
9299         * modules/fstat-tests: New file.
9300         * tests/test-fstat.c: New file.
9301         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9302
9303 2011-09-20  Bruno Haible  <bruno@clisp.org>
9304
9305         test-ttyname_r tests: EBADF tests.
9306         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9307
9308         Tests for module 'isatty'.
9309         * modules/isatty-tests: New file.
9310         * tests/test-isatty.c: New file.
9311
9312         Tests for module 'write'.
9313         * modules/write-tests: New file.
9314         * tests/test-write.c: New file.
9315
9316         Tests for module 'read'.
9317         * modules/read-tests: New file.
9318         * tests/test-read.c: New file.
9319
9320         pwrite tests: EBADF tests.
9321         * tests/test-pwrite.c (main): Add tests for EBADF.
9322
9323         pread tests: EBADF tests.
9324         * tests/test-pread.c (main): Add tests for EBADF.
9325
9326         lseek tests: EBADF tests.
9327         * tests/test-lseek.c (main): Add more tests for EBADF.
9328
9329         Tests for module 'ftruncate'.
9330         * modules/ftruncate-tests: New file.
9331         * tests/test-ftruncate.sh: New file.
9332         * tests/test-ftruncate.c: New file.
9333
9334         fsync tests: EBADF tests.
9335         * tests/test-fsync.c (main): Add more tests for EBADF.
9336
9337         fdatasync tests: EBADF tests.
9338         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9339
9340         Tests for module 'fchown'.
9341         * modules/fchown-tests: New file.
9342         * tests/test-fchown.c: New file.
9343
9344         Tests for module 'fchmod'.
9345         * modules/fchmod-tests: New file.
9346         * tests/test-fchmod.c: New file.
9347
9348         fchdir tests: EBADF tests.
9349         * tests/test-fchdir.c (main): Add more tests for EBADF.
9350
9351         dup2 tests: EBADF tests.
9352         * tests/test-dup2.c (main): Add more tests for EBADF.
9353
9354         Tests for module 'dup'.
9355         * modules/dup-tests: New file.
9356         * tests/test-dup.c: New file.
9357
9358         Tests for module 'close'.
9359         * modules/close-tests: New file.
9360         * tests/test-close.c: New file.
9361
9362 2011-09-20  Bruno Haible  <bruno@clisp.org>
9363
9364         Tests for module 'shutdown'.
9365         * modules/shutdown-tests: New file.
9366         * tests/test-shutdown.c: New file.
9367
9368         Tests for module 'setsockopt'.
9369         * modules/setsockopt-tests: New file.
9370         * tests/test-setsockopt.c: New file.
9371
9372         Tests for module 'sendto'.
9373         * modules/sendto-tests: New file.
9374         * tests/test-sendto.c: New file.
9375
9376         Tests for module 'send'.
9377         * modules/send-tests: New file.
9378         * tests/test-send.c: New file.
9379
9380         Tests for module 'recvfrom'.
9381         * modules/recvfrom-tests: New file.
9382         * tests/test-recvfrom.c: New file.
9383
9384         Tests for module 'recv'.
9385         * modules/recv-tests: New file.
9386         * tests/test-recv.c: New file.
9387
9388         Tests for module 'listen'.
9389         * modules/listen-tests: New file.
9390         * tests/test-listen.c: New file.
9391
9392         Tests for module 'getsockopt'.
9393         * modules/getsockopt-tests: New file.
9394         * tests/test-getsockopt.c: New file.
9395
9396         Tests for module 'getsockname'.
9397         * modules/getsockname-tests: New file.
9398         * tests/test-getsockname.c: New file.
9399
9400         Tests for module 'getpeername'.
9401         * modules/getpeername-tests: New file.
9402         * tests/test-getpeername.c: New file.
9403
9404         Tests for module 'connect'.
9405         * modules/connect-tests: New file.
9406         * tests/test-connect.c: New file.
9407
9408         Tests for module 'bind'.
9409         * modules/bind-tests: New file.
9410         * tests/test-bind.c: New file.
9411
9412         accept4 tests: Fix for native Windows.
9413         * tests/test-accept4.c: Include sockets.h.
9414         (main): Invoke gl_sockets_startup.
9415         * modules/accept4-tests (Depends-on): Add sockets.
9416
9417         accept tests: Fix for native Windows.
9418         * tests/test-accept.c: Include sockets.h.
9419         (main): Invoke gl_sockets_startup.
9420         * modules/accept-tests (Depends-on): Add sockets.
9421
9422 2011-09-19  Bruno Haible  <bruno@clisp.org>
9423
9424         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9425         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9426         do...while(0).
9427         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9428         Suggested by Paul Eggert.
9429
9430 2011-09-19  Bruno Haible  <bruno@clisp.org>
9431
9432         sched: Ensure pid_t is defined.
9433         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9434         not define pid_t.
9435         * lib/sched.in.h: Include <sys/types.h>.
9436         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9438
9439 2011-09-19  Bruno Haible  <bruno@clisp.org>
9440
9441         msvc-inval: Ensure the entire expansion is a single statement.
9442         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9443         of braces.
9444
9445 2011-09-19  Jim Meyering  <meyering@redhat.com>
9446
9447         tests: use printf, not echo in init.sh's warn_ function
9448         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9449         misbehave when given strings containing a backslash or starting
9450         with e.g., -n.  James Youngman suggested setting IFS.
9451
9452 2011-09-19  Eric Blake  <eblake@redhat.com>
9453
9454         futimens: enhance test
9455         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9456         closed non-negative fd.
9457
9458         date: accept 'hence' as opposite of 'ago'
9459         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9460         * tests/test-parse-datetime.c (main): Enhance test.
9461         Suggested by Jesse Wilson.
9462
9463 2011-09-19  Jim Meyering  <meyering@redhat.com>
9464
9465         getcwd: don't fail in a deep directory on a system without openat
9466         Before this change, getcwd would fail when called from a directory
9467         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9468         the non-openat implementation used "..", "../..", "../../..", etc.
9469         to access ancestor directories.  With too many, that string would
9470         be longer than PATH_MAX.
9471         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9472         using gnulib's openat replacement.
9473         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9474         we're using the replacement function.
9475
9476 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9477
9478         maint.mk: avoid warnings from perl about missing files
9479         * top/maint.mk (def_sym_regex): Ignore files listed in
9480         $(gl_other_headers_) that do not exist, say because a project
9481         does not use a corresponding module.
9482
9483 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9484
9485         stat: use pathmax.h only if needed
9486         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9487         This is better for Emacs, which does not have a mingw port and
9488         therefore can avoid the pathmax module.
9489
9490         utimens: remove dependency on dup2
9491         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9492         to work around the Linux kernel bug.
9493         * modules/utimens (Depends-on): Remove dup2.
9494
9495 2011-09-18  Bruno Haible  <bruno@clisp.org>
9496
9497         inet_ntop, inet_pton: Look for it also in libresolv.
9498         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9499         libnsl, search for it in libresolv.
9500         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9501         Needed on Solaris 7.
9502
9503 2011-09-18  Bruno Haible  <bruno@clisp.org>
9504
9505         accept, accept4 tests: Avoid link error on Solaris.
9506         * modules/accept-tests (Makefile.am): Link test-accept against
9507         $(LIBSOCKET).
9508         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9509         $(LIBSOCKET).
9510
9511         accept4: Avoid link error on Solaris.
9512         * modules/accept4 (Link): New section.
9513
9514         socket functions: Avoid link errors on Solaris.
9515         * modules/accept (Depends-on): Add socketlib.
9516         (Link): New section.
9517         * modules/bind (Depends-on): Add socketlib.
9518         (Link): New section.
9519         * modules/connect (Depends-on): Add socketlib.
9520         (Link): New section.
9521         * modules/getpeername (Depends-on): Add socketlib.
9522         (Link): New section.
9523         * modules/getsockname (Depends-on): Add socketlib.
9524         (Link): New section.
9525         * modules/getsockopt (Depends-on): Add socketlib.
9526         (Link): New section.
9527         * modules/listen (Depends-on): Add socketlib.
9528         (Link): New section.
9529         * modules/recv (Depends-on): Add socketlib.
9530         (Link): New section.
9531         * modules/recvfrom (Depends-on): Add socketlib.
9532         (Link): New section.
9533         * modules/send (Depends-on): Add socketlib.
9534         (Link): New section.
9535         * modules/sendto (Depends-on): Add socketlib.
9536         (Link): New section.
9537         * modules/setsockopt (Depends-on): Add socketlib.
9538         (Link): New section.
9539         * modules/shutdown (Depends-on): Add socketlib.
9540         (Link): New section.
9541         * modules/socket (Depends-on): Add socketlib.
9542         (Link): New section.
9543
9544 2011-09-18  Bruno Haible  <bruno@clisp.org>
9545
9546         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9547         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9548         than 5 seconds.
9549         * modules/ptsname-tests (configure.ac): Test for alarm.
9550
9551 2011-09-18  Bruno Haible  <bruno@clisp.org>
9552
9553         posix_spawn_file_actions_add*: Fix module dependencies.
9554         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9555         posix_spawn_file_actions_init.
9556         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9557         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9558
9559 2011-09-18  Bruno Haible  <bruno@clisp.org>
9560
9561         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9562         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9563         * tests/test-renameat.c (main): Likewise.
9564
9565 2011-09-18  Bruno Haible  <bruno@clisp.org>
9566
9567         Tests for module 'accept4'.
9568         * modules/accept4-tests: New file.
9569         * tests/test-accept4.c: New file.
9570
9571 2011-09-18  Bruno Haible  <bruno@clisp.org>
9572
9573         Tests for module 'accept'.
9574         * modules/accept-tests: New file.
9575         * tests/test-accept.c: New file.
9576
9577 2011-09-18  Bruno Haible  <bruno@clisp.org>
9578
9579         dup2: Support for MSVC.
9580         * lib/dup2.c: Include msvc-inval.h.
9581         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9582         _get_osfhandle calls.
9583         * modules/dup2 (Depends-on): Add msvc-inval.
9584         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9585
9586         New module 'msvc-inval'.
9587         * lib/msvc-inval.h: New file.
9588         * lib/msvc-inval.c: New file.
9589         * m4/msvc-inval.m4: New file.
9590         * modules/msvc-inval: New file.
9591
9592 2011-09-17  Bruno Haible  <bruno@clisp.org>
9593
9594         Tests for module 'pclose'.
9595         * modules/pclose-tests: New file.
9596
9597         New module 'pclose'.
9598         * lib/stdio.in.h (pclose): New declaration.
9599         * lib/pclose.c: New file.
9600         * m4/pclose.m4: New file.
9601         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9602         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9603         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9604         * modules/pclose: New file.
9605         * modules/popen-tests (Depends-on): Add pclose.
9606         * modules/popen-safer-tests (Depends-on): Likewise.
9607         * doc/posix-functions/pclose.texi: Mention the new module.
9608
9609 2011-09-17  Bruno Haible  <bruno@clisp.org>
9610
9611         popen: Support for MSVC.
9612         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9613         * lib/popen.c (popen): Provide alternate definition for native Windows.
9614         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9616         * modules/popen (Depends-on, configure.ac): Update condition.
9617         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9618         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9619         fixed.
9620
9621 2011-09-17  Bruno Haible  <bruno@clisp.org>
9622
9623         isnanl, isnand, isnanf: Work around MSVC bug.
9624         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9625
9626 2011-09-17  Bruno Haible  <bruno@clisp.org>
9627
9628         sys_socket tests: Fix recent mistake.
9629         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9630
9631 2011-09-17  Bruno Haible  <bruno@clisp.org>
9632
9633         putenv: Support for MSVC.
9634         * modules/putenv (Depends-on): Add environ.
9635         * lib/putenv.c (environ): Disable declaration.
9636         * lib/unistd.in.h: Update comment.
9637
9638 2011-09-17  Bruno Haible  <bruno@clisp.org>
9639
9640         math: Avoid macro redefinition warnings on MSVC.
9641         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9642         Undefine before redefining.
9643
9644 2011-09-17  Bruno Haible  <bruno@clisp.org>
9645
9646         doc: Mention functions which are declared as macros.
9647         * doc/posix-functions/*[fl].texi: Mention that some functions are
9648         defined as macros with arguments only.
9649
9650 2011-09-17  Bruno Haible  <bruno@clisp.org>
9651
9652         Add dependencies to new dirent related modules.
9653         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9654         * modules/fts (Depends-on): Likewise.
9655         * modules/glob (Depends-on): Likewise.
9656         * modules/savedir (Depends-on): Likewise.
9657         * modules/scandir (Depends-on): Likewise.
9658         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9659         * modules/fdopendir (Depends-on): Add opendir.
9660
9661 2011-09-17  Bruno Haible  <bruno@clisp.org>
9662
9663         inet_pton: Support for MSVC on Windows Vista or newer.
9664         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9665         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9666         HAVE_DECL_INET_PTON is defined.
9667         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9668         On platforms with <winsock2.h>, test whether inet_pton is declared in
9669         <ws2tcpip.h>. If so, arrange to replace it.
9670         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9671         REPLACE_INET_PTON.
9672         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9673         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9674         (Depends-on, configure.ac): Update condition.
9675         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9676
9677 2011-09-17  Bruno Haible  <bruno@clisp.org>
9678
9679         inet_ntop: Support for MSVC on Windows Vista or newer.
9680         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9681         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9682         HAVE_DECL_INET_NTOP is defined.
9683         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9684         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9685         <ws2tcpip.h>. If so, arrange to replace it.
9686         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9687         REPLACE_INET_NTOP.
9688         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9689         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9690         (Depends-on, configure.ac): Update condition.
9691         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9692
9693 2011-09-16  Eric Blake  <eblake@redhat.com>
9694
9695         test-fsync: yet another enhancement
9696         * tests/test-fsync.c (main): Also test behavior on read-only text
9697         file.
9698
9699 2011-09-16  Bruno Haible  <bruno@clisp.org>
9700
9701         Enhance fsync, fdatasync tests.
9702         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9703         * tests/test-fdatasync.c (main): Likewise.
9704
9705 2011-09-16  Bruno Haible  <bruno@clisp.org>
9706
9707         Support for MSVC compiler: Ensure mode_t gets defined.
9708         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9709         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9710         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9711         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9712         * tests/test-fcntl-h.c: Check that mode_t is defined.
9713         * tests/test-sys_stat.c: Likewise.
9714         * tests/test-sys_types.c: Likewise.
9715         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9716         * doc/posix-headers/sys_stat.texi: Likewise.
9717         * doc/posix-headers/sys_types.texi: Likewise.
9718
9719 2011-09-16  Bruno Haible  <bruno@clisp.org>
9720
9721         sys_stat: Support for MSVC.
9722         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9723         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9724         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9725         MSVC.
9726
9727 2011-09-16  Bruno Haible  <bruno@clisp.org>
9728
9729         Support for MSVC compiler: Ensure off_t gets defined.
9730         * lib/unistd.in.h: Include <sys/types.h>.
9731         * tests/test-fcntl-h.c: Check that off_t is defined.
9732         * tests/test-sys_stat.c: Likewise.
9733         * tests/test-sys_types.c: Likewise.
9734
9735 2011-09-16  Eric Blake  <eblake@redhat.com>
9736
9737         fdatasync: port to Solaris
9738         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9739         * modules/fdatasync (Link): Document it.
9740         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9741
9742         fdatasync: port to MacOS X 10.7
9743         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9744         declared.
9745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9746         * modules/unistd (Makefile.am): Substitute it.
9747         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9748         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9749
9750         fdatasync: minor improvements
9751         * modules/fdatasync (Depends-on): Add condition for fsync.
9752         * lib/fdatasync.c (fdatasync): Add comment.
9753         * tests/test-unistd-c++.cc: Test fdatasync.
9754
9755         unistd: update refs to newer POSIX
9756         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9757         Suggested by Bruno Haible.
9758
9759         fdatasync: new module
9760         * modules/fsync (Description): Document difference to fdatasync.
9761         * modules/fdatasync: New module.
9762         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9763         * lib/fdatasync.c (fdatasync): Likewise.
9764         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9765         defaults.
9766         * modules/unistd (Makefile.am): Set witnesses.
9767         * lib/unistd.in.h (fdatasync): Declare.
9768         * MODULES.html.sh: Document it.
9769         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9770         * modules/fdatasync-tests: New test.
9771         * tests/test-fdatasync.c: Likewise.
9772
9773 2011-09-16  Eric Blake  <eblake@redhat.com>
9774
9775         test-fsync: enhance tests
9776         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9777         * tests/test-fsync.c (main): Enhance test.
9778
9779 2011-09-15  Bruno Haible  <bruno@clisp.org>
9780
9781         Support for MSVC compiler: Ensure ssize_t gets defined.
9782         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9783         * doc/posix-headers/stdio.texi: Likewise.
9784         * modules/stdio (Depends-on): Add ssize_t.
9785         * modules/sys_socket (Depends-on): Likewise.
9786         * modules/sys_types (Depends-on): Likewise.
9787         * modules/sys_uio (Depends-on): Likewise.
9788         * modules/unistd (Depends-on): Likewise.
9789         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9790         * tests/test-sys_types.c: Check that ssize_t is defined.
9791
9792 2011-09-14  Bruno Haible  <bruno@clisp.org>
9793
9794         Avoid using #, the m4 comment starter character, near brackets.
9795         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9796         delimiter character in sed expressions.
9797         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9798         Suggested by Eric Blake.
9799
9800         Properly quote AC_CHECK_DECLS' 4th argument.
9801         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9802         argument.
9803         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9804         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9805         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9806         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9807         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9808         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9810         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9811         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9812         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9813         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9814         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9815         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9816         * m4/isinf.m4 (gl_ISINF): Likewise.
9817         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9818         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9819         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9820         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9822         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9823         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9824         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9825         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9826         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9827         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9830         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9832         Reported by Eric Blake.
9833
9834         Properly quote AC_CHECK_DECL's 4th argument.
9835         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9836         argument.
9837         * m4/argp.m4 (gl_ARGP): Likewise.
9838         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9839         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9840         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9841         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9842         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9843         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9844         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9845         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9846         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9847         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9848         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9849         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9850         Reported by Eric Blake.
9851
9852 2011-09-14  Eric Blake  <eblake@redhat.com>
9853
9854         opendir: avoid compile warning
9855         * lib/opendir.c (includes): Always include errno.h.
9856         Reported by Tatsuro MATSUOKA.
9857
9858 2011-09-14  Jim Meyering  <meyering@redhat.com>
9859
9860         maint.mk: sc_tight_scope: propagate failure from sub-make
9861         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9862         Reported by Martin von Gagern.
9863
9864 2011-09-13  Bruno Haible  <bruno@clisp.org>
9865
9866         tempname: Support for MSVC.
9867         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9868         MSVC.
9869         * modules/tempname (Depends-on): Add fcntl-h.
9870
9871 2011-09-13  Bruno Haible  <bruno@clisp.org>
9872
9873         sys_time: Support for MSVC.
9874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9875         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9876         include <winsock2.h>.
9877         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9878         function declarations that collide with POSIX.
9879         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9880         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9881
9882 2011-09-13  Bruno Haible  <bruno@clisp.org>
9883
9884         stat: Support for MSVC.
9885         * lib/stat.c: Include pathmax.h.
9886         * modules/stat (Depends-on): Add pathmax.
9887
9888         pathmax: Support for native Windows.
9889         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9890
9891 2011-09-12  Bruno Haible  <bruno@clisp.org>
9892
9893         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9894         * lib/dirent.in.h (struct dirent): New type.
9895         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9896         DT_WHT): New macros.
9897         (DIR): New type.
9898         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9899         (readdir, rewinddir): New declarations.
9900         * lib/dirent-private.h: New file.
9901         * lib/opendir.c: New file.
9902         * lib/readdir.c: New file.
9903         * lib/rewinddir.c: New file.
9904         * lib/closedir.c: New file.
9905         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9906         * m4/opendir.m4: New file.
9907         * m4/readdir.m4: New file.
9908         * m4/rewinddir.m4: New file.
9909         * m4/closedir.m4: New file.
9910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9911         REPLACE_CLOSEDIR here.
9912         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9913         readdir, rewinddir are declared.
9914         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9915         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9916         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9917         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9918         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9919         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9920         * modules/opendir: New file.
9921         * modules/readdir: New file.
9922         * modules/rewinddir: New file.
9923         * modules/closedir: New file.
9924         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9925         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9926         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9927         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9928         * NEWS: Mention the 'fchdir' change.
9929
9930 2011-09-11  Bruno Haible  <bruno@clisp.org>
9931
9932         asm-underscore.m4: Support for MSVC.
9933         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9934         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9935
9936 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9937
9938         Doc about crypt functions.
9939         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9940         needing for _GNU_SOURCE to get crypt.
9941         * doc/posix-functions/encrypt.texi: Likewise.
9942         * doc/posix-functions/setkey.texi: Likewise.
9943
9944 2011-09-11  Bruno Haible  <bruno@clisp.org>
9945
9946         doc: Update regarding MSVC 9.
9947         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9948         tested".
9949         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9950         * doc/posix-headers/*.texi: Likewise.
9951         * doc/pastposix-functions/*.texi: Likewise.
9952         * doc/glibc-functions/*.texi: Likewise.
9953         * doc/glibc-headers/*.texi: Likewise.
9954
9955 2011-09-11  Bruno Haible  <bruno@clisp.org>
9956
9957         unistd et al.: Don't assume <unistd.h> exists.
9958         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9959         does not exist.
9960         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9961         exist. But include <stdlib.h>.
9962         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9963         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9964         symlink() does not exist.
9965         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9966         include <io.h> instead.
9967         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9968         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9969         include <direct.h> instead.
9970         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9972         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9973         <io.h> instead.
9974         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9975         correctly if the system does not have hard links.
9976         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9977         <direct.h> instead.
9978         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9979         it when looking for function declarations.
9980         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9981         <direct.h> and <io.h> instead.
9982         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9983
9984 2011-09-11  Bruno Haible  <bruno@clisp.org>
9985
9986         strcase: Support for MSVC.
9987         * modules/strcase (Status, Notice): Remove obsoletion mark.
9988         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9989         * doc/posix-functions/strncasecmp.texi: Likewise.
9990
9991         strings: Don't assume <strings.h> exists.
9992         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9993         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9994         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9995         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9996
9997 2011-09-11  Bruno Haible  <bruno@clisp.org>
9998
9999         dirent: Don't assume <dirent.h> exists.
10000         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10001         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10002         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10003         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10004
10005 2011-09-11  Bruno Haible  <bruno@clisp.org>
10006
10007         Fix wint_t on MSVC.
10008         * lib/wchar.in.h (wint_t): On MSVC, override it.
10009         * lib/wctype.in.h (wint_t): Likewise.
10010         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10011         MSVC.
10012         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10013         * doc/posix-headers/wctype.texi: Likewise.
10014
10015 2011-09-11  Bruno Haible  <bruno@clisp.org>
10016
10017         sys_types: Fix typo.
10018         * lib/sys_types.in.h: Fix typo in comment.
10019         Reported by Paul Eggert.
10020
10021         Support for MSVC compiler: Ensure size_t gets defined.
10022         * modules/strings (Depends-on): Add 'sys_types'.
10023         * modules/sys_uio (Depends-on): Likewise.
10024         * lib/sys_uio.in.h: Update comment.
10025
10026         C++ tests for module 'sys_types'.
10027         * modules/sys_types-c++-tests: New file.
10028         * tests/test-sys_types-c++.cc: New file.
10029
10030         Tests for module 'sys_types'.
10031         * modules/sys_types-tests: New file.
10032         * tests/test-sys_types.c: New file.
10033
10034         New module 'sys_types'.
10035         * lib/sys_types.in.h: New file.
10036         * m4/sys_types_h.m4: New file.
10037         * modules/sys_types: New file.
10038         * doc/posix-headers/sys_types.texi: Mention the new module and the
10039         size_t problem on MSVC 9.
10040
10041 2011-09-11  Bruno Haible  <bruno@clisp.org>
10042
10043         Support for MSVC compiler: Avoid division by a literal 0.
10044         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10045         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10046         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10047         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10048         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10049         * tests/infinity.h: New file.
10050         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10051         on MSVC.
10052         * tests/test-ceilf1.c: Include infinity.h.
10053         (main): Use Infinityf.
10054         * tests/test-ceil1.c: Include infinity.h.
10055         (main): Use Infinityd.
10056         * tests/test-ceill.c: Include infinity.h.
10057         (main): Use Infinityl.
10058         * tests/test-dprintf-posix.c: Include infinity.h.
10059         (test_function): Use Infinityd.
10060         * tests/test-floorf1.c: Include infinity.h.
10061         (main): Use Infinityf.
10062         * tests/test-floor1.c: Include infinity.h.
10063         (main): Use Infinityd.
10064         * tests/test-floorl.c: Include infinity.h.
10065         (main): Use Infinityl.
10066         * tests/test-fprintf-posix.c: Include infinity.h.
10067         (test_function): Use Infinityd.
10068         * tests/test-frexp.c: Include infinity.h.
10069         (main): Use Infinityd.
10070         * tests/test-frexpl.c: Include infinity.h.
10071         (main): Use Infinityl.
10072         * tests/test-isfinite.c: Include infinity.h.
10073         (test_isfinitef): Use Infinityf.
10074         (test_isfinited): Use Infinityd.
10075         (test_isfinitel): Use Infinityl.
10076         * tests/test-isinf.c: Include infinity.h.
10077         (test_isinff): Use Infinityf.
10078         (test_isinfd): Use Infinityd.
10079         (test_isinfl): Use Infinityl.
10080         * tests/test-isnan.c: Include infinity.h.
10081         (test_float): Use Infinityf.
10082         (test_double): Use Infinityd.
10083         (test_long_double): Use Infinityl.
10084         * tests/test-isnanf.h: Include infinity.h.
10085         (main): Use Infinityf.
10086         * tests/test-isnand.h: Include infinity.h.
10087         (main): Use Infinityd.
10088         * tests/test-isnanl.h: Include infinity.h.
10089         (main): Use Infinityl.
10090         * tests/test-ldexpl.c: Include infinity.h.
10091         (main): Use Infinityl.
10092         * tests/test-printf-posix.h: Include infinity.h.
10093         (test_function): Use Infinityd.
10094         * tests/test-roundf1.c: Include infinity.h.
10095         (main): Use Infinityf.
10096         * tests/test-round1.c: Include infinity.h.
10097         (main): Use Infinityd.
10098         * tests/test-roundl.c: Include infinity.h.
10099         (main): Use Infinityl.
10100         * tests/test-signbit.c: Include infinity.h.
10101         (test_signbitf): Use Infinityf.
10102         (test_signbitd): Use Infinityd.
10103         (test_signbitl): Use Infinityl.
10104         * tests/test-snprintf-posix.h: Include infinity.h.
10105         (test_function): Use Infinityd, Infinityl.
10106         * tests/test-sprintf-posix.h: Include infinity.h.
10107         (test_function): Use Infinityd, Infinityl.
10108         * tests/test-truncf1.c: Include infinity.h.
10109         (main): Use Infinityf.
10110         * tests/test-trunc1.c: Include infinity.h.
10111         (main): Use Infinityd.
10112         * tests/test-truncl.c: Include infinity.h.
10113         (main): Use Infinityl.
10114         * tests/test-vasnprintf-posix.c: Include infinity.h.
10115         (test_function): Use Infinityd, Infinityl.
10116         * tests/test-vasprintf-posix.c: Include infinity.h.
10117         (test_function): Use Infinityd, Infinityl.
10118         * modules/ceilf-tests (Files): Add tests/infinity.h.
10119         * modules/ceil-tests (Files): Likewise.
10120         * modules/ceill-tests (Files): Likewise.
10121         * modules/dprintf-posix-tests (Files): Likewise.
10122         * modules/floorf-tests (Files): Likewise.
10123         * modules/floor-tests (Files): Likewise.
10124         * modules/floorl-tests (Files): Likewise.
10125         * modules/fprintf-posix-tests (Files): Likewise.
10126         * modules/frexp-tests (Files): Likewise.
10127         * modules/frexp-nolibm-tests (Files): Likewise.
10128         * modules/frexpl-tests (Files): Likewise.
10129         * modules/frexpl-nolibm-tests (Files): Likewise.
10130         * modules/isfinite-tests (Files): Likewise.
10131         * modules/isinf-tests (Files): Likewise.
10132         * modules/isnan-tests (Files): Likewise.
10133         * modules/isnanf-tests (Files): Likewise.
10134         * modules/isnanf-nolibm-tests (Files): Likewise.
10135         * modules/isnand-tests (Files): Likewise.
10136         * modules/isnand-nolibm-tests (Files): Likewise.
10137         * modules/isnanl-tests (Files): Likewise.
10138         * modules/isnanl-nolibm-tests (Files): Likewise.
10139         * modules/ldexpl-tests (Files): Likewise.
10140         * modules/printf-posix-tests (Files): Likewise.
10141         * modules/roundf-tests (Files): Likewise.
10142         * modules/round-tests (Files): Likewise.
10143         * modules/roundl-tests (Files): Likewise.
10144         * modules/signbit-tests (Files): Likewise.
10145         * modules/snprintf-posix-tests (Files): Likewise.
10146         * modules/sprintf-posix-tests (Files): Likewise.
10147         * modules/truncf-tests (Files): Likewise.
10148         * modules/trunc-tests (Files): Likewise.
10149         * modules/truncl-tests (Files): Likewise.
10150         * modules/vasnprintf-posix-tests (Files): Likewise.
10151         * modules/vasprintf-posix-tests (Files): Likewise.
10152         * modules/vdprintf-posix-tests (Files): Likewise.
10153         * modules/vfprintf-posix-tests (Files): Likewise.
10154         * modules/vprintf-posix-tests (Files): Likewise.
10155         * modules/vsnprintf-posix-tests (Files): Likewise.
10156         * modules/vsprintf-posix-tests (Files): Likewise.
10157         * modules/xprintf-posix-tests (Files): Likewise.
10158
10159 2011-09-11  Bruno Haible  <bruno@clisp.org>
10160
10161         Ensure pid_t gets defined.
10162         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10163         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10164         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10165         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10166         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10167         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10168         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10169         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10170         * tests/test-fcntl-h.c: Check that pid_t is defined.
10171         * tests/test-sched.c: Likewise.
10172         * tests/test-termios.c: Likewise.
10173         * tests/test-time.c: Likewise.
10174         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10175         * doc/posix-headers/signal.texi: Likewise.
10176         * doc/posix-headers/sys_types.texi: Likewise.
10177         * doc/posix-headers/time.texi: Likewise.
10178
10179 2011-09-11  Bruno Haible  <bruno@clisp.org>
10180
10181         acl: Fix compilation on Solaris 10 (older version).
10182         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10183         of ACE_EVERYONE.
10184         * lib/set-mode-acl.c (qset_acl): Likewise.
10185         Reported by Christian Jullien <eligis@orange.fr>.
10186
10187 2011-09-10  Bruno Haible  <bruno@clisp.org>
10188
10189         iconv, unsetenv: Add support for MSVC compiler.
10190         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10191         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10192
10193 2011-09-10  Bruno Haible  <bruno@clisp.org>
10194
10195         *printf: Add support for MSVC compiler.
10196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10197         handles the exception caused by the %n directive. When cross-compiling,
10198         guess no on native Windows.
10199         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10200         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10201         emulate it through vsnprintf.
10202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10203         * doc/posix-functions/dprintf.texi: Update documentation regarding
10204         MSVC 9.
10205         * doc/posix-functions/fprintf.texi: Likewise.
10206         * doc/posix-functions/printf.texi: Likewise.
10207         * doc/posix-functions/snprintf.texi: Likewise.
10208         * doc/posix-functions/sprintf.texi: Likewise.
10209         * doc/posix-functions/swprintf.texi: Likewise.
10210         * doc/posix-functions/vdprintf.texi: Likewise.
10211         * doc/posix-functions/vfprintf.texi: Likewise.
10212         * doc/posix-functions/vprintf.texi: Likewise.
10213         * doc/posix-functions/vsnprintf.texi: Likewise.
10214         * doc/posix-functions/vsprintf.texi: Likewise.
10215         * doc/glibc-functions/asprintf.texi: Likewise.
10216         * doc/glibc-functions/obstack_printf.texi: Likewise.
10217         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10218         * doc/glibc-functions/vasprintf.texi: Likewise.
10219
10220 2011-09-10  Bruno Haible  <bruno@clisp.org>
10221
10222         nocrash: Add support for native Windows.
10223         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10224
10225 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10226             Bruno Haible  <bruno@clisp.org>
10227
10228         absolute-header, include-next: Add support for MSVC compiler.
10229         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10230         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10231         directory separator in #line directives.
10232         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10233         recognize also backslash as directory separator in #line directives.
10234
10235 2011-09-08  Jim Meyering  <meyering@redhat.com>
10236
10237         maint.mk: mark the post-release commit log with "maint: " prefix
10238         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10239         one-line commit-log summary.
10240
10241 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10242             Bruno Haible  <bruno@clisp.org>
10243
10244         Doc about crypt functions.
10245         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10246         systems.
10247         * doc/posix-functions/encrypt.texi: Likewise.
10248         * doc/posix-functions/setkey.texi: Likewise.
10249
10250 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10251
10252         * lib/gc.h: Fix copyright header.
10253
10254 2011-09-07  Bruno Haible  <bruno@clisp.org>
10255
10256         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10257         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10258         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10259
10260 2011-09-07  Bruno Haible  <bruno@clisp.org>
10261
10262         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10263         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10264         * lib/freopen.c: Likewise.
10265         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10266         * lib/lstat.c: Likewise.
10267         * lib/stat.c: Likewise.
10268         * lib/open.c: Use different syntax for include of <fcntl.h>.
10269         * lib/openat.c: Include fcntl.h again, explicitly.
10270
10271 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10272
10273         parse-datetime: document the newly accepted format
10274         * doc/parse-datetime.texi (Combined date and time of day items):
10275         New section.
10276
10277 2011-09-06  Bruno Haible  <bruno@clisp.org>
10278
10279         acl: Fix a test failure on newer Solaris 10 with ZFS.
10280         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10281         ENOSYS as no ACL.
10282         Reported by Jim Meyering.
10283
10284 2011-09-06  Bruno Haible  <bruno@clisp.org>
10285
10286         acl: Update for AIX >= 5.3 with NFS.
10287         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10288         ENOSYS as no ACL.
10289
10290         acl: Fix a test failure on AIX >= 5.3 with NFS.
10291         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10292         as no ACL.
10293
10294 2011-09-06  Bruno Haible  <bruno@clisp.org>
10295
10296         acl: Fix a test failure on IRIX 6.5 with NFS.
10297         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10298         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10299         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10300         * lib/copy-acl.c (qcopy_acl): Likewise.
10301
10302 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10303
10304         openat: port to AIX 7.1 with large files
10305         AIX 7.1 does a "#define openat open64at" if large files are in use,
10306         so we can't simply #undef openat.  Use the orig_openat trick (similar
10307         to orig_open in lib/open.c) to work around the problem.  Problem
10308         reported by Kevin Brott for GNU tar, in the thread containing
10309         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10310         * lib/openat.c (__need_system_fcntl_h): Define first.
10311         Include <fcntl.h> and <sys/types.h> before undefining.
10312         (orig_openat) [HAVE_OPENAT]: New inline function.
10313         (openat) [HAVE_OPENAT]: Do not undef.
10314         (rpl_openat): Use orig_openat, not openat.
10315
10316 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10317             Bruno Haible  <bruno@clisp.org>
10318
10319         acl: Avoid errors on NonStop Kernel.
10320         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10321         ENOTSUP errors.
10322
10323 2011-09-05  Bruno Haible  <bruno@clisp.org>
10324
10325         acl: Clean up Solaris code.
10326         * lib/acl-internal.h: Remove no-op #if.
10327         * lib/file-has-acl.c: Likewise.
10328         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10329         * lib/copy-acl.c (qcopy_acl): Likewise.
10330
10331 2011-09-05  Bruno Haible  <bruno@clisp.org>
10332
10333         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10334         binaries built on the original Solaris 10.
10335         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10336         trivial.
10337
10338 2011-09-05  Bruno Haible  <bruno@clisp.org>
10339
10340         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10341         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10342         10.
10343         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10344         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10345         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10346         instead of acl_get, facl_get, acl_set, facl_set.
10347
10348 2011-09-05  Bruno Haible  <bruno@clisp.org>
10349
10350         copy-file: Try unit tests on more file systems.
10351         * tests/test-copy-file-1.sh: New file.
10352         * tests/test-copy-file-2.sh: New file.
10353         * modules/copy-file-tests (Files): Add them.
10354         (Makefile.am): Add them to TESTS.
10355
10356         acl: Try unit tests on more file systems.
10357         * tests/test-file-has-acl-1.sh: New file.
10358         * tests/test-file-has-acl-2.sh: New file.
10359         * tests/test-set-mode-acl-1.sh: New file.
10360         * tests/test-set-mode-acl-2.sh: New file.
10361         * tests/test-copy-acl-1.sh: New file.
10362         * tests/test-copy-acl-2.sh: New file.
10363         * modules/acl-tests (Files): Add them.
10364         (Makefile.am): Add them to TESTS.
10365
10366 2011-09-04  Bruno Haible  <bruno@clisp.org>
10367
10368         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10369         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10370         10.
10371         (OLD_ALLOW, OLD_DENY): New macros.
10372         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10373         ACE_ACCESS_ALLOWED_ACE_TYPE.
10374         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10375         ACE_ACCESS_DENIED_ACE_TYPE.
10376         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10377         (NEW_ACE_EXECUTE): Fix value.
10378         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10379         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10380         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10381         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10382         NEW_ACE_SYNCHRONIZE): New macros.
10383         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10384         instead of acl_fromtext, acl_set, facl_set.
10385         Fixes a coreutils/tests/cp/perm failure.
10386
10387 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10388
10389         openat: test for fstatat (..., 0) bug
10390         Further testing with tar suggests that fstatat (..., 0)
10391         does not work in general, on AIX 7.1; see
10392         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10393         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10394         replacement fstatat (which is what older AIX releases were using
10395         anyway).
10396         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10397         use is now changed to orig_fstatat.  This was probably the right
10398         thing to do anyway.
10399         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10400         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10401         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10402         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10403         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10404         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10405         if the bug is found.
10406
10407         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10408         This tests for another fstatat bug on AIX 7.1:
10409         fstatat (AT_FDCWD, ..., 0) does not work.  See
10410         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10411         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10412         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10413         (rpl_fstatat): Adjust so that it works around either (or both)
10414         bugs if present.
10415         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10416
10417 2011-09-03  Karl Berry  <karl@gnu.org>
10418
10419         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10420         in index entries.
10421
10422 2011-09-02  Bruno Haible  <bruno@clisp.org>
10423
10424         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10425         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10426         values of AR, ARFLAGS, RANLIB.
10427         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10428
10429 2011-09-02  Bruno Haible  <bruno@clisp.org>
10430
10431         Find 'ar' program that fits with --host argument.
10432         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10433
10434 2011-09-02  Bruno Haible  <bruno@clisp.org>
10435
10436         tests: init.sh: Support any non-GNU diff.
10437         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10438         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10439         Solaris 8.
10440
10441 2011-09-02  Bruno Haible  <bruno@clisp.org>
10442
10443         tests: init.sh: work also with any non-GNU diff that supports -u
10444         * tests/init.sh: Relax check for diff -u support.
10445         Rather than checking for GNU diff via --version, simply check
10446         for support for -u itself.  Useful at least on OpenBSD 4.9,
10447         AIX 7.1, IRIX 6.5, and Solaris 10.
10448
10449 2011-09-01  Bruno Haible  <bruno@clisp.org>
10450
10451         strtoimax, strtoumax: Document problem on HP-UX 11.
10452         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10453         * doc/posix-functions/strtoumax.texi: Likewise.
10454
10455 2011-09-01  Bruno Haible  <bruno@clisp.org>
10456
10457         strtoumax: Avoid link error on OSF/1 with DTK cc.
10458         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10459         defined as a function.
10460         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10461         strtoumax is defined, not whether it is declared.
10462
10463 2011-09-01  Bruno Haible  <bruno@clisp.org>
10464
10465         strtoimax: Avoid link error on OSF/1 with DTK cc.
10466         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10467         defined as a function.
10468         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10469         strtoimax is defined, not whether it is declared.
10470
10471 2011-09-01  Bruno Haible  <bruno@clisp.org>
10472
10473         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10474         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10475         as a function.
10476         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10477         whether it is declared.
10478
10479 2011-09-01  Bruno Haible  <bruno@clisp.org>
10480
10481         imaxabs: Avoid link error on OSF/1 with DTK cc.
10482         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10483         as a function.
10484         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10485         whether it is declared.
10486
10487 2011-09-01  Bruno Haible  <bruno@clisp.org>
10488
10489         Tests for module 'strtoumax'.
10490         * modules/strtoumax-tests: New file.
10491         * tests/test-strtoumax.c: New file.
10492
10493         Tests for module 'strtoimax'.
10494         * modules/strtoimax-tests: New file.
10495         * tests/test-strtoimax.c: New file.
10496
10497         Tests for module 'imaxdiv'.
10498         * modules/imaxdiv-tests: New file.
10499         * tests/test-imaxdiv.c: New file.
10500
10501         Tests for module 'imaxabs'.
10502         * modules/imaxabs-tests: New file.
10503         * tests/test-imaxabs.c: New file.
10504
10505 2011-09-01  Bruno Haible  <bruno@clisp.org>
10506
10507         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10508         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10509         pthread_create.
10510
10511 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10512
10513         openat: work around AIX 7.1 fstatat issue
10514         This should fix the problem that was not properly fixed
10515         in the previous change, dated 2011-08-30.
10516         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10517         __need_system_stat_h defined.
10518         (orig_fstatat) [HAVE_FSTATAT]: New function.
10519         (rpl_fstatat): Go back to the old way of doing things,
10520         except call orig_fstatat instead of fstatat.
10521         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10522         Remove unnecessary check whether fstatat fills in st_size etc.
10523
10524 2011-09-01  Bruno Haible  <bruno@clisp.org>
10525
10526         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10527         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10528         just include the system's header.
10529
10530 2011-08-31  Jim Meyering  <meyering@redhat.com>
10531
10532         tests: avoid spurious assertion failure in test-float.c on ppc64
10533         * tests/test-float.c (test_long_double): Comment out an assertion,
10534         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10535         with gcc-4.4.4.
10536
10537         maint: indent with spaces, not TABs
10538         I need to get in the habit of running gnulib's "make check".
10539         Both of these would have been caught.
10540         * m4/largefile.m4: Indent with spaces, not TABs.
10541         * lib/parse-datetime.y (iso_8601_time): Likewise.
10542         Spotted by Pádraig Brady.
10543
10544         test-parse-datetime.c: accommodate a relatively strict gcc warning
10545         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10546         to avoid a warning from gcc's -Werror=missing-declarations.
10547         Insert a few spaces-before-funcall-parenthesis.
10548
10549 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10550
10551         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10552         The parser now accepts ISO 8601 date-time strings with "T" as the
10553         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10554         with a space between the date and time strings.  Now it also parses
10555         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10556         variants like "2004-02-29T16:21:42.333-07:00"
10557         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10558         of day representation using the 'T' separator character.
10559         * doc/parse-datetime.texi (General date syntax): replace use of
10560         deprecated --iso-8601 option with --rfc-3339 in example of date
10561         command output formats that can be parsed.
10562         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10563         lib/parse-datetime.y.
10564         (gmt_offset): New function.
10565         (main): Add additional test cases to validate ISO8601 extended
10566         date and time of day parsing.
10567
10568 2011-08-31  Bruno Haible  <bruno@clisp.org>
10569
10570         freopen: Documentation.
10571         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10572         name.
10573         Reported by Claudio Bley <claudio.bley@gmail.com>.
10574
10575 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10576
10577         freopen: Don't crash if the filename argument is NULL.
10578         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10579         NULL.
10580
10581 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         openat: work around AIX 7.1 fstatat bug
10584         Problem reported by Kevin Brott for GNU tar, in the thread containing
10585         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10586         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10587         FSTATAT_ST_SIZE_ETC_BROKEN.
10588         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10589         rpl_fstatat.
10590         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10591         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10592         AC_CHECK_FUNCS_ONCE for fstatat.
10593         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10594         fchmodat, mkdirat, openat and unlinkat.
10595
10596 2011-08-30  Bruno Haible  <bruno@clisp.org>
10597
10598         Avoid endless recursions if config.h includes some header files.
10599         * lib/fopen.c (__need_FILE): Define already before including config.h.
10600         * lib/freopen.c (__need_FILE): Likewise.
10601         * lib/open.c (__need_system_fcntl_h): Likewise.
10602         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10603         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10604         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10605
10606 2011-08-25  Karl Berry  <karl@gnu.org>
10607
10608         * config/srclist.txt (ylwrap): new try.
10609         * build-aux/ylwrap: new file.
10610
10611 2011-08-23  Bruno Haible  <bruno@clisp.org>
10612
10613         tmpdir: Use a good default directory on native Windows.
10614         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10615         (P_tmpdir): Default to _P_tmpdir on native Windows.
10616         (path_search): On native Windows, try the value returned by GetTempPath
10617         before trying P_tmpdir.
10618         * modules/tmpdir (Depends-on): Add pathmax.
10619         Suggested by John Darrington <john@darrington.wattle.id.au>.
10620
10621 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10622
10623         doc: fix typo in README-release
10624         * top/README-release: Capitalize first word of a sentence.
10625
10626 2011-08-19  Jim Meyering  <meyering@redhat.com>
10627
10628         fts: do not exhaust memory when processing million-entry directories
10629         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10630         directory would require about 256*N bytes of memory.  Thus, it was
10631         easy to construct a directory too large to be processed by any of
10632         those tools.  With this change, fts' maximum memory utilization is
10633         now limited to around 30MB.
10634         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10635         (fts_read): When we've processed the final entry (i.e., when
10636         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10637         using the parent entry to read any remaining entries.  Dispatch
10638         depending on what fts_build returns:
10639         - NULL+stop, aka failure: stop
10640         - NULL otherwise: move up in the dir hierarchy
10641         - non-NULL: handle this new entry
10642         (fts_build): Declare and use new local, continue_readdir.
10643         Prepare to be called from fts_read, when the entries
10644         from a partially-read directory have just been exhausted.
10645         In that case, we'll skip the opendir and instead use the parent's
10646         fts_dirp and derive dir_fd from that.
10647         Finally, in the readdir loop, if we read max_entries entries,
10648         exit the loop ensuring *not* to call closedir.  This is required
10649         so that fts_dirp can be reused on a subsequent call.
10650         Prompted by Ben England's report of memory exhaustion in find
10651         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10652
10653         maint: fts: move decl of `dp' down into while loop; split a long line
10654         * lib/fts.c (fts_build): No semantic change.
10655
10656         fts: add/use new struct member, fts_dirp
10657         We are about to use this to manage any directory with
10658         too many entries to read all of them into memory at once.
10659         To do that, we'll need to save the DIR* pointer in each
10660         affected FTSENT struct.
10661         * lib/fts_.h: Include <dirent.h>.
10662         (struct FTSENT) [fts_dirp]: New member.
10663         * lib/fts.c (closedir_and_clear): Define.
10664         Use it in place of closedir so that we are sure to
10665         clear the new fts_dirp member when done with it.
10666         (fts_alloc): Initialize the new member.
10667         (fts_lfree): Free, if needed.
10668
10669         maint: fts: give __opendir2 a new parameter and rename
10670         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10671         than surreptitiously using sole caller's "dir_fd".
10672         (fts_opendir): Rename from __opendir2.
10673
10674         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10675         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10676
10677         maint: fts.c: correct off-by-one indentation
10678         * lib/fts.c (fts_build): Correct indentation, change style
10679         of a couple of block comments, and bracing style.
10680
10681         maint: fts.c: move __opendir2 #define "up" out of function body
10682         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10683
10684         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10685         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10686         out for a long time and besides was useful only on BSD systems.
10687
10688 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10689
10690         regex: port to Stratus OpenVOS
10691         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10692         define to empty, rather than attempting nonportable optimizations.
10693         Problem reported by Paul Green in:
10694         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10695         and fix suggested by Eric Blake in:
10696         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10697
10698 2011-08-17  Eric Blake  <eblake@redhat.com>
10699
10700         getcwd: fix test failures on mingw
10701         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10702         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10703         test if long directory cannot be created, and allow mingw errno.
10704
10705         getcwd-lgpl: fix m4 to match relaxed test for BSD
10706         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10707         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10708         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10709         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10710         signature problem.
10711
10712         getcwd: fix compilation on mingw64
10713         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10714         getcwd.
10715         Reported by Marc-André Lureau.
10716
10717         pipe2: silence compiler warning
10718         * lib/pipe2.c (pipe2): Hide label if it is not used.
10719
10720 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10721
10722         relocatable-prog: fix link error
10723         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10724         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10725         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10726         into modules/relocatable-lib without noticing that
10727         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10728         also needs to build relocatable.c.
10729
10730 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10731
10732         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10733         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10734         shell code: it contained a 'break' that was not in a loop.
10735         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10736         via a shell-language loop; this may have been true in old Autoconf
10737         versions, but it's not true in Autoconf 2.68.  I found this bug
10738         when testing coreutils git on Solaris 8, whose shell complains
10739         about the syntax error.
10740
10741 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10742
10743         * lib/base64.c: Fix comment to reference RFC 4648.
10744         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10745         <gvtulder@gmail.com>.
10746
10747 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10748
10749         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10750
10751         po/Makefile.in.in: fix make -q problem
10752         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10753         rule, since there's no file named 'check-macro-version' and its
10754         use as a file breaks make -q.
10755         (all): Don't depend on check-macro-version.
10756         (CHECK_MACRO_VERSION): New macro.
10757         (stamp-po): Use it.
10758
10759         configmake: fix make -q problem
10760         * modules/configmake (configmake.h): Update configmake.h's time stamp
10761         even if the file does not change.  Otherwise, 'make -q' fails.
10762         Problem reported by Simon Josefsson in
10763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10764
10765 2011-08-11  Jim Meyering  <meyering@redhat.com>
10766
10767         git-version-gen: correct the advice in a comment
10768         * build-aux/git-version-gen: Correct comment.
10769         Don't recommend to list .tarball-version in .gitignore.
10770
10771 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10772
10773         base64: fix off-by-one buffer size bug
10774         Problem and (trivial) fix reported by Gijs van Tulder in
10775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10776         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10777         * tests/test-base64.c (main): Catch the bug.
10778
10779 2011-08-10  Eric Blake  <eblake@redhat.com>
10780
10781         closein: correct comments
10782         * lib/closein.c (close_stdin): Improve comments.
10783
10784 2011-08-09  Bruno Haible  <bruno@clisp.org>
10785
10786         More tests for 'fseeko'.
10787         * tests/test-fseeko3.c: New file, from Eric Blake.
10788         * tests/test-fseeko3.sh: New file.
10789         * modules/fseeko-tests (Files): Add them.
10790         (TESTS): Add test-fseeko3.sh.
10791         (check_PROGRAMS): Add test-fseeko3.
10792
10793 2011-08-09  Eric Blake  <eblake@redhat.com>
10794
10795         fseeko: remove unneeded hack
10796         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10797
10798         fseeko: fix bug on glibc
10799         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10800         Reported by John W. Eaton.
10801
10802 2011-08-08  Bruno Haible  <bruno@clisp.org>
10803
10804         unictype/base: Fix interoperability with preinstalled libunistring.
10805         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10806         Reported by Simon Josefsson.
10807
10808 2011-08-08  Bruno Haible  <bruno@clisp.org>
10809
10810         iswblank: Detect declaration correctly.
10811         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10812         AC_CHECK_DECLS invocation.
10813
10814 2011-08-08  Bruno Haible  <bruno@clisp.org>
10815
10816         tcgetsid: Detect declaration correctly.
10817         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10818         AC_CHECK_DECLS invocation.
10819         Reported by Simon Josefsson.
10820
10821 2011-08-08  Eric Blake  <eblake@redhat.com>
10822
10823         largefile: fix typo that regressed large file support
10824         * modules/largefile (configure.ac-early): Fix section name.
10825
10826 2011-08-06  Karl Berry  <karl@gnu.org>
10827
10828         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10829         a separate module.
10830
10831 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10832
10833         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10834         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10835         get prototype for free.
10836
10837 2011-08-04  Bruno Haible  <bruno@clisp.org>
10838
10839         Tests for module 'pathmax'.
10840         * modules/pathmax-tests: New file.
10841         * tests/test-pathmax.c: New file.
10842
10843         canonicalize-lgpl: Support larger filenames on the Hurd.
10844         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10845         Reported by Paul Eggert.
10846
10847         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10848         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10849         * lib/chdir-long.h: Include pathmax.h.
10850         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10851         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10852         (PATH_MAX): Remove code that is done by pathmax.h.
10853         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10854         * lib/tmpfile.c: Add a comment.
10855         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10856         * modules/chdir-long (Depends-on): Add pathmax.
10857         * modules/getcwd (Depends-on): Add pathmax.
10858         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10859         is not defined.
10860         * doc/posix-headers/limits.texi: Mention the pathmax module.
10861         * NEWS: Mention the change.
10862
10863 2011-08-02  Bruno Haible  <bruno@clisp.org>
10864
10865         pthread_sigmask: Actually use results of gl_THREADLIB.
10866         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10867         gl_THREADLIB, not gl_[]THREADLIB.
10868         Reported by Eric Blake.
10869
10870 2011-08-02  Jim Meyering  <meyering@redhat.com>
10871
10872         maint.mk: relax the default _gl_TS_function_match regexp
10873         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10874         space between function name and "(" in an "extern" declaration.
10875         That would fail to match a decl with no space there: extern void foo();
10876
10877 2011-07-31  Iain Nicol  <iain@thenicols.net>
10878
10879         git-version-gen: document that EXTRA_DIST must include .version
10880         * build-aux/git-version-gen: In the how-to-use comment, document
10881         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10882         will fail when run from an unpacked distribution tarball.
10883
10884 2011-08-01  Bruno Haible  <bruno@clisp.org>
10885
10886         wctype-h: Fix last change.
10887         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10888         REPLACE_TOWLOWER to 0.
10889         Reported by Sam Steingold <sds@gnu.org>.
10890
10891 2011-07-31  Bruno Haible  <bruno@clisp.org>
10892
10893         frexpl: Update autoconf test.
10894         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10895         according to changes of 2011-06-20.
10896
10897 2011-07-31  Bruno Haible  <bruno@clisp.org>
10898
10899         sys_utsname: Add support for Minix.
10900         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10901         <sys/utsname.h>.
10902         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10903         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10904
10905 2011-07-31  Bruno Haible  <bruno@clisp.org>
10906
10907         strings: Add support for Minix.
10908         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10909         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10910         * doc/posix-headers/strings.texi: Document the Minix problem.
10911
10912 2011-07-31  Bruno Haible  <bruno@clisp.org>
10913
10914         wctype-h: Add support for Minix.
10915         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10916         REPLACE_TOWLOWER.
10917         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10918         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10919         REPLACE_ISWCNTRL.
10920
10921 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10922
10923         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10924         This is a performance improvement for 64-bit hosts: it causes the
10925         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10926
10927 2011-07-31  Bruno Haible  <bruno@clisp.org>
10928
10929         stdioext: Add support for Minix.
10930         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10931         * lib/fpurge.c (fpurge): Likewise.
10932         * lib/freadahead.c (freadahead): Likewise.
10933         * lib/freadable.c (freadable): Likewise.
10934         * lib/freading.c (freading): Likewise.
10935         * lib/freadptr.c (freadptr): Likewise.
10936         * lib/freadseek.c (freadptrinc): Likewise.
10937         * lib/fseeko.c (rpl_fseeko): Likewise.
10938         * lib/fseterr.c (fseterr): Likewise.
10939         * lib/fwritable.c (fwritable): Likewise.
10940         * lib/fwriting.c (fwriting): Likewise.
10941         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10942         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10943
10944 2011-07-31  Bruno Haible  <bruno@clisp.org>
10945
10946         errno: Port to Minix.
10947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10948         ECONNABORTED are defined.
10949         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10950         GNULIB_defined_ECONNABORTED): New macros.
10951         * lib/strerror-override.h (strerror_override): Test also
10952         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10953         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10954         ECONNABORTED.
10955         * doc/posix-headers/errno.texi: Mention the Minix problem.
10956
10957 2011-07-31  Bruno Haible  <bruno@clisp.org>
10958
10959         Work around declaration collisions on Minix.
10960         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10961         defined, set REPLACE_MBSINIT.
10962         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10963         defined, set REPLACE_MBRTOWC.
10964         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10965         set REPLACE_MBRLEN.
10966         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10967         defined, set REPLACE_MBSRTOWCS.
10968         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10969         defined, set REPLACE_WCRTOMB.
10970         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10971         defined, set REPLACE_WCSRTOMBS.
10972
10973 2011-07-31  Bruno Haible  <bruno@clisp.org>
10974
10975         Add support for Minix with ACK compiler.
10976         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10977         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10978         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10979
10980 2011-07-31  Bruno Haible  <bruno@clisp.org>
10981
10982         Documentation about Minix.
10983         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10984         * doc/glibc-headers/*.texi: Likewise.
10985         * doc/posix-functions/*.texi: Likewise.
10986         * doc/glibc-functions/*.texi: Likewise.
10987
10988 2011-07-31  Bruno Haible  <bruno@clisp.org>
10989
10990         snippet/warn-on-use: Fix indentation.
10991         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10992
10993 2011-07-25  Jim Meyering  <meyering@redhat.com>
10994
10995         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10996         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10997         commands.
10998
10999 2011-07-27  Jim Meyering  <meyering@redhat.com>
11000
11001         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11002         * top/maint.mk (gl_extract_significant_defines_): Now that
11003         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11004         gnulib/lib/signal.in.h, and now that we recommend to
11005         define-if-undefined those two symbols in application code,
11006         we must filter them out of the "significant" list.
11007         This avoids a "make syntax-check" failure in coreutils.
11008
11009 2011-07-26  Eric Blake  <eblake@redhat.com>
11010
11011         warnings: add comments about previous patch
11012         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11013         * m4/include_next.m4: Likewise.
11014         * m4/warn-on-use.m4: Likewise.
11015         * m4/warnings.m4: Likewise, and simplify use.
11016         Suggested by Stefano Lattarini.
11017
11018         include-next, warnings: support older autoconf
11019         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11020         AS_VAR_PUSHDEF in a way that works with older autoconf.
11021         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11022         Reported by Daniel P. Berrange.
11023
11024 2011-07-25  Bruno Haible  <bruno@clisp.org>
11025
11026         fseek, ftell: Fix doc.
11027         * doc/posix-functions/fseek.texi: Reword statement about
11028         AC_SYS_LARGEFILE.
11029         * doc/posix-functions/ftell.texi: Likewise.
11030
11031 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11032             Bruno Haible  <bruno@clisp.org>
11033
11034         Add dependencies to the 'largefile' module.
11035         * modules/fopen (Depends-on): Add 'largefile'.
11036         * modules/freopen (Depends-on): Likewise.
11037         * modules/fseeko (Depends-on): Likewise.
11038         * modules/ftello (Depends-on): Likewise.
11039         * modules/glob (Depends-on): Likewise.
11040         * modules/lseek (Depends-on): Likewise.
11041         * modules/lstat (Depends-on): Likewise.
11042         * modules/mkostemp (Depends-on): Likewise.
11043         * modules/mkostemps (Depends-on): Likewise.
11044         * modules/mkstemp (Depends-on): Likewise.
11045         * modules/mkstemps (Depends-on): Likewise.
11046         * modules/open (Depends-on): Likewise.
11047         * modules/openat (Depends-on): Likewise.
11048         * modules/pread (Depends-on): Likewise.
11049         * modules/pwrite (Depends-on): Likewise.
11050         * modules/scandir (Depends-on): Likewise.
11051         * modules/stat (Depends-on): Likewise.
11052         * modules/tmpfile (Depends-on): Likewise.
11053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11054         since the containing module now depends on the largefile module.
11055         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11056         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11057         off_t is fixed by gnulib.
11058         * doc/posix-functions/freopen.texi: Likewise.
11059         * doc/posix-functions/fseeko.texi: Likewise.
11060         * doc/posix-functions/fstatat.texi: Likewise.
11061         * doc/posix-functions/ftello.texi: Likewise.
11062         * doc/posix-functions/glob.texi: Likewise.
11063         * doc/posix-functions/lseek.texi: Likewise.
11064         * doc/posix-functions/lstat.texi: Likewise.
11065         * doc/posix-functions/mkstemp.texi: Likewise.
11066         * doc/posix-functions/open.texi: Likewise.
11067         * doc/posix-functions/openat.texi: Likewise.
11068         * doc/posix-functions/pread.texi: Likewise.
11069         * doc/posix-functions/pwrite.texi: Likewise.
11070         * doc/posix-functions/scandir.texi: Likewise.
11071         * doc/posix-functions/stat.texi: Likewise.
11072         * doc/posix-functions/tmpfile.texi: Likewise.
11073         * doc/glibc-functions/mkostemp.texi: Likewise.
11074         * doc/glibc-functions/mkostemps.texi: Likewise.
11075         * doc/glibc-functions/mkstemps.texi: Likewise.
11076
11077 2011-07-25  Bruno Haible  <bruno@clisp.org>
11078
11079         fcntl: Move AC_LIBOBJ invocation to module description.
11080         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11081         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11082
11083         fcntl: Remove call-in from fchdir.m4.
11084         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11086
11087         dup3: Remove potential call-in from fchdir.m4.
11088         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11089         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11090
11091         dup2: Move AC_LIBOBJ invocation to module description.
11092         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11093         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11094         Don't invoke AC_LIBOBJ.
11095         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11096
11097         dup2: Remove call-in from fchdir.m4.
11098         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11099         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11100
11101         fclose: Move AC_LIBOBJ invocation to module description.
11102         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11103         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11104         to 1.
11105         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11106
11107         fclose: Remove call-in from close.m4.
11108         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11109         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11110
11111         close: Move AC_LIBOBJ invocation to module description.
11112         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11113         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11114         1.
11115         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11116
11117         close: Remove call-in from fchdir.m4.
11118         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11119         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11120
11121         open: Move AC_LIBOBJ invocation to module description.
11122         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11123         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11124         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11125
11126         open: Remove call-in from fchdir.m4.
11127         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11129
11130         fchdir: Start to remove gl_REPLACE_* idiom.
11131         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11132         (gl_FUNC_FCHDIR): Invoke it.
11133
11134 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11135
11136         * lib/ftell.c (ftell): Comment out cast.
11137
11138         close: use gl_REPLACE_FCLOSE only if defined
11139         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11140         is defined.  The close module doesn't depend on the fclose module
11141         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11143         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11144
11145 2011-07-24  Jim Meyering  <meyering@redhat.com>
11146
11147         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11148         * tests/test-select.h (test_function): Declare as "static".
11149
11150 2011-07-24  Bruno Haible  <bruno@clisp.org>
11151
11152         doc: Mention the effects of AC_SYS_LARGEFILE.
11153         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11154         on this function.
11155         * doc/posix-functions/aio_error.texi: Likewise.
11156         * doc/posix-functions/aio_fsync.texi: Likewise.
11157         * doc/posix-functions/aio_read.texi: Likewise.
11158         * doc/posix-functions/aio_return.texi: Likewise.
11159         * doc/posix-functions/aio_suspend.texi: Likewise.
11160         * doc/posix-functions/aio_write.texi: Likewise.
11161         * doc/posix-functions/fgetpos.texi: Likewise.
11162         * doc/posix-functions/fopen.texi: Likewise.
11163         * doc/posix-functions/freopen.texi: Likewise.
11164         * doc/posix-functions/fsetpos.texi: Likewise.
11165         * doc/posix-functions/fstatvfs.texi: Likewise.
11166         * doc/posix-functions/ftruncate.texi: Likewise.
11167         * doc/posix-functions/ftw.texi: Likewise.
11168         * doc/posix-functions/getrlimit.texi: Likewise.
11169         * doc/posix-functions/glob.texi: Likewise.
11170         * doc/posix-functions/lio_listio.texi: Likewise.
11171         * doc/posix-functions/lockf.texi: Likewise.
11172         * doc/posix-functions/mkstemp.texi: Likewise.
11173         * doc/posix-functions/mmap.texi: Likewise.
11174         * doc/posix-functions/nftw.texi: Likewise.
11175         * doc/posix-functions/openat.texi: Likewise.
11176         * doc/posix-functions/opendir.texi: Likewise.
11177         * doc/posix-functions/posix_fadvise.texi: Likewise.
11178         * doc/posix-functions/posix_fallocate.texi: Likewise.
11179         * doc/posix-functions/pread.texi: Likewise.
11180         * doc/posix-functions/pwrite.texi: Likewise.
11181         * doc/posix-functions/readdir.texi: Likewise.
11182         * doc/posix-functions/readdir_r.texi: Likewise.
11183         * doc/posix-functions/rewinddir.texi: Likewise.
11184         * doc/posix-functions/scandir.texi: Likewise.
11185         * doc/posix-functions/seekdir.texi: Likewise.
11186         * doc/posix-functions/setrlimit.texi: Likewise.
11187         * doc/posix-functions/statvfs.texi: Likewise.
11188         * doc/posix-functions/telldir.texi: Likewise.
11189         * doc/posix-functions/tmpfile.texi: Likewise.
11190         * doc/posix-functions/truncate.texi: Likewise.
11191         * doc/glibc-functions/fallocate.texi: Likewise.
11192         * doc/glibc-functions/fstatfs.texi: Likewise.
11193         * doc/glibc-functions/fts_children.texi: Likewise.
11194         * doc/glibc-functions/fts_read.texi: Likewise.
11195         * doc/glibc-functions/getdirentries.texi: Likewise.
11196         * doc/glibc-functions/mkostemp.texi: Likewise.
11197         * doc/glibc-functions/mkostemps.texi: Likewise.
11198         * doc/glibc-functions/mkstemps.texi: Likewise.
11199         * doc/glibc-functions/preadv.texi: Likewise.
11200         * doc/glibc-functions/pwritev.texi: Likewise.
11201         * doc/glibc-functions/sendfile.texi: Likewise.
11202         * doc/glibc-functions/statfs.texi: Likewise.
11203
11204 2011-07-24  Bruno Haible  <bruno@clisp.org>
11205
11206         doc: Fix typo.
11207         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11208
11209 2011-07-24  Bruno Haible  <bruno@clisp.org>
11210
11211         doc: Mention fsusage.
11212         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11213
11214 2011-07-24  Bruno Haible  <bruno@clisp.org>
11215
11216         doc: Mention new glibc headers and functions.
11217         * doc/glibc-headers/gshadow.texi: New file.
11218         * doc/glibc-functions/endsgent.texi: New file.
11219         * doc/glibc-functions/fgetsgent.texi: New file.
11220         * doc/glibc-functions/fgetsgent_r.texi: New file.
11221         * doc/glibc-functions/getsgent.texi: New file.
11222         * doc/glibc-functions/getsgent_r.texi: New file.
11223         * doc/glibc-functions/getsgnam.texi: New file.
11224         * doc/glibc-functions/getsgnam_r.texi: New file.
11225         * doc/glibc-functions/putsgent.texi: New file.
11226         * doc/glibc-functions/setsgent.texi: New file.
11227         * doc/glibc-functions/sgetsgent.texi: New file.
11228         * doc/glibc-functions/sgetsgent_r.texi: New file.
11229         * doc/glibc-functions/malloc_info.texi: New file.
11230         * doc/glibc-functions/preadv.texi: New file.
11231         * doc/glibc-functions/pwritev.texi: New file.
11232         * doc/glibc-functions/register_printf_modifier.texi: New file.
11233         * doc/glibc-functions/register_printf_specifier.texi: New file.
11234         * doc/glibc-functions/register_printf_type.texi: New file.
11235         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11236         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11237         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11238         * doc/glibc-functions/pthread_getname_np.texi: New file.
11239         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11240         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11241         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11242         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11243         * doc/glibc-functions/pthread_setname_np.texi: New file.
11244         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11245         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11246         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11247         * doc/glibc-functions/qsort_r.texi: New file.
11248         * doc/glibc-functions/quick_exit.texi: New file.
11249         * doc/glibc-functions/syncfs.texi: New file.
11250         * doc/gnulib.texi: Include them.
11251         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11252         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11253         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11254         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11255         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11256         * doc/glibc-functions/execvpe.texi: Likewise.
11257
11258 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11259
11260         ftell: don't include <unistd.h>
11261         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11262         guaranteed to define off_t, and the ftell module depends on the
11263         stdio module.
11264
11265         ftell: do not assume wraparound signed arithmetic
11266         * lib/ftell.c: Include <limits.h>.
11267         (ftell): Don't assume wraparound signed arithmetic.
11268
11269 2011-07-24  Bruno Haible  <bruno@clisp.org>
11270
11271         close: No longer depend on module 'fclose'.
11272         * modules/close (Depends-on): Remove fclose.
11273         * NEWS: Mention the change.
11274         Suggested by Sam Steingold <sds@gnu.org>.
11275
11276 2011-07-24  Bruno Haible  <bruno@clisp.org>
11277
11278         fsusage: Enable large volume support on AIX >= 5.2.
11279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11280         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11281         instead of STAT_STATVFS.
11282         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11283
11284         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11286         f_blocks field only on MacOS X.
11287
11288         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11289         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11290         * modules/fsusage (Depends-on): Add largefile.
11291
11292 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11293
11294         * README: Modernize discussion of signed integers.
11295         Assuming overflow wraparound is no longer safe.
11296         Mention ones' complement and signed magnitude.
11297
11298 2011-07-22  Bruno Haible  <bruno@clisp.org>
11299
11300         select tests, pselect tests: Refactor.
11301         * tests/test-select.h: New file, extracted from tests/test-select.c.
11302         (select_fn): New type.
11303         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11304         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11305         test_pipe): Add my_select argument.
11306         (test_function): Renamed from main. Add my_select argument.
11307         * tests/test-select.c: Move most code to tests/test-select.h. Include
11308         test-select.h.
11309         * modules/select-tests (Files): Add tests/test-select.h.
11310         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11311         (my_select, main): New functions.
11312         * modules/pselect-tests (Files): Add tests/test-select.h,
11313         tests/macros.h, tests/signature.h.
11314         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11315         (configure.ac): Check for <sys/wait.h>.
11316
11317 2011-07-22  Bruno Haible  <bruno@clisp.org>
11318
11319         sys_select tests: Check the signature of FD_*.
11320         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11321         signature tests from here...
11322         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11323         here.
11324         * modules/sys_select-tests (Files): Add tests/signature.h.
11325
11326 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11327
11328         largefile: new module, replacing large-inode
11329         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11330         * MODULES.html.sh: Add largefile, remove large-inode.
11331         * modules/largefile, m4/largefile.m4: New files.
11332         * modules/large-inode, m4/large-inode.m4: Remove.
11333
11334         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11336         implementations that use only 32 bits to count blocks.
11337         On typical hosts with 1024-byte blocks, this fails with file
11338         systems as small as 4 TiB.  Problem reported by Herb Wartens
11339         <http://debbugs.gnu.org/9140> and this should also fix a similar
11340         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11341
11342         large-inode: New module
11343         * MODULES.html.sh: Add it.
11344         * modules/large-inode, m4/large-inode.m4: New files.
11345
11346         extensions: Enable extensions on MacOS X 10.5 and later.
11347         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11348
11349 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11350
11351         file-has-acl: use acl_extended_file_nofollow if available
11352         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11353         (acl_extended_file): New macro.
11354         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11355         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11356
11357 2011-07-21  Bruno Haible  <bruno@clisp.org>
11358
11359         Declare system functions in a way that works with C++.
11360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11361         declare fdopendir as extern "C".
11362         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11363         declare frexpl as extern "C".
11364         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11365         declare gai_strerror as extern "C".
11366         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11367         programs, declare gai_strerror as extern "C".
11368         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11369         declare getlogin_r as extern "C".
11370         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11371         as extern "C".
11372         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11373         declare ldexpl as extern "C".
11374         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11375         as extern "C".
11376         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11377         program, declare getmntinfo as extern "C".
11378         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11379         stpncpy as extern "C".
11380         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11381         program, declare __xpg_strerror_r as extern "C".
11382         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11383         strndup as extern "C".
11384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11385         declare memset and bzero as extern "C".
11386         Reported by Sam Steingold <sds@gnu.org>.
11387
11388 2011-07-12  Jim Meyering  <meyering@redhat.com>
11389
11390         maint.mk: prohibit inclusion of "verify.h" without use
11391         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11392
11393 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11394
11395         timer-time: A new module to check for timer_settime()
11396         * m4/timer_time.m4: Check for the posix function.
11397         * modules/timer-time: Add the new module.
11398         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11399         Mention it.
11400
11401 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11402             Bruno Haible  <bruno@clisp.org>
11403
11404         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11406         not defined, assume POSIX threads and look for pthread_sigmask in
11407         $LIBS, without changing $CPPFLAGS.
11408
11409 2011-07-19  Bruno Haible  <bruno@clisp.org>
11410
11411         strstr: Update cross-compilation guess.
11412         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11413         CPUs, guess no, in view of glibc
11414         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11415         Suggested by Eric Blake. Reported by Reuben Thomas.
11416
11417 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11418
11419         getopt-gnu: suppress core dumps from detection code
11420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11421         to suppress core dumps that may well occur on glibc systems.
11422         * modules/getopt-gnu: Depend on nocrash.
11423
11424 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11425
11426         pthread_sigmask: ensure usleep is declared
11427         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11428         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11429
11430 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         doc: Document NonStop portability issues.
11433         * doc/posix-functions/sigaction.texi (sigaction):
11434         * doc/posix-headers/signal.texi (signal.h):
11435         Document NonStop.  See Joachim Schmitz in
11436         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11437
11438 2011-07-15  Bruno Haible  <bruno@clisp.org>
11439
11440         ffsl, ffsll: Avoid unportable behaviour.
11441         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11442
11443 2011-07-15  Bruno Haible  <bruno@clisp.org>
11444
11445         ffs: More tests.
11446         * tests/test-ffs.c (NBITS): New macro.
11447         (main): Add more tests.
11448         * tests/test-ffsl.c (NBITS): New macro.
11449         (main): Add more tests.
11450         * tests/test-ffsll.c (NBITS): New macro.
11451         (main): Add more tests.
11452
11453 2011-07-15  Eric Blake  <eblake@redhat.com>
11454
11455         ffsl, ffsll: new modules
11456         * modules/ffsl: New file.
11457         * modules/ffsll: Likewise.
11458         * m4/ffsl.m4: Likewise.
11459         * m4/ffsll.m4: Likewise.
11460         * lib/ffsl.c: Likewise.
11461         * lib/ffsl.h: Likewise.
11462         * lib/ffsll.c: Likewise.
11463         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11464         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11465         * modules/string (Makefile.am): Substitute witnesses.
11466         * lib/strings.in.h (ffsl, ffsll): Declare.
11467         * modules/ffsl-tests: New test file.
11468         * modules/ffsll-tests: Likewise.
11469         * tests/test-ffsl.c: Likewise.
11470         * tests/test-ffsll.c: Likewise.
11471         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11472         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11473         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11474
11475         ffs: fix m4 prerequisite
11476         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11477
11478         ffs: avoid undefined behavior
11479         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11480         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11481         Reported by Bruno Haible.
11482
11483 2011-07-12  Bruno Haible  <bruno@clisp.org>
11484
11485         pthread_sigmask: Rely on module 'threadlib'.
11486         * modules/pthread_sigmask (Depends-on): Add threadlib.
11487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11488         is defined.
11489
11490 2011-07-12  Bruno Haible  <bruno@clisp.org>
11491
11492         regex: Depend on module 'strcase'.
11493         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11494
11495 2011-07-12  Jim Meyering  <meyering@redhat.com>
11496
11497         warn-on-use: fix typo in file name
11498         * modules/snippet/warn-on-use (Files): Correct file name:
11499         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11500
11501 2011-07-12  Bruno Haible  <bruno@clisp.org>
11502
11503         strings: Document module.
11504         * doc/posix-headers/strings.texi: Mention module 'strings'.
11505
11506 2011-07-12  Bruno Haible  <bruno@clisp.org>
11507
11508         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11509         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11510         (Files, Makefile.am): Update.
11511         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11512         * modules/stdlib (Depends-on): Update.
11513
11514 2011-07-12  Bruno Haible  <bruno@clisp.org>
11515
11516         * NEWS: Mention the changes.
11517
11518         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11519         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11520         (Files, Makefile.am): Update.
11521         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11522         * modules/arpa_inet (Depends-on): Update.
11523         * modules/ctype (Depends-on): Update.
11524         * modules/dirent (Depends-on): Update.
11525         * modules/fcntl-h (Depends-on): Update.
11526         * modules/glob (Depends-on): Update.
11527         * modules/iconv-h (Depends-on): Update.
11528         * modules/inttypes-incomplete (Depends-on): Update.
11529         * modules/langinfo (Depends-on): Update.
11530         * modules/locale (Depends-on): Update.
11531         * modules/math (Depends-on): Update.
11532         * modules/netdb (Depends-on): Update.
11533         * modules/poll-h (Depends-on): Update.
11534         * modules/pty (Depends-on): Update.
11535         * modules/search (Depends-on): Update.
11536         * modules/signal (Depends-on): Update.
11537         * modules/spawn (Depends-on): Update.
11538         * modules/stdio (Depends-on): Update.
11539         * modules/stdlib (Depends-on): Update.
11540         * modules/string (Depends-on): Update.
11541         * modules/strings (Depends-on): Update.
11542         * modules/sys_file (Depends-on): Update.
11543         * modules/sys_ioctl (Depends-on): Update.
11544         * modules/sys_select (Depends-on): Update.
11545         * modules/sys_socket (Depends-on): Update.
11546         * modules/sys_stat (Depends-on): Update.
11547         * modules/sys_time (Depends-on): Update.
11548         * modules/sys_times (Depends-on): Update.
11549         * modules/sys_utsname (Depends-on): Update.
11550         * modules/sys_wait (Depends-on): Update.
11551         * modules/termios (Depends-on): Update.
11552         * modules/time (Depends-on): Update.
11553         * modules/unistd (Depends-on): Update.
11554         * modules/wchar (Depends-on): Update.
11555         * modules/wctype-h (Depends-on): Update.
11556         * MODULES.html.sh (Support for building libraries and executables):
11557         Update.
11558
11559         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11560         * modules/snippet/unused-parameter: Renamed from
11561         modules/unused-parameter.
11562         (Files, Makefile.am): Update.
11563         * build-aux/snippet/unused-parameter.h: Renamed from
11564         build-aux/unused-parameter.h.
11565         * modules/selinux-h (Depends-on): Update.
11566         * modules/unistr/base (Depends-on): Update.
11567         * MODULES.html.sh (Core language properties): Update.
11568
11569         Rename module 'link-warning' to 'snippet/link-warning'.
11570         * modules/snippet/link-warning: Renamed from modules/link-warning.
11571         (Files, Makefile.am): Update.
11572         * build-aux/snippet/link-warning.h: Renamed from
11573         build-aux/link-warning.h.
11574         * MODULES.html.sh (Support for building libraries and executables):
11575         Update.
11576
11577         Rename module 'c++defs' to 'snippet/c++defs'.
11578         * modules/snippet/c++defs: Renamed from modules/c++defs.
11579         (Files, Makefile.am): Update.
11580         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11581         * modules/arpa_inet (Depends-on): Update.
11582         * modules/ctype (Depends-on): Update.
11583         * modules/dirent (Depends-on): Update.
11584         * modules/fcntl-h (Depends-on): Update.
11585         * modules/glob (Depends-on): Update.
11586         * modules/iconv-h (Depends-on): Update.
11587         * modules/langinfo (Depends-on): Update.
11588         * modules/locale (Depends-on): Update.
11589         * modules/math (Depends-on): Update.
11590         * modules/netdb (Depends-on): Update.
11591         * modules/poll-h (Depends-on): Update.
11592         * modules/pty (Depends-on): Update.
11593         * modules/search (Depends-on): Update.
11594         * modules/signal (Depends-on): Update.
11595         * modules/spawn (Depends-on): Update.
11596         * modules/stdio (Depends-on): Update.
11597         * modules/stdlib (Depends-on): Update.
11598         * modules/string (Depends-on): Update.
11599         * modules/strings (Depends-on): Update.
11600         * modules/sys_ioctl (Depends-on): Update.
11601         * modules/sys_select (Depends-on): Update.
11602         * modules/sys_socket (Depends-on): Update.
11603         * modules/sys_stat (Depends-on): Update.
11604         * modules/sys_time (Depends-on): Update.
11605         * modules/sys_wait (Depends-on): Update.
11606         * modules/termios (Depends-on): Update.
11607         * modules/time (Depends-on): Update.
11608         * modules/unistd (Depends-on): Update.
11609         * modules/wchar (Depends-on): Update.
11610         * modules/wctype-h (Depends-on): Update.
11611
11612         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11613         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11614         (Files, Makefile.am): Update.
11615         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11616         * modules/argv-iter (Depends-on): Update.
11617         * modules/arpa_inet (Depends-on): Update.
11618         * modules/dirent (Depends-on): Update.
11619         * modules/fcntl-h (Depends-on): Update.
11620         * modules/fnmatch (Depends-on): Update.
11621         * modules/getopt-posix (Depends-on): Update.
11622         * modules/glob (Depends-on): Update.
11623         * modules/iconv-h (Depends-on): Update.
11624         * modules/inttypes-incomplete (Depends-on): Update.
11625         * modules/locale (Depends-on): Update.
11626         * modules/math (Depends-on): Update.
11627         * modules/netdb (Depends-on): Update.
11628         * modules/search (Depends-on): Update.
11629         * modules/signal (Depends-on): Update.
11630         * modules/spawn (Depends-on): Update.
11631         * modules/stdio (Depends-on): Update.
11632         * modules/stdlib (Depends-on): Update.
11633         * modules/string (Depends-on): Update.
11634         * modules/strings (Depends-on): Update.
11635         * modules/sys_socket (Depends-on): Update.
11636         * modules/sys_stat (Depends-on): Update.
11637         * modules/sys_time (Depends-on): Update.
11638         * modules/sys_times (Depends-on): Update.
11639         * modules/sys_utsname (Depends-on): Update.
11640         * modules/time (Depends-on): Update.
11641         * modules/unistd (Depends-on): Update.
11642         * modules/wchar (Depends-on): Update.
11643         * MODULES.html.sh (Support for building libraries and executables):
11644         Update.
11645
11646 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         Improvements on _Noreturn and related modules.
11649
11650         modules/_Exit-tests: test _Noreturn too
11651         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11652         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11653         (main): Use them.
11654
11655         stdnoreturn, stdnoreturn-tests: remove modules
11656         They're not needed here and a bit premature for use elsewhere.  See
11657         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11658         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11659         * tests/test-stdnoreturn.c: Remove files.
11660         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11661         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11662         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11663         and using noreturn.
11664         * modules/openat, modules/sigpipe-die, modules/xalloc:
11665         * modules/xmemdup0, modules/xstrtol:
11666         Remove dependency on stdnoreturn.
11667
11668         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11669         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11670         Reparenthesize to avoid GCC warning.
11671         Support Microsoft's syntax.
11672         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11673
11674         _Noreturn-tests: remove module
11675         * modules/_Noreturn-tests: Remove.
11676         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11677         * tests/test-_Noreturn.c: Remove.
11678         * tests/test-stdnoreturn.c: Merge from the old
11679         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11680
11681 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11682
11683         _Noreturn, stdnoreturn, and related modules.
11684
11685         * top/maint.mk: Adjust to new noreturn support.
11686         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11687         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11688
11689         xalloc: use stdnoreturn.h
11690         * lib/xalloc.h: Include <stdnoreturn.h>.
11691         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11692         * modules/xalloc (Depends-on): Add stdnoreturn.
11693
11694         xstrtol: use stdnoreturn.h
11695         * lib/xstrtol.h: Include <stdnoreturn.h>.
11696         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11697         * modules/xstrtol (Depends-on): Add stdnoreturn.
11698
11699         xmemdup0: use stdnoreturn.h
11700         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11701         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11702         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11703
11704         sigpipe-die: use stdnoreturn.h
11705         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11706         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11707         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11708
11709         openat: use stdnoreturn.h
11710         * lib/openat.h: Include <stdnoreturn.h>.
11711         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11712         * modules/openat (Depends-on): Add stdnoreturn.
11713
11714         * lib/openat-die.c (openat_save_fail): Modernize comment.
11715
11716         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11717
11718         * lib/glthread/thread.h: Modernize comment.
11719
11720         obstack: use _Noreturn
11721         * lib/obstack.c (__attribute__): Remove macro.
11722         (print_and_abort): Use _Noreturn.
11723
11724         c-stack: use _Noreturn
11725         * lib/c-stack.c (die, overflow_handler, segv_handler):
11726         Use _Noreturn rather than __attribute__((noreturn)).
11727
11728         argmatch-tests, exclude_tests: use _Noreturn
11729         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11730         Remove.
11731         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11732
11733         stdlib: use _Noreturn
11734         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11735         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11736         * modules/stdlib (Depends-on): Add _Noreturn.
11737         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11738
11739         stdnoreturn-tests: new module
11740         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11741
11742         stdnoreturn: new module
11743         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11744         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11745
11746         _Noreturn-tests: new module
11747         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11748
11749         _Noreturn: new module
11750         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11751         New section, mentioning it.
11752         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11753
11754         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11755
11756 2011-07-11  Eric Blake  <eblake@redhat.com>
11757
11758         ffs: new module
11759         * modules/ffs: New file.
11760         * m4/ffs.m4: Likewise.
11761         * lib/ffs.c: Likewise.
11762         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11763         * modules/strings (Makefile.am): Substitute witness.
11764         (Depends-on): Add c++defs.
11765         * lib/strings.in.h (ffs): Declare.
11766         * modules/ffs-tests: New test file.
11767         * tests/test-ffs.c: Test new module.
11768         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11769         * doc/posix-functions/ffs.texi (ffs): Likewise.
11770
11771         regex: avoid compiler warning
11772         * lib/regex.c (includes): Include <strings.h>, for use of
11773         strcasecmp in regcomp.c.
11774         Reported by Joachim Schmitz.
11775
11776 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11777
11778         stdint: respect system's intmax_t if INTMAX_MAX
11779         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11780         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11781         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11782         long but int64_t is long long, and where we will clash with the
11783         system intmax_t if we override it.  See
11784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11785         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11786         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11787         similarly for UINTMAX_C.
11788
11789 2011-07-08  Bruno Haible  <bruno@clisp.org>
11790
11791         pthread_sigmask tests: Avoid a compiler warning.
11792         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11793         non-zero.
11794
11795         sigprocmask tests: A better way to avoid a compiler warning.
11796         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11797         (main): Complain if system() returns non-zero.
11798         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11799
11800 2011-07-08  Bruno Haible  <bruno@clisp.org>
11801
11802         pthread_sigmask: Work around IRIX bug.
11803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11804         bug.
11805         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11806         there may be unblocked pending signals.
11807         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11808
11809 2011-07-08  Bruno Haible  <bruno@clisp.org>
11810
11811         pthread_sigmask: Work around Cygwin bug.
11812         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11813         bug.
11814         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11815         the system's pthread_sigmask function.
11816         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11817
11818 2011-07-08  Bruno Haible  <bruno@clisp.org>
11819
11820         pthread_sigmask: Work around bug in single-threaded implementation.
11821         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11822         FreeBSD, HP-UX, Solaris bug.
11823         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11824         * lib/pthread_sigmask.c: Include <stddef.h>.
11825         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11826         the system's pthread_sigmask function.
11827         * modules/pthread_sigmask (configure.ac): Invoke
11828         gl_PREREQ_PTHREAD_SIGMASK.
11829         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11830         HP-UX, Solaris.
11831
11832 2011-07-08  Eric Blake  <eblake@redhat.com>
11833
11834         test-sigprocmask: avoid compiler warning
11835         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11836         * tests/test-sigprocmask.c (main): Use it to silence warning.
11837         Reported by Jim Meyering.
11838
11839         test-snprintf: avoid compiler warning
11840         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11841         * tests/test-vsnprintf.c (main): Likewise.
11842         Reported by Jim Meyering.
11843
11844 2011-07-08  Bruno Haible  <bruno@clisp.org>
11845
11846         Tests for module 'pthread_sigmask'.
11847         * modules/pthread_sigmask-tests: New file.
11848         * tests/test-pthread_sigmask1.c: New file, based on
11849         tests/test-sigprocmask.c.
11850         * tests/test-pthread_sigmask2.c: New file.
11851
11852 2011-07-08  Jim Meyering  <meyering@redhat.com>
11853
11854         test-getopt.h: avoid warning about an unused variable
11855         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11856
11857 2011-07-07  Jim Meyering  <meyering@redhat.com>
11858
11859         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11860         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11861         now that it no longer contains leading TABs.
11862         Remove unused "url=FIXME" statement.
11863
11864 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11867         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11868         When gl_THREADLIB is not in use, assume that the POSIX sematics
11869         are desired.  This is better for Emacs, which uses POSIX semantics
11870         on GNUish and/or POSIXish platforms, and does not use threads at
11871         all otherwise.
11872
11873         pthread_sigmask: fix typo when testing for libraries
11874         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11875         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11876
11877 2011-07-08  Eric Blake  <eblake@redhat.com>
11878
11879         fts: introduce FTS_NOATIME
11880         * lib/fts_.h (FTS_NOATIME): New bit flag.
11881         (FTS_OPTIONMASK): Adjust.
11882         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11883         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11884
11885 2011-07-08  Bruno Haible  <bruno@clisp.org>
11886
11887         Tests for module 'thread'.
11888         * modules/thread-tests: New file.
11889         * tests/test-thread_self.c: New file.
11890         * tests/test-thread_create.cc: New file.
11891
11892 2011-07-08  Bruno Haible  <bruno@clisp.org>
11893
11894         thread: Avoid gcc warnings when using gl_thread_self().
11895         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11896         'void *'.
11897         (gl_thread_self_pointer): Update.
11898
11899 2011-07-07  Bruno Haible  <bruno@clisp.org>
11900
11901         signal-c++-tests: Check declaration of pthread_sigmask.
11902         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11903         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11904         $(LIB_PTHREAD_SIGMASK).
11905
11906 2011-07-07  Bruno Haible  <bruno@clisp.org>
11907
11908         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11909         * lib/signal.in.h (pthread_sigmask): Override if
11910         REPLACE_PTHREAD_SIGMASK is 1.
11911         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11912         REPLACE_PTHREAD_SIGMASK.
11913         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11914         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11915         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11916         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11917         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11918
11919 2011-07-07  Bruno Haible  <bruno@clisp.org>
11920
11921         pthread_sigmask: Ensure declaration in <signal.h>.
11922         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11923         include <pthread.h>.
11924         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11925         problem.
11926
11927 2011-07-07  Bruno Haible  <bruno@clisp.org>
11928
11929         pthread_sigmask: Document the module.
11930         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11931
11932 2011-07-07  Bruno Haible  <bruno@clisp.org>
11933
11934         pthread_sigmask: Follow gnulib conventions.
11935         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11936         gl_PTHREAD_SIGMASK.
11937         * modules/pthread_sigmask (configure.ac): Update.
11938
11939 2011-07-07  Bruno Haible  <bruno@clisp.org>
11940
11941         pthread_sigmask: Make declaration C++ safe.
11942         * lib/signal.in.h: In two special conditions, just do an #include_next.
11943         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11944         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11945         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11946         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11947         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11948         not REPLACE_PTHREAD_MASK.
11949         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11950         not REPLACE_PTHREAD_MASK.
11951         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11952
11953 2011-07-07  Bruno Haible  <bruno@clisp.org>
11954
11955         pthread_sigmask: Fix return value.
11956         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11957         * lib/pthread_sigmask.c: New file.
11958         * modules/pthread_sigmask (Files): Add it.
11959         (configure.ac): Invoke AC_LIBOBJ.
11960
11961 2011-07-07  Eric Blake  <eblake@redhat.com>
11962
11963         getopt: more portable argv creation
11964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11965         const, use char arrays rather than strings.
11966         Suggested by Paul Eggert.
11967
11968 2011-07-07  Bruno Haible  <bruno@clisp.org>
11969
11970         Tests for module 'sigprocmask'.
11971         * modules/sigprocmask-tests: New file.
11972         * tests/test-sigprocmask.c: New file.
11973
11974 2011-07-07  Bruno Haible  <bruno@clisp.org>
11975
11976         float tests: Tweak.
11977         * tests/test-float.c (main): Tweak skip message.
11978
11979 2011-07-07  Eric Blake  <eblake@redhat.com>
11980
11981         getopt: avoid compiler warning during configure
11982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11983         assigning string literals to non-const pointer.
11984
11985         getopt-gnu: avoid crash in glibc getopt
11986         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11987         * tests/test-getopt.h (test_getopt): Enhance test.
11988         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11989         * doc/posix-functions/getopt.texi (getopt): Document it.
11990         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11991         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11992         Likewise.
11993
11994 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11995
11996         getopt: handle W; without long options in getopt [BZ #12922]
11997         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11998         but no long options are defined, just return 'W'.
11999
12000 2011-07-07  Bruno Haible  <bruno@clisp.org>
12001
12002         Avoid literal tabs.
12003         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12004         variable containing a tab instead of a literal tab.
12005         Reported by Jim Meyering.
12006
12007 2011-07-07  Bruno Haible  <bruno@clisp.org>
12008
12009         Comments.
12010         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12011
12012 2011-07-06  Bruno Haible  <bruno@clisp.org>
12013
12014         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12015         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12016         <winsock2.h>.
12017         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12018         lib/sys_socket.in.h.
12019         (close, gethostname): Hide declarations from <winsock2.h>.
12020         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12021         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12022         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12023         (select): Don't override if gnulib's <sys/select.h> was already
12024         included.
12025         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12026         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12027         setsockopt, shutdown, select): Tweak indentation.
12028
12029 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12032         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12033         in an application that does not use the sys_select module.
12034
12035 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12036
12037         poll: do not return 0 on timeout=-1
12038         * lib/poll.c: Loop with yield if no events occured
12039
12040 2011-07-06  Eric Blake  <eblake@redhat.com>
12041
12042         pthread_sigmask: always replace when not using pthread
12043         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12044         replacement when using some threading other than pthread.  Fix
12045         logic bug.
12046
12047 2011-07-06  Bruno Haible  <bruno@clisp.org>
12048
12049         Comments.
12050         * m4/printf.m4: Update comments about mingw.
12051
12052 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12053
12054         sys_select: define sigset_t more portably
12055         * lib/sys_select.in.h: Always include <sys/types.h>, since
12056         we now need sigset_t and mingw defines it there.
12057         Include <signal.h> before split inclusion guard, to avoid
12058         mishaps on Solaris, whose <signal.h> eventually includes us.
12059         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12060         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12061         which come from ...
12062         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12063         gl_CHECK_TYPE_SIGSET_T.
12064         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12065         does the real work.
12066         * modules/sys_select (Depends-on): Add 'signal'.
12067
12068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12069         Suggested by Bruno Haible.
12070
12071         pselect: Use pthread_sigmask, not sigprocmask.
12072         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12073         multithreaded apps better than sigprocmask does.
12074         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12075         sigprocmask directly.
12076
12077 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12078
12079         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12080         Don't #undef,  since we don't need any underlying pselect.
12081         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12082         (Depends-on): Add select.
12083         (Link): Add $(LIBSOCKET).
12084         These changes suggested by Bruno Haible.
12085
12086         pselect: document better
12087         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12088         * doc/posix-functions/pselect.texi (pselect): Document new module.
12089
12090         pthread_sigmask: new module
12091         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12092         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12093         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12094         This is done only as a macro; I don't know how well that'll
12095         work for C++.  Move <sys/types.h> include before the include_next,
12096         to avoid mishap on Solaris.
12097         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12098         * modules/signal (Makefile.am): Substitute the check's results.
12099         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12100
12101         test-pselect: new module
12102         * modules/pselect-tests, tests/test-pselect.c: New files.
12103         * tests/test-select.c, tests/test-sys_select-c++.cc:
12104         If TEST_PSELECT is defined, test pselect instead of testing select.
12105
12106         * tests/test-sys_select.c (sigset_t): Test for it, too.
12107         Suggested by Bruno Haible.
12108
12109 2011-07-05  Eric Blake  <eblake@redhat.com>
12110
12111         snprintf: guarantee %1$d, for libintl
12112         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12113         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12114         * doc/posix-functions/snprintf.texi (snprintf): Update.
12115         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12116         * tests/test-snprintf.c (main): Enhance test.
12117         * tests/test-vsnprintf.c (main): Likewise.
12118
12119 2011-07-05  Jim Meyering  <meyering@redhat.com>
12120
12121         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12122         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12123         per Bruno's request, to accommodate this idiom (no space after "#")
12124         even when the function is inside an #if block:
12125         char *
12126         gets (char *s)
12127         #undef gets
12128         {
12129           ...
12130         }
12131
12132 2011-07-04  Jim Meyering  <meyering@redhat.com>
12133
12134         maint: indent with spaces, not TABs, and add a rule to check this
12135         * tests/test-userspec.c: Indent with spaces, not TABs.
12136         * tests/test-argp.c: Likewise.
12137         * tests/test-c-stack2.sh: Likewise.
12138         * tests/test-parse-duration.sh: Likewise
12139         * m4/strtod.m4: Likewise.
12140         * m4/alloca.m4: Likewise.
12141         * m4/pselect.m4: Likewise.
12142         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12143
12144 2011-07-03  Jim Meyering  <meyering@redhat.com>
12145
12146         maint.mk: correct omissions in prohibit_argmatch_without_use check
12147         This rule would mistakenly report that argmatch.h is included without
12148         use even when both the argmatch and invalid_arg macro were used.
12149         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12150         of argmatch and invalid_arg.
12151
12152 2011-07-03  Bruno Haible  <bruno@clisp.org>
12153
12154         Comments about EINTR.
12155         * lib/safe-read.h: Explain the purpose of this module.
12156         * lib/safe-write.h: Likewise.
12157         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12158         module.
12159         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12160         module.
12161         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12162
12163 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12164
12165         xnanosleep: Rewrite to use new dtotimespec module.
12166         It has the conversion code that used to be in xnanosleep.
12167         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12168         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12169         (TIME_T_MAX): Remove.
12170         (xnanosleep): Rewrite in terms of dtotimespec.
12171         * modules/xnanosleep (Depends-on): Add dtotimespec.
12172         Remove intprops, stdbool.
12173
12174         timespec-add, timespec-sub: new modules
12175         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12176         * lib/timespec-add.c, lib/timespec-sub.c:
12177         * modules/timespec-add, modules/timespec-sub: New files.
12178
12179         dtotimespec: new module
12180         * lib/timespec.h (dtotimespec): New decl.
12181         * lib/dtotimespec.c, modules/dtotimespec: New files.
12182
12183         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12184
12185         pselect: new module
12186         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12187         (pselect): New decls.
12188         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12189         since the standard pselect decl uses 'restrict'.
12190         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12191         HAVE_PSELECT, REPLACE_PSELECT.
12192         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12193         HAVE_PSELECT, REPLACE_PSELECT.
12194         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12195
12196         sys_select: don't depend on sys_socket
12197         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12199         This fix works on GNU and GNU-like platforms, but has not been tested
12200         on native Windows.
12201         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12202         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12203         gl_HEADER_SYS_SOCKET.
12204         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12205         gl_PREREQ_SYS_H_WINSOCK2.
12206
12207 2011-06-29  Eric Blake  <eblake@redhat.com>
12208
12209         pipe2: fix C89 compile problem
12210         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12211         Reported by Bruno Haible.
12212
12213         pipe, pipe2: don't corrupt fd on error
12214         * lib/pipe.c (pipe): Leave fd unchanged on error.
12215         * lib/pipe2.c (pipe2): Likewise.
12216         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12217         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12218
12219 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12220
12221         mmap-anon: do not use regular expressions inadvertently
12222         * m4/mmap-anon.m4: Remove trailing period from strings sought
12223         in the output.
12224
12225 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         nanosleep: fix integer overflow problem
12228         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12229         arithmetic wraps around on overflow.
12230
12231         nanosleep: simplify carrying
12232         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12233         first call to the underyling nanosleep, not for the last one.
12234         This doesn't fix any bugs, but it simplifies the computation of
12235         the remaining delay.  Found while auditing integer overflow issues.
12236
12237         dup2: remove test for existence of fcntl
12238         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12239         "#if HAVE_FCNTL", in the configure-time test program.
12240         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12241         and therefore speeds up "configure" a bit.  Found while
12242         adding the dup2 module to Emacs.
12243
12244 2011-06-24  Eric Blake  <eblake@redhat.com>
12245
12246         maint.mk: enhance useless header checks
12247         * top/maint.mk (_sc_header_without_use): Check both include
12248         styles.
12249         (sc_prohibit_assert_without_use)
12250         (sc_prohibit_close_stream_without_use)
12251         (sc_prohibit_getopt_without_use)
12252         (sc_prohibit_quotearg_without_use)
12253         (sc_prohibit_quote_without_use)
12254         (sc_prohibit_long_options_without_use)
12255         (sc_prohibit_inttostr_without_use)
12256         (sc_prohibit_ignore_value_without_use)
12257         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12258         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12259         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12260         (sc_prohibit_hash_pjw_without_use)
12261         (sc_prohibit_safe_read_without_use)
12262         (sc_prohibit_argmatch_without_use)
12263         (sc_prohibit_canonicalize_without_use)
12264         (sc_prohibit_root_dev_ino_without_use)
12265         (sc_prohibit_openat_without_use)
12266         (sc_prohibit_c_ctype_without_use)
12267         (sc_prohibit_signal_without_use)
12268         (sc_prohibit_stdio--_without_use)
12269         (sc_prohibit_stdio-safer_without_use)
12270         (sc_prohibit_strings_without_use)
12271         (sc_prohibit_intprops_without_use)
12272         (sc_prohibit_stddef_without_use)
12273         (sc_prohibit_xfreopen_without_use): Update clients.
12274
12275 2011-06-24  Jim Meyering  <meyering@redhat.com>
12276
12277         syntax-check: keep one maint.mk rule in sync with its header
12278         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12279         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12280         I prefer to avoid temporary files here, so use <(...), but that
12281         is not supported by /bin/sh, so...
12282         (SHELL): Define to /bin/bash.
12283
12284 2011-06-24  Eric Blake  <eblake@redhat.com>
12285
12286         maint.mk: update sc_prohibit_intprops_without_use
12287         * top/maint.mk (_intprops_names): Match recent changes.
12288
12289 2011-06-24  Bruno Haible  <bruno@clisp.org>
12290
12291         strerror-override: No-op tweak.
12292         * lib/strerror-override.h (strerror_override): Reorder conditions,
12293         for consistency with lib/strerror-override.c.
12294
12295 2011-06-23  Eric Blake  <eblake@redhat.com>
12296
12297         maint.mk: test further PATH_MAX issues
12298         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12299         (sc_prohibit_path_max_allocation): ...and also test alloca.
12300         Suggested by Jim Meyering.
12301
12302 2011-06-22  Eric Blake  <eblake@redhat.com>
12303
12304         maint.mk: add syntax-check to avoid char[PATH_MAX]
12305         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12306
12307         stat: be robust to PATH_MAX definition
12308         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12309         * modules/stat (Depends-on): Add verify.
12310
12311         link: work around IRIX bug
12312         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12313         * lib/link.c (rpl_link): Work around it.
12314         * tests/test-link.h (test_link): Enhance test.
12315         * doc/posix-functions/link.texi (link): Document the bug.
12316
12317         getopt: silence clang warning
12318         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12319         dereference.
12320         Reported by Gustavo Martin Domato.
12321
12322 2011-06-22  Jim Meyering  <meyering@redhat.com>
12323
12324         bootstrap: do not insert a blank line into each .gitignore file
12325         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12326
12327 2011-06-21  Eric Blake  <eblake@redhat.com>
12328
12329         perror: test for output mismatch
12330         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12331         perror on IRIX.
12332
12333         strerror_r: fix OpenBSD behavior on out-of-range
12334         * lib/strerror_r.c (strerror_r): Always use maximal string.
12335         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12336
12337         strerror_r: fix OpenBSD behavior on 0
12338         * lib/strerror-override.c (strerror_override): Also override 0
12339         when needed.
12340         * lib/strerror-override.h (strerror_override): Likewise.
12341         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12342         earlier.
12343         * lib/strerror_r.c (strerror_r): Likewise.
12344         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12345         behavior...
12346         (gl_FUNC_STRERROR_0): ...into new macro.
12347         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12348         is overridden.
12349         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12350         * modules/strerror-override (Files): Add strerror.m4.
12351         (configure.ac): Also provide override for 0 when needed.
12352         * doc/posix-functions/strerror.texi (strerror): Document this.
12353         * doc/posix-functions/perror.texi (perror): Likewise.
12354
12355         perror: adjust array size
12356         * modules/perror (Depends-on): Add strerror-override.
12357         * lib/perror.c (perror): Use it to avoid magic number.
12358
12359         strerror-override: reduce size
12360         * lib/strerror-override.c (strerror_override): Use fewer lines.
12361
12362 2011-06-20  Bruno Haible  <bruno@clisp.org>
12363
12364         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12365         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12366
12367 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12368
12369         alloca: port to compilers that can optimize like GCC 4.6.0
12370         * lib/alloca.c (find_stack_direction): New signature, taken from
12371         Autoconf git.  This works with GCC 4.6.0.  This code should never
12372         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12373         be used with other compilers that optimize as well as GCC 4.6.0 does.
12374         (alloca): Adjust to new signature.
12375         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12376         New macro, which patches Autoconf in a similar way.
12377
12378         c-stack: stop worrying about stack direction
12379         * lib/c-stack.c (find_stack_direction): Remove.
12380         (segv_handler): Don't worry about stack direction growth, as it's
12381         too much of a pain to configure this correctly, given how compilers
12382         are optimizing-away our stack-growth detection code.  Instead, assume
12383         that any access to just before or just after the stack is OK.
12384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12385         Don't require AC_FUNC_ALLOCA; no longer needed.
12386
12387 2011-06-20  Eric Blake  <eblake@redhat.com>
12388
12389         test-stat: don't allocate PATH_MAX bytes
12390         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12391         PATH_MAX-sized buffer.
12392         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12393         * modules/stat-tests (Depends-on): Likewise.
12394         * tests/test-fstatat.c (includes): Drop pathmax.h.
12395         * tests/test-stat.c (includes): Likewise.
12396         Reported by Bruno Haible.
12397
12398 2011-06-20  Bruno Haible  <bruno@clisp.org>
12399
12400         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12401         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12402         * lib/float.c: New file.
12403         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12404         REPLACE_FLOAT_LDBL.
12405         * modules/float (Files): Add lib/float.c.
12406         (configure.ac): Invoke AC_LIBOBJ.
12407         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12408
12409 2011-06-20  Bruno Haible  <bruno@clisp.org>
12410
12411         Tests for module 'float'.
12412         * modules/float-tests: New file.
12413         * tests/test-float.c: New file.
12414
12415 2011-06-19  Bruno Haible  <bruno@clisp.org>
12416
12417         isinf: Coding style.
12418         * lib/isinf.c: Use GNU coding style.
12419
12420 2011-06-19  Bruno Haible  <bruno@clisp.org>
12421
12422         linkat test: Avoid test failure on AIX 7.1.
12423         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12424         * tests/test-link.h (test_link): Likewise.
12425
12426 2011-06-19  Bruno Haible  <bruno@clisp.org>
12427
12428         pread test: Avoid test failure on OpenBSD 4.9.
12429         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12430
12431 2011-06-19  Bruno Haible  <bruno@clisp.org>
12432
12433         sprintf-posix: Fix test failure on AIX 7.1.
12434         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12435         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12436         on AIX.
12437         * doc/posix-functions/fprintf.texi: Likewise.
12438         * doc/posix-functions/printf.texi: Likewise.
12439         * doc/posix-functions/snprintf.texi: Likewise.
12440         * doc/posix-functions/sprintf.texi: Likewise.
12441         * doc/posix-functions/vdprintf.texi: Likewise.
12442         * doc/posix-functions/vfprintf.texi: Likewise.
12443         * doc/posix-functions/vprintf.texi: Likewise.
12444         * doc/posix-functions/vsnprintf.texi: Likewise.
12445         * doc/posix-functions/vsprintf.texi: Likewise.
12446
12447 2011-06-19  Bruno Haible  <bruno@clisp.org>
12448
12449         roundl-ieee: Fix test failure on AIX 7.1.
12450         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12451         * doc/posix-functions/roundl.texi: Mention problem with negative
12452         arguments.
12453
12454 2011-06-19  Bruno Haible  <bruno@clisp.org>
12455
12456         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12457         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12458         * doc/posix-functions/round.texi: Mention problem with negative
12459         arguments.
12460         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12461
12462 2011-06-19  Bruno Haible  <bruno@clisp.org>
12463
12464         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12466         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12467         * doc/posix-functions/roundf.texi: Mention problem with negative
12468         arguments.
12469         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12470
12471 2011-06-19  Bruno Haible  <bruno@clisp.org>
12472
12473         ceilf-ieee: Work around bug on MacOS X 10.5.
12474         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12475
12476         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12477         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12478         IEEE compliant, avoid compiler optimizations.
12479         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12480         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12481         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12482         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12483         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12484         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12485         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12487         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12488         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12489
12490 2011-06-19  Bruno Haible  <bruno@clisp.org>
12491
12492         ceilf-ieee: Work around bug on AIX 7.1.
12493         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12494         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12495
12496 2011-06-19  Bruno Haible  <bruno@clisp.org>
12497
12498         ceil-ieee: Work around bug on AIX 7.1.
12499         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12500         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12501
12502 2011-06-18  Bruno Haible  <bruno@clisp.org>
12503
12504         fsync test: Avoid test failure on MacOS X and AIX.
12505         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12506         EINVAL.
12507
12508 2011-06-18  Bruno Haible  <bruno@clisp.org>
12509
12510         openat, fdopendir tests: Fix link errors.
12511         * modules/openat-tests (Depends-on): Add progname.
12512         * modules/fdopendir-tests (Depends-on): Likewise.
12513         * tests/test-fchownat.c: Include progname.h.
12514         (main): Call set_program_name.
12515         * tests/test-fstatat.c: Include progname.h.
12516         (main): Call set_program_name.
12517         * tests/test-mkdirat.c: Include progname.h.
12518         (main): Call set_program_name.
12519         * tests/test-openat.c: Include progname.h.
12520         (main): Call set_program_name.
12521         * tests/test-unlinkat.c: Include progname.h.
12522         (main): Call set_program_name.
12523         * tests/test-fdopendir.c: Include progname.h.
12524         (main): Call set_program_name.
12525
12526 2011-06-18  Bruno Haible  <bruno@clisp.org>
12527
12528         Doc update.
12529         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12530         HP-UX.
12531         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12532
12533 2011-06-18  Bruno Haible  <bruno@clisp.org>
12534
12535         getcwd tests: Avoid compilation error on HP-UX 11.31.
12536         * modules/getcwd-tests (Depends-on): Add pathmax.
12537         * tests/test-getcwd.c: Include pathmax.h.
12538
12539 2011-06-18  Bruno Haible  <bruno@clisp.org>
12540
12541         isfinite, isinf: Fix link error on AIX 6 and 7.
12542         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12543         needed, also test the macro with a 'float' argument.
12544         * m4/isinf.m4 (gl_ISINF): Likewise.
12545
12546 2011-06-18  Bruno Haible  <bruno@clisp.org>
12547
12548         getloadavg: Don't clobber LIBS. Regression from previous commit.
12549         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12550         AC_CHECK_LIB from here...
12551         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12552         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12553         gl_func_getloadavg_done.
12554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12555
12556 2011-06-18  Bruno Haible  <bruno@clisp.org>
12557
12558         clean-temp: Improve documentation.
12559         * lib/clean-temp.h: Explain better how to use this module.
12560         Reported by John Darrington <john@darrington.wattle.id.au>.
12561
12562 2011-06-17  Bruno Haible  <bruno@clisp.org>
12563
12564         pread, pwrite: Avoid cc warning on AIX.
12565         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12566         (pwrite): Likewise.
12567
12568 2011-06-17  Bruno Haible  <bruno@clisp.org>
12569
12570         spawn-pipe tests: Fix link error.
12571         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12572         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12573
12574 2011-06-17  Bruno Haible  <bruno@clisp.org>
12575
12576         Tests: Remove unnecessary dependency.
12577         * modules/canonicalize-tests (Depends-on): Remove progname.
12578         * modules/chown-tests (Depends-on): Likewise.
12579         * modules/dirname-tests (Depends-on): Likewise.
12580         * modules/fdopendir-tests (Depends-on): Likewise.
12581         * modules/fdutimensat-tests (Depends-on): Likewise.
12582         * modules/hash-tests (Depends-on): Likewise.
12583         * modules/lchown-tests (Depends-on): Likewise.
12584         * modules/linkat-tests (Depends-on): Likewise.
12585         * modules/renameat-tests (Depends-on): Likewise.
12586         * modules/spawn-pipe-tests (Depends-on): Likewise.
12587         * modules/utimensat-tests (Depends-on): Likewise.
12588
12589 2011-06-17  Bruno Haible  <bruno@clisp.org>
12590
12591         spawn-pipe tests: Fix link error.
12592         * tests/test-spawn-pipe-child.c: Undefine fflush.
12593
12594 2011-06-17  Bruno Haible  <bruno@clisp.org>
12595
12596         Fix tests link errors.
12597         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12598         * modules/chown-tests (Makefile.am): Don't link test-chown with
12599         LIBINTL.
12600         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12601         LIBINTL.
12602         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12603         LIBINTL.
12604         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12605         LIBINTL.
12606
12607 2011-06-16  Bruno Haible  <bruno@clisp.org>
12608
12609         crypto/gc-sha1: Fix recent regression.
12610         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12611         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12612
12613         crypto/gc-md5: Fix recent regression.
12614         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12615
12616         crypto/gc-md4: Fix recent regression.
12617         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12618         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12619
12620         crypto/gc-arctwo: Fix recent regression.
12621         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12622         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12623
12624         crypto/gc-rijndael: Fix recent regression.
12625         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12626         (configure.ac): Invoke AC_LIBOBJ here.
12627         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12629
12630         crypto/gc-hmac-sha1: Fix recent regression.
12631         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12632         (configure.ac): Invoke AC_LIBOBJ here.
12633         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12635
12636         crypto/gc-hmac-md5: Fix recent regression.
12637         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12638         (configure.ac): Invoke AC_LIBOBJ here.
12639         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12641
12642         crypto/gc-des: Fix recent regression.
12643         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12644         (configure.ac): Invoke AC_LIBOBJ here.
12645         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12647
12648         crypto/gc-arcfour: Fix recent regression.
12649         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12650         (configure.ac): Invoke AC_LIBOBJ here.
12651         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12653
12654 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12655
12656         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12657         After the 2011-05-21 change, this macro requires
12658         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12659         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12660
12661 2011-06-16  Bruno Haible  <bruno@clisp.org>
12662
12663         fprintftime: Move AC_LIBOBJ invocations to module description.
12664         * m4/fprintftime.m4: Remove file.
12665         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12666         (configure.ac): Remove gl_FPRINTFTIME call.
12667         (Makefile.am): Augment lib_SOURCES.
12668         Reported by Jim Meyering.
12669
12670 2011-06-16  Bruno Haible  <bruno@clisp.org>
12671
12672         tmpfile-safer: Finish 2011-05-23 commit.
12673         * m4/stdio-safer.m4: Really remove file.
12674         Reported by Jim Meyering.
12675
12676 2011-06-16  Bruno Haible  <bruno@clisp.org>
12677
12678         syntax-check: Fix typo.
12679         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12680         printf-posix.m4.
12681         Reported by Jim Meyering.
12682
12683 2011-06-13  Jim Meyering  <meyering@redhat.com>
12684
12685         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12686         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12687
12688 2011-05-23  Bruno Haible  <bruno@clisp.org>
12689
12690         yesno: Move AC_LIBOBJ invocations to module description.
12691         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12692         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12693
12694 2011-05-23  Bruno Haible  <bruno@clisp.org>
12695
12696         xstrtol: Move AC_LIBOBJ invocations to module description.
12697         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12698         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12699
12700 2011-05-23  Bruno Haible  <bruno@clisp.org>
12701
12702         xstrtold: Move AC_LIBOBJ invocations to module description.
12703         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12704         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12705
12706 2011-05-23  Bruno Haible  <bruno@clisp.org>
12707
12708         xstrtod: Move AC_LIBOBJ invocations to module description.
12709         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12710         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12711
12712 2011-05-23  Bruno Haible  <bruno@clisp.org>
12713
12714         xnanosleep: Move AC_LIBOBJ invocations to module description.
12715         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12716         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12717
12718 2011-05-23  Bruno Haible  <bruno@clisp.org>
12719
12720         xgetcwd: Move AC_LIBOBJ invocations to module description.
12721         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12722         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         xalloc: Move AC_LIBOBJ invocations to module description.
12727         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12728         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12729
12730 2011-05-23  Bruno Haible  <bruno@clisp.org>
12731
12732         write-any-file: Move AC_LIBOBJ invocations to module description.
12733         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12734         invocation.
12735         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738
12739         utimens: Move AC_LIBOBJ invocations to module description.
12740         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12741         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         utimecmp: Move AC_LIBOBJ invocations to module description.
12746         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12747         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12748
12749 2011-05-23  Bruno Haible  <bruno@clisp.org>
12750
12751         userspec: Move AC_LIBOBJ invocations to module description.
12752         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12753         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12754
12755 2011-05-23  Bruno Haible  <bruno@clisp.org>
12756
12757         unlinkdir: Move AC_LIBOBJ invocations to module description.
12758         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12759         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12760
12761 2011-05-23  Bruno Haible  <bruno@clisp.org>
12762
12763         unistd-safer: Move AC_LIBOBJ invocations to module description.
12764         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12765         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12766
12767 2011-05-23  Bruno Haible  <bruno@clisp.org>
12768
12769         tempname: Move AC_LIBOBJ invocations to module description.
12770         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12771         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12772
12773 2011-05-23  Bruno Haible  <bruno@clisp.org>
12774
12775         strftime: Move AC_LIBOBJ invocations to module description.
12776         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12777         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12778
12779 2011-05-23  Bruno Haible  <bruno@clisp.org>
12780
12781         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12782         * m4/stdlib-safer.m4: Remove file.
12783         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12784         (configure.ac): Remove gl_STDLIB_SAFER call.
12785         (Makefile.am): Augment lib_SOURCES.
12786
12787 2011-05-23  Bruno Haible  <bruno@clisp.org>
12788
12789         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12790         * m4/stdio-safer.m4: Remove file.
12791         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12792         (configure.ac): Remove gl_TMPFILE_SAFER call.
12793         (Makefile.am): Augment lib_SOURCES.
12794
12795 2011-05-23  Bruno Haible  <bruno@clisp.org>
12796
12797         popen-safer: Move AC_LIBOBJ invocations to module description.
12798         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12799         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12800         (configure.ac): Remove gl_POPEN_SAFER call.
12801         (Makefile.am): Augment lib_SOURCES.
12802
12803 2011-05-23  Bruno Haible  <bruno@clisp.org>
12804
12805         freopen-safer: Move AC_LIBOBJ invocations to module description.
12806         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12807         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12808         (configure.ac): Remove gl_FREOPEN_SAFER call.
12809         (Makefile.am): Augment lib_SOURCES.
12810
12811 2011-05-23  Bruno Haible  <bruno@clisp.org>
12812
12813         fopen-safer: Move AC_LIBOBJ invocations to module description.
12814         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12815         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12816         (configure.ac): Remove gl_FOPEN_SAFER call.
12817         (Makefile.am): Augment lib_SOURCES.
12818
12819 2011-05-23  Bruno Haible  <bruno@clisp.org>
12820
12821         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12822         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12823         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12824
12825 2011-05-23  Bruno Haible  <bruno@clisp.org>
12826
12827         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12828         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12829         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12830
12831 2011-05-23  Bruno Haible  <bruno@clisp.org>
12832
12833         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12834         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12835         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12836
12837 2011-05-23  Bruno Haible  <bruno@clisp.org>
12838
12839         settime: Move AC_LIBOBJ invocations to module description.
12840         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12841         * modules/settime (Makefile.am): Augment lib_SOURCES.
12842
12843 2011-05-23  Bruno Haible  <bruno@clisp.org>
12844
12845         savedir: Move AC_LIBOBJ invocations to module description.
12846         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12847         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12848
12849 2011-05-23  Bruno Haible  <bruno@clisp.org>
12850
12851         save-cwd: Move AC_LIBOBJ invocations to module description.
12852         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12853         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12854
12855 2011-05-23  Bruno Haible  <bruno@clisp.org>
12856
12857         same: Move AC_LIBOBJ invocations to module description.
12858         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12859         * modules/same (Makefile.am): Augment lib_SOURCES.
12860
12861 2011-05-23  Bruno Haible  <bruno@clisp.org>
12862
12863         safe-write: Move AC_LIBOBJ invocations to module description.
12864         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12865         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12866         instead of gl_SAFE_WRITE.
12867         (Makefile.am): Augment lib_SOURCES.
12868
12869 2011-05-23  Bruno Haible  <bruno@clisp.org>
12870
12871         safe-read: Move AC_LIBOBJ invocations to module description.
12872         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12873         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12874         of gl_SAFE_READ.
12875         (Makefile.am): Augment lib_SOURCES.
12876
12877 2011-05-23  Bruno Haible  <bruno@clisp.org>
12878
12879         safe-alloc: Move AC_LIBOBJ invocations to module description.
12880         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12881         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12882
12883 2011-05-23  Bruno Haible  <bruno@clisp.org>
12884
12885         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12886         * m4/rijndael.m4: Remove file.
12887         * modules/crypto/rijndael (Files): Remove it.
12888         (configure.ac): Remove gl_RIJNDAEL call.
12889         (Makefile.am): Augment lib_SOURCES.
12890
12891 2011-05-23  Bruno Haible  <bruno@clisp.org>
12892
12893         readtokens: Move AC_LIBOBJ invocations to module description.
12894         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12895         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12896
12897 2011-05-23  Bruno Haible  <bruno@clisp.org>
12898
12899         read-file: Move AC_LIBOBJ invocations to module description.
12900         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12901         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12902         of gl_FUNC_READ_FILE.
12903         (Makefile.am): Augment lib_SOURCES.
12904
12905 2011-05-23  Bruno Haible  <bruno@clisp.org>
12906
12907         quotearg: Move AC_LIBOBJ invocations to module description.
12908         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12909         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12910
12911 2011-05-23  Bruno Haible  <bruno@clisp.org>
12912
12913         quote: Move AC_LIBOBJ invocations to module description.
12914         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12915         * modules/quote (Makefile.am): Augment lib_SOURCES.
12916
12917 2011-05-23  Bruno Haible  <bruno@clisp.org>
12918
12919         posixver: Move AC_LIBOBJ invocations to module description.
12920         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12921         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12922
12923 2011-05-23  Bruno Haible  <bruno@clisp.org>
12924
12925         posixtm: Move AC_LIBOBJ invocations to module description.
12926         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12927         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12928
12929 2011-05-23  Bruno Haible  <bruno@clisp.org>
12930
12931         physmem: Move AC_LIBOBJ invocations to module description.
12932         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12933         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12934
12935 2011-05-23  Bruno Haible  <bruno@clisp.org>
12936
12937         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12938         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12939         invocation.
12940         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12941
12942 2011-05-23  Bruno Haible  <bruno@clisp.org>
12943
12944         mpsort: Move AC_LIBOBJ invocations to module description.
12945         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12946         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12947
12948 2011-05-23  Bruno Haible  <bruno@clisp.org>
12949
12950         modechange: Move AC_LIBOBJ invocations to module description.
12951         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12952         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12953
12954 2011-05-23  Bruno Haible  <bruno@clisp.org>
12955
12956         mkdir-p: Move AC_LIBOBJ invocations to module description.
12957         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12958         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12959
12960 2011-05-23  Bruno Haible  <bruno@clisp.org>
12961
12962         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12963         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12964         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12965
12966 2011-05-23  Bruno Haible  <bruno@clisp.org>
12967
12968         mgetgroups: Move AC_LIBOBJ invocations to module description.
12969         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12970         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12971
12972 2011-05-23  Bruno Haible  <bruno@clisp.org>
12973
12974         memxor: Move AC_LIBOBJ invocations to module description.
12975         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12976         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12977
12978 2011-05-23  Bruno Haible  <bruno@clisp.org>
12979
12980         memcoll: Move AC_LIBOBJ invocations to module description.
12981         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12982         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12983
12984 2011-05-23  Bruno Haible  <bruno@clisp.org>
12985
12986         memcasecmp: Move AC_LIBOBJ invocations to module description.
12987         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12988         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12989
12990 2011-05-23  Bruno Haible  <bruno@clisp.org>
12991
12992         crypto/md5: Move AC_LIBOBJ invocations to module description.
12993         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12994         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12995
12996 2011-05-23  Bruno Haible  <bruno@clisp.org>
12997
12998         crypto/md4: Move AC_LIBOBJ invocations to module description.
12999         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13000         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13001
13002 2011-05-23  Bruno Haible  <bruno@clisp.org>
13003
13004         crypto/md2: Move AC_LIBOBJ invocations to module description.
13005         * m4/md2.m4: Remove file.
13006         * modules/crypto/md2 (Files): Remove it.
13007         (configure.ac): Remove gl_MD2 call.
13008         (Makefile.am): Augment lib_SOURCES.
13009
13010 2011-05-23  Bruno Haible  <bruno@clisp.org>
13011
13012         long-options: Move AC_LIBOBJ invocations to module description.
13013         * m4/long-options.m4: Remove file.
13014         * modules/long-options (Files): Remove it.
13015         (configure.ac): Remove gl_LONG_OPTIONS call.
13016         (Makefile.am): Augment lib_SOURCES.
13017
13018 2011-05-23  Bruno Haible  <bruno@clisp.org>
13019
13020         i-ring: Move AC_LIBOBJ invocations to module description.
13021         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13022         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13023
13024 2011-05-23  Bruno Haible  <bruno@clisp.org>
13025
13026         idcache: Move AC_LIBOBJ invocations to module description.
13027         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13028         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13029
13030 2011-05-23  Bruno Haible  <bruno@clisp.org>
13031
13032         human: Move AC_LIBOBJ invocations to module description.
13033         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13034         * modules/human (Makefile.am): Augment lib_SOURCES.
13035
13036 2011-05-23  Bruno Haible  <bruno@clisp.org>
13037
13038         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13039         * m4/hmac-sha1.m4: Remove file.
13040         * modules/crypto/hmac-sha1 (Files): Remove it.
13041         (configure.ac): Remove gl_HMAC_SHA1 call.
13042         (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13047         * m4/hmac-md5.m4: Remove file.
13048         * modules/crypto/hmac-md5 (Files): Remove it.
13049         (configure.ac): Remove gl_HMAC_MD5 call.
13050         (Makefile.am): Augment lib_SOURCES.
13051
13052 2011-05-23  Bruno Haible  <bruno@clisp.org>
13053
13054         hash: Move AC_LIBOBJ invocations to module description.
13055         * m4/hash.m4: Remove file.
13056         * modules/hash (Files): Remove it.
13057         (configure.ac): Remove gl_HASH call.
13058         (Makefile.am): Augment lib_SOURCES.
13059
13060 2011-05-23  Bruno Haible  <bruno@clisp.org>
13061
13062         hard-locale: Move AC_LIBOBJ invocations to module description.
13063         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13064         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13065
13066 2011-05-23  Bruno Haible  <bruno@clisp.org>
13067
13068         getugroups: Move AC_LIBOBJ invocations to module description.
13069         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13070         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13071
13072 2011-05-23  Bruno Haible  <bruno@clisp.org>
13073
13074         gettime: Move AC_LIBOBJ invocations to module description.
13075         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13076         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13077
13078 2011-05-23  Bruno Haible  <bruno@clisp.org>
13079
13080         getndelim2: Move AC_LIBOBJ invocations to module description.
13081         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13082         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13083
13084 2011-05-23  Bruno Haible  <bruno@clisp.org>
13085
13086         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13087         * m4/gc-pbkdf2-sha1.m4: Remove file.
13088         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13089         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13090         (Makefile.am): Augment lib_SOURCES.
13091
13092 2011-05-23  Bruno Haible  <bruno@clisp.org>
13093
13094         fts: Move AC_LIBOBJ invocations to module description.
13095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13096         * modules/fts (configure.ac): ... to here.
13097
13098 2011-05-23  Bruno Haible  <bruno@clisp.org>
13099
13100         file-type: Move AC_LIBOBJ invocations to module description.
13101         * m4/file-type.m4: Remove file.
13102         * modules/file-type (Files): Remove it.
13103         (configure.ac): Remove gl_FILE_TYPE call.
13104         (Makefile.am): Augment lib_SOURCES.
13105
13106 2011-05-23  Bruno Haible  <bruno@clisp.org>
13107
13108         filenamecat*: Respect rules for use of AC_LIBOBJ.
13109         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13110         Remove AC_LIBOBJ invocation.
13111         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13112         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13113
13114 2011-05-23  Bruno Haible  <bruno@clisp.org>
13115
13116         filemode: Move AC_LIBOBJ invocations to module description.
13117         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13118         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13119
13120 2011-05-23  Bruno Haible  <bruno@clisp.org>
13121
13122         openat-safer: Move AC_LIBOBJ invocations to module description.
13123         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13124         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13125
13126 2011-05-23  Bruno Haible  <bruno@clisp.org>
13127
13128         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13129         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13130         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13131
13132 2011-05-23  Bruno Haible  <bruno@clisp.org>
13133
13134         exclude: Move AC_LIBOBJ invocations to module description.
13135         * m4/exclude.m4: Remove file.
13136         * modules/exclude (Files): Remove it.
13137         (configure.ac): Remove gl_EXCLUDE call.
13138         (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         dirname*: Respect rules for use of AC_LIBOBJ.
13143         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13144         invocations.
13145         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13146         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         dirent-safer: Move AC_LIBOBJ invocations to module description.
13151         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13152         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13153
13154 2011-05-23  Bruno Haible  <bruno@clisp.org>
13155
13156         crypto/des: Move AC_LIBOBJ invocations to module description.
13157         * m4/des.m4: Remove file.
13158         * modules/crypto/des (Files): Remove it.
13159         (configure.ac): Remove gl_DES call.
13160         (Makefile.am): Augment lib_SOURCES.
13161
13162 2011-05-23  Bruno Haible  <bruno@clisp.org>
13163
13164         cycle-check: Move AC_LIBOBJ invocations to module description.
13165         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13166         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13167
13168 2011-05-23  Bruno Haible  <bruno@clisp.org>
13169
13170         c-strtold: Move AC_LIBOBJ invocations to module description.
13171         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13172         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13173
13174 2011-05-23  Bruno Haible  <bruno@clisp.org>
13175
13176         c-strtod: Move AC_LIBOBJ invocations to module description.
13177         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13178         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13179
13180 2011-05-23  Bruno Haible  <bruno@clisp.org>
13181
13182         crc: Move AC_LIBOBJ invocations to module description.
13183         * m4/crc.m4: Remove file.
13184         * modules/crc (Files): Remove it.
13185         (configure.ac): Remove gl_CRC call.
13186         (Makefile.am): Augment lib_SOURCES.
13187
13188 2011-05-23  Bruno Haible  <bruno@clisp.org>
13189
13190         close-stream: Move AC_LIBOBJ invocations to module description.
13191         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13192         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13193
13194 2011-05-23  Bruno Haible  <bruno@clisp.org>
13195
13196         closeout: Move AC_LIBOBJ invocations to module description.
13197         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13198         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13199
13200 2011-05-23  Bruno Haible  <bruno@clisp.org>
13201
13202         closein: Move AC_LIBOBJ invocations to module description.
13203         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13204         * modules/closein (Makefile.am): Augment lib_SOURCES.
13205
13206 2011-05-23  Bruno Haible  <bruno@clisp.org>
13207
13208         cloexec: Move AC_LIBOBJ invocations to module description.
13209         * m4/cloexec.m4: Remove file.
13210         * modules/cloexec (Files): Remove it.
13211         (configure.ac): Remove gl_CLOEXEC call.
13212         (Makefile.am): Augment lib_SOURCES.
13213
13214 2011-05-23  Bruno Haible  <bruno@clisp.org>
13215
13216         check-version: Move AC_LIBOBJ invocations to module description.
13217         * m4/check-version.m4: Remove file.
13218         * modules/check-version (Files): Remove it.
13219         (configure.ac): Remove gl_CHECK_VERSION call.
13220         (Makefile.am): Augment lib_SOURCES.
13221
13222 2011-05-23  Bruno Haible  <bruno@clisp.org>
13223
13224         chdir-safer: Move AC_LIBOBJ invocations to module description.
13225         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13226         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13227
13228 2011-05-23  Bruno Haible  <bruno@clisp.org>
13229
13230         canonicalize: Move AC_LIBOBJ invocations to module description.
13231         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13232         AC_LIBOBJ invocation.
13233         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13234
13235 2011-05-23  Bruno Haible  <bruno@clisp.org>
13236
13237         canon-host: Move AC_LIBOBJ invocations to module description.
13238         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13239         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13240         instead of gl_CANON_HOST.
13241         (Makefile.am): Augment lib_SOURCES.
13242
13243 2011-05-23  Bruno Haible  <bruno@clisp.org>
13244
13245         backupfile: Move AC_LIBOBJ invocations to module description.
13246         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13247         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         argmatch: Move AC_LIBOBJ invocations to module description.
13252         * m4/argmatch.m4: Remove file.
13253         * modules/argmatch (Files): Remove it.
13254         (configure.ac): Remove gl_ARGMATCH call.
13255         (Makefile.am): Augment lib_SOURCES.
13256
13257 2011-05-23  Bruno Haible  <bruno@clisp.org>
13258
13259         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13260         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13261         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13262
13263 2011-05-23  Bruno Haible  <bruno@clisp.org>
13264
13265         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13266         * m4/arcfour.m4: Remove file.
13267         * modules/crypto/arcfour (Files): Remove it.
13268         (configure.ac): Remove gl_ARCFOUR call.
13269         (Makefile.am): Augment lib_SOURCES.
13270
13271 2011-05-22  Bruno Haible  <bruno@clisp.org>
13272
13273         write: Move AC_LIBOBJ invocations to module description.
13274         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13275         * modules/write (configure.ac): ... to here.
13276
13277 2011-05-22  Bruno Haible  <bruno@clisp.org>
13278
13279         wmemset: Move AC_LIBOBJ invocations to module description.
13280         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13281         here...
13282         * modules/wmemset (configure.ac): ... to here.
13283
13284 2011-05-22  Bruno Haible  <bruno@clisp.org>
13285
13286         wmemmove: Move AC_LIBOBJ invocations to module description.
13287         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13288         here...
13289         * modules/wmemmove (configure.ac): ... to here.
13290
13291 2011-05-22  Bruno Haible  <bruno@clisp.org>
13292
13293         wmemcpy: Move AC_LIBOBJ invocations to module description.
13294         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13295         here...
13296         * modules/wmemcpy (configure.ac): ... to here.
13297
13298 2011-05-22  Bruno Haible  <bruno@clisp.org>
13299
13300         wmemcmp: Move AC_LIBOBJ invocations to module description.
13301         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13302         here...
13303         * modules/wmemcmp (configure.ac): ... to here.
13304
13305 2011-05-22  Bruno Haible  <bruno@clisp.org>
13306
13307         wmemchr: Move AC_LIBOBJ invocations to module description.
13308         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13309         here...
13310         * modules/wmemchr (configure.ac): ... to here.
13311
13312 2011-05-22  Bruno Haible  <bruno@clisp.org>
13313
13314         wcswidth: Move AC_LIBOBJ invocations to module description.
13315         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13316         here...
13317         * modules/wcswidth (configure.ac): ... to here.
13318
13319 2011-05-22  Bruno Haible  <bruno@clisp.org>
13320
13321         wcwidth: Respect rules for use of AC_LIBOBJ.
13322         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13323         invocation from here...
13324         * modules/wcwidth (configure.ac): ... to here.
13325         (Depends-on): Update conditions.
13326
13327 2011-05-22  Bruno Haible  <bruno@clisp.org>
13328
13329         wctype: Move AC_LIBOBJ invocations to module description.
13330         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13331         invocation from here...
13332         * modules/wctype (configure.ac): ... to here.
13333         (Depends-on): Update conditions.
13334
13335 2011-05-22  Bruno Haible  <bruno@clisp.org>
13336
13337         wctrans: Move AC_LIBOBJ invocations to module description.
13338         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13339         invocation from here...
13340         * modules/wctrans (configure.ac): ... to here.
13341
13342 2011-05-22  Bruno Haible  <bruno@clisp.org>
13343
13344         wctomb: Move AC_LIBOBJ invocations to module description.
13345         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13346         invocations from here...
13347         * modules/wctomb (configure.ac): ... to here.
13348
13349 2011-05-22  Bruno Haible  <bruno@clisp.org>
13350
13351         wctob: Move AC_LIBOBJ invocations to module description.
13352         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13353         gl_PREREQ_WCTOB invocations from here...
13354         * modules/wctob (configure.ac): ... to here.
13355         (Depends-on): Update conditions.
13356
13357 2011-05-22  Bruno Haible  <bruno@clisp.org>
13358
13359         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13360         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13361         here...
13362         * modules/wcsxfrm (configure.ac): ... to here.
13363
13364 2011-05-22  Bruno Haible  <bruno@clisp.org>
13365
13366         wcstok: Move AC_LIBOBJ invocations to module description.
13367         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13368         * modules/wcstok (configure.ac): ... to here.
13369
13370 2011-05-22  Bruno Haible  <bruno@clisp.org>
13371
13372         wcsstr: Move AC_LIBOBJ invocations to module description.
13373         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13374         * modules/wcsstr (configure.ac): ... to here.
13375
13376 2011-05-22  Bruno Haible  <bruno@clisp.org>
13377
13378         wcsspn: Move AC_LIBOBJ invocations to module description.
13379         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13380         * modules/wcsspn (configure.ac): ... to here.
13381
13382 2011-05-22  Bruno Haible  <bruno@clisp.org>
13383
13384         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13385         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13386         gl_PREREQ_WCSRTOMBS invocations from here...
13387         * modules/wcsrtombs (configure.ac): ... to here.
13388
13389 2011-05-22  Bruno Haible  <bruno@clisp.org>
13390
13391         wcsrchr: Move AC_LIBOBJ invocations to module description.
13392         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13393         here...
13394         * modules/wcsrchr (configure.ac): ... to here.
13395
13396 2011-05-22  Bruno Haible  <bruno@clisp.org>
13397
13398         wcspbrk: Move AC_LIBOBJ invocations to module description.
13399         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13400         here...
13401         * modules/wcspbrk (configure.ac): ... to here.
13402
13403 2011-05-22  Bruno Haible  <bruno@clisp.org>
13404
13405         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13406         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13407         gl_PREREQ_WCSNRTOMBS invocations from here...
13408         * modules/wcsnrtombs (configure.ac): ... to here.
13409
13410 2011-05-22  Bruno Haible  <bruno@clisp.org>
13411
13412         wcsnlen: Move AC_LIBOBJ invocations to module description.
13413         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13414         here...
13415         * modules/wcsnlen (configure.ac): ... to here.
13416
13417 2011-05-22  Bruno Haible  <bruno@clisp.org>
13418
13419         wcsncpy: Move AC_LIBOBJ invocations to module description.
13420         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13421         here...
13422         * modules/wcsncpy (configure.ac): ... to here.
13423
13424 2011-05-22  Bruno Haible  <bruno@clisp.org>
13425
13426         wcsncmp: Move AC_LIBOBJ invocations to module description.
13427         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13428         here...
13429         * modules/wcsncmp (configure.ac): ... to here.
13430
13431 2011-05-22  Bruno Haible  <bruno@clisp.org>
13432
13433         wcsncat: Move AC_LIBOBJ invocations to module description.
13434         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13435         here...
13436         * modules/wcsncat (configure.ac): ... to here.
13437
13438 2011-05-22  Bruno Haible  <bruno@clisp.org>
13439
13440         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13441         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13442         from here...
13443         * modules/wcsncasecmp (configure.ac): ... to here.
13444
13445 2011-05-22  Bruno Haible  <bruno@clisp.org>
13446
13447         wcslen: Move AC_LIBOBJ invocations to module description.
13448         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13449         * modules/wcslen (configure.ac): ... to here.
13450
13451 2011-05-22  Bruno Haible  <bruno@clisp.org>
13452
13453         wcsdup: Move AC_LIBOBJ invocations to module description.
13454         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13455         * modules/wcsdup (configure.ac): ... to here.
13456
13457 2011-05-22  Bruno Haible  <bruno@clisp.org>
13458
13459         wcscspn: Move AC_LIBOBJ invocations to module description.
13460         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13461         here...
13462         * modules/wcscspn (configure.ac): ... to here.
13463
13464 2011-05-22  Bruno Haible  <bruno@clisp.org>
13465
13466         wcscpy: Move AC_LIBOBJ invocations to module description.
13467         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13468         * modules/wcscpy (configure.ac): ... to here.
13469
13470 2011-05-22  Bruno Haible  <bruno@clisp.org>
13471
13472         wcscoll: Move AC_LIBOBJ invocations to module description.
13473         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13474         here...
13475         * modules/wcscoll (configure.ac): ... to here.
13476
13477 2011-05-22  Bruno Haible  <bruno@clisp.org>
13478
13479         wcscmp: Move AC_LIBOBJ invocations to module description.
13480         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13481         * modules/wcscmp (configure.ac): ... to here.
13482
13483 2011-05-22  Bruno Haible  <bruno@clisp.org>
13484
13485         wcschr: Move AC_LIBOBJ invocations to module description.
13486         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13487         * modules/wcschr (configure.ac): ... to here.
13488
13489 2011-05-22  Bruno Haible  <bruno@clisp.org>
13490
13491         wcscat: Move AC_LIBOBJ invocations to module description.
13492         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13493         * modules/wcscat (configure.ac): ... to here.
13494
13495 2011-05-22  Bruno Haible  <bruno@clisp.org>
13496
13497         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13498         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13499         here...
13500         * modules/wcscasecmp (configure.ac): ... to here.
13501
13502 2011-05-22  Bruno Haible  <bruno@clisp.org>
13503
13504         wcrtomb: Move AC_LIBOBJ invocations to module description.
13505         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13506         invocations from here...
13507         * modules/wcrtomb (configure.ac): ... to here.
13508
13509 2011-05-22  Bruno Haible  <bruno@clisp.org>
13510
13511         wcpncpy: Move AC_LIBOBJ invocations to module description.
13512         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13513         here...
13514         * modules/wcpncpy (configure.ac): ... to here.
13515
13516 2011-05-22  Bruno Haible  <bruno@clisp.org>
13517
13518         wcpcpy: Move AC_LIBOBJ invocations to module description.
13519         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13520         * modules/wcpcpy (configure.ac): ... to here.
13521
13522 2011-05-22  Bruno Haible  <bruno@clisp.org>
13523
13524         waitpid: Move AC_LIBOBJ invocations to module description.
13525         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13526         invocation from here...
13527         * modules/waitpid (configure.ac): ... to here.
13528
13529 2011-05-22  Bruno Haible  <bruno@clisp.org>
13530
13531         utimensat: Move AC_LIBOBJ invocations to module description.
13532         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13533         here...
13534         * modules/utimensat (configure.ac): ... to here.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         usleep: Move AC_LIBOBJ invocations to module description.
13539         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13540         here...
13541         * modules/usleep (configure.ac): ... to here.
13542
13543 2011-05-22  Bruno Haible  <bruno@clisp.org>
13544
13545         unlockpt: Move AC_LIBOBJ invocations to module description.
13546         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13547         gl_PREREQ_UNLOCKPT invocations from here...
13548         * modules/unlockpt (configure.ac): ... to here.
13549
13550 2011-05-22  Bruno Haible  <bruno@clisp.org>
13551
13552         unlink: Respect rules for use of AC_LIBOBJ.
13553         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13554         * modules/unlink (configure.ac): ... to here.
13555
13556 2011-05-22  Bruno Haible  <bruno@clisp.org>
13557
13558         uname: Move AC_LIBOBJ invocations to module description.
13559         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13560         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13561         here...
13562         * modules/uname (configure.ac): ... to here.
13563
13564 2011-05-22  Bruno Haible  <bruno@clisp.org>
13565
13566         ttyname_r: Move AC_LIBOBJ invocations to module description.
13567         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13568         gl_PREREQ_TTYNAME_R invocations from here...
13569         * modules/ttyname_r (configure.ac): ... to here.
13570
13571 2011-05-22  Bruno Haible  <bruno@clisp.org>
13572
13573         tsearch: Move AC_LIBOBJ invocations to module description.
13574         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13575         invocations from here...
13576         * modules/tsearch (configure.ac): ... to here.
13577
13578 2011-05-22  Bruno Haible  <bruno@clisp.org>
13579
13580         towctrans: Move AC_LIBOBJ invocations to module description.
13581         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13582         AC_LIBOBJ invocation from here...
13583         * modules/towctrans (configure.ac): ... to here.
13584
13585 2011-05-22  Bruno Haible  <bruno@clisp.org>
13586
13587         tmpfile: Move AC_LIBOBJ invocations to module description.
13588         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13589         invocations from here...
13590         * modules/tmpfile (configure.ac): ... to here.
13591
13592 2011-05-22  Bruno Haible  <bruno@clisp.org>
13593
13594         times: Move AC_LIBOBJ invocations to module description.
13595         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13596         * modules/times (configure.ac): ... to here.
13597
13598 2011-05-22  Bruno Haible  <bruno@clisp.org>
13599
13600         time_r: Move AC_LIBOBJ invocations to module description.
13601         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13602         invocations from here...
13603         * modules/time_r (configure.ac): ... to here.
13604
13605 2011-05-22  Bruno Haible  <bruno@clisp.org>
13606
13607         timegm: Move AC_LIBOBJ invocations to module description.
13608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13609         invocations from here...
13610         * modules/timegm (configure.ac): ... to here.
13611
13612 2011-05-22  Bruno Haible  <bruno@clisp.org>
13613
13614         tcgetsid: Move AC_LIBOBJ invocations to module description.
13615         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13616         and gl_PREREQ_TCGETSID invocations from here...
13617         * modules/tcgetsid (configure.ac): ... to here.
13618         (Depends-on): Update conditions.
13619
13620 2011-05-22  Bruno Haible  <bruno@clisp.org>
13621
13622         symlinkat: Move AC_LIBOBJ invocations to module description.
13623         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13624         here...
13625         * modules/symlinkat (configure.ac): ... to here.
13626
13627 2011-05-22  Bruno Haible  <bruno@clisp.org>
13628
13629         symlink: Move AC_LIBOBJ invocations to module description.
13630         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13631         here...
13632         * modules/symlink (configure.ac): ... to here.
13633
13634 2011-05-22  Bruno Haible  <bruno@clisp.org>
13635
13636         strverscmp: Move AC_LIBOBJ invocations to module description.
13637         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13639         from here...
13640         * modules/strverscmp (configure.ac): ... to here.
13641
13642 2011-05-22  Bruno Haible  <bruno@clisp.org>
13643
13644         strtok_r: Move AC_LIBOBJ invocations to module description.
13645         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13646         and gl_PREREQ_STRTOK_R invocations from here...
13647         * modules/strtok_r (configure.ac): ... to here.
13648         (Depends-on): Update conditions.
13649
13650 2011-05-22  Bruno Haible  <bruno@clisp.org>
13651
13652         strtoumax: Move AC_LIBOBJ invocations to module description.
13653         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13654         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13655         from here...
13656         * modules/strtoumax (configure.ac): ... to here.
13657
13658 2011-05-22  Bruno Haible  <bruno@clisp.org>
13659
13660         strtoimax: Move AC_LIBOBJ invocations to module description.
13661         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13663         from here...
13664         * modules/strtoimax (configure.ac): ... to here.
13665
13666 2011-05-22  Bruno Haible  <bruno@clisp.org>
13667
13668         strtoull: Move AC_LIBOBJ invocations to module description.
13669         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13670         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13671         from here...
13672         * modules/strtoull (configure.ac): ... to here.
13673
13674 2011-05-22  Bruno Haible  <bruno@clisp.org>
13675
13676         strtoll: Move AC_LIBOBJ invocations to module description.
13677         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13678         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13679         here...
13680         * modules/strtoll (configure.ac): ... to here.
13681
13682 2011-05-22  Bruno Haible  <bruno@clisp.org>
13683
13684         strtoul: Move AC_LIBOBJ invocations to module description.
13685         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13686         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13687         * modules/strtoul (configure.ac): ... to here.
13688
13689 2011-05-22  Bruno Haible  <bruno@clisp.org>
13690
13691         strtol: Move AC_LIBOBJ invocations to module description.
13692         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13693         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13694         * modules/strtol (configure.ac): ... to here.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         strtod: Move AC_LIBOBJ invocations to module description.
13699         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13700         invocations from here...
13701         * modules/strtod (configure.ac): ... to here.
13702
13703 2011-05-22  Bruno Haible  <bruno@clisp.org>
13704
13705         strstr*: Move AC_LIBOBJ invocations to module description.
13706         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13707         invocations from here...
13708         * modules/strstr-simple (configure.ac): ... to here.
13709         * modules/strstr (configure.ac): ... and here.
13710
13711 2011-05-22  Bruno Haible  <bruno@clisp.org>
13712
13713         strsignal: Move AC_LIBOBJ invocations to module description.
13714         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13715         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13716         * modules/strsignal (configure.ac): ... to here.
13717         (Depends-on): Update conditions.
13718
13719 2011-05-22  Bruno Haible  <bruno@clisp.org>
13720
13721         strsep: Move AC_LIBOBJ invocations to module description.
13722         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13723         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13724         here...
13725         * modules/strsep (configure.ac): ... to here.
13726
13727 2011-05-22  Bruno Haible  <bruno@clisp.org>
13728
13729         strptime: Move AC_LIBOBJ invocations to module description.
13730         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13731         gl_PREREQ_STRPTIME invocations from here...
13732         * modules/strptime (configure.ac): ... to here.
13733
13734 2011-05-22  Bruno Haible  <bruno@clisp.org>
13735
13736         strpbrk: Move AC_LIBOBJ invocations to module description.
13737         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13739         here...
13740         * modules/strpbrk (configure.ac): ... to here.
13741
13742 2011-05-22  Bruno Haible  <bruno@clisp.org>
13743
13744         strnlen: Move AC_LIBOBJ invocations to module description.
13745         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13746         invocations from here...
13747         * modules/strnlen (configure.ac): ... to here.
13748
13749 2011-05-22  Bruno Haible  <bruno@clisp.org>
13750
13751         strndup: Move AC_LIBOBJ invocations to module description.
13752         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13753         invocations from here...
13754         * modules/strndup (configure.ac): ... to here.
13755         (Depends-on): Update conditions.
13756
13757 2011-05-22  Bruno Haible  <bruno@clisp.org>
13758
13759         strncat: Move AC_LIBOBJ invocations to module description.
13760         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13761         invocations from here...
13762         * modules/strncat (configure.ac): ... to here.
13763
13764 2011-05-22  Bruno Haible  <bruno@clisp.org>
13765
13766         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13767         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13768         invocations from here...
13769         * modules/strdup (configure.ac): ... to here.
13770         * modules/strdup-posix (configure.ac): ... and here.
13771
13772 2011-05-22  Bruno Haible  <bruno@clisp.org>
13773
13774         strcspn: Move AC_LIBOBJ invocations to module description.
13775         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13777         here...
13778         * modules/strcspn (configure.ac): ... to here.
13779
13780 2011-05-22  Bruno Haible  <bruno@clisp.org>
13781
13782         strchrnul: Move AC_LIBOBJ invocations to module description.
13783         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13784         gl_PREREQ_STRCHRNUL invocations from here...
13785         * modules/strchrnul (configure.ac): ... to here.
13786
13787 2011-05-22  Bruno Haible  <bruno@clisp.org>
13788
13789         strcasestr*: Move AC_LIBOBJ invocations to module description.
13790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13791         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13792         * modules/strcasestr-simple (configure.ac): ... to here.
13793         * modules/strcasestr (configure.ac): ... and here.
13794
13795 2011-05-22  Bruno Haible  <bruno@clisp.org>
13796
13797         strcase: Move AC_LIBOBJ invocations to module description.
13798         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13799         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13800         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13801         gl_PREREQ_STRNCASECMP invocations from here...
13802         * modules/strcase (configure.ac): ... to here.
13803
13804 2011-05-22  Bruno Haible  <bruno@clisp.org>
13805
13806         stpncpy: Move AC_LIBOBJ invocations to module description.
13807         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13808         here...
13809         * modules/stpncpy (configure.ac): ... to here.
13810
13811 2011-05-22  Bruno Haible  <bruno@clisp.org>
13812
13813         stpcpy: Move AC_LIBOBJ invocations to module description.
13814         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13815         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13816         here...
13817         * modules/stpcpy (configure.ac): ... to here.
13818
13819 2011-05-21  Bruno Haible  <bruno@clisp.org>
13820
13821         stat: Move AC_LIBOBJ invocations to module description.
13822         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13823         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13824         here...
13825         * modules/stat (configure.ac): ... to here.
13826
13827 2011-05-21  Bruno Haible  <bruno@clisp.org>
13828
13829         sleep: Move AC_LIBOBJ invocations to module description.
13830         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13831         * modules/sleep (configure.ac): ... to here.
13832
13833 2011-05-21  Bruno Haible  <bruno@clisp.org>
13834
13835         signbit: Move AC_LIBOBJ invocations to module description.
13836         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13837         * modules/signbit (configure.ac): ... to here.
13838
13839 2011-05-21  Bruno Haible  <bruno@clisp.org>
13840
13841         sigprocmask: Move AC_LIBOBJ invocations to module description.
13842         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13843         gl_PREREQ_SIGPROMASK invocations from here...
13844         * modules/sigprocmask (configure.ac): ... to here.
13845
13846 2011-05-21  Bruno Haible  <bruno@clisp.org>
13847
13848         sigaction: Move AC_LIBOBJ invocations to module description.
13849         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13850         gl_PREREQ_SIGACTION invocations from here...
13851         * modules/sigaction (configure.ac): ... to here.
13852
13853 2011-05-21  Bruno Haible  <bruno@clisp.org>
13854
13855         sig2str: Move AC_LIBOBJ invocations to module description.
13856         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13858         here...
13859         * modules/sig2str (configure.ac): ... to here.
13860
13861 2011-05-21  Bruno Haible  <bruno@clisp.org>
13862
13863         setlocale: Move AC_LIBOBJ invocations to module description.
13864         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13865         gl_PREREQ_SETLOCALE invocations from here...
13866         * modules/setlocale (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         unsetenv: Move AC_LIBOBJ invocations to module description.
13871         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13872         and gl_PREREQ_UNSETENV invocations from here...
13873         * modules/unsetenv (configure.ac): ... to here.
13874         (Depends-on): Update.
13875
13876 2011-05-21  Bruno Haible  <bruno@clisp.org>
13877
13878         setenv: Move AC_LIBOBJ invocations to module description.
13879         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13880         here...
13881         * modules/setenv (configure.ac): ... to here.
13882
13883 2011-05-21  Bruno Haible  <bruno@clisp.org>
13884
13885         selinux-h: Move AC_LIBOBJ invocations to module description.
13886         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13887         AC_LIBOBJ invocation from here...
13888         * modules/selinux-h (configure.ac): ... to here.
13889
13890 2011-05-21  Bruno Haible  <bruno@clisp.org>
13891
13892         select: Respect rules for use of AC_LIBOBJ.
13893         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13894         here...
13895         * modules/select (configure.ac): ... to here.
13896
13897 2011-05-21  Bruno Haible  <bruno@clisp.org>
13898
13899         scandir: Move AC_LIBOBJ invocations to module description.
13900         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13901         invocations from here...
13902         * modules/scandir (configure.ac): ... to here.
13903
13904 2011-05-21  Bruno Haible  <bruno@clisp.org>
13905
13906         rpmatch: Move AC_LIBOBJ invocations to module description.
13907         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13908         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13909         here...
13910         * modules/rpmatch (configure.ac): ... to here.
13911
13912 2011-05-21  Bruno Haible  <bruno@clisp.org>
13913
13914         rmdir: Respect rules for use of AC_LIBOBJ.
13915         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13916         * modules/rmdir (configure.ac): ... to here.
13917
13918 2011-05-21  Bruno Haible  <bruno@clisp.org>
13919
13920         renameat: Move AC_LIBOBJ invocations to module description.
13921         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13922         here...
13923         * modules/renameat (configure.ac): ... to here.
13924
13925 2011-05-21  Bruno Haible  <bruno@clisp.org>
13926
13927         rename: Respect rules for use of AC_LIBOBJ.
13928         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13929         here...
13930         * modules/rename (configure.ac): ... to here.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         remove: Move AC_LIBOBJ invocations to module description.
13935         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13936         here...
13937         * modules/remove (configure.ac): ... to here.
13938
13939 2011-05-21  Bruno Haible  <bruno@clisp.org>
13940
13941         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13942         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13943         macro.
13944         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13945         * modules/relocatable-lib (configure.ac): ... to here.
13946         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13947         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13948
13949 2011-05-21  Bruno Haible  <bruno@clisp.org>
13950
13951         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13952         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13953         here...
13954         * modules/relocatable-prog (configure.ac): ... to here.
13955
13956 2011-05-21  Bruno Haible  <bruno@clisp.org>
13957
13958         regex: Move AC_LIBOBJ invocations to module description.
13959         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13960         invocations from here...
13961         * modules/regex (configure.ac): ... to here.
13962
13963 2011-05-21  Bruno Haible  <bruno@clisp.org>
13964
13965         realloc-*: Move AC_LIBOBJ invocations to module description.
13966         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13967         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13968         AC_LIBOBJ invocations from here...
13969         * modules/realloc-gnu (configure.ac): ... to here.
13970         * modules/realloc-posix (configure.ac): ... and here.
13971
13972 2011-05-21  Bruno Haible  <bruno@clisp.org>
13973
13974         readutmp: Move AC_LIBOBJ invocations to module description.
13975         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13976         * modules/readutmp (configure.ac): ... to here.
13977
13978 2011-05-21  Bruno Haible  <bruno@clisp.org>
13979
13980         readlinkat: Move AC_LIBOBJ invocations to module description.
13981         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13982         here...
13983         * modules/readlinkat (configure.ac): ... to here.
13984
13985 2011-05-21  Bruno Haible  <bruno@clisp.org>
13986
13987         readlink: Move AC_LIBOBJ invocations to module description.
13988         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13989         gl_PREREQ_READLINK invocations from here...
13990         * modules/readlink (configure.ac): ... to here.
13991
13992 2011-05-21  Bruno Haible  <bruno@clisp.org>
13993
13994         readline: Move AC_LIBOBJ invocations to module description.
13995         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13996         gl_PREREQ_READLINE invocations from here...
13997         * modules/readline (configure.ac): ... to here.
13998
13999 2011-05-21  Bruno Haible  <bruno@clisp.org>
14000
14001         read: Move AC_LIBOBJ invocations to module description.
14002         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14003         * modules/read (configure.ac): ... to here.
14004
14005 2011-05-21  Bruno Haible  <bruno@clisp.org>
14006
14007         rawmemchr: Move AC_LIBOBJ invocations to module description.
14008         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14010         from here...
14011         * modules/rawmemchr (configure.ac): ... to here.
14012
14013 2011-05-21  Bruno Haible  <bruno@clisp.org>
14014
14015         random_r: Move AC_LIBOBJ invocations to module description.
14016         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14017         gl_PREREQ_RANDOM_R invocations from here...
14018         * modules/random_r (configure.ac): ... to here.
14019
14020 2011-05-21  Bruno Haible  <bruno@clisp.org>
14021
14022         pwrite: Move AC_LIBOBJ invocations to module description.
14023         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14024         * modules/pwrite (configure.ac): ... to here.
14025
14026 2011-05-21  Bruno Haible  <bruno@clisp.org>
14027
14028         putenv: Move AC_LIBOBJ invocations to module description.
14029         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14030         * modules/putenv (configure.ac): ... to here.
14031
14032 2011-05-21  Bruno Haible  <bruno@clisp.org>
14033
14034         login_tty: Move AC_LIBOBJ invocations to module description.
14035         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14036         * modules/login_tty (configure.ac): ... to here.
14037
14038 2011-05-21  Bruno Haible  <bruno@clisp.org>
14039
14040         openpty: Move AC_LIBOBJ invocations to module description.
14041         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14042         * modules/openpty (configure.ac): ... to here.
14043
14044 2011-05-21  Bruno Haible  <bruno@clisp.org>
14045
14046         forkpty: Move AC_LIBOBJ invocations to module description.
14047         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14048         * modules/forkpty (configure.ac): ... to here.
14049
14050 2011-05-21  Bruno Haible  <bruno@clisp.org>
14051
14052         ptsname: Move AC_LIBOBJ invocations to module description.
14053         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14054         invocations from here...
14055         * modules/ptsname (configure.ac): ... to here.
14056
14057 2011-05-21  Bruno Haible  <bruno@clisp.org>
14058
14059         pread: Move AC_LIBOBJ invocations to module description.
14060         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14061         * modules/pread (configure.ac): ... to here.
14062
14063 2011-05-21  Bruno Haible  <bruno@clisp.org>
14064
14065         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14066         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14067         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14068         * modules/posix_spawn (configure.ac): ... to here.
14069         * modules/posix_spawnp (configure.ac): ... and here.
14070
14071 2011-05-21  Bruno Haible  <bruno@clisp.org>
14072
14073         popen: Move AC_LIBOBJ invocations to module description.
14074         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14075         invocations from here...
14076         * modules/popen (configure.ac): ... to here.
14077
14078 2011-05-21  Bruno Haible  <bruno@clisp.org>
14079
14080         poll: Move AC_LIBOBJ invocations to module description.
14081         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14082         invocations from here...
14083         * modules/poll (configure.ac): ... to here.
14084
14085 2011-05-21  Bruno Haible  <bruno@clisp.org>
14086
14087         pipe-posix: Move AC_LIBOBJ invocations to module description.
14088         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14089         * modules/pipe-posix (configure.ac): ... to here.
14090
14091 2011-05-21  Bruno Haible  <bruno@clisp.org>
14092
14093         openat: Respect rules for use of AC_LIBOBJ.
14094         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14095         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14096         * modules/openat (configure.ac): ... to here.
14097
14098 2011-05-21  Bruno Haible  <bruno@clisp.org>
14099
14100         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14101         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14102         invocation from here...
14103         * modules/obstack-printf (configure.ac): ... to here.
14104         * modules/obstack-printf-posix (configure.ac): ... and here.
14105
14106 2011-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14109         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14110         from here...
14111         * modules/nl_langinfo (configure.ac): ... to here.
14112
14113 2011-05-21  Bruno Haible  <bruno@clisp.org>
14114
14115         nanosleep: Move AC_LIBOBJ invocations to module description.
14116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14117         gl_PREREQ_NANOSLEEP invocations from here...
14118         * modules/nanosleep (configure.ac): ... to here.
14119
14120 2011-05-21  Bruno Haible  <bruno@clisp.org>
14121
14122         mountlist: Move AC_LIBOBJ invocations to module description.
14123         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14124         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14125         * modules/mountlist (configure.ac): ... to here.
14126
14127 2011-05-21  Bruno Haible  <bruno@clisp.org>
14128
14129         mktime: Respect rules for use of AC_LIBOBJ.
14130         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14131         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14132         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14133         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14134         * modules/mktime (configure.ac): ... to here.
14135         * modules/mktime-internal (configure.ac): ... and here.
14136         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14137
14138 2011-05-21  Bruno Haible  <bruno@clisp.org>
14139
14140         mkstemps: Move AC_LIBOBJ invocations to module description.
14141         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14142         here...
14143         * modules/mkstemps (configure.ac): ... to here.
14144
14145 2011-05-21  Bruno Haible  <bruno@clisp.org>
14146
14147         mkstemp: Move AC_LIBOBJ invocations to module description.
14148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14149         gl_PREREQ_MKSTEMP invocations from here...
14150         * modules/mkstemp (configure.ac): ... to here.
14151
14152 2011-05-21  Bruno Haible  <bruno@clisp.org>
14153
14154         mkostemps: Move AC_LIBOBJ invocations to module description.
14155         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14156         here...
14157         * modules/mkostemps (configure.ac): ... to here.
14158
14159 2011-05-21  Bruno Haible  <bruno@clisp.org>
14160
14161         mkostemp: Move AC_LIBOBJ invocations to module description.
14162         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14163         gl_PREREQ_MKOSTEMP invocations from here...
14164         * modules/mkostemp (configure.ac): ... to here.
14165
14166 2011-05-21  Bruno Haible  <bruno@clisp.org>
14167
14168         mknod: Move AC_LIBOBJ invocations to module description.
14169         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14170         * modules/mknod (configure.ac): ... to here.
14171
14172 2011-05-21  Bruno Haible  <bruno@clisp.org>
14173
14174         mkfifoat: Move AC_LIBOBJ invocations to module description.
14175         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14176         here...
14177         * modules/mkfifoat (configure.ac): ... to here.
14178
14179 2011-05-21  Bruno Haible  <bruno@clisp.org>
14180
14181         mkfifo: Respect rules for use of AC_LIBOBJ.
14182         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14183         here...
14184         * modules/mkfifo (configure.ac): ... to here.
14185
14186 2011-05-21  Bruno Haible  <bruno@clisp.org>
14187
14188         mkdtemp: Move AC_LIBOBJ invocations to module description.
14189         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14190         invocations from here...
14191         * modules/mkdtemp (configure.ac): ... to here.
14192
14193 2011-05-21  Bruno Haible  <bruno@clisp.org>
14194
14195         mkdir: Move AC_LIBOBJ invocations to module description.
14196         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14197         * modules/mkdir (configure.ac): ... to here.
14198
14199 2011-05-21  Bruno Haible  <bruno@clisp.org>
14200
14201         memset: Move AC_LIBOBJ invocations to module description.
14202         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14203         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14204         here...
14205         * modules/memset (configure.ac): ... to here.
14206
14207 2011-05-21  Bruno Haible  <bruno@clisp.org>
14208
14209         memrchr: Move AC_LIBOBJ invocations to module description.
14210         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14212         here...
14213         * modules/memrchr (configure.ac): ... to here.
14214
14215 2011-05-21  Bruno Haible  <bruno@clisp.org>
14216
14217         mempcpy: Move AC_LIBOBJ invocations to module description.
14218         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14220         here...
14221         * modules/mempcpy (configure.ac): ... to here.
14222
14223 2011-05-21  Bruno Haible  <bruno@clisp.org>
14224
14225         memmove: Move AC_LIBOBJ invocations to module description.
14226         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14228         here...
14229         * modules/memmove (configure.ac): ... to here.
14230
14231 2011-05-21  Bruno Haible  <bruno@clisp.org>
14232
14233         memmem*: Move AC_LIBOBJ invocations to module description.
14234         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14235         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14236         here...
14237         (gl_FUNC_MEMMEM): ... and here...
14238         * modules/memmem-simple (configure.ac): ... to here.
14239         * modules/memmem (configure.ac): ... and here.
14240
14241 2011-05-21  Bruno Haible  <bruno@clisp.org>
14242
14243         memcpy: Move AC_LIBOBJ invocations to module description.
14244         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14246         here...
14247         * modules/memcpy (configure.ac): ... to here.
14248
14249 2011-05-21  Bruno Haible  <bruno@clisp.org>
14250
14251         memcmp: Simplify autoconf macro.
14252         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14253         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14254         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14255
14256 2011-05-21  Bruno Haible  <bruno@clisp.org>
14257
14258         memcmp: Move AC_LIBOBJ invocations to module description.
14259         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14260         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14261         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14262         * modules/memcmp (configure.ac): ... to here.
14263         (Depends-on): Update conditions.
14264
14265 2011-05-21  Bruno Haible  <bruno@clisp.org>
14266
14267         memchr: Respect rules for use of AC_LIBOBJ.
14268         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14269         invocations from here...
14270         * modules/memchr (configure.ac): ... to here.
14271
14272 2011-05-21  Bruno Haible  <bruno@clisp.org>
14273
14274         mbtowc: Move AC_LIBOBJ invocations to module description.
14275         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14276         invocations from here...
14277         * modules/mbtowc (configure.ac): ... to here.
14278
14279 2011-05-21  Bruno Haible  <bruno@clisp.org>
14280
14281         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14283         gl_PREREQ_MBSRTOWCS invocations from here...
14284         * modules/mbsrtowcs (configure.ac): ... to here.
14285
14286 2011-05-21  Bruno Haible  <bruno@clisp.org>
14287
14288         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14289         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14290         gl_PREREQ_MBSNRTOWCS invocations from here...
14291         * modules/mbsnrtowcs (configure.ac): ... to here.
14292
14293 2011-05-21  Bruno Haible  <bruno@clisp.org>
14294
14295         mbsinit: Move AC_LIBOBJ invocations to module description.
14296         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14297         invocations from here...
14298         * modules/mbsinit (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         mbrlen: Move AC_LIBOBJ invocations to module description.
14303         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14304         invocations from here...
14305         * modules/mbrlen (configure.ac): ... to here.
14306
14307 2011-05-21  Bruno Haible  <bruno@clisp.org>
14308
14309         mbrtowc: Respect rules for use of AC_LIBOBJ.
14310         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14311         invocations from here...
14312         * modules/mbrtowc (configure.ac): ... to here.
14313
14314 2011-05-21  Bruno Haible  <bruno@clisp.org>
14315
14316         malloc-*: Move AC_LIBOBJ invocations to module description.
14317         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14318         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14319         AC_LIBOBJ invocations from here...
14320         * modules/malloc-gnu (configure.ac): ... to here.
14321         * modules/malloc-posix (configure.ac): ... and here.
14322
14323 2011-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         lstat, openat: Respect rules for use of AC_LIBOBJ.
14326         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14327         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14328         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14329         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14330         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14331         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14332         here.
14333         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         lseek: Move AC_LIBOBJ invocations to module description.
14338         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14339         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14340         * modules/lseek (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         linkat: Move AC_LIBOBJ invocations to module description.
14345         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14346         here...
14347         * modules/linkat (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         link: Respect rules for use of AC_LIBOBJ.
14352         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14353         * modules/link (configure.ac): ... to here.
14354
14355 2011-05-21  Bruno Haible  <bruno@clisp.org>
14356
14357         lchown: Move AC_LIBOBJ invocations to module description.
14358         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14359         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14360         * modules/lchown (configure.ac): ... to here.
14361
14362 2011-05-21  Bruno Haible  <bruno@clisp.org>
14363
14364         iswctype: Move AC_LIBOBJ invocations to module description.
14365         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14366         here...
14367         * modules/iswctype (configure.ac): ... to here.
14368
14369 2011-05-21  Bruno Haible  <bruno@clisp.org>
14370
14371         iswblank: Move AC_LIBOBJ invocations to module description.
14372         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14373         here...
14374         * modules/iswblank (configure.ac): ... to here.
14375
14376 2011-05-21  Bruno Haible  <bruno@clisp.org>
14377
14378         atanl: Move AC_LIBOBJ invocations to module description.
14379         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14380         * modules/atanl (configure.ac): ... to here.
14381
14382 2011-05-21  Bruno Haible  <bruno@clisp.org>
14383
14384         acosl: Move AC_LIBOBJ invocations to module description.
14385         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14386         * modules/acosl (configure.ac): ... to here.
14387
14388 2011-05-21  Bruno Haible  <bruno@clisp.org>
14389
14390         asinl: Respect rules for use of AC_LIBOBJ.
14391         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14392         * modules/asinl (configure.ac): ... to here.
14393
14394 2011-05-21  Bruno Haible  <bruno@clisp.org>
14395
14396         tanl: Move AC_LIBOBJ invocations to module description.
14397         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14398         * modules/tanl (configure.ac): ... to here.
14399
14400 2011-05-21  Bruno Haible  <bruno@clisp.org>
14401
14402         cosl: Move AC_LIBOBJ invocations to module description.
14403         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14404         * modules/cosl (configure.ac): ... to here.
14405
14406 2011-05-21  Bruno Haible  <bruno@clisp.org>
14407
14408         sinl: Move AC_LIBOBJ invocations to module description.
14409         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14410         * modules/sinl (configure.ac): ... to here.
14411
14412 2011-05-21  Bruno Haible  <bruno@clisp.org>
14413
14414         logl: Move AC_LIBOBJ invocations to module description.
14415         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14416         * modules/logl (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         expl: Move AC_LIBOBJ invocations to module description.
14421         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14422         * modules/expl (configure.ac): ... to here.
14423
14424 2011-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         roundl: Move AC_LIBOBJ invocations to module description.
14427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14428         * modules/roundl (configure.ac): ... to here.
14429
14430 2011-05-21  Bruno Haible  <bruno@clisp.org>
14431
14432         round: Move AC_LIBOBJ invocations to module description.
14433         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14434         * modules/round (configure.ac): ... to here.
14435
14436 2011-05-21  Bruno Haible  <bruno@clisp.org>
14437
14438         roundf: Move AC_LIBOBJ invocations to module description.
14439         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14440         * modules/roundf (configure.ac): ... to here.
14441
14442 2011-05-21  Bruno Haible  <bruno@clisp.org>
14443
14444         truncl: Move AC_LIBOBJ invocations to module description.
14445         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14446         * modules/truncl (configure.ac): ... to here.
14447
14448 2011-05-21  Bruno Haible  <bruno@clisp.org>
14449
14450         trunc: Move AC_LIBOBJ invocations to module description.
14451         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14452         * modules/trunc (configure.ac): ... to here.
14453
14454 2011-05-21  Bruno Haible  <bruno@clisp.org>
14455
14456         truncf: Move AC_LIBOBJ invocations to module description.
14457         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14458         * modules/truncf (configure.ac): ... to here.
14459
14460 2011-05-21  Bruno Haible  <bruno@clisp.org>
14461
14462         ceill: Move AC_LIBOBJ invocations to module description.
14463         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14464         * modules/ceill (configure.ac): ... to here.
14465
14466 2011-05-21  Bruno Haible  <bruno@clisp.org>
14467
14468         ceil: Move AC_LIBOBJ invocations to module description.
14469         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14470         * modules/ceil (configure.ac): ... to here.
14471
14472 2011-05-21  Bruno Haible  <bruno@clisp.org>
14473
14474         ceilf: Move AC_LIBOBJ invocations to module description.
14475         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14476         * modules/ceilf (configure.ac): ... to here.
14477
14478 2011-05-21  Bruno Haible  <bruno@clisp.org>
14479
14480         floorl: Respect rules for use of AC_LIBOBJ.
14481         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14482         * modules/floorl (configure.ac): ... to here.
14483
14484 2011-05-21  Bruno Haible  <bruno@clisp.org>
14485
14486         floor: Respect rules for use of AC_LIBOBJ.
14487         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14488         * modules/floor (configure.ac): ... to here.
14489
14490 2011-05-21  Bruno Haible  <bruno@clisp.org>
14491
14492         floorf: Move AC_LIBOBJ invocations to module description.
14493         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14494         * modules/floorf (configure.ac): ... to here.
14495
14496 2011-05-20  Bruno Haible  <bruno@clisp.org>
14497
14498         sqrtl: Respect rules for use of AC_LIBOBJ.
14499         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14500         * modules/sqrtl (configure.ac): ... to here.
14501
14502 2011-05-20  Bruno Haible  <bruno@clisp.org>
14503
14504         ldexpl: Respect rules for use of AC_LIBOBJ.
14505         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14506         * modules/ldexpl (configure.ac): ... to here.
14507
14508 2011-05-20  Bruno Haible  <bruno@clisp.org>
14509
14510         frexpl*: Respect rules for use of AC_LIBOBJ.
14511         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14512         invocation from here...
14513         * modules/frexpl (configure.ac): ... to here.
14514         * modules/frexpl-nolibm (configure.ac): ... and here.
14515
14516 2011-05-20  Bruno Haible  <bruno@clisp.org>
14517
14518         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14519         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14520         invocation from here...
14521         * modules/frexp (configure.ac): ... to here.
14522         * modules/frexp-nolibm (configure.ac): ... and here.
14523
14524 2011-05-20  Bruno Haible  <bruno@clisp.org>
14525
14526         isnan: Respect rules for use of AC_LIBOBJ.
14527         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14528         invocations here.
14529         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14530         REPLACE_ISNAN.
14531         * modules/isnand (configure.ac): Likewise.
14532         * modules/isnanl (configure.ac): Likewise.
14533
14534 2011-05-20  Bruno Haible  <bruno@clisp.org>
14535
14536         isnanl*: Respect rules for use of AC_LIBOBJ.
14537         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14538         invocation from here...
14539         * modules/isnanl (configure.ac): ... to here.
14540         * modules/isnanl-nolibm (configure.ac): ... and here.
14541
14542 2011-05-20  Bruno Haible  <bruno@clisp.org>
14543
14544         isnand*: Move AC_LIBOBJ invocations to module description.
14545         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14546         invocation from here...
14547         * modules/isnand (configure.ac): ... to here.
14548         * modules/isnand-nolibm (configure.ac): ... and here.
14549
14550 2011-05-20  Bruno Haible  <bruno@clisp.org>
14551
14552         isnanf*: Move AC_LIBOBJ invocations to module description.
14553         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14554         invocation from here...
14555         * modules/isnanf (configure.ac): ... to here.
14556         * modules/isnanf-nolibm (configure.ac): ... and here.
14557
14558 2011-05-20  Bruno Haible  <bruno@clisp.org>
14559
14560         isnan*: Separate the AC_LIBOBJ invocations.
14561         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14562         AC_LIBOBJ invocation.
14563         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14564         here.
14565         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14566         AC_LIBOBJ invocation.
14567         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14568         here.
14569         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14570         AC_LIBOBJ invocation.
14571         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14572         here.
14573         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14574
14575 2011-05-08  Bruno Haible  <bruno@clisp.org>
14576
14577         isinf: Move AC_LIBOBJ invocations to module description.
14578         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14579         * modules/isinf (configure.ac): ... to here.
14580
14581 2011-05-08  Bruno Haible  <bruno@clisp.org>
14582
14583         isfinite: Move AC_LIBOBJ invocations to module description.
14584         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14585         * modules/isfinite (configure.ac): ... to here.
14586
14587 2011-05-08  Bruno Haible  <bruno@clisp.org>
14588
14589         isblank: Move AC_LIBOBJ invocations to module description.
14590         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14591         here...
14592         * modules/isblank (configure.ac): ... to here.
14593
14594 2011-05-08  Bruno Haible  <bruno@clisp.org>
14595
14596         isapipe: Move AC_LIBOBJ invocations to module description.
14597         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14598         gl_PREREQ_ISAPIPE invocations from here...
14599         * modules/isapipe (configure.ac): ... to here.
14600         (Depends-on): Update condition.
14601
14602 2011-05-08  Bruno Haible  <bruno@clisp.org>
14603
14604         ioctl: Move AC_LIBOBJ invocations to module description.
14605         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14606         invocations from here...
14607         * modules/ioctl (configure.ac): ... to here.
14608         (Depends-on): Update condition.
14609
14610 2011-05-08  Bruno Haible  <bruno@clisp.org>
14611
14612         imaxdiv: Move AC_LIBOBJ invocations to module description.
14613         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14614         invocations from here...
14615         * modules/imaxdiv (configure.ac): ... to here.
14616
14617 2011-05-08  Bruno Haible  <bruno@clisp.org>
14618
14619         imaxabs: Move AC_LIBOBJ invocations to module description.
14620         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14621         invocations from here...
14622         * modules/imaxabs (configure.ac): ... to here.
14623
14624 2011-05-08  Bruno Haible  <bruno@clisp.org>
14625
14626         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14627         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14628         AC_LIBOBJ invocations from here...
14629         * modules/getaddrinfo (configure.ac): ... to here.
14630         (Depends-on): Add conditions.
14631
14632 2011-05-08  Bruno Haible  <bruno@clisp.org>
14633
14634         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14635         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14636         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14637         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14638         (gl_PREREQ_INET_PTON): ... from here.
14639         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14640         gl_PREREQ_INET_PTON here.
14641         (Depends-on): Update condition.
14642
14643 2011-05-08  Bruno Haible  <bruno@clisp.org>
14644
14645         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14646         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14647         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14648         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14649         (gl_PREREQ_INET_NTOP): ... from here.
14650         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14651         gl_PREREQ_INET_NTOP here.
14652         (Depends-on): Update condition.
14653
14654 2011-05-08  Bruno Haible  <bruno@clisp.org>
14655
14656         iconv_open: Move AC_LIBOBJ invocations to module description.
14657         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14658         AC_LIBOBJ invocations from here...
14659         * modules/iconv_open (configure.ac): ... to here.
14660
14661 2011-05-08  Bruno Haible  <bruno@clisp.org>
14662
14663         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14664         If module 'iconv_open' is among the main modules and module
14665         'iconv_open-utf' is among the tests dependencies, then
14666         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14667         return the special iconv_t values. Therefore iconv() and iconv_close()
14668         must support these special iconv_t values, already in lib, not only in
14669         tests.
14670         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14671         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14672         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14673         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14674         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14675         (Depends-on): Add the dependencies of iconv_open-utf.
14676         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14677         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14678         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14679
14680 2011-05-08  Bruno Haible  <bruno@clisp.org>
14681
14682         group-member: Move AC_LIBOBJ invocations to module description.
14683         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14684         gl_PREREQ_GROUP_MEMBER invocations from here...
14685         * modules/group-member (configure.ac): ... to here.
14686
14687 2011-05-08  Bruno Haible  <bruno@clisp.org>
14688
14689         grantpt: Move AC_LIBOBJ invocations to module description.
14690         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14691         invocations from here...
14692         * modules/grantpt (configure.ac): ... to here.
14693
14694 2011-05-08  Bruno Haible  <bruno@clisp.org>
14695
14696         glob: Move AC_LIBOBJ invocations to module description.
14697         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14698         from here...
14699         * modules/glob (configure.ac): ... to here.
14700
14701 2011-05-08  Bruno Haible  <bruno@clisp.org>
14702
14703         getusershell: Move AC_LIBOBJ invocations to module description.
14704         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14705         Move AC_LIBOBJ invocation from here...
14706         * modules/getusershell (configure.ac): ... to here.
14707         (Depends-on): Update condition.
14708
14709 2011-05-08  Bruno Haible  <bruno@clisp.org>
14710
14711         gettimeofday: Move AC_LIBOBJ invocations to module description.
14712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14713         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14714         gl_PREREQ_GETTIMEOFDAY invocations from here...
14715         * modules/gettimeofday (configure.ac): ... to here.
14716
14717 2011-05-08  Bruno Haible  <bruno@clisp.org>
14718
14719         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14720         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14721         just gl_FUNC_TZSET.
14722         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14723         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14725         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14726
14727 2011-05-08  Bruno Haible  <bruno@clisp.org>
14728
14729         getsubopt: Move AC_LIBOBJ invocations to module description.
14730         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14731         gl_PREREQ_GETSUBOPT invocations from here...
14732         * modules/getsubopt (configure.ac): ... to here.
14733
14734 2011-05-08  Bruno Haible  <bruno@clisp.org>
14735
14736         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14737         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14738         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14739         * modules/getpass-gnu (configure.ac): ... to here.
14740
14741 2011-05-08  Bruno Haible  <bruno@clisp.org>
14742
14743         getpass: Move AC_LIBOBJ invocations to module description.
14744         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14745         gl_PREREQ_GETPASS invocations from here...
14746         * modules/getpass (configure.ac): ... to here.
14747
14748 2011-05-08  Bruno Haible  <bruno@clisp.org>
14749
14750         getpagesize: Move AC_LIBOBJ invocations to module description.
14751         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14752         from here...
14753         * modules/getpagesize (configure.ac): ... to here.
14754
14755 2011-05-08  Bruno Haible  <bruno@clisp.org>
14756
14757         getopt: Move AC_LIBOBJ invocations to module description.
14758         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14759         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14760         invocations from here...
14761         * modules/getopt-gnu (configure.ac): ... to here.
14762         * modules/getopt-posix (configure.ac): ... and here.
14763         (Depends-on): Update condition.
14764
14765 2011-05-08  Bruno Haible  <bruno@clisp.org>
14766
14767         getopt, argp: Respect rules for use of AC_LIBOBJ.
14768         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14769         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14770         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14771         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14772
14773 2011-05-08  Bruno Haible  <bruno@clisp.org>
14774
14775         getlogin_r: Move AC_LIBOBJ invocations to module description.
14776         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14777         gl_PREREQ_GETLOGIN_R invocations from here...
14778         * modules/getlogin_r (configure.ac): ... to here.
14779
14780 2011-05-08  Bruno Haible  <bruno@clisp.org>
14781
14782         getlogin: Move AC_LIBOBJ invocations to module description.
14783         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14784         here...
14785         * modules/getlogin (configure.ac): ... to here.
14786
14787 2011-05-08  Bruno Haible  <bruno@clisp.org>
14788
14789         getloadavg: Move AC_LIBOBJ invocations to module description.
14790         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14791         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14792         * modules/getloadavg (configure.ac): ... to here.
14793
14794 2011-05-08  Bruno Haible  <bruno@clisp.org>
14795
14796         gethrxtime: Move AC_LIBOBJ invocations to module description.
14797         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14798         LIB_GETHRXTIME from here...
14799         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14800         invocations from here...
14801         * modules/gethrxtime (configure.ac): ... to here.
14802
14803 2011-05-08  Bruno Haible  <bruno@clisp.org>
14804
14805         gethostname: Move AC_LIBOBJ invocations to module description.
14806         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14807         gl_PREREQ_GETHOSTNAME invocations from here...
14808         * modules/gethostname (configure.ac): ... to here.
14809
14810 2011-05-08  Bruno Haible  <bruno@clisp.org>
14811
14812         getgroups: Move AC_LIBOBJ invocations to module description.
14813         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14814         here...
14815         * modules/getgroups (configure.ac): ... to here.
14816
14817 2011-05-08  Bruno Haible  <bruno@clisp.org>
14818
14819         getdtablesize: Move AC_LIBOBJ invocations to module description.
14820         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14821         invocation from here...
14822         * modules/getdtablesize (configure.ac): ... to here.
14823
14824 2011-05-08  Bruno Haible  <bruno@clisp.org>
14825
14826         getdomainname: Move AC_LIBOBJ invocations to module description.
14827         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14828         gl_PREREQ_GETDOMAINNAME invocations from here...
14829         * modules/getdomainname (configure.ac): ... to here.
14830
14831 2011-05-08  Bruno Haible  <bruno@clisp.org>
14832
14833         getline: Move AC_LIBOBJ invocations to module description.
14834         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14835         invocations from here...
14836         * modules/getline (configure.ac): ... to here.
14837
14838 2011-05-08  Bruno Haible  <bruno@clisp.org>
14839
14840         getline: Simplify.
14841         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14842         It's already handled through the module dependency.
14843
14844 2011-05-08  Bruno Haible  <bruno@clisp.org>
14845
14846         getdelim: Move AC_LIBOBJ invocations to module description.
14847         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14848         and gl_PREREQ_GETDELIM invocations from here...
14849         * modules/getdelim (configure.ac): ... to here.
14850         (Depends-on): Fix condition.
14851
14852 2011-05-08  Bruno Haible  <bruno@clisp.org>
14853
14854         getcwd: Move AC_LIBOBJ invocations to module description.
14855         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14856         invocations from here...
14857         * modules/getcwd (configure.ac): ... to here.
14858
14859 2011-05-08  Bruno Haible  <bruno@clisp.org>
14860
14861         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14862         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14863         here...
14864         * modules/getcwd-lgpl (configure.ac): ... to here.
14865
14866 2011-05-07  Bruno Haible  <bruno@clisp.org>
14867
14868         crypto/gc: Move AC_LIBOBJ invocations to module description.
14869         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14870         * modules/crypto/gc (configure.ac): ... to here.
14871
14872 2011-05-07  Bruno Haible  <bruno@clisp.org>
14873
14874         fwriting: Move AC_LIBOBJ invocations to module description.
14875         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14876         here...
14877         * modules/fwriting (configure.ac): ... to here.
14878
14879 2011-05-07  Bruno Haible  <bruno@clisp.org>
14880
14881         fwritable: Move AC_LIBOBJ invocations to module description.
14882         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14883         here...
14884         * modules/fwritable (configure.ac): ... to here.
14885
14886 2011-05-07  Bruno Haible  <bruno@clisp.org>
14887
14888         futimens: Move AC_LIBOBJ invocations to module description.
14889         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14890         here...
14891         * modules/futimens (configure.ac): ... to here.
14892
14893 2011-05-07  Bruno Haible  <bruno@clisp.org>
14894
14895         ftruncate: Move AC_LIBOBJ invocations to module description.
14896         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14897         gl_PREREQ_FTRUNCATE invocations from here...
14898         * modules/ftruncate (configure.ac): ... to here.
14899
14900 2011-05-07  Bruno Haible  <bruno@clisp.org>
14901
14902         fsync: Move AC_LIBOBJ invocations to module description.
14903         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14904         invocations from here...
14905         * modules/fsync (configure.ac): ... to here.
14906
14907 2011-05-07  Bruno Haible  <bruno@clisp.org>
14908
14909         fsusage: Move AC_LIBOBJ invocations to module description.
14910         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14911         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14912         * modules/fsusage (configure.ac): ... to here.
14913
14914 2011-05-07  Bruno Haible  <bruno@clisp.org>
14915
14916         freopen: Move AC_LIBOBJ invocations to module description.
14917         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14918         invocations from here...
14919         * modules/freopen (configure.ac): ... to here.
14920
14921 2011-05-07  Bruno Haible  <bruno@clisp.org>
14922
14923         free: Move AC_LIBOBJ invocations to module description.
14924         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14925         invocations from here...
14926         * modules/free (configure.ac): ... to here.
14927
14928 2011-05-07  Bruno Haible  <bruno@clisp.org>
14929
14930         freadable: Move AC_LIBOBJ invocations to module description.
14931         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14932         here...
14933         * modules/freadable (configure.ac): ... to here.
14934
14935 2011-05-07  Bruno Haible  <bruno@clisp.org>
14936
14937         fpurge: Move AC_LIBOBJ invocations to module description.
14938         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14939         invocations from here...
14940         * modules/fpurge (configure.ac): ... to here.
14941
14942 2011-05-07  Bruno Haible  <bruno@clisp.org>
14943
14944         fpending: Move AC_LIBOBJ invocations to module description.
14945         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14946         gl_FUNC_FPENDING.
14947         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14948         invocations from here...
14949         * modules/fpending (configure.ac): ... to here.
14950
14951 2011-05-07  Bruno Haible  <bruno@clisp.org>
14952
14953         fopen: Move AC_LIBOBJ invocations to module description.
14954         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14955         invocations from here...
14956         * modules/fopen (configure.ac): ... to here.
14957
14958 2011-05-07  Bruno Haible  <bruno@clisp.org>
14959
14960         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14961         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14962         gl_FUNC_FNMATCH_POSIX.
14963         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14964         invocations from here...
14965         * modules/fnmatch (configure.ac): ... to here.
14966         * modules/fnmatch-gnu (configure.ac): ... and here.
14967
14968 2011-05-07  Bruno Haible  <bruno@clisp.org>
14969
14970         flock: Move AC_LIBOBJ invocations to module description.
14971         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14972         invocations from here...
14973         * modules/flock (configure.ac): ... to here.
14974
14975 2011-05-07  Bruno Haible  <bruno@clisp.org>
14976
14977         fileblocks: Move AC_LIBOBJ invocations to module description.
14978         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14979         gl_PREREQ_FILEBLOCKS invocations from here...
14980         * modules/fileblocks (configure.ac): ... to here.
14981
14982 2011-05-06  Bruno Haible  <bruno@clisp.org>
14983
14984         fflush: Move AC_LIBOBJ invocations to module description.
14985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14986         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14987         invocations from here...
14988         * modules/fflush (configure.ac): ... to here.
14989
14990 2011-05-06  Bruno Haible  <bruno@clisp.org>
14991
14992         fdopendir: Move AC_LIBOBJ invocations to module description.
14993         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14994         here...
14995         * modules/fdopendir (configure.ac): ... to here.
14996         (Depends-on): Improve conditions.
14997
14998 2011-05-06  Bruno Haible  <bruno@clisp.org>
14999
15000         _Exit: Move AC_LIBOBJ invocations to module description.
15001         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15002         invocations from here...
15003         * modules/_Exit (configure.ac): ... to here.
15004
15005 2011-05-21  Bruno Haible  <bruno@clisp.org>
15006
15007         euidaccess: Respect rules for use of AC_LIBOBJ.
15008         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15009         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15010         from here...
15011         * modules/euidaccess (configure.ac): ... to here.
15012
15013 2011-05-06  Bruno Haible  <bruno@clisp.org>
15014
15015         error: Move AC_LIBOBJ invocations to module description.
15016         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15017         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15018         invocations from here...
15019         * modules/error (configure.ac): ... to here.
15020
15021 2011-05-06  Bruno Haible  <bruno@clisp.org>
15022
15023         duplocale: Move AC_LIBOBJ invocations to module description.
15024         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15025         gl_PREREQ_DUPLOCALE invocations from here...
15026         * modules/duplocale (configure.ac): ... to here.
15027
15028 2011-05-05  Bruno Haible  <bruno@clisp.org>
15029
15030         dirfd: Move AC_LIBOBJ invocations to module description.
15031         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15032         gl_FUNC_DIRFD.
15033         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15034         here...
15035         * modules/dirfd (configure.ac): ... to here.
15036         (Depends-on): Fix condition.
15037
15038 2011-05-05  Bruno Haible  <bruno@clisp.org>
15039
15040         chown: Respect rules for use of AC_LIBOBJ.
15041         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15042         * modules/chown (configure.ac): ... to here.
15043
15044 2011-05-05  Bruno Haible  <bruno@clisp.org>
15045
15046         chdir-long: Move AC_LIBOBJ invocations to module description.
15047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15048         gl_PREREQ_CHDIR_LONG invocations from here...
15049         * modules/chdir-long (configure.ac): ... to here.
15050
15051 2011-05-05  Bruno Haible  <bruno@clisp.org>
15052
15053         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15054         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15055         from here...
15056         * modules/canonicalize-lgpl (configure.ac): ... to here.
15057
15058 2011-05-05  Bruno Haible  <bruno@clisp.org>
15059
15060         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15061         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15062         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15063         REPLACE_CALLOC.
15064         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15065         * modules/calloc-gnu (configure.ac): Likewise.
15066
15067 2011-05-05  Bruno Haible  <bruno@clisp.org>
15068
15069         btowc: Move AC_LIBOBJ invocations to module description.
15070         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15071         invocations from here...
15072         * modules/btowc (configure.ac): ... to here.
15073
15074 2011-05-21  Bruno Haible  <bruno@clisp.org>
15075
15076         atexit: Move AC_LIBOBJ invocations to module description.
15077         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15078         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15079         here...
15080         * modules/atexit (configure.ac): ... to here.
15081
15082 2011-05-05  Bruno Haible  <bruno@clisp.org>
15083
15084         atoll: Move AC_LIBOBJ invocations to module description.
15085         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15086         invocations from here...
15087         * modules/atoll (configure.ac): ... to here.
15088
15089 2011-05-05  Bruno Haible  <bruno@clisp.org>
15090
15091         argz: Move AC_LIBOBJ invocations to module description.
15092         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15093         * modules/argz (configure.ac): ... to here.
15094
15095 2011-05-05  Bruno Haible  <bruno@clisp.org>
15096
15097         alphasort: Move AC_LIBOBJ invocations to module description.
15098         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15099         gl_PREREQ_ALPHASORT invocations from here...
15100         * modules/alphasort (configure.ac): ... to here.
15101
15102 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15103
15104         verify: new macro verify_expr; verify_true deprecated
15105         * NEWS: Mention this.
15106         * doc/verify.texi (Compile-time Assertions): Document this.
15107         * lib/verify.h (verify_true): Deprecate.
15108         (verify_expr): New macro.
15109         * tests/test-verify.c (function): Test verify_expr.
15110
15111 2011-06-14  Jim Meyering  <meyering@redhat.com>
15112
15113         init.sh: give more portable redirection-related advice in a comment
15114         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15115         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15116         for lots of discussion.  Stefano Lattarini suggested the solution
15117         of putting "9>&2" after the command.  Reported by Bruno Haible.
15118
15119 2011-06-13  Bruno Haible  <bruno@clisp.org>
15120
15121         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15123         'none'.
15124
15125 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15126
15127         ftoastr: use strtof only if HAVE_STRTOF
15128         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15129         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15130         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15131         * modules/ftoastr (configure.ac): Check for strtof.
15132
15133 2011-06-13  Bruno Haible  <bruno@clisp.org>
15134
15135         gnulib-tool: Addendum to 2011-06-08 commit.
15136         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15137         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15138
15139 2011-06-13  Bruno Haible  <bruno@clisp.org>
15140
15141         fseeko: Provide a non-inline replacement of fseek().
15142         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15143         * modules/fseeko (Depends-on): Add fseek.
15144         * modules/fseek (License): Change to LGPLv2+.
15145
15146 2011-06-13  Bruno Haible  <bruno@clisp.org>
15147
15148         ftello: Provide a non-inline replacement of ftell().
15149         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15150         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15151         not have ftello() (such as on mingw).
15152         * modules/ftello (Depends-on): Add ftell.
15153         * modules/ftell (License): Change to LGPLv2+.
15154
15155 2011-05-07  Bruno Haible  <bruno@clisp.org>
15156
15157         ftell: Move AC_LIBOBJ invocations to module description.
15158         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15159         * modules/ftell (configure.ac): ... to here.
15160
15161 2011-05-07  Bruno Haible  <bruno@clisp.org>
15162
15163         ftello: Respect rules for use of AC_LIBOBJ.
15164         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15165         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15166         here...
15167         * modules/ftello (configure.ac): ... to here.
15168
15169 2011-05-07  Bruno Haible  <bruno@clisp.org>
15170
15171         fseeko: Simplify.
15172         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15173         (gl_FUNC_FSEEKO): Inline it here.
15174
15175 2011-05-07  Bruno Haible  <bruno@clisp.org>
15176
15177         fseek: Move AC_LIBOBJ invocations to module description.
15178         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15179         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15180         * modules/fseek (configure.ac): ... to here.
15181
15182 2011-05-07  Bruno Haible  <bruno@clisp.org>
15183
15184         fseek: Respect rules for use of AC_LIBOBJ.
15185         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15186         here...
15187         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15188
15189 2011-05-07  Bruno Haible  <bruno@clisp.org>
15190
15191         fseeko: Respect rules for use of AC_LIBOBJ.
15192         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15193         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15194         here...
15195         * modules/fseeko (configure.ac): ... to here.
15196
15197 2011-06-13  Bruno Haible  <bruno@clisp.org>
15198
15199         gnulib-tool: Allow comments in the 'Depends-on' section.
15200         * doc/gnulib.texi (Module description): Mention comment syntax in the
15201         Depends-on section.
15202         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15203
15204 2011-06-13  Bruno Haible  <bruno@clisp.org>
15205
15206         file-set.h: guard __attibute__ use, now that it's not always defined
15207         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15208         versions that support it.  This fixes a coreutils build failure with
15209         the vendor cc on HP-UX 11.31.
15210
15211 2011-06-12  Bruno Haible  <bruno@clisp.org>
15212
15213         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15214         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15215         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15216         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15217         (acl, aclsort): New declarations.
15218         (aclv_nontrivial): New declaration.
15219         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15220         (file_has_acl): Read also the second kind of HP-UX ACLs.
15221         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15222         kind of HP-UX ACLs if the first kind fails.
15223         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15224         second kind of HP-UX ACLs.
15225         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15226         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15227         agree.
15228         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15229         hpuxjfs.
15230         Handle hpuxjfs.
15231         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15232         hpuxjfs.
15233         Handle hpuxjfs.
15234         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15235         (func_test_same_acls): Use both lsacl and getacl.
15236         Handle hpuxjfs.
15237         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15238         (func_test_same_acls): Use both lsacl and getacl.
15239         Handle hpuxjfs.
15240
15241 2011-06-12  Bruno Haible  <bruno@clisp.org>
15242
15243         acl: Complete the 2010-08-10 fix.
15244         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15245         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15246         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15247         explicitly.
15248         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15249         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15250
15251 2011-06-12  Bruno Haible  <bruno@clisp.org>
15252
15253         spawn-pipe tests: Comments.
15254         * tests/test-spawn-pipe-child.c (main): Update comment.
15255         Reported by James Youngman <jay@gnu.org>.
15256
15257 2011-06-11  James Youngman  <jay@gnu.org>
15258
15259         New module 'stat-size'.
15260         * modules/stat-size: New module.  Provides macros for accessing
15261         file size information in instances of struct stat.  Depends on the
15262         fileblocks module because it calls st_blocks.
15263         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15264         * doc/gnulib.texi: Include stat-size.texi.
15265         * doc/stat-size.texi: Documentation for this module.
15266         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15267         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15268         AC_STRUCT_ST_BLOCKS.
15269
15270 2011-06-09  Bruno Haible  <bruno@clisp.org>
15271
15272         thread: Support pthreads-win32.
15273         * lib/glthread/thread.h (gl_thread_self): Define differently on
15274         pthreads-win32.
15275         (gl_null_thread): New declaration.
15276         (gl_thread_self_pointer): New macro.
15277         * lib/glthread/thread.c (gl_null_thread): New constant.
15278         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15279         gl_thread_self.
15280         * tests/test-tls.c: Likewise.
15281         Suggested by Paul Eggert. Reported by Eric Blake.
15282
15283 2011-06-09  Bruno Haible  <bruno@clisp.org>
15284
15285         thread: Fix confusion between NULL and 0.
15286         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15287         Reported by Paul Eggert.
15288
15289 2011-06-09  Bruno Haible  <bruno@clisp.org>
15290
15291         spawn-pipe tests: Avoid test failure on HP-UX 11.
15292         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15293         is closed.
15294
15295 2011-06-09  Bruno Haible  <bruno@clisp.org>
15296
15297         acl tests: Fix compilation error on HP-UX 11.
15298         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15299
15300 2011-06-09  Bruno Haible  <bruno@clisp.org>
15301
15302         rmdir: Avoid test failure on HP-UX 10.20.
15303         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15304         EEXIST.
15305
15306 2011-06-08  Eric Blake  <eblake@redhat.com>
15307
15308         perror: fix test on mingw
15309         * modules/perror-tests (Depends-on): Add dup2.
15310
15311         strerror_r-posix: fix on MacOS
15312         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15313         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15314         logic bug.
15315         * lib/strerror_r.c (strerror_r): Fix the bug.
15316         * lib/strerror.c (strerror): Likewise.
15317         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15318         problem.
15319         * doc/posix-functions/strerror.texi (strerror): Likewise.
15320         * doc/posix-functions/perror.texi (perror): Likewise.
15321         * tests/test-strerror.c (main): Enhance test.
15322         * tests/test-strerror_r.c (main): Likewise.
15323
15324 2011-06-08  Bruno Haible  <bruno@clisp.org>
15325
15326         gnulib-tool: Better isolation between different gnulib-tool invocations.
15327         * gnulib-tool: New option --witness-c-macro.
15328         (witness_c_macro): New variable.
15329         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15330         AM_CPPFLAGS define it as a C macro.
15331         (func_emit_tests_Makefile_am): Likewise.
15332         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15333         read it from there.
15334         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15335         m4_define, not AC_DEFUN.
15336         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15337         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15338         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15339         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15340         s|...|...|, to substitute the values of the GNULIB_* module indicator
15341         variables.
15342         * modules/dirent (Makefile.am): Likewise.
15343         * modules/fcntl-h (Makefile.am): Likewise.
15344         * modules/iconv-h (Makefile.am): Likewise.
15345         * modules/langinfo (Makefile.am): Likewise.
15346         * modules/locale (Makefile.am): Likewise.
15347         * modules/math (Makefile.am): Likewise.
15348         * modules/netdb (Makefile.am): Likewise.
15349         * modules/poll-h (Makefile.am): Likewise.
15350         * modules/pty (Makefile.am): Likewise.
15351         * modules/search (Makefile.am): Likewise.
15352         * modules/signal (Makefile.am): Likewise.
15353         * modules/spawn (Makefile.am): Likewise.
15354         * modules/stdio (Makefile.am): Likewise.
15355         * modules/stdlib (Makefile.am): Likewise.
15356         * modules/string (Makefile.am): Likewise.
15357         * modules/sys_ioctl (Makefile.am): Likewise.
15358         * modules/sys_select (Makefile.am): Likewise.
15359         * modules/sys_socket (Makefile.am): Likewise.
15360         * modules/sys_stat (Makefile.am): Likewise.
15361         * modules/sys_times (Makefile.am): Likewise.
15362         * modules/sys_utsname (Makefile.am): Likewise.
15363         * modules/sys_wait (Makefile.am): Likewise.
15364         * modules/termios (Makefile.am): Likewise.
15365         * modules/time (Makefile.am): Likewise.
15366         * modules/unistd (Makefile.am): Likewise.
15367         * modules/wchar (Makefile.am): Likewise.
15368
15369 2011-06-08  Eric Blake  <eblake@redhat.com>
15370
15371         strerror: simplify replacement
15372         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15373         * modules/strerror (configure.ac): No prereqs needed here...
15374         * modules/strerror-override (configure.ac): ...but this needs it.
15375         (Files): Add file for needed prereq macro.
15376
15377 2011-06-08  Bruno Haible  <bruno@clisp.org>
15378
15379         strerror_r-posix: Tweaks.
15380         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15381         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15382         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15383         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15384         (gl_FUNC_STRERROR_R): ... to here.
15385         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15386
15387 2011-06-07  Eric Blake  <eblake@redhat.com>
15388
15389         perror: document fixed bugs
15390         * doc/posix-functions/perror.texi (perror): Document recent
15391         patches.
15392
15393 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15394
15395         stat-time: get_stat_birthtime failure is better-defined
15396         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15397         return a timestamp whose tv_sec and tv_nsec values are both -1.
15398         Previously, the spec said only that the tv_nsec value was negative.
15399         This upward-compatible change simplifies GNU tar a bit.
15400
15401 2011-06-07  Eric Blake  <eblake@redhat.com>
15402
15403         strerror_r-posix: work around cygwin 1.7.9
15404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15405         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15406         bug without replacing strerror_r.
15407         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15408         strerror_r is buggy, but without requiring strerror_r compilation.
15409         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15410
15411         test-perror: relax test to ignore cygwin bug
15412         * tests/test-perror2.c (main): Relax test on requiring detection
15413         of stream errors, and use unbuffered stream.
15414         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15415         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15416         * doc/posix-functions/fputc.texi (fputc): Likewise.
15417         * doc/posix-functions/fputs.texi (fputs): Likewise.
15418         * doc/posix-functions/fputws.texi (fputws): Likewise.
15419         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15420         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15421         * doc/posix-functions/getopt.texi (getopt): Likewise.
15422         * doc/posix-functions/perror.texi (perror): Likewise.
15423         * doc/posix-functions/printf.texi (printf): Likewise.
15424         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15425         * doc/posix-functions/psignal.texi (psignal): Likewise.
15426         * doc/posix-functions/putc.texi (putc): Likewise.
15427         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15428         Likewise.
15429         * doc/posix-functions/putchar.texi (putchar): Likewise.
15430         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15431         Likewise.
15432         * doc/posix-functions/puts.texi (puts): Likewise.
15433         * doc/posix-functions/putwc.texi (putwc): Likewise.
15434         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15435         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15436         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15437         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15438         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15439         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15440         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15441         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15442
15443 2011-05-22  Bruno Haible  <bruno@clisp.org>
15444
15445         strerror: Move AC_LIBOBJ invocations to module description.
15446         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15447         gl_PREREQ_STRERROR invocations from here...
15448         * modules/strerror (configure.ac): ... to here.
15449
15450 2011-05-21  Bruno Haible  <bruno@clisp.org>
15451
15452         perror: Use common idiom.
15453         * modules/perror (configure.ac): Reorder statements.
15454
15455 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15456
15457         tests: fix usage message in 'mktempd_'
15458         * tests/init.sh (mktempd_): In the usage message, use literal
15459         'mktempd_', not '$ME' (which is even undefined), as the name of
15460         the subroutine.
15461
15462 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15463
15464         tests init: new function 'fatal_', for hard errors
15465         Before this patch, the only way offered by tests/init.sh to
15466         properly signal a hard error was the `framework_failure_'
15467         function.  But the error message issued by that function,
15468         as its name would suggest, refers to a set-up failure in the
15469         testsuite, while hard errors can obviously also be due to
15470         other reasons.  The best way to fix this inconsistency is to
15471         introduce a new function with a more general error message.
15472         * tests/init.sh (fatal_): New function.
15473
15474 2011-06-06  Eric Blake  <eblake@redhat.com>
15475
15476         canonicalize-lgpl: use common idiom
15477         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15478         over newer POSIX -Rf.
15479         Reported by Bruno Haible.
15480
15481         canonicalize-lgpl: work around AIX realpath bug
15482         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15483         * doc/posix-functions/realpath.texi (realpath): Document it.
15484         Reported by Bruno Haible.
15485
15486         strerror: work around FreeBSD bug
15487         * lib/strerror.c (strerror): Special case 0.
15488         Reported by Bruno Haible.
15489
15490         strerror-override: avoid bloating errno module
15491         * modules/errno (Files, configure.ac): Move replacement strings...
15492         * modules/strerror-override: ...to new module.
15493         * modules/strerror (Depends-on): Add strerror-override.
15494         * modules/strerror_r-posix (Depends-on): Likewise.
15495         * MODULES.html.sh: Document new module.
15496         Reported by Bruno Haible.
15497
15498 2011-06-06  Bruno Haible  <bruno@clisp.org>
15499
15500         spawn-pipe tests: Rename program.
15501         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15502         * tests/test-spawn-pipe-child.c: Update comment.
15503         * tests/test-spawn-pipe.sh: Update.
15504         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15505
15506         spawn-pipe tests: Link the child program only against libc.
15507         * tests/test-spawn-pipe-child.c: New file, extracted from
15508         tests/test-spawn-pipe.c.
15509         (main): Expect only one argument.
15510         (is_open): New function, copied from tests/test-pipe.c.
15511         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15512         (child_main): Remove function.
15513         (test_pipe): Pass only one argument to the child program.
15514         (main): Remove child process code. Expect the child program's name as
15515         first argument.
15516         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15517         argument.
15518         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15519         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15520         test-spawn-pipe-child against no libraries.
15521
15522 2011-06-06  Bruno Haible  <bruno@clisp.org>
15523
15524         careadlinkat: Avoid mismatch between ssize_t and int.
15525         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15526         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15527
15528 2011-06-06  Jim Meyering  <meyering@redhat.com>
15529
15530         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15531         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15532         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15533
15534 2011-06-05  Bruno Haible  <bruno@clisp.org>
15535
15536         ansi-c++-opt: Interoperability with libtool.
15537         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15538         set the variable to "no", not to ":".
15539         * NEWS: Mention the change.
15540
15541 2011-06-05  Bruno Haible  <bruno@clisp.org>
15542
15543         acl: Fix test failure on AIX 7.
15544         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15545         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15546
15547 2011-06-05  Bruno Haible  <bruno@clisp.org>
15548
15549         pipe-filter-ii: Fix test failure on AIX and IRIX.
15550         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15551         with EAGAIN, retry with a smaller buffer size.
15552
15553 2011-06-05  Bruno Haible  <bruno@clisp.org>
15554
15555         localename: Fix link dependencies.
15556         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15557         * modules/localename-tests (Makefile.am): Link test-localename with
15558         $(LIBTHREAD).
15559
15560 2011-06-05  Bruno Haible  <bruno@clisp.org>
15561
15562         error: Avoid gcc warning.
15563         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15564
15565 2011-06-05  Bruno Haible  <bruno@clisp.org>
15566
15567         unsetenv: Avoid gcc warning.
15568         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15569
15570 2011-06-05  Bruno Haible  <bruno@clisp.org>
15571
15572         setenv: Avoid gcc warning.
15573         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15574
15575 2011-06-05  Bruno Haible  <bruno@clisp.org>
15576
15577         sys_select: Ensure memset is declared also on AIX 7.
15578         * lib/sys_select.in.h: Include <string.h> also on AIX.
15579         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15580         self-contained also on AIX 7.1.
15581
15582 2011-06-04  Jim Meyering  <meyering@redhat.com>
15583
15584         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15585         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15586         function name, "error".
15587         (_gl_translatable_diag_func_re): New configurable variable.
15588
15589 2011-06-04  Bruno Haible  <bruno@clisp.org>
15590
15591         getopt: Avoid gcc warning.
15592         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15593
15594 2011-06-04  Bruno Haible  <bruno@clisp.org>
15595
15596         strerror_r: Fix comments.
15597         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15598         commit.
15599
15600 2011-06-04  Bruno Haible  <bruno@clisp.org>
15601
15602         perror: Fix compilation error.
15603         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15604         Undefine fprintf, not sprintf.
15605         * modules/perror (Depends-on): Remove intprops, verify.
15606
15607 2011-06-04  Bruno Haible  <bruno@clisp.org>
15608
15609         setlocale: Enable replacement on Cygwin 1.5.
15610         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15611         Cygwin 1.5.x.
15612         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15613         LC_CTYPE category also exists on Cygwin 1.5.x.
15614
15615 2011-06-04  Bruno Haible  <bruno@clisp.org>
15616
15617         strerror-override: Don't disable symbol renamings.
15618         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15619         * lib/strerror-override.c: Include config.h.
15620         (strerror_override): Don't undefine.
15621
15622 2011-06-03  Bruno Haible  <bruno@clisp.org>
15623
15624         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15625         * lib/localename.h: Update copyright header.
15626         * lib/localename.c: Likewise.
15627         * lib/relocatable.h: Likewise.
15628         * lib/relocatable.c: Likewise.
15629
15630 2011-06-02  Bruno Haible  <bruno@clisp.org>
15631
15632         doc: Fix a module name.
15633         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15634
15635 2011-06-02  Bruno Haible  <bruno@clisp.org>
15636
15637         pipe2: Remove dependency on 'nonblocking' module.
15638         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15639         O_NONBLOCK is defined by gnulib.
15640         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15641         is zero.
15642         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15643         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15644         defined by gnulib.
15645         (get_nonblocking_flag): New function.
15646         (main): Test O_NONBLOCK flag only if it is nonzero.
15647         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15648
15649 2011-06-03  Jim Meyering  <meyering@redhat.com>
15650
15651         maint: three new prohibit-header-without-use rules
15652         Prohibit use of cloexec.h, posixver.h, same.h without use.
15653         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15654         (sc_prohibit_posixver_without_use): Likewise.
15655         (sc_prohibit_same_without_use): Likewise.
15656
15657 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         allocator: 'die' routine is now given requested size
15660         * lib/allocator.h (struct allocator.die): New size arg.
15661         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15662         If the actual problem is an ssize_t limitation, not a size_t or
15663         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15664
15665 2011-06-01  Eric Blake  <eblake@redhat.com>
15666
15667         strerror: drop strerror_r dependency
15668         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15669         * lib/strerror-override.c (strerror_override): ...to new file.
15670         * lib/strerror-override.h: Add prototype.
15671         * lib/strerror-impl.h: Delete.
15672         * lib/strerror.c (strerror): New implementation.
15673         * modules/errno (Files): Add new files.
15674         (configure.ac): Compile new file as appropriate.
15675         * modules/strerror (Files): Drop unused file.
15676         (Depends-on): Drop strerror_r-posix.
15677         * MODULES.html.sh: Document strerror_r-posix.
15678         Requested by Sam Steingold.
15679
15680         perror: call strerror_r directly
15681         * modules/perror (Files): Drop strerror-impl.h.
15682         * lib/perror.c (perror): Use our own stack buffer, rather than
15683         calling a wrapper that uses static storage.
15684         * doc/posix-functions/perror.texi (perror): Document a limitation
15685         of our replacement.
15686
15687         strerror_r: fix includes for FreeBSD
15688         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15689         since we use abort on some platforms.
15690         Reported by Matthias Bolte.
15691
15692 2011-05-31  Bruno Haible  <bruno@clisp.org>
15693
15694         Fix link errors in tests: openat-die uses gettext-h.
15695         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15696         against $(LIBINTL).
15697         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15698         against $(LIBINTL).
15699         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15700         $(LIBINTL).
15701         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15702         against $(LIBINTL).
15703         * modules/linkat-tests (Makefile.am): Link test-linkat against
15704         $(LIBINTL).
15705         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15706         $(LIBINTL).
15707         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15708         against $(LIBINTL).
15709         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15710         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15711         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15712         $(LIBINTL).
15713         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15714         $(LIBINTL).
15715         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15716         $(LIBINTL).
15717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15718
15719 2011-05-31  Bruno Haible  <bruno@clisp.org>
15720
15721         Fix link errors in tests: wait-process uses gettext-h.
15722         * modules/nonblocking-pipe-tests (Makefile.am): Set
15723         test_nonblocking_pipe_main_LDADD.
15724         * modules/nonblocking-socket-tests (Makefile.am): Link
15725         test-nonblocking-socket-main against $(LIBINTL).
15726         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15727
15728 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15729
15730         assert-h: work around 'verify' incompatibility
15731         * lib/verify.h: Use @...@ directives, not ifdef.
15732         * modules/assert-h (assert.h): Implement the directives.
15733         (assert.h): Substitute the symbol-prefix more consistently.
15734
15735 2011-05-29  Jim Meyering  <meyering@redhat.com>
15736
15737         trim: remove three superfluous assignments
15738         * lib/trim.c (trim2): Remove three superfluous assignments
15739         and correct brace positioning.
15740
15741 2011-05-29  Bruno Haible  <bruno@clisp.org>
15742
15743         wctype-h: Avoid namespace pollution on Solaris 2.6.
15744         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15745         identifiers.
15746         * doc/posix-headers/wctype.texi: Mention the problem.
15747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15748
15749 2011-05-28  Jim Meyering  <meyering@redhat.com>
15750
15751         parse-datetime.y: accommodate -Wstrict-overflow
15752         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15753         placate -Wstrict-overflow.
15754
15755         trim: avoid a warning from -O2 -Wstrict-overflow
15756         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15757
15758 2011-05-29  Bruno Haible  <bruno@clisp.org>
15759
15760         gnulib-tool: Fix bug in yesterday's commit.
15761         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15762         twice.
15763
15764 2011-05-29  Bruno Haible  <bruno@clisp.org>
15765
15766         Allow multiple gnulib generated include files to be combined.
15767         * gnulib-tool (func_compute_include_guard_prefix): New function.
15768         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15769         ${gl_include_guard_prefix} references.
15770         (func_import, func_create_testdir): Invoke
15771         func_compute_include_guard_prefix.
15772         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15773         * lib/ctype.in.h: Likewise.
15774         * lib/dirent.in.h: Likewise.
15775         * lib/errno.in.h: Likewise.
15776         * lib/fcntl.in.h: Likewise.
15777         * lib/float.in.h: Likewise.
15778         * lib/getopt.in.h: Likewise.
15779         * lib/iconv.in.h: Likewise.
15780         * lib/langinfo.in.h: Likewise.
15781         * lib/locale.in.h: Likewise.
15782         * lib/math.in.h: Likewise.
15783         * lib/netdb.in.h: Likewise.
15784         * lib/netinet_in.in.h: Likewise.
15785         * lib/poll.in.h: Likewise.
15786         * lib/pthread.in.h: Likewise.
15787         * lib/pty.in.h: Likewise.
15788         * lib/sched.in.h: Likewise.
15789         * lib/se-selinux.in.h: Likewise.
15790         * lib/search.in.h: Likewise.
15791         * lib/signal.in.h: Likewise.
15792         * lib/spawn.in.h: Likewise.
15793         * lib/stdarg.in.h: Likewise.
15794         * lib/stddef.in.h: Likewise.
15795         * lib/stdint.in.h: Likewise.
15796         * lib/stdio.in.h: Likewise.
15797         * lib/stdlib.in.h: Likewise.
15798         * lib/string.in.h: Likewise.
15799         * lib/strings.in.h: Likewise.
15800         * lib/sys_file.in.h: Likewise.
15801         * lib/sys_ioctl.in.h: Likewise.
15802         * lib/sys_select.in.h: Likewise.
15803         * lib/sys_socket.in.h: Likewise.
15804         * lib/sys_stat.in.h: Likewise.
15805         * lib/sys_time.in.h: Likewise.
15806         * lib/sys_times.in.h: Likewise.
15807         * lib/sys_uio.in.h: Likewise.
15808         * lib/sys_utsname.in.h: Likewise.
15809         * lib/sys_wait.in.h: Likewise.
15810         * lib/sysexits.in.h: Likewise.
15811         * lib/termios.in.h: Likewise.
15812         * lib/time.in.h: Likewise.
15813         * lib/unistd.in.h: Likewise.
15814         * lib/wchar.in.h: Likewise.
15815         * lib/wctype.in.h: Likewise.
15816         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15817         * modules/ctype (Makefile.am): Likewise.
15818         * modules/dirent (Makefile.am): Likewise.
15819         * modules/errno (Makefile.am): Likewise.
15820         * modules/fcntl-h (Makefile.am): Likewise.
15821         * modules/float (Makefile.am): Likewise.
15822         * modules/getopt-posix (Makefile.am): Likewise.
15823         * modules/iconv-h (Makefile.am): Likewise.
15824         * modules/langinfo (Makefile.am): Likewise.
15825         * modules/locale (Makefile.am): Likewise.
15826         * modules/math (Makefile.am): Likewise.
15827         * modules/netdb (Makefile.am): Likewise.
15828         * modules/netinet_in (Makefile.am): Likewise.
15829         * modules/poll-h (Makefile.am): Likewise.
15830         * modules/pthread (Makefile.am): Likewise.
15831         * modules/pty (Makefile.am): Likewise.
15832         * modules/sched (Makefile.am): Likewise.
15833         * modules/search (Makefile.am): Likewise.
15834         * modules/selinux-h (Makefile.am): Likewise.
15835         * modules/signal (Makefile.am): Likewise.
15836         * modules/spawn (Makefile.am): Likewise.
15837         * modules/stdarg (Makefile.am): Likewise.
15838         * modules/stddef (Makefile.am): Likewise.
15839         * modules/stdint (Makefile.am): Likewise.
15840         * modules/stdio (Makefile.am): Likewise.
15841         * modules/stdlib (Makefile.am): Likewise.
15842         * modules/string (Makefile.am): Likewise.
15843         * modules/strings (Makefile.am): Likewise.
15844         * modules/sys_file (Makefile.am): Likewise.
15845         * modules/sys_ioctl (Makefile.am): Likewise.
15846         * modules/sys_select (Makefile.am): Likewise.
15847         * modules/sys_socket (Makefile.am): Likewise.
15848         * modules/sys_stat (Makefile.am): Likewise.
15849         * modules/sys_time (Makefile.am): Likewise.
15850         * modules/sys_times (Makefile.am): Likewise.
15851         * modules/sys_uio (Makefile.am): Likewise.
15852         * modules/sys_utsname (Makefile.am): Likewise.
15853         * modules/sys_wait (Makefile.am): Likewise.
15854         * modules/sysexits (Makefile.am): Likewise.
15855         * modules/termios (Makefile.am): Likewise.
15856         * modules/time (Makefile.am): Likewise.
15857         * modules/unistd (Makefile.am): Likewise.
15858         * modules/wchar (Makefile.am): Likewise.
15859         * modules/wctype-h (Makefile.am): Likewise.
15860         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15861
15862 2011-05-29  Bruno Haible  <bruno@clisp.org>
15863
15864         assert-h: Allow multiple gnulib generated replacements to coexist.
15865         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15866
15867 2011-05-29  Bruno Haible  <bruno@clisp.org>
15868
15869         argp: Allow coexistence with strerror_r-posix module.
15870         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15871         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15872         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15873         not the glibc signature.
15874
15875 2011-05-28  Bruno Haible  <bruno@clisp.org>
15876
15877         gnulib-tool: Alternative structure of testdirs, similar to --import.
15878         * gnulib-tool: New option --single-configure.
15879         (func_usage): Document it.
15880         (single_configure): New variable.
15881         (func_modules_transitive_closure_separately,
15882         func_modules_transitive_closure_separately,
15883         func_determine_use_libtests, func_modules_add_dummy_separately,
15884         func_modules_to_filelist_separately): New functions, extracted from
15885         func_import.
15886         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15887         (func_import): Use the new functions.
15888         (func_create_testdir): Set final_modules. Handle $single_configure =
15889         true case.
15890
15891 2011-05-28  Bruno Haible  <bruno@clisp.org>
15892
15893         getloadavg: Remove an unreliable safety check.
15894         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15895         getloadavg.c is in place.
15896         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15897         Reported by Sam Steingold <sds@gnu.org>.
15898
15899 2011-05-28  Bruno Haible  <bruno@clisp.org>
15900
15901         doc: Cleanup yet another file produced by texinfo.tex.
15902         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15903
15904 2011-05-28  Bruno Haible  <bruno@clisp.org>
15905
15906         Finish the conditional dependencies mechanism.
15907         * gnulib-tool: New option --no-conditional-dependencies.
15908         (func_usage): Document it. Don't mark --conditional-dependencies as
15909         experimental.
15910         (cond_dependencies): The possible values can now be true, false, empty.
15911         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15912         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15913         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15914
15915 2011-05-28  Bruno Haible  <bruno@clisp.org>
15916
15917         doc: Use a recent texinfo.tex.
15918         * doc/Makefile (tex_opts): New variable.
15919         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15920
15921 2011-05-28  Jim Meyering  <meyering@redhat.com>
15922
15923         intprops.h: adjust comment to match code change
15924         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15925         only once, it *may* have side effects.  Also fix an unrelated typo.
15926         (_GL_INT_SIGNED): Likewise.
15927
15928 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15929
15930         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15931
15932 2011-05-26  Bruno Haible  <bruno@clisp.org>
15933
15934         mbsrchr: Avoid collision with system function on Interix.
15935         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15936         Reported by Markus Duft <mduft@gentoo.org>.
15937
15938 2011-05-15  James Youngman  <jay@gnu.org>
15939
15940         getopt: for ambiguous options, enumerate the possibilities.
15941         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15942         the ambiguous options when an ambiguous prefix is given. This was
15943         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15944         glibc change was
15945         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15946
15947 2011-05-25  Eric Blake  <eblake@redhat.com>
15948
15949         getcwd: work around mingw bug
15950         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15951         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15952         Reported by Matthias Bolte.
15953
15954 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15955
15956         test-intprops: disable -Wtype-limits diagnostics
15957         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15958         diagnostics.  Otherwise, the integer overflow macros generate many
15959         diagnostics.  Reported by Jim Meyering in
15960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15961
15962         intprops: shorten, to pacify gcc -Woverlength-strings
15963         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15964         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15965         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15966         likely to run afoul of C compiler limits for string constant lengths.
15967         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15968
15969 2011-05-24  Eric Blake  <eblake@redhat.com>
15970
15971         docs: document recently fixed glibc printf bug
15972         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15973         * doc/posix-functions/printf.texi (printf): Likewise.
15974         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15975         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15976
15977         closein-tests: convert to init.sh
15978         * modules/closein-tests (Files): Add init.sh
15979         * tests/test-closein.sh Use it.
15980
15981         yesno-tests: convert to init.sh
15982         * modules/yesno-tests (Files): Add init.sh.
15983         * tests/test-yesno.sh: Use it.
15984
15985         atexit-tests: ensure reliable exit status
15986         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15987         Reported by Bruno Haible.
15988
15989 2011-05-24  Bruno Haible  <bruno@clisp.org>
15990
15991         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15992         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15993         gl_PREREQ_STRERROR_R invocations from here...
15994         * modules/strerror_r-posix (configure.ac): ... to here.
15995
15996 2011-05-24  Eric Blake  <eblake@redhat.com>
15997
15998         strerror_r: fix missing header
15999         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16000
16001         strerror_r: fix AIX test failures
16002         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16003         ERANGE failure.
16004
16005         strerror_r: fix Solaris test failures
16006         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16007         failures.
16008         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16009
16010         strerror_r: enforce POSIX recommendations
16011         * lib/strerror_r.c (safe_copy): New helper method.
16012         (strerror_r): Guarantee a non-empty string.
16013         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16014         recent POSIX rulings and to match our strerror guarantees.
16015         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16016
16017 2011-05-24  Jim Meyering  <meyering@redhat.com>
16018
16019         test-perror2.c: avoid warning about unused variable
16020         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16021
16022 2011-05-24  Eric Blake  <eblake@redhat.com>
16023
16024         perror: avoid spurious test failure on HP-UX
16025         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16026
16027         tests: fix logic bug in init.sh
16028         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16029         shell.
16030
16031 2011-05-24  Jim Meyering  <meyering@redhat.com>
16032
16033         utimensat: do not reference an out-of-scope buffer
16034         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16035         declared in an inner scope, yet "times" would be dereferenced outside
16036         the scope in which "ts" was valid.
16037         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16038         of ts[2] "out/up", so that the use of aliased "times" (via
16039         "times = ts;") does not end up referencing an out-of-scope "ts"
16040
16041         opendir-safer.c: don't clobber errno; don't close negative FD
16042         * lib/opendir-safer.c (opendir_safer):
16043         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16044         file descriptor, and more importantly, don't clobber the
16045         offending errno value with EINVAL.  Before, upon failure
16046         of dup_safer, we would pass the negative file descriptor to
16047         fdopendir, which would clobber errno.
16048
16049 2011-05-23  Bruno Haible  <bruno@clisp.org>
16050
16051         idcache: Fix module description.
16052         * modules/idcache (Include): Set to "idcache.h".
16053
16054 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         gnulib-tool: fix portability problem with MacOS sed
16057         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16058         before the "}".  Problem reported by Leo in
16059         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16060         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16061         sed_extract_condition1, sed_extract_condition2.
16062
16063 2011-05-23  Bruno Haible  <bruno@clisp.org>
16064
16065         hash: Simplify autoconf macro.
16066         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16067
16068 2011-05-23  Bruno Haible  <bruno@clisp.org>
16069
16070         getugroups: Fix module description.
16071         * modules/getugroups (Include): Set to "getugroups.h".
16072
16073 2011-05-23  Bruno Haible  <bruno@clisp.org>
16074
16075         linkat: Simplify autoconf macro.
16076         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16077
16078 2011-05-23  Bruno Haible  <bruno@clisp.org>
16079             Eric Blake  <eblake@redhat.com>
16080
16081         linkat, renameat: Update dependencies.
16082         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16083         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16084         symlinkat.
16085
16086 2011-05-23  Jim Meyering  <meyering@redhat.com>
16087
16088         maint.mk: more tight_scope improvements
16089         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16090         (_gl_TS_headers): Define only in if-0'd block.
16091         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16092         sometimes we must *not* use it.  Adjust uses accordingly.
16093         (sc_tight_scope): Use much simpler grep-based test to determine
16094         whether we skip this rule.
16095
16096         maint.mk: generalize/improve the tight-scope rule
16097         * top/maint.mk: Emit a warning when the test is skipped.
16098         (_gl_TS_dir): Add $(srcdir)/ prefix.
16099         (_gl_TS_function_match): Simplify, rather than trying
16100         to enumerate common types.  Otherwise, it would fail to match an
16101         "extern unsigned char const *" declaration in idutils.
16102         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16103         a way to support use of that type of macro.
16104         (_gl_TS_var_match): Simplify regexp.
16105         (_gl_TS_obj_files): New configurable variable.
16106         (_gl_TS_headers): Likewise.
16107
16108 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16109
16110         verify: fix bug when gnulib <assert.h> is also included
16111         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16112         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16113         Perhaps there's a better way, but this fixes the immediate problem.
16114         Problem reported by Bruno Haible in
16115         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16116
16117 2011-05-22  Bruno Haible  <bruno@clisp.org>
16118
16119         xgetcwd: Simplify autoconf macro.
16120         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16121
16122 2011-05-22  Bruno Haible  <bruno@clisp.org>
16123
16124         New module 'mktime-internal'.
16125         * modules/mktime-internal: New file.
16126         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16127         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16128         mktime_internal as a C macro if libc has __mktime_internal.
16129         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16130         conditions.
16131         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16132
16133 2011-05-22  Bruno Haible  <bruno@clisp.org>
16134
16135         timegm: Correct mktime replacement statements.
16136         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16137         defining mktime as a C macro. This completes a 2009-07-28 commit.
16138
16139 2011-05-22  Bruno Haible  <bruno@clisp.org>
16140
16141         timegm: Simplify autoconf macro.
16142         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16143
16144 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16145
16146         clock-time: change to LGPLv2+.
16147         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16148         BSD-like but we have no mark for that; this is good enough for now.
16149
16150 2011-05-21  Bruno Haible  <bruno@clisp.org>
16151
16152         strerror_r: Fix comments.
16153         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16154
16155 2011-05-21  Bruno Haible  <bruno@clisp.org>
16156
16157         relocatable-prog-wrapper: Fix possible link error.
16158         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16159         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16160         (gl_FUNC_SETENV): ... to here.
16161         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16162         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16163
16164 2011-05-21  Bruno Haible  <bruno@clisp.org>
16165
16166         relocatable-prog-wrapper: Assume strerror() exists.
16167         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16168         m4/strerror.m4.
16169         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16170         * lib/relocwrapper.c: Remove mention of strerror module.
16171         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16172         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16173         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16174         C macro.
16175
16176 2011-05-21  Bruno Haible  <bruno@clisp.org>
16177
16178         select: Simplify replacement idiom.
16179         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16180         Win32 platforms.
16181         * lib/sys_select.in.h (select): Simplify accordingly.
16182         * modules/select (Depends-on): Likewise.
16183
16184 2011-05-21  Bruno Haible  <bruno@clisp.org>
16185
16186         mkdir-p: Simplify autoconf macro.
16187         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16188         gl_FUNC_LCHOWN.
16189
16190 2011-05-21  Eric Blake  <eblake@redhat.com>
16191
16192         strerror_r: avoid clobbering strerror on cygwin
16193         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16194         fall back instead to sys_errlist.
16195         * modules/strerror (configure.ac): Add witness.
16196         * tests/test-strerror_r.c (main): Enhance test.
16197         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16198         * tests/test-perror2.c (main): Free memory before exit.
16199
16200 2011-05-21  Bruno Haible  <bruno@clisp.org>
16201
16202         mkdtemp: Use gnulib naming conventions.
16203         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16204         * modules/mkdtemp (configure.ac): Update.
16205
16206 2011-05-20  Eric Blake  <eblake@redhat.com>
16207
16208         strerror_r: avoid corrupting errno on Solaris
16209         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16210         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16211
16212         strerror_r: avoid compiler warning
16213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16214
16215         strerror_r: simplify AIX code
16216         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16217
16218         test-perror: avoid spurious failure on FreeBSD
16219         * modules/perror-tests (Depends-on): Add strerror, now that
16220         strerror_r no longer pulls it in.
16221
16222 2011-05-20  Bruno Haible  <bruno@clisp.org>
16223
16224         strerror_r-posix: Remove unused dependencies.
16225         * modules/strerror_r-posix (Depends-on): Remove strerror.
16226         Reported by Eric Blake.
16227
16228 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16229
16230         intprops: remove assumption about A|B representation
16231         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16232         is a valid integer if both A and B are.  Although this is true for
16233         all known practical hosts, the C standard doesn't guarantee it,
16234         and the code need not assume it.  Also, this change may work around
16235         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16237
16238 2011-05-20  Eric Blake  <eblake@redhat.com>
16239
16240         perror: work around FreeBSD bug
16241         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16242         is broken.  Move AC_LIBOBJ...
16243         * modules/perror (configure.ac): Here.
16244         * doc/posix-functions/perror.texi (perror): Document this.
16245         * tests/test-perror2.c (main): Enhance test.
16246
16247         test-perror: check for strerror interactions
16248         * tests/macros.h (STREQ): Add macro.
16249         * modules/perror-tests (Files): Add second test.
16250         * tests/test-perror2.c (main): New file.
16251         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16252
16253         test-perror: rewrite to use init script
16254         * modules/perror-tests (Files): Add init.sh.
16255         * tests/test-perror.sh: Use temporary directory.
16256
16257 2011-05-20  Jim Meyering  <meyering@redhat.com>
16258
16259         maint: replace misused "a" with "an"
16260         * doc/intprops.texi: "a integer"
16261         * doc/regex.texi: "a explanation"
16262         * lib/alignof.h: "a object"
16263         * lib/argmatch.h: "a explanation"
16264         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16265         * lib/stdint.in.h: "a integer"
16266         * lib/userspec.c: "a owner"
16267         * doc/gnulib.texi: Fix "a idea", and reword.
16268
16269 2011-05-19  Jim Meyering  <meyering@redhat.com>
16270
16271         maint: correct misuse of "a" and "an"
16272         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16273         * lib/argp-help.c: "an docum...": s/an/a/
16274         * lib/argp-parse.c: "An vector": s/An/A/
16275         * lib/execute.c: "an native": s/an/a/
16276         * lib/spawn-pipe.c: Likewise.
16277         * lib/gc.h: "an Gc_rc": s/an/a/
16278         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16279         * lib/fts.c: "an stat.st_dev": s/an/a/
16280
16281 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16282
16283         intprops-tests: work around HP-UX 11.23 cc bug with constants
16284         * tests/test-intprops.c (VERIFY): New macro.
16285         (main): Use it, instead of verify, to work around the compiler bug; see
16286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16287
16288         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16289         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16290         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16291         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16292         (_GL_REMAINDER_OVERFLOW): Use it.
16293
16294         intprops-tests: revert unsigned part of previous change
16295         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16296         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16297         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16299
16300 2011-05-19  Bruno Haible  <bruno@clisp.org>
16301
16302         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16303         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16304         strerror_r() returned without filling the buffer.
16305         Reported by Eric Blake.
16306
16307 2011-05-19  Eric Blake  <eblake@redhat.com>
16308
16309         strerror_r: guarantee unchanged errno
16310         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16311         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16312         failure.
16313         * tests/test-strerror_r.c (main): Enhance test.
16314
16315 2011-05-19  Bruno Haible  <bruno@clisp.org>
16316
16317         strerror_r: Reorder #if blocks.
16318         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16319         for consistency with the previous commit.
16320
16321 2011-05-19  Bruno Haible  <bruno@clisp.org>
16322
16323         perror: Avoid clobbering the strerror buffer when possible.
16324         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16325         * lib/strerror.c: Include it.
16326         * modules/strerror (Files): Add lib/strerror-impl.h.
16327         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16328         (my_strerror): New function, defined through lib/strerror-impl.h.
16329         (perror): Use it instead of strerror.
16330         * modules/perror (Files): Add lib/strerror-impl.h.
16331         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16332
16333 2011-05-19  Eric Blake  <eblake@redhat.com>
16334
16335         strerror_r: fix on newer cygwin
16336         * lib/strerror_r.c (strerror_r): Cygwin now has
16337         __xpg_strerror_r, use it.
16338
16339 2011-05-19  Bruno Haible  <bruno@clisp.org>
16340
16341         strerror_r: Avoid clobbering the strerror buffer when possible.
16342         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16343         (sys_nerr, sys_errlist): New declarations.
16344         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16345         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16346         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16347
16348 2011-05-19  Bruno Haible  <bruno@clisp.org>
16349
16350         strerror_r: Fix test failure on mingw.
16351         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16352         EXTEND_STRERROR_R.
16353         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16354         macros from errno.in.h instead.
16355
16356 2011-05-19  Eric Blake  <eblake@redhat.com>
16357
16358         strerror: relax test for Solaris
16359         * tests/test-strerror.c (main): Permit Solaris behavior.
16360         * tests/test-strerror_r.c (main): Likewise.
16361
16362         strerror: enforce POSIX ruling on strerror(0)
16363         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16364         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16365         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16366         * doc/posix-functions/strerror.texi (strerror): Document it.
16367         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16368         * tests/test-strerror.c (main): Strengthen test.
16369         * tests/test-strerror_r.c (main): Likewise.
16370
16371 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16372
16373         intprop-tests: port to older and more-pedantic compilers
16374         * modules/intprops-tests (Files): Add tests/macros.h.
16375         * tests/test-intprops.c: Include macros.h.
16376         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16377         it's no longer documented to expand to an integer constant expression.
16378         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16379         argument is floating point, as it's no longer documented to expand
16380         to an integer constant expression in that case.
16381         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16382         compiler bugs reported by Bruno Haible.  See
16383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16384         (U0, U1): New constants, to work around the same bugs.  Also,
16385         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16386
16387         intprops: work around C compiler bugs
16388         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16389         bug in Sun C 5.11 2010/08/13 and other compilers; see
16390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16391
16392         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16393         * doc/intprops.texi (Integer Type Determination): Fix
16394         documentation for TYPE_IS_INTEGER: it returns an constant
16395         expression, not an integer constant expression.  Fix doc for
16396         TYPE_SIGNED: it returns an integer constant expression only if its
16397         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16398         hardly worth documented that way....)
16399
16400 2011-05-18  Bruno Haible  <bruno@clisp.org>
16401
16402         strerror_r: Avoid clobbering the strerror buffer when possible.
16403         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16404         Handle gnulib defined errno values here. When strerror() returns NULL
16405         or an empty string, return EINVAL.
16406         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16407         gnulib defined errno values here.
16408         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16409
16410 2011-05-18  Eric Blake  <eblake@redhat.com>
16411
16412         fnmatch: avoid compiler warning
16413         * lib/fnmatch_loop.c (FCT): Use correct type.
16414         Reported by Matthias Bolte.
16415
16416 2011-05-13  Jim Meyering  <meyering@redhat.com>
16417
16418         maint.mk: three new prohibit_<HDR>_without_use rules
16419         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16420         (sc_prohibit_stdio-safer_without_use): Likewise.
16421         (sc_prohibit_xfreopen_without_use): Likewise.
16422
16423 2011-05-17  Jim Meyering  <meyering@redhat.com>
16424
16425         announce-gen: fail if the NEWS delta is empty
16426         If there's nothing noteworthy in NEWS, then either you forgot
16427         or you shouldn't be releasing.
16428         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16429
16430 2011-05-17  Pádraig Brady <P@draigBrady.com>
16431
16432         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16433         reserved symbols starting with double underscore from the check.
16434
16435 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16436
16437         intprops: add doc
16438         * doc/intprops.texi: New file, documenting intprops.
16439         * doc/gnulib.texi (Particular Modules): Include it.
16440
16441         verify: add doc to gnulib manual and fix example
16442         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16443         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16444         (Compile-time Assertions): Fix example so it can't overflow.
16445
16446 2011-05-17  Jim Meyering  <meyering@redhat.com>
16447
16448         warnings.m4: don't usurp save_CPPFLAGS variable name
16449         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16450
16451         doc: fix typo
16452         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16453
16454 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16455             Bruno Haible  <bruno@clisp.org>
16456
16457         doc: Tweak recent change.
16458         * README (Portability guidelines): Tweak new text.
16459         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16460         Interix 6.1.
16461
16462 2011-05-16  Eric Blake  <eblake@redhat.com>
16463
16464         inttypes: avoid autoconf warning
16465         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16466         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16467
16468 2011-05-16  Sam Steingold <sds@gnu.org>
16469         and Eric Blake  <eblake@redhat.com>
16470
16471         vc-list-files: accept multiple directory operands
16472         * build-aux/vc-list-files: Iterate over all remaining operands.
16473
16474 2011-05-16  Bruno Haible  <bruno@clisp.org>
16475
16476         Fix confusion regarding deprecated modules.
16477         * modules/calloc (Status, Notice): Mark module as deprecated, not
16478         obsolete.
16479         * modules/fnmatch-posix (Status, Notice): Likewise.
16480         * modules/getdate (Status, Notice): Likewise.
16481         * modules/getopt (Status, Notice): Likewise.
16482         * modules/malloc (Status, Notice): Likewise.
16483         * modules/pipe (Status, Notice): Likewise.
16484         * modules/realloc (Status, Notice): Likewise.
16485         * modules/rename-dest-slash (Status, Notice): Likewise.
16486         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16487         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16488         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16489         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16490         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16491
16492 2011-05-16  Bruno Haible  <bruno@clisp.org>
16493
16494         doc: List the target platforms.
16495         * doc/gnulib-intro.texi (Target Platforms): New section.
16496         * doc/gnulib.texi (Introduction): Update menu.
16497         * README (Portability guidelines): Refer to the new section. Update
16498         statement about oldest supported environment. Remove rationale why
16499         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16500         unportable C89 function.
16501         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16502         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16503
16504 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16505
16506         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16507
16508 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16509
16510         intprops-tests: new module
16511         * modules/intprops-tests, tests/test-intprops.c: New files.
16512
16513         intprops: add safe, portable integer overflow checking
16514         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16515         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16516         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16517         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16518         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16519         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16520         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16521         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16522         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16523         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16524         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16525
16526 2011-05-12  James Youngman  <jay@gnu.org>
16527
16528         Add a test for glibc's Bugzilla bug #12378.
16529         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16530         doesn't allow the literal matching of a lone "[" (which is
16531         required by POSIX).
16532         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16533
16534 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16535
16536         Sync glibc change fixing Bugzilla bug #12378.
16537         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16538         beginning and fall back to matching as normal character if the
16539         string ends before the matching ']' is found.  This is what POSIX
16540         requires.
16541
16542 2011-05-13  Eric Blake  <eblake@redhat.com>
16543
16544         getcwd-lgpl: relax test for FreeBSD
16545         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16546         issue.
16547         * tests/test-getcwd-lgpl.c (main): Relax test.
16548         Reported by Matthias Bolte.
16549
16550 2011-05-11  Eric Blake  <eblake@redhat.com>
16551
16552         test-fflush: silence compiler warning
16553         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16554
16555 2011-05-11  Bruno Haible  <bruno@clisp.org>
16556
16557         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16558         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16559         * modules/canonicalize (Depends-on): Add 'nocrash'.
16560         * modules/canonicalize-lgpl (Depends-on): Likewise.
16561         * doc/posix-functions/realpath.texi: Update platforms list.
16562         Reported by Ryan Schmidt <ryandesign@macports.org>.
16563
16564 2011-05-11  Bruno Haible  <bruno@clisp.org>
16565
16566         group-member: Declare function in <unistd.h>.
16567         * lib/unistd.in.h (group_member): New declaration.
16568         * lib/group-member.h: Remove file.
16569         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16570         * tests/test-unistd-c++.cc: Check signature of group_member.
16571         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16572         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16573         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16574         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16575         HAVE_GROUP_MEMBER.
16576         * modules/group-member (Files): Remove lib/group-member.h.
16577         (Depends-on): Add unistd. Specify conditions.
16578         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16579         (Include): Change to <unistd.h>.
16580         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16581         HAVE_GROUP_MEMBER.
16582         * NEWS: Mention the change.
16583         * lib/euidaccess.c: Don't include group-member.h.
16584
16585 2011-05-11  Bruno Haible  <bruno@clisp.org>
16586
16587         group-member: Document module.
16588         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16589         module.
16590
16591 2011-05-11  Bruno Haible  <bruno@clisp.org>
16592
16593         fclose: Fix mistake earlier today.
16594         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16595
16596 2011-05-11  Eric Blake  <eblake@redhat.com>
16597
16598         fclose: preserve fflush errors
16599         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16600         Reported by Jim Meyering.
16601
16602         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16603         * build-aux/bootstrap (check_versions): When no specific version
16604         is required, merely check that the app produces an exit status
16605         that indicates its existence.
16606
16607         maint.mk: drop redundant check
16608         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16609         the same but better.
16610
16611 2011-05-11  Bruno Haible  <bruno@clisp.org>
16612
16613         fclose: Fix possible link error.
16614         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16615         unregister_shadow_fd. Improve comments.
16616         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16617         Eric Blake.
16618
16619 2011-05-11  Jim Meyering  <meyering@redhat.com>
16620
16621         maint.mk: improve "can not" detection and generalize rule name
16622         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16623         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16624         Use the same technique as in sc_prohibit_doubled_word, so that
16625         we recognize "can not" also when the words are separated by a newline.
16626         Suggested by Eric Blake.
16627         (perl_filename_lineno_text_): Define.  Factored out of...
16628         (prohibit_doubled_word_): ...here.  Use the new definition.
16629         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16630         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16631         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16632
16633 2011-05-10  Eric Blake  <eblake@redhat.com>
16634
16635         fclose: avoid double close race when possible
16636         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16637         all but WINDOWS_SOCKETS.
16638
16639 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16640
16641         openat: correct new comment
16642         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16643
16644 2011-05-10  Jim Meyering  <meyering@redhat.com>
16645
16646         openat: add comments
16647         * lib/openat-proc.c (openat_proc_name): Add comments,
16648         mostly from Eric Blake.
16649
16650 2011-05-09  Eric Blake  <eblake@redhat.com>
16651
16652         openat: reduce syscalls in first probe of /proc
16653         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16654         be a directory.  Simplify the probe for .. bugs.
16655         * modules/openat (Depends-on): Drop same-inode.
16656         Reported by Bastien ROUCARIES.
16657
16658 2011-05-09  Jim Meyering  <meyering@redhat.com>
16659
16660         maint.mk: change semantics/name of tight_scope variables
16661         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16662         Rename variables to align with semantics that make them more useful.
16663
16664         maint.mk: tweak new rule's name not to impinge
16665         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16666         (sc_tight_scope): Use new rule name rather than $@-0.
16667
16668         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16669         * top/maint.mk (sc_tight_scope): New rule.
16670         (sc_tight_scope-0): New rule, ifdef'd out.
16671         (_gl_TS_dir): Default.
16672         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16673         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16674
16675 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16676
16677         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16678         Haible <bruno@clisp.org>.
16679
16680 2011-05-08  Bruno Haible  <bruno@clisp.org>
16681
16682         Comments.
16683         * m4/isnanf.m4: Add comment.
16684         * m4/isnanl.m4: Likewise.
16685
16686 2011-05-08  Bruno Haible  <bruno@clisp.org>
16687
16688         glob: Remove obsolete macro.
16689         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16690
16691 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16692
16693         intprops: Sun C 5.11 supports __typeof__
16694         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16695         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16696         which is new.
16697         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16698
16699         intprops: switch to usual gnulib indenting and naming
16700         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16701         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16702
16703         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16704
16705 2011-05-08  Jim Meyering  <meyering@redhat.com>
16706
16707         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16708         * top/maint.mk (release-prep): Use make's --no-print-directory
16709         option when generating the announcement.  This eliminates the
16710         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16711         generated announcement template.
16712
16713 2011-05-08  Bruno Haible  <bruno@clisp.org>
16714
16715         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16716         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16717         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16718
16719 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16720
16721         ignore-value, verify: Omit include files from lib_SOURCES.
16722         * modules/ignore-value, modules/verify (Makefile.am):
16723         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16724         that leads Automake to duplicate use of am__objects_... variables
16725         in Makefile.in.  See
16726         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16727
16728 2011-05-07  Bruno Haible  <bruno@clisp.org>
16729
16730         fclose: Simplify autoconf macro.
16731         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16732         defined.
16733
16734 2011-05-07  Bruno Haible  <bruno@clisp.org>
16735
16736         canonicalize-lgpl: Fix autoconf macro ordering bug.
16737         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16738         gl_STDLIB_H_DEFAULTS.
16739
16740 2011-05-06  Eric Blake  <eblake@redhat.com>
16741
16742         maintainer-makefile: make sc_po_check easier to tune
16743         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16744         to probe for strings, such as an alternate location for gnulib.
16745
16746         fclose: guarantee behavior on seekable stdin
16747         * modules/fclose (Depends-on): Add fflush.
16748         * doc/posix-functions/fclose.texi (fclose): Document this.
16749         * tests/test-fclose.c (main): Make test for this unconditional.
16750
16751 2011-05-06  Bruno Haible  <bruno@clisp.org>
16752
16753         fflush, fpurge: Relicense under LGPLv2+.
16754         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16755         * modules/fpurge (License): Likewise.
16756         With permission from Eric Blake and Jim Meyering.
16757         Suggested by Eric Blake.
16758
16759 2011-05-06  Karl Berry  <karl@gnu.org>
16760
16761         * MODULES.html.sh (func_all_modules): remove exit.
16762
16763 2011-05-06  Jim Meyering  <meyering@redhat.com>
16764
16765         maint.mk: use info-gnu@ as the default only for a stable release
16766         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16767         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16768         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16769         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16770
16771 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16772
16773         assert-h: new module, which supports C1X-style static_assert
16774         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16775         * lib/verify.h: Revamp so that this can be copied into assert.h,
16776         while retaining the ability to use it standalone as before.
16777         Rename private identifiers so as not to encroach on the
16778         standard C namespace, since this is now used by assert.h.
16779         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16780         the old verify_true.
16781         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16782         the old verify_true.  Use _GL_VERIFY_TYPE.
16783         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16784         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16785         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16786         defined when this file is copied into the replacement assert.h.
16787         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16788         and _Static_assert is not built in.
16789         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16790         defined, and use the new macros mentioned above.
16791         * doc/posix-headers/assert.texi: Document this.
16792
16793 2011-05-05  Bruno Haible  <bruno@clisp.org>
16794
16795         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16796         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16797         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16798         gl_REPLACE_FCLOSE here.
16799         * modules/fflush (Depends-on): Remove fclose.
16800         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16801         combination with module 'fclose'.
16802
16803 2011-05-05  Bruno Haible  <bruno@clisp.org>
16804
16805         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16806         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16807         gl_FUNC_FFLUSH.
16808         (gl_FUNC_FFLUSH): Use it.
16809         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16810         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16811         gl_REPLACE_FSEEKO here.
16812
16813 2011-05-05  Bruno Haible  <bruno@clisp.org>
16814
16815         tzset: Relicense under LGPL.
16816         * modules/tzset (License): Change to LGPL.
16817         No agreement needed; it's a no-op.
16818
16819         strtoimax, strtoumax: Relicense under LGPL.
16820         * modules/strtoimax (License): Change to LGPL.
16821         * modules/strtoumax (License): Likewise.
16822         With permission from Jim Meyering, Paul Eggert:
16823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16825
16826         getgroups: Relicense under LGPL.
16827         * modules/getgroups (License): Change to LGPL.
16828         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16829         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16831         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16832
16833         nanosleep: Relicense under LGPL.
16834         * modules/nanosleep (License): Change to LGPL.
16835         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16836         Haible:
16837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16841
16842         futimens: Relicense under LGPL.
16843         * modules/futimens (License): Change to LGPL.
16844         With permission from Eric Blake:
16845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16846
16847         fflush: Relicense under LGPL.
16848         * modules/fflush (License): Change to LGPL.
16849         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16853
16854         tmpfile: Relicense under LGPL.
16855         * modules/tmpfile (License): Change to LGPL.
16856         With permission from Ben Pfaff:
16857         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16858
16859         isfinite: Relicense under LGPL.
16860         * modules/isfinite (License): Change to LGPL.
16861         With permission from Ben Pfaff, Bruno Haible:
16862         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16864
16865         acosl..tanl: Relicense under LGPL.
16866         * modules/acosl (License): Change to LGPL.
16867         * modules/asinl (License): Likewise.
16868         * modules/atanl (License): Likewise.
16869         * modules/cosl (License): Likewise.
16870         * modules/expl (License): Likewise.
16871         * modules/logl (License): Likewise.
16872         * modules/sinl (License): Likewise.
16873         * modules/sqrtl (License): Likewise.
16874         * modules/tanl (License): Likewise.
16875         Source code originally from glibc and Paolo Bonzini. Agreements:
16876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16877         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16878
16879 2011-05-05  Bruno Haible  <bruno@clisp.org>
16880
16881         signal: Define sighandler_t.
16882         * lib/signal.in.h (sighandler_t): New type.
16883         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16884         whether sighandler_t is defined.
16885         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16886         * modules/signal (Depends-on): Add extensions.
16887         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16888         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16889         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16890
16891 2011-05-05  Eric Blake  <eblake@redhat.com>
16892
16893         maint: remove useless REPLACE_*_H macros
16894         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16895         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16896         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16897         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16898         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16899         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16900         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16901         * m4/btowc.m4: Update callers.
16902         * m4/dirfd.m4: Likewise.
16903         * m4/duplocale.m4: Likewise.
16904         * m4/fchdir.m4: Likewise.
16905         * m4/fdopendir.m4: Likewise.
16906         * m4/inet_ntop.m4: Likewise.
16907         * m4/inet_pton.m4: Likewise.
16908         * m4/ioctl.m4: Likewise.
16909         * m4/mbrlen.m4: Likewise.
16910         * m4/mbrtowc.m4: Likewise.
16911         * m4/mbsinit.m4: Likewise.
16912         * m4/mbsnrtowcs.m4: Likewise.
16913         * m4/mbsrtowcs.m4: Likewise.
16914         * m4/poll.m4: Likewise.
16915         * m4/setlocale.m4: Likewise.
16916         * m4/wcrtomb.m4: Likewise.
16917         * m4/wcsnrtombs.m4: Likewise.
16918         * m4/wcsrtombs.m4: Likewise.
16919         * m4/wctob.m4: Likewise.
16920         * m4/wcwidth.m4: Likewise.
16921         * modules/posix_spawn: Likewise.
16922         * modules/posix_spawn_file_actions_addclose: Likewise.
16923         * modules/posix_spawn_file_actions_adddup2: Likewise.
16924         * modules/posix_spawn_file_actions_addopen: Likewise.
16925         * modules/posix_spawn_file_actions_destroy: Likewise.
16926         * modules/posix_spawn_file_actions_init: Likewise.
16927         * modules/posix_spawnattr_destroy: Likewise.
16928         * modules/posix_spawnattr_getflags: Likewise.
16929         * modules/posix_spawnattr_getpgroup: Likewise.
16930         * modules/posix_spawnattr_getschedparam: Likewise.
16931         * modules/posix_spawnattr_getschedpolicy: Likewise.
16932         * modules/posix_spawnattr_getsigdefault: Likewise.
16933         * modules/posix_spawnattr_getsigmask: Likewise.
16934         * modules/posix_spawnattr_init: Likewise.
16935         * modules/posix_spawnattr_setflags: Likewise.
16936         * modules/posix_spawnattr_setpgroup: Likewise.
16937         * modules/posix_spawnattr_setschedparam: Likewise.
16938         * modules/posix_spawnattr_setschedpolicy: Likewise.
16939         * modules/posix_spawnattr_setsigdefault: Likewise.
16940         * modules/posix_spawnattr_setsigmask: Likewise.
16941         * modules/posix_spawnp: Likewise.
16942
16943 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16944
16945         Add option to do-release-commit-and-tag to specify branch.
16946         * build-aux/do-release-commit-and-tag: Add --branch.
16947
16948 2011-05-03  Bruno Haible  <bruno@clisp.org>
16949
16950         Avoid unnecessary compilation units, through conditional dependencies.
16951         * modules/accept (Depends-on): Add conditions to the dependencies.
16952         * modules/acosl (Depends-on): Likewise.
16953         * modules/argz (Depends-on): Likewise.
16954         * modules/asinl (Depends-on): Likewise.
16955         * modules/atanl (Depends-on): Likewise.
16956         * modules/atoll (Depends-on): Likewise.
16957         * modules/bind (Depends-on): Likewise.
16958         * modules/btowc (Depends-on): Likewise.
16959         * modules/canonicalize-lgpl (Depends-on): Likewise.
16960         * modules/ceil (Depends-on): Likewise.
16961         * modules/ceilf (Depends-on): Likewise.
16962         * modules/ceill (Depends-on): Likewise.
16963         * modules/chdir-long (Depends-on): Likewise.
16964         * modules/chown (Depends-on): Likewise.
16965         * modules/close (Depends-on): Likewise.
16966         * modules/connect (Depends-on): Likewise.
16967         * modules/cosl (Depends-on): Likewise.
16968         * modules/dirfd (Depends-on): Likewise.
16969         * modules/dprintf (Depends-on): Likewise.
16970         * modules/dprintf-posix (Depends-on): Likewise.
16971         * modules/error (Depends-on): Likewise.
16972         * modules/euidaccess (Depends-on): Likewise.
16973         * modules/expl (Depends-on): Likewise.
16974         * modules/faccessat (Depends-on): Likewise.
16975         * modules/fchdir (Depends-on): Likewise.
16976         * modules/fclose (Depends-on): Likewise.
16977         * modules/fcntl (Depends-on): Likewise.
16978         * modules/fdopendir (Depends-on): Likewise.
16979         * modules/fflush (Depends-on): Likewise.
16980         * modules/floor (Depends-on): Likewise.
16981         * modules/floorf (Depends-on): Likewise.
16982         * modules/floorl (Depends-on): Likewise.
16983         * modules/fnmatch (Depends-on): Likewise.
16984         * modules/fopen (Depends-on): Likewise.
16985         * modules/fprintf-posix (Depends-on): Likewise.
16986         * modules/frexp (Depends-on): Likewise.
16987         * modules/frexp-nolibm (Depends-on): Likewise.
16988         * modules/frexpl (Depends-on): Likewise.
16989         * modules/frexpl-nolibm (Depends-on): Likewise.
16990         * modules/fseek (Depends-on): Likewise.
16991         * modules/fsusage (Depends-on): Likewise.
16992         * modules/ftell (Depends-on): Likewise.
16993         * modules/ftello (Depends-on): Likewise.
16994         * modules/futimens (Depends-on): Likewise.
16995         * modules/getcwd (Depends-on): Likewise.
16996         * modules/getcwd-lgpl (Depends-on): Likewise.
16997         * modules/getdelim (Depends-on): Likewise.
16998         * modules/getdomainname (Depends-on): Likewise.
16999         * modules/getgroups (Depends-on): Likewise.
17000         * modules/gethostname (Depends-on): Likewise.
17001         * modules/getline (Depends-on): Likewise.
17002         * modules/getlogin_r (Depends-on): Likewise.
17003         * modules/getopt-posix (Depends-on): Likewise.
17004         * modules/getpeername (Depends-on): Likewise.
17005         * modules/getsockname (Depends-on): Likewise.
17006         * modules/getsockopt (Depends-on): Likewise.
17007         * modules/getsubopt (Depends-on): Likewise.
17008         * modules/getusershell (Depends-on): Likewise.
17009         * modules/glob (Depends-on): Likewise.
17010         * modules/grantpt (Depends-on): Likewise.
17011         * modules/iconv_open (Depends-on): Likewise.
17012         * modules/iconv_open-utf (Depends-on): Likewise.
17013         * modules/inet_ntop (Depends-on): Likewise.
17014         * modules/inet_pton (Depends-on): Likewise.
17015         * modules/ioctl (Depends-on): Likewise.
17016         * modules/isapipe (Depends-on): Likewise.
17017         * modules/isfinite (Depends-on): Likewise.
17018         * modules/isinf (Depends-on): Likewise.
17019         * modules/lchown (Depends-on): Likewise.
17020         * modules/ldexpl (Depends-on): Likewise.
17021         * modules/link (Depends-on): Likewise.
17022         * modules/linkat (Depends-on): Likewise.
17023         * modules/listen (Depends-on): Likewise.
17024         * modules/logl (Depends-on): Likewise.
17025         * modules/lstat (Depends-on): Likewise.
17026         * modules/mbrlen (Depends-on): Likewise.
17027         * modules/mbrtowc (Depends-on): Likewise.
17028         * modules/mbsinit (Depends-on): Likewise.
17029         * modules/mbsnrtowcs (Depends-on): Likewise.
17030         * modules/mbsrtowcs (Depends-on): Likewise.
17031         * modules/mbtowc (Depends-on): Likewise.
17032         * modules/memcmp (Depends-on): Likewise.
17033         * modules/mkdir (Depends-on): Likewise.
17034         * modules/mkdtemp (Depends-on): Likewise.
17035         * modules/mkfifo (Depends-on): Likewise.
17036         * modules/mkfifoat (Depends-on): Likewise.
17037         * modules/mknod (Depends-on): Likewise.
17038         * modules/mkostemp (Depends-on): Likewise.
17039         * modules/mkostemps (Depends-on): Likewise.
17040         * modules/mkstemp (Depends-on): Likewise.
17041         * modules/mkstemps (Depends-on): Likewise.
17042         * modules/mktime (Depends-on): Likewise.
17043         * modules/nanosleep (Depends-on): Likewise.
17044         * modules/open (Depends-on): Likewise.
17045         * modules/openat (Depends-on): Likewise.
17046         * modules/perror (Depends-on): Likewise.
17047         * modules/poll (Depends-on): Likewise.
17048         * modules/popen (Depends-on): Likewise.
17049         * modules/posix_spawn (Depends-on): Likewise.
17050         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17051         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17052         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17053         * modules/posix_spawnp (Depends-on): Likewise.
17054         * modules/pread (Depends-on): Likewise.
17055         * modules/printf-posix (Depends-on): Likewise.
17056         * modules/ptsname (Depends-on): Likewise.
17057         * modules/putenv (Depends-on): Likewise.
17058         * modules/pwrite (Depends-on): Likewise.
17059         * modules/readline (Depends-on): Likewise.
17060         * modules/readlink (Depends-on): Likewise.
17061         * modules/readlinkat (Depends-on): Likewise.
17062         * modules/recv (Depends-on): Likewise.
17063         * modules/recvfrom (Depends-on): Likewise.
17064         * modules/regex (Depends-on): Likewise.
17065         * modules/remove (Depends-on): Likewise.
17066         * modules/rename (Depends-on): Likewise.
17067         * modules/renameat (Depends-on): Likewise.
17068         * modules/rmdir (Depends-on): Likewise.
17069         * modules/round (Depends-on): Likewise.
17070         * modules/roundf (Depends-on): Likewise.
17071         * modules/roundl (Depends-on): Likewise.
17072         * modules/rpmatch (Depends-on): Likewise.
17073         * modules/select (Depends-on): Likewise.
17074         * modules/send (Depends-on): Likewise.
17075         * modules/sendto (Depends-on): Likewise.
17076         * modules/setenv (Depends-on): Likewise.
17077         * modules/setlocale (Depends-on): Likewise.
17078         * modules/setsockopt (Depends-on): Likewise.
17079         * modules/shutdown (Depends-on): Likewise.
17080         * modules/sigaction (Depends-on): Likewise.
17081         * modules/signbit (Depends-on): Likewise.
17082         * modules/sigprocmask (Depends-on): Likewise.
17083         * modules/sinl (Depends-on): Likewise.
17084         * modules/sleep (Depends-on): Likewise.
17085         * modules/snprintf (Depends-on): Likewise.
17086         * modules/snprintf-posix (Depends-on): Likewise.
17087         * modules/socket (Depends-on): Likewise.
17088         * modules/sprintf-posix (Depends-on): Likewise.
17089         * modules/sqrtl (Depends-on): Likewise.
17090         * modules/stat (Depends-on): Likewise.
17091         * modules/strchrnul (Depends-on): Likewise.
17092         * modules/strdup-posix (Depends-on): Likewise.
17093         * modules/strerror (Depends-on): Likewise.
17094         * modules/strerror_r-posix (Depends-on): Likewise.
17095         * modules/strndup (Depends-on): Likewise.
17096         * modules/strnlen (Depends-on): Likewise.
17097         * modules/strptime (Depends-on): Likewise.
17098         * modules/strsep (Depends-on): Likewise.
17099         * modules/strsignal (Depends-on): Likewise.
17100         * modules/strstr-simple (Depends-on): Likewise.
17101         * modules/strtod (Depends-on): Likewise.
17102         * modules/strtoimax (Depends-on): Likewise.
17103         * modules/strtok_r (Depends-on): Likewise.
17104         * modules/strtoumax (Depends-on): Likewise.
17105         * modules/symlink (Depends-on): Likewise.
17106         * modules/symlinkat (Depends-on): Likewise.
17107         * modules/tanl (Depends-on): Likewise.
17108         * modules/tcgetsid (Depends-on): Likewise.
17109         * modules/tmpfile (Depends-on): Likewise.
17110         * modules/trunc (Depends-on): Likewise.
17111         * modules/truncf (Depends-on): Likewise.
17112         * modules/truncl (Depends-on): Likewise.
17113         * modules/uname (Depends-on): Likewise.
17114         * modules/unlink (Depends-on): Likewise.
17115         * modules/unlockpt (Depends-on): Likewise.
17116         * modules/unsetenv (Depends-on): Likewise.
17117         * modules/usleep (Depends-on): Likewise.
17118         * modules/utimensat (Depends-on): Likewise.
17119         * modules/vasprintf (Depends-on): Likewise.
17120         * modules/vdprintf (Depends-on): Likewise.
17121         * modules/vdprintf-posix (Depends-on): Likewise.
17122         * modules/vfprintf-posix (Depends-on): Likewise.
17123         * modules/vprintf-posix (Depends-on): Likewise.
17124         * modules/vsnprintf (Depends-on): Likewise.
17125         * modules/vsnprintf-posix (Depends-on): Likewise.
17126         * modules/vsprintf-posix (Depends-on): Likewise.
17127         * modules/wcrtomb (Depends-on): Likewise.
17128         * modules/wcscasecmp (Depends-on): Likewise.
17129         * modules/wcscspn (Depends-on): Likewise.
17130         * modules/wcsdup (Depends-on): Likewise.
17131         * modules/wcsncasecmp (Depends-on): Likewise.
17132         * modules/wcsnrtombs (Depends-on): Likewise.
17133         * modules/wcspbrk (Depends-on): Likewise.
17134         * modules/wcsrtombs (Depends-on): Likewise.
17135         * modules/wcsspn (Depends-on): Likewise.
17136         * modules/wcsstr (Depends-on): Likewise.
17137         * modules/wcstok (Depends-on): Likewise.
17138         * modules/wcswidth (Depends-on): Likewise.
17139         * modules/wctob (Depends-on): Likewise.
17140         * modules/wctomb (Depends-on): Likewise.
17141         * modules/wctype (Depends-on): Likewise.
17142         * modules/wcwidth (Depends-on): Likewise.
17143         * modules/write (Depends-on): Likewise.
17144
17145 2011-05-03  Bruno Haible  <bruno@clisp.org>
17146
17147         Support for conditional dependencies.
17148         * doc/gnulib.texi (Module description): Document the syntax of
17149         conditional dependencies.
17150         * gnulib-tool: New option --conditional-dependencies.
17151         (func_usage): Document it.
17152         (cond_dependencies): New variable.
17153         (func_get_automake_snippet_conditional,
17154         func_get_automake_snippet_unconditional): New functions, extracted from
17155         func_get_automake_snippet.
17156         (func_get_automake_snippet): Use them.
17157         (sed_first_32_chars): New variable.
17158         (func_module_shellfunc_name): New function.
17159         (func_module_shellvar_name): New function.
17160         (func_module_conditional_name): New function.
17161         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17162         func_cond_module_condition): New functions.
17163         (func_modules_transitive_closure): Add support for conditional
17164         dependencies.
17165         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17166         conditional automake snippet in an automake conditional.
17167         (func_emit_autoconf_snippets): Emit shell functions that contain the
17168         code for conditional modules.
17169         (func_import, func_create_testdir): Update specification.
17170
17171 2011-05-03  Eric Blake  <eblake@redhat.com>
17172
17173         test-getaddrinfo: report error information
17174         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17175
17176 2011-05-03  Jim Meyering  <meyering@redhat.com>
17177
17178         bootstrap: avoid build failure when $GZIP is set
17179         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17180         program name.  If defined at all, it is supposed to list gzip options.
17181         Reported by Alan Curry in http://debbugs.gnu.org/8609
17182
17183 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17184
17185         readme-release: new module with release instructions
17186         * modules/readme-release: New module.
17187         * top/README-release: New file, from coreutils, grep, diffutils.
17188         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17189
17190 2011-05-02  Eric Blake  <eblake@redhat.com>
17191
17192         fflush: also replace fclose when fixing fflush
17193         * modules/fflush (Depends-on): Add fclose.
17194         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17195         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17196         memstreams with no backing fd.
17197         * doc/posix-functions/fclose.texi (fclose): Document the use of
17198         fflush module to fix the bug.
17199         * tests/test-fclose.c (main): Relax test when fclose is used in
17200         isolation.
17201
17202         fclose: add some tests
17203         * modules/fclose-tests: New test module.
17204         * tests/test-fclose.c: New file.
17205         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17206
17207         fclose: reduced dependencies
17208         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17209         simpler lseek.
17210         * lib/fclose.c (rpl_fclose): Likewise.
17211         Reported by Simon Josefsson.
17212
17213         exit: drop remaining clients
17214         * modules/argmatch (Depends-on): Replace exit with stdlib.
17215         * modules/copy-file (Depends-on): Likewise.
17216         * modules/execute (Depends-on): Likewise.
17217         * modules/exitfail (Depends-on): Likewise.
17218         * modules/obstack (Depends-on): Likewise.
17219         * modules/pagealign_alloc (Depends-on): Likewise.
17220         * modules/pipe-filter-gi (Depends-on): Likewise.
17221         * modules/pipe-filter-ii (Depends-on): Likewise.
17222         * modules/savewd (Depends-on): Likewise.
17223         * modules/spawn-pipe (Depends-on): Likewise.
17224         * modules/wait-process (Depends-on): Likewise.
17225         * modules/xsetenv (Depends-on): Likewise.
17226         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17227         * modules/git-merge-changelog (Depends-on): Likewise.
17228         * modules/long-options (Depends-on): Likewise.
17229         * modules/pt_chown (Depends-on): Likewise.
17230         * modules/sysexits (Depends-on): Likewise.
17231
17232         freading: relax license from LGPLv3+ to LGPLv2+
17233         * modules/freading (License): Relax LGPL version.
17234
17235 2011-05-02  Bruno Haible  <bruno@clisp.org>
17236
17237         fchdir: Remove unused dependencies.
17238         * modules/fchdir (Depends-on): Remove include_next.
17239
17240 2011-05-02  Bruno Haible  <bruno@clisp.org>
17241
17242         gnulib-tool: Refactor.
17243         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17244         from func_emit_autoconf_snippets.
17245         (func_emit_autoconf_snippets): Use it.
17246
17247 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17248
17249         * NEWS: Document removal of 'exit'.
17250         * modules/exit: Remove file.
17251
17252 2011-05-01  Bruno Haible  <bruno@clisp.org>
17253
17254         Update DEPENDENCIES.
17255         * DEPENDENCIES (gettext): Recommend the newest release.
17256         Reported by Simon Josefsson.
17257
17258 2011-05-01  Bruno Haible  <bruno@clisp.org>
17259
17260         gnulib-tool: Reduce code duplication.
17261         * gnulib-tool (func_emit_autoconf_snippets): New function.
17262         (func_import, func_create_testdir): Use it.
17263
17264 2011-04-30  Eric Blake  <eblake@redhat.com>
17265
17266         fclose: don't fail on non-seekable input stream
17267         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17268         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17269         since fflush is allowed to fail in that case.
17270
17271 2011-04-30  Bruno Haible  <bruno@clisp.org>
17272
17273         dup3: cleanup
17274         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17275
17276 2011-04-30  Bruno Haible  <bruno@clisp.org>
17277
17278         netdb: Make it work in C++ mode.
17279         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17280         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17281         module.
17282         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17283         gl_MODULE_INDICATOR_FOR_TESTS.
17284         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17285         * modules/netdb-c++-tests: New file.
17286         * tests/test-netdb-c++.cc: New file.
17287
17288 2011-04-30  Bruno Haible  <bruno@clisp.org>
17289
17290         New modules 'vfscanf', 'vscanf'.
17291         * modules/vfscanf: New file.
17292         * modules/vscanf: New file.
17293         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17294         here.
17295         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17296         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17297
17298 2011-04-30  Bruno Haible  <bruno@clisp.org>
17299
17300         passfd: Add comments.
17301         * lib/passfd.c: Add comments about platforms.
17302
17303 2011-04-30  Bruno Haible  <bruno@clisp.org>
17304
17305         sys_uio: Make <sys/uio.h> self-contained.
17306         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17307         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17308
17309 2011-04-30  Bruno Haible  <bruno@clisp.org>
17310
17311         sys_socket: Ensure 'struct iovec' definition.
17312         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17313         <sys/socket.h>.
17314         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17315
17316 2011-04-30  Bruno Haible  <bruno@clisp.org>
17317
17318         sys_uio: Protect definition of 'struct iovec'.
17319         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17320         it as a C struct.
17321
17322 2011-04-30  Bruno Haible  <bruno@clisp.org>
17323
17324         manywarnings: fix indentation
17325         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17326
17327 2011-04-30  Pádraig Brady <P@draigBrady.com>
17328
17329         manywarnings: add -Wno-missing-field-initializers if needed.
17330         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17331         option if it's needed to allow initialization with { 0, }
17332
17333 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17334
17335         announce-gen: cosmetic improvement
17336         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17337
17338 2011-04-29  Jim Meyering  <meyering@redhat.com>
17339
17340         vc-list-files: indent with spaces, not TABs
17341         * build-aux/vc-list-files: Convert leading TABs to spaces,
17342         to match the style of most other files in gnulib.
17343
17344         announce-gen: indent with spaces, not TABs
17345         * build-aux/announce-gen: Convert all TABs to spaces, to match
17346         the style of most other files in gnulib.
17347
17348 2011-04-29  Eric Blake  <eblake@redhat.com>
17349
17350         quotearg: avoid uninitialized variable use
17351         * lib/quotearg.c (quoting_options_from_style): Initialize
17352         remaining fields, and ensure that custom styles are only used via
17353         quoting_options rather than quoting_style.
17354
17355 2011-04-29  Jim Meyering  <meyering@redhat.com>
17356
17357         maint.mk: remove unused VC-tag variable
17358         * top/maint.mk (VC-tag): Remove unused variable.
17359
17360 2011-04-29  Bruno Haible  <bruno@clisp.org>
17361
17362         netdb: fix gai_strerror replacements
17363         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17364         * modules/netdb: Substitute it.
17365
17366 2011-04-29  Jim Meyering  <meyering@redhat.com>
17367
17368         test-getcwd.c: avoid new set-but-not-used warning
17369         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17370         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17371         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17372         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17373
17374         test-hash.c: avoid a new shadowing warning
17375         * tests/test-hash.c (main): Don't shadow "dup".
17376
17377 2011-04-28  Eric Blake  <eblake@redhat.com>
17378
17379         getaddrinfo: fix gai_strerror signature
17380         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17381         and work around mingw with UNICODE defined.
17382         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17383         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17384         * modules/netdb (Makefile.am): Substitute it.
17385         * lib/netdb.in.h (gai_strerror): Declare replacement.
17386         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17387         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17388         the fix.
17389
17390         getsockopt: avoid compiler warning
17391         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17392         Reported by Matthias Bolte.
17393
17394         tests: drop unused link dependency
17395         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17396         * modules/dirent-safer-tests (Makefile.am): Likewise.
17397         * modules/fdopendir-tests (Makefile.am): Likewise.
17398         * modules/mkfifoat-tests (Makefile.am): Likewise.
17399         * modules/openat-safer-tests (Makefile.am): Likewise.
17400         * modules/openat-tests (Makefile.am): Likewise.
17401         * modules/readlinkat-tests (Makefile.am): Likewise.
17402         * modules/symlinkat-tests (Makefile.am): Likewise.
17403         * modules/linkat-tests (Makefile.am): Likewise.
17404         (Depends-on): Switch to filenamecat-lgpl.
17405         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17406         LIBINTL.
17407         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17408         * tests/test-linkat.c (main): Don't require xalloc.
17409
17410         hash, mgetgroups: drop xalloc dependency
17411         * lib/hash.c (includes): Adjust includes.
17412         * lib/mgetgroups.c (includes): Likewise.
17413         (xgetgroups): Move...
17414         * lib/xgetgroups.c: ...to new file.
17415         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17416         * modules/xgetgroups: New file, split from...
17417         * modules/mgetgroups: ...here.
17418         (Depends-on): Add xalloc-oversized.
17419         * modules/hash (Depends-on): Likewise.
17420         * modules/hash-tests (Depends-on): Drop xalloc.
17421         (test_hash_LDADD): Drop unused library.
17422         * tests/test-hash.c (main): Break xalloc dependency.
17423         (includes): Drop unused include.
17424
17425         xalloc-oversized: new module
17426         * modules/xalloc-oversized: New module.
17427         * modules/xalloc (Depends-on): Add it.
17428         * lib/xalloc.h (xalloc_oversized): Move...
17429         * lib/xalloc-oversized.h: ...into new file.
17430
17431         utimecmp: drop dependency on xmalloc
17432         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17433         due to memory pressure.
17434         * modules/utimecmp (Depends-on): Drop xalloc.
17435
17436 2011-04-27  Eric Blake  <eblake@redhat.com>
17437
17438         getcwd: fix mingw bugs
17439         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17440         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17441         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17442
17443 2011-04-27  Bruno Haible  <bruno@clisp.org>
17444
17445         mkstemps: Ensure declaration on MacOS X 10.5.
17446         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17447         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17448         MacOS X.
17449
17450 2011-04-27  Bruno Haible  <bruno@clisp.org>
17451
17452         mkstemp: More documentation.
17453         * doc/posix-functions/mkstemp.texi: Document header file problem on
17454         MacOS X.
17455
17456 2011-04-27  Bruno Haible  <bruno@clisp.org>
17457
17458         mkstemp: Tweak configure message when cross-compiling.
17459         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17460         result as a guess.
17461
17462 2011-04-27  Bruno Haible  <bruno@clisp.org>
17463
17464         clean-temp: Clarify what it does.
17465         * lib/clean-temp.h: Add more comments.
17466         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17467         module.
17468         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17469         * doc/glibc-functions/mkstemps.texi: Likewise.
17470         * doc/glibc-functions/mkostemps.texi: Likewise.
17471
17472 2011-04-27  Eric Blake  <eblake@redhat.com>
17473
17474         fchdir: avoid extra chdir and fix test
17475         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17476         getcwd-lgpl.
17477         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17478         have to be canonical.
17479         (canonicalize_file_name): Drop unused macro.
17480         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17481
17482         filenamecat-lgpl: fix licence
17483         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17484         when it was first created.
17485
17486         linkat, renameat: add missing dependency
17487         * modules/linkat (Depends-on): Require getcwd-lgpl.
17488         * modules/renameat (Depends-on): Likewise.
17489
17490         tests: reduce dependencies
17491         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17492         * tests/test-renameat.c (main): Likewise.
17493         * modules/linkat-tests (Depends-on): Relax dependency.
17494         * modules/renameat-tests (Depends-on): Likewise.
17495         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17496         dependency explicit.
17497
17498         save-cwd: reduce default dependency
17499         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17500         * lib/save-cwd.c: Update comments.
17501         * NEWS: Document the semantic change.
17502
17503         getcwd: enhance tests
17504         * tests/test-getcwd-lgpl.c: New file, taken from...
17505         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17506         repeat long path stress tests from m4 probe.
17507         * modules/getcwd-lgpl-tests: New module.
17508         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17509         * m4/getcwd-abort-bug.m4: Update comment.
17510         * m4/getcwd-path-max.m4: Likewise.
17511
17512         getcwd-lgpl: new module
17513         * modules/getcwd-lgpl: New module.
17514         * lib/getcwd-lgpl.c: New file.
17515         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17516         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17517         * modules/getcwd (configure.ac): Set C witness.
17518         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17519
17520         getcwd: tweak comments
17521         * m4/getcwd-abort-bug.m4: Fix comments.
17522         * m4/getcwd-path-max.m4: Likewise.
17523         * m4/getcwd.m4: Likewise.
17524
17525 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17526         and Eric Blake  <eblake@redhat.com>
17527
17528         mkstemp: replace if system version uses wrong permissions
17529         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17530         read/write mode bits set in file created by mkstemp.
17531         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17532
17533 2011-04-27  Eric Blake  <eblake@redhat.com>
17534
17535         passfd: avoid compiler warning
17536         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17537         Reported by Laine Stump.
17538
17539 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17540
17541         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17542         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17543
17544 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17545         and Eric Blake  <eblake@redhat.com>
17546
17547         mkstemp: mention clean-temp module
17548         * lib/mkstemp.c: Add comment.
17549         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17550
17551 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17552
17553         inttypes: also provide default values for 32-bit tests
17554         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17555         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17556
17557 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17558
17559         strtoumax: remove dependency on strtoimax
17560         This is like the strtoull change of yesterday.
17561         * modules/strtoumax (Files): Add lib/strtoimax.c.
17562         (Depends-on): Remove strtoimax and add verify.
17563
17564         inttypes-incomplete: new module
17565         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17566         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17567         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17568         of gl_INTTYPES_H.
17569         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17570         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17571         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17572         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17573         * modules/strtoumax, modules/xstrtol (Depends-on):
17574         Depend on inttypes-incomplete, not inttypes.
17575         * modules/inttypes-incomplete: New module, containing the contents
17576         of the old modules/inttypes module, except that the Files: section
17577         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17578         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17579         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17580         (Depends-on): Depend only on inttypes-incomplete.
17581         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17582
17583         inttypes: omit now-redundant strtoimax and strtoumax work
17584         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17585         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17586
17587         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17588         This supports apps that need pointers to strtoimax and strtoumax,
17589         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17590         nonexistent functions.  See
17591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17592         et seq.
17593         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17594         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17595         a macro.
17596         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17597
17598 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17599
17600         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17601
17602 2011-04-25  Bruno Haible  <bruno@clisp.org>
17603
17604         strtol, strtoul: Mark modules as obsolete.
17605         * modules/strtol (Status, Notice): New sections.
17606         * modules/strtoul (Status, Notice): New sections.
17607
17608 2011-04-25  Bruno Haible  <bruno@clisp.org>
17609
17610         strtod: Remove check for strtod, unless supporting old platforms.
17611         * modules/strtod-obsolete: New file.
17612         * m4/strtod-obsolete.m4: New file.
17613         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17614         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17615         * modules/strtod (Depends-on): Add strtod-obsolete.
17616         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17617
17618 2011-04-25  Bruno Haible  <bruno@clisp.org>
17619
17620         strcase: Make module obsolete.
17621         * modules/strcase (Status, Notice): New sections.
17622
17623 2011-04-25  Bruno Haible  <bruno@clisp.org>
17624
17625         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17626         * modules/dup2-obsolete: New file.
17627         * m4/dup2-obsolete.m4: New file.
17628         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17629         gl_FUNC_DUP2_OBSOLETE is not also defined.
17630         * modules/dup2 (Depends-on): Add dup2-obsolete.
17631         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17632
17633 2011-04-25  Bruno Haible  <bruno@clisp.org>
17634
17635         strnlen: Avoid memchr related link error on old obsolete platforms.
17636         * modules/memchr-obsolete: New file.
17637         * m4/memchr-obsolete.m4: New file.
17638         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17639         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17640         * modules/memchr (Depends-on): Add memchr-obsolete.
17641         * modules/strnlen (Depends-on): Likewise.
17642         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17643
17644 2011-04-25  Jim Meyering  <meyering@redhat.com>
17645
17646         maint.mk: makefile_at_at_check extend and clean up
17647         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17648         in addition to */Makefile.am.
17649         Exempt legitimate uses of @VAR@ notation, e.g.,
17650         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17651         Remove obsolete coreutils-specific comment.
17652         Prompted by discussion here:
17653         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17654
17655 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17656
17657         strtoul: remove dependency on strtol
17658         This is so that 'configure' need not check for strtol merely because
17659         the application needs strtoul.
17660         * modules/strtoul (Files): Add lib/strtol.c.
17661         (Depends-on): Remove strtol.
17662
17663         strtoull: remove dependency on strtoul
17664         This is like the strtoll change.
17665         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17666         (Depends-on): Remove strtoul.
17667
17668         strtoll: remove dependency on strtol
17669         This is so that 'configure' need not check for strtol merely because
17670         the application needs strtoll.
17671         * modules/strtoll (Files): Add lib/strtol.c.
17672         (Depends-on): Remove strtol.
17673
17674 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17675
17676         inttypes: Move some configure check to module 'imaxdiv'.
17677         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17678         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17679         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17680
17681 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17682
17683         inttypes: Move some configure check to module 'imaxabs'.
17684         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17685         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17686         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17687
17688 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17689
17690         inttypes: Remove configure tests that are not needed since 2009-12-31.
17691         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17692         gl_cv_header_working_inttypes_h.
17693
17694 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17695
17696         * modules/strnlen (Depends-on): Remove memchr.
17697         The strnlen implementation doesn't need the memchr module's fixes; see
17698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17699
17700         strtol: remove dependency on wchar
17701         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17702         * modules/strtol (Depends-on): Remove wchar.
17703
17704 2011-04-21  Eric Blake  <eblake@redhat.com>
17705
17706         passfd: fix test regression on Linux
17707         * modules/passfd-tests (configure.ac): Correct socketpair check.
17708
17709         passfd: speed up configure and drop unused code
17710         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17711         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17712         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17713         Instead of probing at configure for unix_scm_rights_bsd44_way,
17714         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17715         check to a struct member probe.
17716         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17717         (sendfd, recvfd): Update preprocessor checks.
17718         * modules/passfd (Files): Reflect rename, and drop unused file.
17719         (Depends-on): Drop unused dependency.
17720
17721         passfd: allow compilation on mingw
17722         * modules/sys_socket (Depends-on): Add sys_uio.
17723         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17724         iovec and a minimal struct msghdr.
17725         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17726         * tests/test-sys_socket.c (main): Enhance test.
17727         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17728         guaranteed to provide what we need.
17729         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17730         * modules/passfd-tests (Depends-on): Add sys_wait.
17731         * tests/test-passfd.c (main): Skip test on mingw, for now.
17732         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17733         partial 'struct msghdr' implementation.
17734
17735         sys_uio: new module
17736         * modules/sys_uio: New module.
17737         * modules/sys_uio-tests: Likewise.
17738         * lib/sys_uio.in.h: New file.
17739         * m4/sys_uio_h.m4: Likewise.
17740         * tests/test-sys_uio.c: Likewise.
17741         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17742         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17743
17744 2011-04-20  Jim Meyering  <meyering@redhat.com>
17745
17746         useless-if-before-free: avoid false-positive
17747         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17748         disjunct so that it too requires a terminating ";".  Without that,
17749         this script would identify as useless one statement from gcc that
17750         was not:
17751           if (aligned_ptr)
17752             free (((void **) aligned_ptr) [-1]);
17753
17754 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17755
17756         doc: update users.txt.
17757         * users.txt: Add barcode.
17758
17759 2011-04-19  Bruno Haible  <bruno@clisp.org>
17760
17761         ioctl: Remove link dependency on native Windows.
17762         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17763         (gl_close_fn, gl_ioctl_fn): New types.
17764         (struct fd_hook): Renamed from struct close_hook. Change type of
17765         private_close_fn field. Add private_ioctl_fn field.
17766         (close_hook_fn): Add parameter for primary close method.
17767         (execute_close_hooks, execute_all_close_hooks): Likewise.
17768         (ioctl_hook_fn): New type.
17769         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17770         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17771         argument.
17772         (unregister_fd_hook): Renamed from unregister_close_hook.
17773         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17774         Don't include <unistd.h>.
17775         (close): Remove undef.
17776         (anchor): Update.
17777         (execute_close_hooks): Add argument for primary close method.
17778         (execute_all_close_hooks): Likewise.
17779         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17780         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17781         argument. Allow each argument to be NULL.
17782         (unregister_fd_hook): Renamed from unregister_close_hook.
17783         * lib/close.c (rpl_close): Pass 'close' function pointer to
17784         execute_all_close_hooks.
17785         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17786         (primary_ioctl): New function.
17787         (ioctl): Don't call ioctlsocket here. Instead, call
17788         execute_all_ioctl_hooks.
17789         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17790         close method.
17791         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17792         (fd_sockets_hook): Renamed from close_sockets_hook.
17793         (gl_sockets_startup, gl_sockets_cleanup): Update.
17794         * modules/fd-hook: Renamed from modules/close-hook. Update.
17795         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17796         * modules/sockets (Depends-on): Likewise.
17797         * modules/ioctl (Depends-on): Add fd-hook.
17798         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17799         GNULIB_SOCKET.
17800
17801 2011-04-19  Bruno Haible  <bruno@clisp.org>
17802
17803         Move the support of O_NONBLOCK in open() to the 'open' module.
17804         * modules/nonblocking (Depends-on): Remove 'open'.
17805         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17806         gl_cv_have_open_O_NONBLOCK.
17807         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17808         O_NONBLOCK support.
17809         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17810
17811 2011-04-17  Bruno Haible  <bruno@clisp.org>
17812
17813         pipe2: Simplify code.
17814         * lib/pipe2.c (pipe2): Reduce code duplication.
17815
17816 2011-04-17  Bruno Haible  <bruno@clisp.org>
17817
17818         nonblocking: Add comment.
17819         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17820
17821 2011-04-17  Bruno Haible  <bruno@clisp.org>
17822
17823         nonblocking: Add tests for sockets.
17824         * tests/test-nonblocking-socket.sh: New file.
17825         * tests/test-nonblocking-socket-main.c: New file.
17826         * tests/test-nonblocking-socket-child.c: New file.
17827         * tests/test-nonblocking-socket.h: New file.
17828         * tests/socket-server.h: New file.
17829         * tests/socket-client.h: New file.
17830         * modules/nonblocking-socket-tests: New file.
17831         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17832
17833 2011-04-17  Bruno Haible  <bruno@clisp.org>
17834
17835         nonblocking: Add tests for pipes.
17836         * tests/test-nonblocking-pipe.sh: New file.
17837         * tests/test-nonblocking-pipe-main.c: New file.
17838         * tests/test-nonblocking-pipe-child.c: New file.
17839         * tests/test-nonblocking-pipe.h: New file.
17840         * tests/test-nonblocking-writer.h: New file.
17841         * tests/test-nonblocking-reader.h: New file.
17842         * tests/test-nonblocking-misc.h: New file.
17843         * modules/nonblocking-pipe-tests: New file.
17844         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17845
17846 2011-04-16  Bruno Haible  <bruno@clisp.org>
17847
17848         gettext: Clarify the needed programmer actions.
17849         * modules/gettext (Notice): New field.
17850         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17851
17852 2011-04-16  Bruno Haible  <bruno@clisp.org>
17853
17854         strchrnul: Tweak last commit.
17855         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17856         bug.
17857         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17858         as in _GL_FUNCDECL_SYS.
17859         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17860         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17861
17862 2011-04-15  Eric Blake  <eblake@redhat.com>
17863
17864         strchrnul: work around cygwin bug
17865         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17866         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17868         * modules/string (Makefile.am): Substitute it.
17869         * lib/string.in.h (strchrnul): Use it.
17870
17871 2011-04-15  Bruno Haible  <bruno@clisp.org>
17872
17873         Don't require lib/stdio-write.c when only module 'stdio' is used.
17874         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17875         invocation.
17876         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17877
17878 2011-04-14  Bruno Haible  <bruno@clisp.org>
17879
17880         Support non-blocking pipe I/O in read() on native Windows.
17881         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17882         (read): New declaration.
17883         * lib/read.c: New file.
17884         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17885         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17886         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17887         vscanf): New declarations.
17888         * lib/stdio-read.c: New file.
17889         * m4/read.m4: New file.
17890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17891         REPLACE_READ.
17892         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17893         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17894         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17895         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17896         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17897         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17898         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17899         * modules/read: New file.
17900         * modules/nonblocking (Files): Add lib/stdio-read.c.
17901         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17902         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17903         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17904         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17905         * modules/pread (Depends-on): Add read.
17906         * modules/safe-read (Depends-on): Likewise.
17907         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17908         gets, scanf, vfscanf, vscanf): Verify signatures.
17909         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17910         problem with non-blocking pipes.
17911         * doc/posix-functions/fgetc.texi: Likewise.
17912         * doc/posix-functions/fgets.texi: Likewise.
17913         * doc/posix-functions/fread.texi: Likewise.
17914         * doc/posix-functions/fscanf.texi: Likewise.
17915         * doc/posix-functions/getc.texi: Likewise.
17916         * doc/posix-functions/getchar.texi: Likewise.
17917         * doc/posix-functions/gets.texi: Likewise.
17918         * doc/posix-functions/scanf.texi: Likewise.
17919         * doc/posix-functions/vfscanf.texi: Likewise.
17920         * doc/posix-functions/vscanf.texi: Likewise.
17921
17922 2011-04-14  Bruno Haible  <bruno@clisp.org>
17923
17924         Support non-blocking pipe I/O in write() on native Windows.
17925         * lib/write.c (rpl_write): Split a write request that failed merely
17926         because the byte count was larger than the pipe buffer's size.
17927         * doc/posix-functions/write.texi: Mention the problem with large byte
17928         counts.
17929
17930 2011-04-14  Bruno Haible  <bruno@clisp.org>
17931
17932         wchar: Ensure that wchar_t gets defined on uClibc.
17933         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17934         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17935
17936 2011-04-13  Bruno Haible  <bruno@clisp.org>
17937
17938         safe-write, full-read: Avoid unnecessary compilation units.
17939         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17940         (Depends-on): Remove safe-read. Add ssize_t.
17941         * modules/full-read (Files): Add lib/full-write.c.
17942         (Depends-on): Add full-write.
17943
17944 2011-04-13  Bruno Haible  <bruno@clisp.org>
17945
17946         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17947         * modules/pwrite (Depends-on): Add 'write'.
17948
17949 2011-04-13  Bruno Haible  <bruno@clisp.org>
17950
17951         Support non-blocking pipe I/O in write() on native Windows.
17952         * lib/unistd.in.h (write): Enable replacement also if
17953         GNULIB_UNISTD_H_NONBLOCKING is 1.
17954         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17955         (rpl_write): When failing to write on a non-blocking pipe, change
17956         errno from ENOSPC to EAGAIN.
17957         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17958         putchar, puts, vfprintf, vprintf): Enable replacement also if
17959         GNULIB_STDIO_H_NONBLOCKING is 1.
17960         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17961         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17962         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17963         CALL_WITH_SIGPIPE_EMULATION.
17964         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17965         * m4/nonblocking.m4: New file.
17966         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17967         for non-blocking I/O support.
17968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17969         GNULIB_UNISTD_H_NONBLOCKING.
17970         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17971         required for non-blocking I/O support.
17972         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17973         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17974         lib/stdio-write.c, m4/asm-underscore.m4.
17975         (Depends-on): Add stdio, unistd.
17976         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17977         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17978         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17979         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17980         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17981         problem with non-blocking pipes.
17982         * doc/posix-functions/fputc.texi: Likewise.
17983         * doc/posix-functions/fputs.texi: Likewise.
17984         * doc/posix-functions/fwrite.texi: Likewise.
17985         * doc/posix-functions/printf.texi: Likewise.
17986         * doc/posix-functions/putc.texi: Likewise.
17987         * doc/posix-functions/putchar.texi: Likewise.
17988         * doc/posix-functions/puts.texi: Likewise.
17989         * doc/posix-functions/vfprintf.texi: Likewise.
17990         * doc/posix-functions/vprintf.texi: Likewise.
17991         * doc/posix-functions/write.texi: Likewise.
17992
17993 2011-04-10  Jim Meyering  <meyering@redhat.com>
17994
17995         maint.mk: prohibit doubled words
17996         Detect them also when they're separated by a newline.
17997         There are 3 ways to customize it:
17998           - disable the test on a per file basis, as usual with rules using
17999             $(VC_LIST_EXCEPT)
18000           - replace the default doubled-word-selecting regexp (affects all files)
18001           - ignore a particular file-vs-doubled-word match
18002         I nearly used that last one to ignore the "is is" match in
18003         coreutils' NEWS file, since the text was "ls -is is ..."
18004         To do that, I would have added this line to cfg.mk:
18005           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18006         but it would have ignored any "is is" match in NEWS.
18007         Low probability, but still...
18008         Instead, I changed the text, slightly:
18009           -  ls -is is now consistent with ls -lis in ignoring values returned
18010           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18011         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18012         (prohibit_doubled_word_): Define.
18013         (sc_prohibit_doubled_word): New rule.
18014         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18015
18016 2011-04-10  Jim Meyering  <meyering@redhat.com>
18017
18018         maint: fix doubled-word typo in comment
18019         * m4/gethostname.m4: s/is is/it is/
18020         * m4/getdomainname.m4: Likewise.
18021
18022 2011-04-10  Jim Meyering  <meyering@redhat.com>
18023
18024         maint: remove doubled word: s/it it/it/
18025         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18026
18027 2011-04-10  Jim Meyering  <meyering@redhat.com>
18028
18029         maint.mk: remove useless semicolon and backslash
18030         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18031         semicolon and backslash.
18032
18033 2011-04-10  Bruno Haible  <bruno@clisp.org>
18034
18035         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18036         * modules/stdint-tests (Depends-on): Add wchar.
18037
18038 2011-04-10  Jim Meyering  <meyering@redhat.com>
18039
18040         maint: remove doubled words in comments, e.g., s/a a/a/
18041         * lib/strptime.c (day_of_the_week): s/the the/the/
18042         * tests/test-chown.h (test_chown): s/a a/a/
18043
18044         test-chown.h: correct a cast
18045         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18046         when the destination is a stat.st_gid.
18047
18048 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18049
18050         getaddrinfo: Fix test for sa_len member.
18051         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18052         include <sys/types.h> before <sys/socket.h>.
18053
18054 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18055
18056         maint: change "can not" to "cannot"
18057         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18058         boundaries.
18059
18060 2011-04-09  Jim Meyering  <meyering@redhat.com>
18061
18062         maint: change "a a" to "a"
18063         * tests/test-lchown.h (test_lchown): s/a a/a/
18064
18065         maint.mk: prohibit \<the the\>
18066         * top/maint.mk (sc_prohibit_the_the): New rule.
18067
18068         maint: fix "the the" in comment
18069         * lib/count-one-bits.h: s/the the/the/
18070
18071         maint: change "can not" to "cannot"
18072         But do not change the occurrences in maintain.texi or in
18073         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18074         * doc/gnulib-tool.texi: s/can not/cannot/
18075         * doc/posix-functions/accept.texi (accept): Likewise.
18076         * doc/posix-functions/socket.texi (socket): Likewise.
18077         * lib/mbrtowc.c: Likewise.
18078
18079         maint.mk: prohibit use of "can not"
18080         * top/maint.mk (sc_prohibit_can_not): New rule.
18081         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18082
18083 2011-04-09  Bruno Haible  <bruno@clisp.org>
18084
18085         careadlinkat: Guard against misuse of careadlinkatcwd.
18086         * lib/careadlinkat.c: Include <stdlib.h>.
18087         (careadlinkatcwd): Check that the fd argument is as expected.
18088
18089 2011-04-09  Bruno Haible  <bruno@clisp.org>
18090
18091         careadlinkat: Use common coding style.
18092         * lib/careadlinkat.c: Move gnulib includes after system includes.
18093
18094 2011-04-09  Bruno Haible  <bruno@clisp.org>
18095
18096         careadlinkat: Clarify specification.
18097         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18098         (careadlinkatcwd): Add comment.
18099         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18100
18101 2011-04-09  Bruno Haible  <bruno@clisp.org>
18102
18103         areadlinkat: Avoid link error on many platforms.
18104         * modules/areadlinkat (Depends-on): Add areadlink.
18105
18106 2011-04-09  Bruno Haible  <bruno@clisp.org>
18107
18108         allocator, careadlinkat: Fix double-inclusion guard.
18109         * lib/allocator.h: Fix double-inclusion guard.
18110         * lib/careadlinkat.h: Likewise.
18111
18112 2011-04-09  Bruno Haible  <bruno@clisp.org>
18113
18114         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18115         * lib/relocwrapper.c: Update dependencies hierarchy.
18116         * build-aux/install-reloc: Update list of files to be compiled.
18117         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18118         lib/allocator.[hc].
18119
18120 2011-04-08  Eric Blake  <eblake@redhat.com>
18121
18122         strftime: silence gnulib-tool warning
18123         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18124
18125 2011-04-08  Bruno Haible  <bruno@clisp.org>
18126
18127         verify: Fix syntax error with GCC 4.6 in C++ mode.
18128         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18129         (HAVE_STATIC_ASSERT): New macro.
18130         (verify_true, verify): Use 'static_assert' if it is supported and
18131         '_Static_assert' is not supported.
18132
18133 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18134
18135         allocator: New module.
18136         * modules/allocator, lib/allocator.c: New files.
18137         * lib/allocator.h (stdlib_allocator): New decl.
18138         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18139         Remove.  Do not include <stdlib.h>.
18140         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18141         * modules/careadlinkat (Files): Remove lib/allocator.h.
18142         (Depends-on): Add allocator.
18143
18144         stdlib: let modules use system malloc, realloc
18145         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18146         if !_GL_USE_STDLIB_ALLOC.
18147         (malloc, realloc): Limit this change to a smaller scope.
18148
18149         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18150         (malloc, realloc): Don't #undef; no longer needed.
18151         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18152         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18153         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18154         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18155         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18156         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18157         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18158         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18159
18160         careadlinkat: rename members to avoid problem
18161         * lib/allocator.h (struct allocator): Rename members from
18162         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18163         and realloc are #define'd.  Reported by Eric Blake in
18164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18165         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18166
18167 2011-04-08  Eric Blake  <eblake@redhat.com>
18168
18169         nonblocking: reduce dependency
18170         * tests/test-nonblocking.c: Only test sockets when in use.
18171         * modules/nonblocking-tests (Depends-on): Drop socket.
18172         (Makefile.am): Link even if sockets are not present.
18173         * modules/pipe2-tests (Makefile.am): Likewise.
18174         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18175
18176         pipe2: fix O_NONBLOCK support on mingw
18177         * modules/pipe2 (Depends-on): Add nonblocking.
18178         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18179         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18180         * tests/test-nonblocking.c (main): Likewise.
18181         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18182
18183         fcntl-h: fix O_ACCMODE on cygwin
18184         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18185         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18186
18187         pipe-filter: drop O_NONBLOCK workarounds
18188         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18189         * modules/pipe-filter-ii (Depends-on): Likewise.
18190         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18191
18192         nonblocking: provide O_NONBLOCK for mingw
18193         * modules/nonblocking (Depends-on): Add open.
18194         (configure.ac): Set new witness macro.
18195         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18196         * modules/fcntl-h (Makefile.am): Substitute it.
18197         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18198         nonblocking module is in use.
18199         * lib/nonblocking.c: Adjust portability test.
18200         * lib/open.c (open): Don't let native open see gnulib flag.
18201         * tests/test-fcntl-h.c (main): Enhance test.
18202         * tests/test-open.h (test_open): Likewise.
18203         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18204
18205         careadlinkat: fix compilation error on mingw
18206         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18207         within struct allocator.
18208
18209 2011-04-06  Eric Blake  <eblake@redhat.com>
18210
18211         binary-io: relicense under LGPLv2+
18212         * modules/binary-io (License): Relax to LGPLv2+.
18213         Requested for libvirt, and required by pipe2.
18214
18215 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18216
18217         verify: use _Static_assert if available
18218         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18219         (verify_true, verify): Use it if available.  This generates better
18220         diagnostics with GCC 4.6.0 and later.
18221
18222 2011-04-05  Bruno Haible  <bruno@clisp.org>
18223
18224         Remove leftover generated .h files after config.status changed.
18225
18226         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18227         GL_GENERATE_ALLOCA_H.
18228         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18229         GL_GENERATE_ALLOCA_H evaluates to false.
18230
18231         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18232         GL_GENERATE_ARGZ_H.
18233         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18234         evaluates to false.
18235
18236         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18237         GL_GENERATE_BYTESWAP_H.
18238         * modules/byteswap (Makefile.am): Remove byteswap.h if
18239         GL_GENERATE_BYTESWAP_H evaluates to false.
18240
18241         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18242         GL_GENERATE_ERRNO_H.
18243         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18244         evaluates to false.
18245
18246         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18247         GL_GENERATE_FLOAT_H.
18248         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18249         evaluates to false.
18250
18251         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18252         GL_GENERATE_FNMATCH_H.
18253         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18254         GL_GENERATE_FNMATCH_H evaluates to false.
18255
18256         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18257         GL_GENERATE_GLOB_H.
18258         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18259         evaluates to false.
18260
18261         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18262         automake conditional GL_GENERATE_ICONV_H.
18263         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18264         evaluates to false.
18265
18266         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18267         GL_GENERATE_NETINET_IN_H.
18268         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18269         GL_GENERATE_NETINET_IN_H evaluates to false.
18270
18271         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18272         conditional GL_GENERATE_PTHREAD_H.
18273         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18274         * modules/pthread (Makefile.am): Remove pthread.h if
18275         GL_GENERATE_PTHREAD_H evaluates to false.
18276
18277         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18278         GL_GENERATE_SCHED_H.
18279         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18280         evaluates to false.
18281
18282         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18283         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18284         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18285         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18286
18287         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18288         GL_GENERATE_STDARG_H.
18289         * modules/stdarg (Makefile.am): Remove stdarg.h if
18290         GL_GENERATE_STDARG_H evaluates to false.
18291
18292         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18293         GL_GENERATE_STDBOOL_H.
18294         * modules/stdbool (Makefile.am): Remove stdbool.h if
18295         GL_GENERATE_STDBOOL_H evaluates to false.
18296
18297         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18298         conditional GL_GENERATE_STDDEF_H.
18299         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18300         * modules/stddef (Makefile.am): Remove stddef.h if
18301         GL_GENERATE_STDDEF_H evaluates to false.
18302
18303         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18304         GL_GENERATE_STDINT_H.
18305         * modules/stdint (Makefile.am): Remove stdint.h if
18306         GL_GENERATE_STDINT_H evaluates to false.
18307
18308         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18309         GL_GENERATE_SYSEXITS_H.
18310         * modules/sysexits (Makefile.am): Remove sysexits.h if
18311         GL_GENERATE_SYSEXITS_H evaluates to false.
18312
18313         Reported by Karl Berry and Ralf Wildenhues.
18314
18315 2011-04-05  Bruno Haible  <bruno@clisp.org>
18316
18317         Ensure to rebuild generated .h files when config.status has changed.
18318         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18319         config.status.
18320         * modules/ctype (Makefile.am): Likewise.
18321         * modules/dirent (Makefile.am): Likewise.
18322         * modules/errno (Makefile.am): Likewise.
18323         * modules/fcntl-h (Makefile.am): Likewise.
18324         * modules/float (Makefile.am): Likewise.
18325         * modules/getopt-posix (Makefile.am): Likewise.
18326         * modules/glob (Makefile.am): Likewise.
18327         * modules/iconv-h (Makefile.am): Likewise.
18328         * modules/inttypes (Makefile.am): Likewise.
18329         * modules/langinfo (Makefile.am): Likewise.
18330         * modules/locale (Makefile.am): Likewise.
18331         * modules/math (Makefile.am): Likewise.
18332         * modules/netdb (Makefile.am): Likewise.
18333         * modules/netinet_in (Makefile.am): Likewise.
18334         * modules/poll-h (Makefile.am): Likewise.
18335         * modules/pthread (Makefile.am): Likewise.
18336         * modules/pty (Makefile.am): Likewise.
18337         * modules/sched (Makefile.am): Likewise.
18338         * modules/search (Makefile.am): Likewise.
18339         * modules/selinux-h (Makefile.am): Likewise.
18340         * modules/signal (Makefile.am): Likewise.
18341         * modules/spawn (Makefile.am): Likewise.
18342         * modules/stdarg (Makefile.am): Likewise.
18343         * modules/stdbool (Makefile.am): Likewise.
18344         * modules/stddef (Makefile.am): Likewise.
18345         * modules/stdint (Makefile.am): Likewise.
18346         * modules/stdio (Makefile.am): Likewise.
18347         * modules/stdlib (Makefile.am): Likewise.
18348         * modules/string (Makefile.am): Likewise.
18349         * modules/strings (Makefile.am): Likewise.
18350         * modules/sys_file (Makefile.am): Likewise.
18351         * modules/sys_ioctl (Makefile.am): Likewise.
18352         * modules/sys_select (Makefile.am): Likewise.
18353         * modules/sys_socket (Makefile.am): Likewise.
18354         * modules/sys_stat (Makefile.am): Likewise.
18355         * modules/sys_time (Makefile.am): Likewise.
18356         * modules/sys_times (Makefile.am): Likewise.
18357         * modules/sys_utsname (Makefile.am): Likewise.
18358         * modules/sys_wait (Makefile.am): Likewise.
18359         * modules/sysexits (Makefile.am): Likewise.
18360         * modules/termios (Makefile.am): Likewise.
18361         * modules/time (Makefile.am): Likewise.
18362         * modules/unistd (Makefile.am): Likewise.
18363         * modules/wchar (Makefile.am): Likewise.
18364         * modules/wctype-h (Makefile.am): Likewise.
18365         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18366
18367 2011-04-05  Bruno Haible  <bruno@clisp.org>
18368
18369         pipe2: Relicense under LGPLv2+.
18370         * modules/pipe2 (License): Change to LGPLv2+.
18371         Requested by Eric Blake, for libvirt.
18372
18373 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18374
18375         bootstrap: compute gnulib_extra_files after updating build_aux
18376         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18377         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18378
18379 2011-04-05  Eric Blake  <eblake@redhat.com>
18380
18381         bootstrap: preserve git whitelist item sorting
18382         * build-aux/bootstrap (sort_patterns): New function.
18383         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18384
18385 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18386
18387         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18388         sc_space_tab check.
18389
18390 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18391
18392         areadlink, areadlinkat: rewrite in terms of careadlinkat
18393         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18394         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18395         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18396         (malloc, realloc): Remove #undefs.
18397         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18398         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18399         readlink, ssize_t, stdint, unistd.
18400         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18401         areadlink, stdint.
18402
18403         careadlinkat: new module
18404         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18405         * modules/careadlinkat: New files, written by me with
18406         a review and feedback from Ben Pfaff in
18407         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18408
18409 2011-04-01  Bruno Haible  <bruno@clisp.org>
18410
18411         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18412         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18413         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18414         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18415         Reported by Bruce Korb <bruce.korb@gmail.com>.
18416
18417 2011-04-01  Bruno Haible  <bruno@clisp.org>
18418
18419         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18420         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18421         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18422         * modules/wcpcpy (Depends-on): Add extensions.
18423         * modules/wcpncpy (Depends-on): Likewise.
18424         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18425         systems.
18426         * doc/posix-functions/wcpncpy.texi: Likewise.
18427         * doc/posix-functions/wcwidth.texi: Likewise.
18428
18429 2011-03-31  Eric Blake  <eblake@redhat.com>
18430
18431         nonblocking: fix mingw test failures
18432         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18433         non-blocking flag on regular file.
18434         (get_nonblocking_flag): Set errno on invalid fd.
18435         * tests/test-nonblocking.c (main): Avoid test failure on
18436         directories if fchdir is not active.
18437         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18438
18439 2011-03-31  Bruno Haible  <bruno@clisp.org>
18440
18441         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18442         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18443         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18444         Reported by Simon Josefsson <simon@josefsson.org>.
18445
18446 2011-03-31  Bruno Haible  <bruno@clisp.org>
18447         and Eric Blake  <eblake@redhat.com>
18448
18449         nonblocking: new module
18450         * modules/nonblocking: New module.
18451         * modules/nonblocking-tests: Likewise.
18452         * lib/nonblocking.h: New file.
18453         * lib/nonblocking.c: Likewise.
18454         * tests/test-nonblocking.c: New test.
18455         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18456
18457 2011-03-30  Bruno Haible  <bruno@clisp.org>
18458
18459         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18460         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18461         instead of 'printf' format for GCC >= 4.4.
18462         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18463         (fprintf, printf, vfprintf, vprintf): Declare with
18464         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18465         the system's vfprintf() function.
18466         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18467
18468 2011-03-30  Eric Blake  <eblake@redhat.com>
18469
18470         passfd: fix scoping bug
18471         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18472         before sendmsg/recvmsg.
18473
18474         passfd: standardize coding conventions
18475         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18476         can be learned at compile time.
18477         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18478         ifdefs.
18479         (sendfd, recvfd): Follow gnulib code conventions.
18480
18481         passfd: fix incorrect sendmsg arguments
18482         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18483         incorrect msg_controllen value.
18484         * modules/passfd-tests (Depends-on): Check for alarm.
18485         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18486         Reported by Bastien ROUCARIES.
18487
18488 2011-03-30  Bruno Haible  <bruno@clisp.org>
18489
18490         c-strcasestr: Relicense under LGPLv2+.
18491         * modules/c-strcasestr (License): Change to LGPLv2+.
18492         Requested by Eric Blake, for libvirt.
18493
18494 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18495
18496         * users.txt: Add libidn2.  Fix libtasn1 link.
18497
18498 2011-03-30  Jim Meyering  <meyering@redhat.com>
18499
18500         tests: readlink* ("",... fails with EINVAL on newer kernels
18501         readlink and readlinkat have typically failed with ENOENT for
18502         the invalid, empty file name,  "".  However, with the advent
18503         of linux-2.6.39, they fail with EINVAL.
18504         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18505         when operating on the empty file name.
18506         * tests/test-readlink.h (test_readlink): Likewise.
18507
18508 2011-03-29  Bruno Haible  <bruno@clisp.org>
18509
18510         Relicense some modules under LGPLv2+, for libidn2.
18511         * modules/array-mergesort (License): Change to LGPLv2+.
18512         * modules/c-strcaseeq (License): Likewise.
18513         * modules/striconveh (License): Likewise.
18514         * modules/striconveha (License): Likewise.
18515         * modules/uniconv/base (License): Likewise.
18516         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18517         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18518         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18519         * modules/unictype/base (License): Likewise.
18520         * modules/unictype/bidiclass-of (License): Likewise.
18521         * modules/unictype/category-M (License): Likewise.
18522         * modules/unictype/category-none (License): Likewise.
18523         * modules/unictype/category-of (License): Likewise.
18524         * modules/unictype/category-test (License): Likewise.
18525         * modules/unictype/category-test-withtable (License): Likewise.
18526         * modules/unictype/combining-class (License): Likewise.
18527         * modules/unictype/joiningtype-of (License): Likewise.
18528         * modules/unictype/scripts (License): Likewise.
18529         * modules/uninorm/base (License): Likewise.
18530         * modules/uninorm/canonical-decomposition (License): Likewise.
18531         * modules/uninorm/composition (License): Likewise.
18532         * modules/uninorm/decompose-internal (License): Likewise.
18533         * modules/uninorm/decomposition-table (License): Likewise.
18534         * modules/uninorm/nfc (License): Likewise.
18535         * modules/uninorm/nfd (License): Likewise.
18536         * modules/uninorm/u32-normalize (License): Likewise.
18537         * modules/unistr/base (License): Likewise.
18538         * modules/unistr/u32-cpy (License): Likewise.
18539         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18540         * modules/unistr/u32-to-u8 (License): Likewise.
18541         * modules/unistr/u32-uctomb (License): Likewise.
18542         * modules/unistr/u8-check (License): Likewise.
18543         * modules/unistr/u8-mblen (License): Likewise.
18544         * modules/unistr/u8-mbtouc (License): Likewise.
18545         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18546         * modules/unistr/u8-mbtoucr (License): Likewise.
18547         * modules/unistr/u8-prev (License): Likewise.
18548         * modules/unistr/u8-strlen (License): Likewise.
18549         * modules/unistr/u8-to-u32 (License): Likewise.
18550         * modules/unistr/u8-uctomb (License): Likewise.
18551         * modules/unitypes (License): Likewise.
18552         Requested by Simon Josefsson.
18553
18554 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18555
18556         lib-symbol-visibility: Add a notice.
18557         * modules/lib-symbol-visibility (Notice): New field.
18558
18559 2011-03-29  Bruno Haible  <bruno@clisp.org>
18560
18561         getaddrinfo: Doc fix.
18562         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18563         section "fixed in Gnulib".
18564
18565 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18566
18567         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18568         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18569
18570 2011-03-26  Bruno Haible  <bruno@clisp.org>
18571
18572         unictype/property-byname: Reduce the number of load-time relocations.
18573         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18574         (UC_PROPERTY_INDEX_*): New enumeration values.
18575         (uc_property_byname): Convert an index from the lookup table to an
18576         uc_property_t.
18577         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18578         values.
18579
18580 2011-03-26  Bruno Haible  <bruno@clisp.org>
18581
18582         unictype/property-byname: Allow omitted word separators and aliases.
18583         * lib/unictype/pr_byname.gperf: Add property names without word
18584         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18585         for 'space'.
18586
18587 2011-03-26  Bruno Haible  <bruno@clisp.org>
18588
18589         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18590         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18591         also hyphens to space.
18592         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18593         without spaces.
18594         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18595
18596 2011-03-26  Bruno Haible  <bruno@clisp.org>
18597
18598         unictype/joiningtype-byname: Recognize long names as well.
18599         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18600         a long name.
18601         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18602         unictype/joiningtype_byname.h.
18603         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18604         * lib/unictype/joiningtype_byname.gperf: New file.
18605         * modules/unictype/joiningtype-byname (Files): Add
18606         lib/unictype/joiningtype_byname.gperf.
18607         (Depends-on): Add gperf.
18608         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18609         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18610         long names.
18611
18612         Tests for module 'unictype/joiningtype-longname'.
18613         * modules/unictype/joiningtype-longname-tests: New file.
18614         * tests/unictype/test-joiningtype_longname.c: New file.
18615
18616         New module 'unictype/joiningtype-longname'.
18617         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18618         * lib/unictype/joiningtype_longname.c: New file.
18619         * modules/unictype/joiningtype-longname: New file.
18620         * modules/unictype/joiningtype-all (Depends-on): Add
18621         unictype/joiningtype-longname.
18622
18623 2011-03-26  Bruno Haible  <bruno@clisp.org>
18624
18625         unictype/bidiclass-byname: Recognize long names as well.
18626         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18627         name.
18628         * lib/unictype/bidi_byname.c: Include <string.h>,
18629         unictype/bidi_byname.h.
18630         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18631         * lib/unictype/bidi_byname.gperf: New file.
18632         * modules/unictype/bidiclass-byname (Files): Add
18633         lib/unictype/bidi_byname.gperf.
18634         (Depends-on): Add gperf.
18635         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18636         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18637         long names.
18638
18639         Tests for module 'unictype/bidiclass-longname'.
18640         * modules/unictype/bidiclass-longname-tests: New file.
18641         * tests/unictype/test-bidi_longname.c: New file.
18642
18643         New module 'unictype/bidiclass-longname'.
18644         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18645         * lib/unictype/bidi_longname.c: New file.
18646         * modules/unictype/bidiclass-longname: New file.
18647         * modules/unictype/bidiclass-all (Depends-on): Add
18648         unictype/bidiclass-longname.
18649
18650 2011-03-26  Bruno Haible  <bruno@clisp.org>
18651
18652         unictype/bidi*: Rename modules.
18653         * modules/unictype/bidiclass-all: Renamed from
18654         modules/unictype/bidicategory-all.
18655         * modules/unictype/bidiclass-name: Renamed from
18656         modules/unictype/bidiclass-name.
18657         (Description): Update.
18658         * modules/unictype/bidiclass-name-tests: Renamed from
18659         modules/unictype/bidicategory-name-tests.
18660         * modules/unictype/bidiclass-byname: Renamed from
18661         modules/unictype/bidicategory-byname.
18662         (Description): Update.
18663         * modules/unictype/bidiclass-byname-tests: Renamed from
18664         modules/unictype/bidicategory-byname-tests.
18665         * modules/unictype/bidiclass-of: Renamed from
18666         modules/unictype/bidicategory-of.
18667         (Description): Update.
18668         * modules/unictype/bidiclass-of-tests: Renamed from
18669         modules/unictype/bidicategory-of-tests.
18670         * modules/unictype/bidiclass-test: Renamed from
18671         modules/unictype/bidicategory-test.
18672         (Description): Update.
18673         * modules/unictype/bidiclass-test-tests: Renamed from
18674         modules/unictype/bidicategory-test-tests.
18675         * modules/unictype/bidicategory-all: New file, a simple redirection.
18676         * modules/unictype/bidicategory-name: Likewise.
18677         * modules/unictype/bidicategory-byname: Likewise.
18678         * modules/unictype/bidicategory-of: Likewise.
18679         * modules/unictype/bidicategory-test: Likewise.
18680         * modules/unictype/property-bidi-* (Dependencies): Update.
18681         * lib/unictype/bidi_*.c: Update comment.
18682
18683 2011-03-26  Bruno Haible  <bruno@clisp.org>
18684
18685         unictype/bidi*: Rename functions, part 2.
18686         * modules/unictype/bidicategory-name (configure.ac): Update required
18687         libunistring version.
18688         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18689
18690 2011-03-25  Bruno Haible  <bruno@clisp.org>
18691
18692         New module 'unictype/combining-class-all'.
18693         * modules/unictype/combining-class-all: New file.
18694
18695         Tests for module 'unictype/combining-class-byname'.
18696         * modules/unictype/combining-class-byname-tests: New file.
18697         * tests/unictype/test-combiningclass_byname.c: New file.
18698
18699         New module 'unictype/combining-class-byname'.
18700         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18701         * lib/unictype/combiningclass_byname.c: New file.
18702         * lib/unictype/combiningclass_byname.gperf: New file.
18703         * modules/unictype/combining-class-byname: New file.
18704
18705         Tests for module 'unictype/combining-class-longname'.
18706         * modules/unictype/combining-class-longname-tests: New file.
18707         * tests/unictype/test-combiningclass_longname.c: New file.
18708
18709         New module 'unictype/combining-class-longname'.
18710         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18711         * lib/unictype/combiningclass_longname.c: New file.
18712         * modules/unictype/combining-class-longname: New file.
18713
18714         Tests for module 'unictype/combining-class-name'.
18715         * modules/unictype/combining-class-name-tests: New file.
18716         * tests/unictype/test-combiningclass_name.c: New file.
18717
18718         New module 'unictype/combining-class-name'.
18719         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18720         * lib/unictype/combiningclass_name.c: New file.
18721         * modules/unictype/combining-class-name: New file.
18722
18723 2011-03-25  Bruno Haible  <bruno@clisp.org>
18724
18725         unictype/combining-class: Rename source files.
18726         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18727         of unictype/combining.h.
18728         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18729         Update.
18730         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18731         * modules/unictype/combining-class (Description): Fix.
18732         (Files, Makefile.am): Update.
18733         * tests/unictype/test-combiningclass.c: Renamed from
18734         tests/unictype/test-combining.c.
18735         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18736
18737 2011-03-25  Bruno Haible  <bruno@clisp.org>
18738
18739         unictype: Update list of canonical combining classes.
18740         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18741
18742 2011-03-25  Bruno Haible  <bruno@clisp.org>
18743
18744         unictype/category-byname: Recognize long names as well.
18745         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18746         a long name.
18747         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18748         unictype/categ_byname.h.
18749         (UC_CATEGORY_INDEX_*): New enumeration values.
18750         (uc_general_category_byname): Use uc_general_category_lookup and
18751         convert from index to value.
18752         * lib/unictype/categ_byname.gperf: New file.
18753         * modules/unictype/category-byname (Files): Add
18754         lib/unictype/categ_byname.gperf.
18755         (Depends-on): Add gperf.
18756         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18757         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18758         long names.
18759
18760         Tests for module 'unictype/category-longname'.
18761         * modules/unictype/category-longname-tests: New file.
18762         * tests/unictype/test-categ_longname.c: New file.
18763
18764         New module 'unictype/category-longname'.
18765         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18766         * lib/unictype/categ_longname.c: New file.
18767         * modules/unictype/category-longname: New file.
18768         * modules/unictype/category-all (Depends-on): Add it.
18769
18770 2011-03-25  Bruno Haible  <bruno@clisp.org>
18771
18772         Tests for module 'unictype/category-LC'.
18773         * modules/unictype/category-LC-tests: New file.
18774         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18775
18776         New module 'unictype/category-LC'.
18777         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18778         (UC_CATEGORY_LC): New declaration.
18779         (UC_CASED_LETTER): New macro.
18780         * lib/gen-uni-tables.c (is_category_LC): New function.
18781         (output_categories): Also handle category LC.
18782         (UC_CATEGORY_MASK_LC): New enumeration value.
18783         (general_category_byname): Also handle category LC.
18784         * lib/unictype/categ_LC.c: New file.
18785         * lib/unictype/categ_LC.h: New file, automatically generated.
18786         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18787         category LC.
18788         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18789         * modules/unictype/category-LC: New file.
18790         * modules/unictype/category-byname (Depends-on): Add
18791         unictype/category-LC.
18792         * modules/unictype/category-all (Depends-on): Likewise.
18793
18794 2011-03-25  Eric Blake  <eblake@redhat.com>
18795
18796         xmalloc: revert yesterday's regression
18797         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18798         realloc's underlying behavior (allowing allocation of zero-size
18799         objects, especially if malloc-gnu is also in use).
18800
18801 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18802
18803         maint.mk: add missing version to VC-tag
18804         * top/maint.mk: git tag was missing actual tag name; add it.
18805
18806         valgrind: do leak checking, and exit with code 1 on error (not 0)
18807         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18808         to VALGRIND.
18809
18810 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18811
18812         posix-modules: say what it does.
18813         * posix-modules: Add a line to the --help output saying what it does.
18814
18815 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18816
18817         xmalloc: Do not leak if underlying realloc is C99 compatible.
18818         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18819         This avoids a leak on C99-based systems.  See
18820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18821
18822 2011-03-24  Eric Blake  <eblake@redhat.com>
18823
18824         realloc: document portability problem
18825         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18826         passing 0 size to realloc.
18827
18828 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18829
18830         doc: update users.txt
18831         * users.txt: Add cvsps, tmpwatch
18832
18833 2011-03-23  Matt Rice  <ratmice@gmail.com>
18834
18835         doc: update users.txt
18836         * users.txt: Add gdb.
18837
18838 2011-03-23  Jim Meyering  <meyering@redhat.com>
18839
18840         doc: update users.txt
18841         Looking through matches up to the following URL (there are still
18842         several more pages), I found several projects that use gnulib:
18843         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18844         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18845         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18846
18847 2011-03-22  Bruno Haible  <bruno@clisp.org>
18848
18849         unictype/bidi*: Rename functions.
18850         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18851         uc_bidi_class, uc_is_bidi_class): New declarations.
18852         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18853         uc_bidi_category_byname.
18854         (uc_bidi_category_byname): New function.
18855         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18856         u_bidi_category_name.
18857         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18858         (uc_bidi_category_name): New function.
18859         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18860         uc_bidi_category.
18861         (uc_bidi_category): New function.
18862         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18863         uc_is_bidi_category. Invoke uc_bidi_class.
18864         (uc_is_bidi_category): New function.
18865         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18866         instead of uc_bidi_category_byname.
18867         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18868         instead of uc_bidi_category_name.
18869         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18870         uc_bidi_category.
18871         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18872         instead of uc_is_bidi_category.
18873
18874 2011-03-21  Bruno Haible  <bruno@clisp.org>
18875
18876         New module 'unictype/joininggroup-all'.
18877         * modules/unictype/joininggroup-all: New file.
18878
18879         Tests for module 'unictype/joininggroup-of'.
18880         * modules/unictype/joininggroup-of-tests: New file.
18881         * tests/unictype/test-joininggroup_of.c: New file.
18882         * tests/unictype/test-joininggroup_of.h: New file, automatically
18883         generated by gen-uni-tables.
18884
18885         New module 'unictype/joininggroup-of'.
18886         * modules/unictype/joininggroup-of: New file.
18887         * lib/unictype/joininggroup_of.c: New file.
18888         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18889         gen-uni-tables.
18890
18891         Tests for module 'unictype/joininggroup-byname'.
18892         * modules/unictype/joininggroup-byname-tests: New file.
18893         * tests/unictype/test-joininggroup_byname.c: New file.
18894
18895         New module 'unictype/joininggroup-byname'.
18896         * modules/unictype/joininggroup-byname: New file.
18897         * lib/unictype/joininggroup_byname.c: New file.
18898         * lib/unictype/joininggroup_byname.gperf: New file.
18899
18900         Tests for module 'unictype/joininggroup-name'.
18901         * modules/unictype/joininggroup-name-tests: New file.
18902         * tests/unictype/test-joininggroup_name.c: New file.
18903
18904         New module 'unictype/joininggroup-name'.
18905         * modules/unictype/joininggroup-name: New file.
18906         * lib/unictype/joininggroup_name.c: New file.
18907         * lib/unictype/joininggroup_name.h: New file.
18908
18909         New module 'unictype/joiningtype-all'.
18910         * modules/unictype/joiningtype-all: New file.
18911
18912         Tests for module 'unictype/joiningtype-of'.
18913         * modules/unictype/joiningtype-of-tests: New file.
18914         * tests/unictype/test-joiningtype_of.c: New file.
18915         * tests/unictype/test-joiningtype_of.h: New file, automatically
18916         generated by gen-uni-tables.
18917
18918         New module 'unictype/joiningtype-of'.
18919         * modules/unictype/joiningtype-of: New file.
18920         * lib/unictype/joiningtype_of.c: New file.
18921         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18922         gen-uni-tables.
18923
18924         Tests for module 'unictype/joiningtype-byname'.
18925         * modules/unictype/joiningtype-byname-tests: New file.
18926         * tests/unictype/test-joiningtype_byname.c: New file.
18927
18928         New module 'unictype/joiningtype-byname'.
18929         * modules/unictype/joiningtype-byname: New file.
18930         * lib/unictype/joiningtype_byname.c: New file.
18931
18932         Tests for module 'unictype/joiningtype-name'.
18933         * modules/unictype/joiningtype-name-tests: New file.
18934         * tests/unictype/test-joiningtype_name.c: New file.
18935
18936         New module 'unictype/joiningtype-name'.
18937         * modules/unictype/joiningtype-name: New file.
18938         * lib/unictype/joiningtype_name.c: New file.
18939
18940         unictype: Add support for Arabic shaping properties.
18941         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18942         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18943         declarations.
18944         (UC_JOINING_GROUP_*): New enumeration values.
18945         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18946         declarations.
18947         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18948         (unicode_joining_type): New variable.
18949         (UC_JOINING_GROUP_*): New enumeration values.
18950         (unicode_joining_group): New variable.
18951         (fill_arabicshaping, joining_type_as_c_identifier,
18952         output_joining_type_test, output_joining_type,
18953         joining_group_as_c_identifier, output_joining_group_test,
18954         output_joining_group): New functions.
18955         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18956         fill_arabicshaping and output_joining_type_test, output_joining_type,
18957         output_joining_group_test, output_joining_group.
18958         Reported by Simon Josefsson.
18959
18960 2011-03-21  Jim Meyering  <meyering@redhat.com>
18961
18962         strftime: fix a bug in yesterday's change
18963         * lib/strftime.c (add): Accommodate width's initial value of -1.
18964         Otherwise, nstrftime would copy uninitialized data into
18965         the result buffer.
18966
18967 2011-03-21  Jim Meyering  <meyering@redhat.com>
18968
18969         tests: add strftime-tests module
18970         * tests/test-strftime.c: New file.
18971         * modules/strftime-tests: New module.
18972
18973 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         strftime: don't assume a byte count fits in 'int'
18976         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18977         found this problem by static analysis, using gcc -Wstrict-overflow
18978         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18979         on an integer overflow having undefined behavior, but it turns out
18980         that the argument is a size, which might not fit in 'int' anyway,
18981
18982 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18983
18984         stdio: don't require ignore_value around fwrite
18985
18986         This patch works around libc bug 11959
18987         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18988         Without this patch, applications must often write
18989         ignore_value (fwrite (...)) even though the ignore_value is
18990         not helpful here.  It's common to write many objects, using
18991         fwrite/printf/etc., and then use ferror to detect output error.
18992
18993         I considered making this patch optional, but decided against it,
18994         because libc is obviously being inconsistent here: there is no
18995         reason libc should insist that user code must inspect fwrite
18996         return's value without also insisting that it inspect printf's,
18997         putchar's, etc.  If user code wants to have a strict style where
18998         all these functions' values are checked (so that ferror need not
18999         be checked), we could add support for that style in a new gnulib
19000         module, but in the meantime it's better to be consistent and to
19001         support common usage.
19002
19003         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19004         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19005         that we are compiling in checking mode, and if not C++, and
19006         if not already wrapping fwrite for some other reason.
19007         (fwrite): #define to rpl_fwrite if the latter is defined.
19008
19009 2011-03-20  Bruno Haible  <bruno@clisp.org>
19010
19011         verror: Fix compilation error introduced on 2011-02-13.
19012         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19013         instead of __attribute__.
19014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19015
19016 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19017             Bruno Haible  <bruno@clisp.org>
19018
19019         socklen: do not depend on sys_socket
19020         While trying to modify Emacs to use gnulib's socklen module,
19021         I discovered a circular dependency: socklen depends on sys_socket
19022         and vice versa.  Emacs can use socklen, but it does not need
19023         sys_socket because it has its own substitute for sys/socket.h.
19024         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19025         gl_TYPE_SOCKLEN_T.
19026         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19027         gl_PREREQ_SYS_H_SOCKET.
19028         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19029         gl_PREREQ_SYS_H_SOCKET.
19030         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19031         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19032         * modules/socklen (Depends-on): Do not depend on sys_socket.
19033         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19034
19035 2011-03-20  Jim Meyering  <meyering@redhat.com>
19036
19037         maint.mk: sort file names *after* new transformation
19038         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19039         prefix would have led to an unwarranted failure in GNU parted.
19040         Sort after that transformation.
19041
19042 2011-03-19  Jim Meyering  <meyering@redhat.com>
19043
19044         maint.mk: fix po-file syntax-check rule
19045         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19046         Patch by Bruno Haible.
19047
19048 2011-03-19  Bruno Haible  <bruno@clisp.org>
19049
19050         socklen: Update comment.
19051         * m4/socklen.m4: Update comment about platforms.
19052
19053 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19054             Bruno Haible  <bruno@clisp.org>
19055
19056         inet_ntop, inet_pton: Simplify.
19057         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19058         documented to provide socklen_t and we already depend on sys_socket.
19059         * modules/inet_pton (Depends-on): Likewise.
19060         * lib/arpa_inet.in.h: Adjust comment.
19061
19062 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19063             Bruno Haible  <bruno@clisp.org>
19064
19065         netdb: Simplify.
19066         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19067         documented to provide socklen_t and we already depend on sys_socket.
19068         * lib/netdb.in.h: Adjust comment.
19069
19070 2011-03-19  Bruno Haible  <bruno@clisp.org>
19071
19072         sys_socket, netdb: Document problem with socklen_t.
19073         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19074         platforms.
19075         * doc/posix-headers/netdb.texi: Likewise.
19076
19077 2011-03-18  Eric Blake  <eblake@redhat.com>
19078
19079         maint.mk: let po check work in VPATH build
19080         * top/maint.mk (po_file): Allow cfg.mk override.
19081         (sc_po_check): Allow VPATH use.
19082         Reported by Jiri Denemark.
19083
19084 2011-03-16  Jim Meyering  <meyering@redhat.com>
19085
19086         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19087         Before, you would have had to create one .x-sc_ file per rule in order
19088         to exempt offending files.  Now, you may instead use a Make variable --
19089         usually defined in cfg.mk -- whose name identifies the affected rule.
19090         * top/maint.mk (_sc_excl): Define.
19091         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19092         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19093
19094 2011-03-13  Bruno Haible  <bruno@clisp.org>
19095
19096         ignore-value tests: Avoid warnings.
19097         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19098         empty for gcc < 3.4.
19099
19100 2011-03-13  Bruno Haible  <bruno@clisp.org>
19101
19102         passfd: Fix link error on Solaris.
19103         * modules/passfd (Description): Correct.
19104         (Depends-on): Add socketlib.
19105         (Link): New section.
19106         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19107
19108 2011-03-13  Bruno Haible  <bruno@clisp.org>
19109
19110         passfd: Fix link error on AIX 5.2.
19111         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19112
19113 2011-03-13  Bruno Haible  <bruno@clisp.org>
19114
19115         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19116         * lib/sys_socket.in.h: Include <stddef.h>.
19117         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19118         CMSG_FIRSTHDR. Remove unused variable.
19119
19120 2011-03-13  Bruno Haible  <bruno@clisp.org>
19121
19122         passfd: Fix compilation error on OpenBSD.
19123         * lib/passfd.c: Include <sys/uio.h>.
19124
19125 2011-03-13  Bruno Haible  <bruno@clisp.org>
19126
19127         passfd test: Fix warnings.
19128         * tests/test-passfd.c: Include <sys/wait.h>.
19129         (main): Fix typo.
19130
19131 2011-03-13  Bruno Haible  <bruno@clisp.org>
19132
19133         passfd module, part 4, tweaks.
19134         * tests/test-passfd.c: Reorder includes.
19135         (main): Fix perror and printf calls.
19136
19137 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19138
19139         passfd module, part 4.
19140         * modules/passfd-tests: New file.
19141         * tests/test-passfd.c: New file.
19142
19143 2011-03-13  Jim Meyering  <meyering@redhat.com>
19144
19145         Makefile: rely on GNU make; derive syntax-check rule names
19146         Rather than requiring that each sc_ rule be listed as a dependent
19147         of "check", use features of GNU make to derive the list.
19148         * Makefile (syntax-check-rules): Define.
19149         (check): Depend on the new variable, not the hard-coded list.
19150
19151 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19152             Bruno Haible  <bruno@clisp.org>
19153
19154         passfd module, part 3.
19155         * lib/passfd.h (recvfd): Add a flags argument.
19156         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19157         (recvfd): Add a flags argument.
19158         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19159         exists.
19160         * modules/passfd (Depends-on): Add cloexec.
19161         Suggested by Eric Blake.
19162
19163 2011-03-13  Bruno Haible  <bruno@clisp.org>
19164
19165         passfd module, part 2, tweaks.
19166         * modules/passfd (Files): Reorder.
19167         (Depends-on): Remove errno.
19168         (Include): Remove <sys/socket.h>, <sys/un.h>.
19169         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19170         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19171         specification header. Include <sys/socket.h> always. Don't include
19172         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19173         (sendfd): Clarify that it sets errno when it fails.
19174         (recvfd): Fix specification.
19175
19176 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19177
19178         passfd module, part 2.
19179         * modules/passfd: New file.
19180         * lib/passfd.h: New file.
19181         * lib/passfd.c: New file.
19182
19183 2011-03-12  Bruno Haible  <bruno@clisp.org>
19184
19185         wcswidth, mbswidth: Avoid integer overflow.
19186         * lib/wcswidth.c: Include <limits.h>.
19187         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19188         * lib/mbswidth.c: Include <limits.h>.
19189         (mbsnwidth): Avoid 'int' overflow.
19190         Reported by Jim Meyering.
19191
19192 2011-03-12  Bruno Haible  <bruno@clisp.org>
19193
19194         futimens, utimensat: Avoid endless recursion on Solaris 10.
19195         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19196         Solaris.
19197         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19198         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19199
19200 2011-03-11  Jim Meyering  <meyering@redhat.com>
19201
19202         maint.mk: relax a regexp to accommodate other formatting styles
19203         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19204         between "ngettext" and the following "(".
19205
19206 2011-03-11  Pádraig Brady <P@draigBrady.com>
19207
19208         maint.mk: suppress a false positive warning
19209         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19210         diagnostics are marked with ngettext.
19211
19212 2011-03-10  Eric Blake  <eblake@redhat.com>
19213
19214         wchar: add explicit dependencies, for Tru64
19215         * modules/mbmemcasecoll (Depends-on): Add wchar.
19216         * modules/mbtowc (Depends-on): Likewise.
19217         * modules/vasnprintf (Depends-on): Likewise.
19218         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19219         * modules/wctomb (Depends-on): Likewise.
19220         Reported by Peter O'Gorman.
19221
19222 2011-03-08  Bruno Haible  <bruno@clisp.org>
19223
19224         passfd module, part 1, tweaks.
19225         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19226         Improve indentation. Improve AC_MSG_CHECKING messages.
19227         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19228         gl_SOCKET_FAMILIES.
19229
19230 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19231
19232         passfd module, part 1.
19233         * m4/afunix.m4: New file.
19234         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19235         sockets.
19236
19237 2011-03-08  Bruno Haible  <bruno@clisp.org>
19238
19239         regex-quote: New API.
19240         * lib/regex-quote.h: Include <stdbool.h>.
19241         (struct regex_quote_spec): New type.
19242         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19243         New declarations.
19244         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19245         'const struct regex_quote_spec *' argument.
19246         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19247         (pcre_special): New constant.
19248         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19249         New functions.
19250         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19251         'const struct regex_quote_spec *' argument.
19252         * modules/regex-quote (Depends-on): Add stdbool.
19253         * tests/test-regex-quote.c (check): Update for new API. Add test for
19254         anchored results.
19255         * NEWS: Mention the API change.
19256         Reported by Reuben Thomas and Eric Blake.
19257
19258 2011-03-06  Bruno Haible  <bruno@clisp.org>
19259
19260         regex-quote: Fix creation of POSIX extended regular expressions.
19261         * lib/regex-quote.c (ere_special): Add grouping and alternation
19262         operators.
19263
19264 2011-03-05  Bruno Haible  <bruno@clisp.org>
19265
19266         doc: Improve doc regarding autopoint vs. gnulib.
19267         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19268         disable autopoint while running autoreconf.
19269         Suggested by Ralf Wildenhues.
19270
19271 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19272
19273         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19274         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19275
19276 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19277
19278         parse-duration: remove xalloc.h dependency
19279         * lib/parse-duration.c (parse_period): handle NULL return from
19280         strdup instead of calling xstrdup().
19281         * modules/parse-duration: remove "xalloc" dependency
19282
19283 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19284
19285         bootstrap: honor m4_base when running aclocal
19286         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19287
19288 2011-03-02  Jim Meyering  <meyering@redhat.com>
19289
19290         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19291         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19292         on request from Matt Booth.
19293
19294 2011-03-01  Eric Blake  <eblake@redhat.com>
19295
19296         test-link: work on Hurd
19297         * tests/test-link.h (test_link): Hurd rejects linking directories
19298         with EISDIR instead of the POSIX-mandated EPERM.
19299
19300 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19301
19302         stdio: simplify by moving files to printf-posix, sigpipe
19303         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19304         since this symbol is needed only if printf is replaced.
19305         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19306         Require gl_ASM_SYMBOL_PREFIX.
19307         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19308         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19309         (Depends-on): Add 'raise'.
19310         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19311         * modules/stdio (Files): Remove lib/stdio-write.c,
19312         m4/asm-underscore.m4.
19313         (Depends-on): Remove 'raise'.
19314
19315         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19316         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19317         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19318         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19319
19320 2011-02-28  Bruno Haible  <bruno@clisp.org>
19321
19322         localcharset: Assume ANSI C behaviour of free().
19323         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19324         calling free().
19325         Suggested by Simon Josefsson <simon@josefsson.org>.
19326
19327 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19328             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19329             Bruno Haible  <bruno@clisp.org>  (tiny change)
19330
19331         On Cygwin, use /proc file system instead of win32 API.
19332         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19333         Win32 file names.
19334         (DllMain): Simplify by removing Cygwin specific code.
19335         (find_shared_library_fullname): Use Linux specific implementation also
19336         for Cygwin.
19337         (get_shared_library_fullname): Update accordingly.
19338         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19339         Win32 file names.
19340         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19341         Cygwin specific code.
19342
19343 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19344             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19345
19346         Fix OpenMP flag detection for various Fortran compilers.
19347         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19348         OpenMP-conditional compilation construct, to force compile
19349         failure with missing OpenMP flag.
19350         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19351
19352 2011-02-25  Eric Blake  <eblake@redhat.com>
19353
19354         strstr: expand test coverage
19355         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19356         compilation.
19357         * tests/test-memmem.c (main): Duplicate tests.
19358         * tests/test-strcasestr.c (main): Likewise.
19359         * tests/test-c-strcasestr.c (main): Likewise.
19360
19361 2011-02-25  Jim Meyering  <meyering@redhat.com>
19362
19363         maint.mk: detect missing-NL-at-EOF, too
19364         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19365         it also detects when a file lacks a newline at EOF.
19366         (require_exactly_one_NL_at_EOF_): Renamed from
19367         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19368         since people may well have .x-sc_... file names tied to the
19369         existing name.  Suggested by Eric Blake.
19370
19371 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19372
19373         dirname: move m4/dos.m4 functionality into lib/dosname.h
19374
19375         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19376         extracts symbols from it, puts them into config.h; but it's much
19377         easier to use the symbols directly.  filename.h already does this,
19378         but it disagrees with dos.m4 in some respects.  This patch
19379         introduces a different include file dosname.h that packages up
19380         dos.m4, and then later we can work on merging filename.h and
19381         dosname.h.  Applications that need only the easy-to-configure
19382         symbols should consider including dosname.h rather than dirname.h.
19383         * NEWS: Mention incompatible changes.
19384         * m4/dos.m4: Remove.
19385         * lib/dosname.h, modules/dosname: New files.
19386         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19387         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19388         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19389         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19390         Include dosname.h, not dirname.h.
19391         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19392         Include dosname.h, for definitions of symbols like ISSLASH
19393         that used to be in config.h.
19394         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19395         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19396         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19397         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19398         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19399         * modules/rmdir (Files): Likewise.
19400         * modules/stat (Files): Likewise.
19401         * modules/unlink (Files): Likewise.
19402         * modules/dirname-lgpl (Depends-on): Add dosname.
19403         * modules/lstat (Depends-on): Likewise.
19404         * modules/openat (Depends-on): Likewise.
19405         * modules/rmdir (Depends-on): Likewise.
19406         * modules/savewd (Depends-on): Likewise.
19407         * modules/stat (Depends-on): Likewise.
19408         * modules/unlink (Depends-on): Likewise.
19409         * modules/openat (Depends-on): Remove dirname-lgpl.
19410         * modules/savewd (Depends-on): Likewise.
19411         * tests/test-dirname.c: Do not use removed symbols like
19412         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19413         the remaining symbols, e.g., ISSLASH ('\\').
19414
19415 2011-02-25  Eric Blake  <eblake@redhat.com>
19416
19417         strstr: revert patches that introduced bug and pessimization
19418         * lib/str-two-way.h: Add another reference.
19419         (two_way_short_needle, two_way_long_needle): Revert changes from
19420         2011-02-24; they pessimize search speed.
19421         (critical_factorization): Partially revert changes from
19422         2010-06-22; they violate the requirement that the left half of the
19423         needle be smaller than the period of the needle.
19424
19425 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19426
19427         filenamecat: remove unnecessary dependency on dirname-lgpl
19428         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19429         is no direct dependency, just an indirect one via filenamecat-lgpl.
19430
19431         remove: remove unnecessary use of m4/dos.m4
19432         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19433         * modules/remove (FILES): Remove m4/dos.m4.
19434
19435         * lib/openat-proc.c: Don't include dirname.h; not needed.
19436
19437         backupfile: remove unnecessary use of m4/dos.m4
19438         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19439         of its symbols are used by the backupfile code.  backupfile.c does
19440         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19441         for the rare case of programs that want all their backup file
19442         names to live within 8+3 limits, and dos.m4 doesn't address that.
19443         * modules/backupfile (Files): Remove m4/dos.m4.
19444
19445 2011-02-24  Jim Meyering  <meyering@redhat.com>
19446
19447         strstr: fix a bug whereby strstr would mistakenly return NULL
19448         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19449         in period calculation.
19450         (two_way_long_needle): Likewise.
19451         The original problem was reported by Mike Stump in
19452         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19453         Ralf Wildenhues provided the short needle and haystack.
19454         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19455         Add a more involved test to trigger the bug in two_way_long_needle.
19456
19457 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19458
19459         gnulib-tool: remove use of bold display in help screen
19460         * gnulib-tool (func_usage): Do not use bold display anymore in the
19461         help screen.  That was just meant to be a temporary emphasis for a
19462         backward-incompatible change.
19463
19464 2011-02-23  Bruno Haible  <bruno@clisp.org>
19465
19466         Fix misindentation of preprocessor directives.
19467         * lib/argp-namefrob.h: Reindent preprocessor directives.
19468         * lib/getopt_int.h (struct _getopt_data): Likewise.
19469         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19470         * lib/vasnprintf.c (decode_long_double): Likewise.
19471         * tests/test-argmatch.c: Insert blank lines, for clarity.
19472         * tests/test-exclude.c: Likewise.
19473
19474 2011-02-22  Bruno Haible  <bruno@clisp.org>
19475
19476         ioctl: Fix for MacOS X in 64-bit mode.
19477         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19478         value.
19479         Suggested by Eric Blake.
19480         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19481
19482 2011-02-22  Jim Meyering  <meyering@redhat.com>
19483
19484         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19485         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19486         in lib/.
19487
19488 2011-02-22  Eric Blake  <eblake@redhat.com>
19489
19490         maint: avoid any CDPATH issue
19491         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19492
19493         maint: adjust cpp indentation for my modules, as well
19494         * Makefile (sc_cpp_indent_check): Add my name.
19495         * lib/fbufmode.c: Filter through cppi.
19496         * lib/fpurge.c: Likewise.
19497         * lib/freadable.c: Likewise.
19498         * lib/freading.c: Likewise.
19499         * lib/fwritable.c: Likewise.
19500         * lib/fwriting.c: Likewise.
19501         * lib/sigaction.c: Likewise.
19502
19503 2011-02-22  Jim Meyering  <meyering@redhat.com>
19504
19505         maint: adjust cpp indentation to reflect nesting depth
19506         I.e., in a block of code that begins with an unnested "#if",
19507         put one space between the "#" in column 1 and following token.
19508         For example,
19509         -#include <sys/vfs.h>
19510         +# include <sys/vfs.h>
19511         Do this only in .c files that are part of a module I maintain.
19512         * lib/linkat.c: Filter through cppi.
19513         * lib/nanosleep.c: Likewise.
19514         * lib/openat.c: Likewise.
19515         * lib/openat-die.c: Likewise.
19516         * lib/dup3.c: Likewise.
19517         * lib/fchownat.c: Likewise.
19518         * lib/flock.c: Likewise.
19519         * lib/fsync.c: Likewise.
19520         * lib/fts.c: Likewise.
19521         * lib/getpass.c: Likewise.
19522         * lib/gettimeofday.c: Likewise.
19523         * lib/userspec.c: Likewise.
19524         * Makefile (sc_cpp_indent_check): New rule, to check this.
19525
19526 2011-02-22  Bruno Haible  <bruno@clisp.org>
19527
19528         New module 'wctomb'.
19529         * lib/stdlib.in.h (wctomb): New declaration.
19530         * lib/wctomb.c: New file.
19531         * lib/wctomb-impl.h: New file.
19532         * m4/wctomb.m4: New file.
19533         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19534         REPLACE_WCTOMB.
19535         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19536         REPLACE_WCTOMB.
19537         * modules/wctomb: New file.
19538         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19539         * doc/posix-functions/wctomb.texi: Mention the new module.
19540         * modules/wctob (Depends-on): Add wctomb.
19541
19542 2011-02-22  Bruno Haible  <bruno@clisp.org>
19543
19544         New module 'mbtowc'.
19545         * lib/stdlib.in.h (mbtowc): New declaration.
19546         * lib/mbtowc.c: New file.
19547         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19548         * m4/mbtowc.m4: New file.
19549         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19550         REPLACE_MBTOWC.
19551         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19552         REPLACE_MBTOWC.
19553         * modules/mbtowc: New file.
19554         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19555         * doc/posix-functions/mbtowc.texi: Mention the new module.
19556         * modules/btowc (Depends-on): Add mbtowc.
19557
19558 2011-02-22  Bruno Haible  <bruno@clisp.org>
19559
19560         wcrtomb: Add more tests for native Windows platforms.
19561         * tests/test-wcrtomb-w32-1.sh: New file.
19562         * tests/test-wcrtomb-w32-2.sh: New file.
19563         * tests/test-wcrtomb-w32-3.sh: New file.
19564         * tests/test-wcrtomb-w32-4.sh: New file.
19565         * tests/test-wcrtomb-w32-5.sh: New file.
19566         * tests/test-wcrtomb-w32.c: New file.
19567         * modules/wcrtomb-tests (Files): Add them.
19568         (Makefile.am): Arrange to run these tests.
19569         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19570         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19571
19572 2011-02-20  Bruno Haible  <bruno@clisp.org>
19573
19574         wcrtomb: Enhance test.
19575         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19576
19577 2011-02-20  Bruno Haible  <bruno@clisp.org>
19578
19579         mbrtowc: Tiny optimization.
19580         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19581
19582 2011-02-20  Jim Meyering  <meyering@redhat.com>
19583
19584         test-exclude.c: remove unmatched #endif
19585         * tests/test-exclude.c: Remove stray #endif, left over from
19586         the change of a week ago.
19587
19588 2011-02-19  Jim Meyering  <meyering@redhat.com>
19589
19590         git-version-gen: skip "-dirty" check when appropriate
19591         * build-aux/git-version-gen: Don't run any git commands when the
19592         version string comes from .tarball-version.  Prior to this, we
19593         would run git update-index --refresh even from a just-unpacked
19594         tarball directory, and that could affect a .git/ directory in a
19595         parent of the build directory.  Reported by Mike Frysinger.
19596
19597 2011-02-19  Bruno Haible  <bruno@clisp.org>
19598
19599         unictype/property-byname: Reduce the size of the 'data' segment.
19600         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19601
19602 2011-02-19  Bruno Haible  <bruno@clisp.org>
19603
19604         unictype/scripts: Reduce the size of the 'data' segment.
19605         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19606         '%pic'.
19607         * lib/unictype/scripts_byname.gperf: Regenerated.
19608
19609 2011-02-19  Bruno Haible  <bruno@clisp.org>
19610
19611         stdint: Update documentation.
19612         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19613
19614 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19615
19616         stdint: omit redundant check for wchar.h
19617         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19618         always tests whether wchar.h exists, so remove the now-redundant test.
19619
19620 2011-02-18  Bruno Haible  <bruno@clisp.org>
19621
19622         stdint: Cut dependency to module 'wchar'.
19623         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19624         include the necessary prerequisites.
19625         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19626         * modules/stdint (Depends-on): Remove wchar.
19627         (Makefile.am): Substitute HAVE_WCHAR_H.
19628         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19629
19630 2011-02-18  Eric Blake  <eblake@redhat.com>
19631
19632         longlong: skip, rather than fail, on cross-compilation
19633         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19634         when cross-compiling; regression from 2011-02-16.
19635
19636 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19637
19638         * NEWS: Mention 2011-02-08 change to stdlib.
19639
19640 2011-02-17  Bruno Haible  <bruno@clisp.org>
19641
19642         getloadavg: Add comments about platforms.
19643         * m4/getloadavg.m4: Add comment.
19644         * lib/getloadavg.c: Likewise.
19645
19646 2011-02-17  Bruno Haible  <bruno@clisp.org>
19647
19648         getloadavg: Fix link error on Solaris 2.6.
19649         * modules/getloadavg (Link): New section.
19650         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19651         linking test-getloadavg.
19652         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19653         getloadavg.
19654
19655 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19658         It was 'int', but this doesn't match the IRIX 6.5 manual.
19659         Suggested by Bruno Haible in
19660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19661
19662 2011-02-17  Bruno Haible  <bruno@clisp.org>
19663
19664         havelib: Fix comments.
19665         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19666         change.
19667
19668 2011-02-17  Bruno Haible  <bruno@clisp.org>
19669
19670         havelib: Update config.rpath.
19671         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19672
19673 2011-02-17  Bruno Haible  <bruno@clisp.org>
19674
19675         getloadavg test: Add some plausibility checks.
19676         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19677         is improbable.
19678
19679 2011-02-16  Eric Blake  <eblake@redhat.com>
19680
19681         maintainer-makefile: make syntax-check a no-op from tarballs
19682         * top/maint.mk (no-vc-detected): New rule.
19683         (local-checks-available): Use it to avoid hanging if someone tries
19684         'make syntax-check' from a tarball.  Also append to any non-syntax
19685         checks already defined in cfg.mk.
19686
19687 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19688
19689         longlong: tune, particularly for common case of c99
19690
19691         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19692         or running anything if c99, or if unsigned long long int does not
19693         work.  In either case, we know the answer without further tests.
19694         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19695         it at most once, and use its results for both long long int and
19696         unsigned long long int.  This is more likely to be efficient in
19697         the common case where the program wants to check for both long
19698         long int and unsigned long long int.
19699         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19700         since the answer is already known.
19701
19702 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19703
19704         getloadavg: set errno
19705         * lib/getloadavg.c: Set errno when returning -1.  If no other
19706         error number looks appropriate, set it to ENOSYS if the getloadavg
19707         looks like it can't possibly ever work, ENOTSUP otherwise.
19708         Suggested by Bruno Haible in
19709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19710
19711         getloadavg: trim unused parts and speed up 'configure'
19712         * NEWS: Document this.
19713         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19714         always compiled if getloadavg is absent.
19715         Move test code to ...
19716         * tests/test-getloadavg.c: New file, containing previous
19717         contents of test from lib/getloadavg.c.  It also contains
19718         suggestions by Bruno Haible in
19719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19720         * modules/getloadavg-tests: New file.
19721         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19722         Do tests in the same order as they're needed for getloadavg.c.
19723         Omit setgid-related tests that generate symbols KMEM_GROUP,
19724         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19725         Do only the tests that are needed to see whether the system has
19726         getloadavg, moving the other tests into ...
19727         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19728         NLIST_NAME_UNION; nobody should be using it.  Do not define
19729         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19730         relevant, as the user of this module shouldn't care how getloadavg
19731         is implemented.
19732
19733         getloadavg: omit unused var
19734         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19735
19736 2011-02-15  Jim Meyering  <meyering@redhat.com>
19737
19738         doc: update users.txt
19739         * users.txt: Update iwhd's URL.
19740
19741 2011-02-13  Bruno Haible  <bruno@clisp.org>
19742
19743         Consistent macro naming for macros that use GCC __attribute__.
19744         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19745         _ATTRIBUTE_NONNULL_.
19746         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19747         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19748         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19749         ATTRIBUTE_DEPRECATED.
19750         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19751         ATTRIBUTE_NORETURN.
19752         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19753         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19754         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19755         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19756         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19757         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19758         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19759         ATTRIBUTE_SENTINEL.
19760         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19761         ATTRIBUTE_RETURN_CHECK.
19762         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19763         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19764         ATTRIBUTE_NORETURN.
19765         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19766         Reported by Paul Eggert.
19767
19768 2011-02-13  Bruno Haible  <bruno@clisp.org>
19769
19770         Don't interfere with a program's definition of __attribute__.
19771         * lib/argp.h (__attribute__): Remove definition.
19772         (_GL_ATTRIBUTE_FORMAT): New macro.
19773         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19774         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19775         (_GL_ATTRIBUTE_FORMAT): New macro.
19776         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19777         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19778         GCC 3 or newer.
19779         * lib/error.h (__attribute__): Remove definition.
19780         (_GL_ATTRIBUTE_FORMAT): New macro.
19781         (error, error_at_line): Use it.
19782         * lib/hash.h (__attribute__): Remove definition.
19783         (ATTRIBUTE_WUR): Update definition. Define always.
19784         * lib/openat.h (__attribute__): Remove definition.
19785         (ATTRIBUTE_NORETURN): Update definition. Define always.
19786         * lib/sigpipe-die.h (__attribute__): Remove definition.
19787         (ATTRIBUTE_NORETURN): Update definition. Define always.
19788         * lib/vasnprintf.h (__attribute__): Remove definition.
19789         (_GL_ATTRIBUTE_FORMAT): New macro.
19790         (asnprintf, vasnprintf): Use it.
19791         * lib/xalloc.h (__attribute__): Remove definition.
19792         (ATTRIBUTE_NORETURN): Update definition. Define always.
19793         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19794         * lib/xmemdup0.h (__attribute__): Remove definition.
19795         (ATTRIBUTE_NORETURN): Update definition. Define always.
19796         * lib/xprintf.h (__attribute__): Remove definition.
19797         (_GL_ATTRIBUTE_FORMAT): New macro.
19798         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19799         * lib/xstrtol.h (__attribute__): Remove definition.
19800         (ATTRIBUTE_NORETURN): Update definition. Define always.
19801         * lib/xvasprintf.h (__attribute__): Remove definition.
19802         (_GL_ATTRIBUTE_FORMAT): New macro.
19803         (xasprintf, xvasprintf): Use it.
19804         * tests/test-argmatch.c (__attribute__): Remove definition.
19805         (ATTRIBUTE_NORETURN): Update definition. Define always.
19806         * tests/test-exclude.c (__attribute__): Remove definition.
19807         (ATTRIBUTE_NORETURN): Update definition. Define always.
19808         Reported by Paul Eggert.
19809
19810 2011-02-13  Bruno Haible  <bruno@clisp.org>
19811
19812         mbrtowc: Add more tests for native Windows platforms.
19813         * tests/test-mbrtowc-w32-1.sh: New file.
19814         * tests/test-mbrtowc-w32-2.sh: New file.
19815         * tests/test-mbrtowc-w32-3.sh: New file.
19816         * tests/test-mbrtowc-w32-4.sh: New file.
19817         * tests/test-mbrtowc-w32-5.sh: New file.
19818         * tests/test-mbrtowc-w32.c: New file.
19819         * modules/mbrtowc-tests (Files): Add them.
19820         (Makefile.am): Arrange to run these tests.
19821         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19822         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19823
19824 2011-02-13  Bruno Haible  <bruno@clisp.org>
19825
19826         mbrtowc: Work around native Windows bug.
19827         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19828         guess when no suitable locale for testing was found.
19829         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19830
19831 2011-02-13  Bruno Haible  <bruno@clisp.org>
19832
19833         mbsinit: Work around mingw bug.
19834         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19835         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19836         Windows.
19837         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19838
19839 2011-02-13  Bruno Haible  <bruno@clisp.org>
19840
19841         mbsinit: Don't crash for a NULL argument.
19842         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19843         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19844
19845 2011-02-13  Bruno Haible  <bruno@clisp.org>
19846
19847         Don't interfere with a program's definition of __attribute__.
19848         * lib/stdio.in.h (__attribute__): Remove definition.
19849         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19850         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19851         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19852         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19853         * lib/string.in.h (__attribute__): Remove definition.
19854         Reported by Paul Eggert.
19855
19856 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19857
19858         stdlib: don't get in the way of non-GCC __attribute__
19859         See thread starting at
19860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19861         Revert previous stdlib change, installing the following instead:
19862         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19863         to get in the way of a non-GCC compiler that supports __attribute__.
19864         (_GL_ATTRIBUTE_RETURN): New macro.
19865         (_Exit): Use it instead of __attribute__.
19866
19867 2011-02-12  Bruno Haible  <bruno@clisp.org>
19868
19869         quotearg test: Avoid test failure on mingw.
19870         * tests/test-quotearg.sh: Convert the locale identifier from native
19871         Windows syntax to Unix syntax.
19872
19873 2011-02-12  Bruno Haible  <bruno@clisp.org>
19874
19875         setlocale: Prefer gnulib's override over libintl's override.
19876         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19877         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19878         GNULIB_defined_setlocale is set.
19879
19880 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19881
19882         stdlib: support non-GCC __attribute__
19883
19884         Fix a serious and tricky problem encountered when attempting to
19885         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19886         5.5, but it crashed due to memory corruption on Solaris 10 with
19887         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19888         bits that are otherwise zero.  This tagging is optional inside
19889         Emacs but is preferred and is used when __attribute__ ((__aligned
19890         (8))) works, as it does with both recent-enough GCC and with Sun C
19891         5.11.  However, Sun C 5.11 is not GCC and does not #define
19892         __GNUC__ and __GNUC_MINOR__.
19893
19894         When I added the getloadavg module to Emacs, it brought in
19895         stdlib.in.h, which contained this fragment:
19896
19897            #ifndef __attribute__
19898            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19899            #  define __attribute__(Spec)   /* empty */
19900            # endif
19901            #endif
19902
19903         When files that include <stdlib.h> were compiled with Sun C 5.11,
19904         the above code disabled __attribute__ ((__aligned (8))), which
19905         caused variables to not be properly aligned, which eventually led
19906         to the pointer corruption mentioned above.  (This was a bit hard
19907         to diagnose, unfortunately.)
19908
19909         Several "#define __attribute__(X) /* empty */" code snippets need
19910         to be eradicated from Gnulib to work with non-GCC compilers that
19911         support __attribute__.  The Autoconf way to do this is to test for
19912         each kind of attribute that we want support for, and selectively
19913         enable that in source code.
19914
19915         Fix this problem just for stdlib.h, by adding a test for the
19916         __noreturn__ attribute, and change stdlib.in.h to use that test
19917         when needed.  This technique can be easily generalized to the
19918         other *.in.h files and attributes, and a similar technique can be
19919         used for *.h and *.c files.  This patch is enough to solve the
19920         problem for Emacs + getloadavg, and I thought I'd publish it for
19921         feedback before undertaking further, similar fixes in other
19922         modules.
19923
19924         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19925         because it's not needed for stdlib.h.  It merely substitutes the
19926         value directly into stdlib.h.  We may well need to #define it, or
19927         similar symbols, for other modules, but it's nice to also have an
19928         option to not #define it for applications like Emacs that do not
19929         need it.
19930
19931         * lib/stdlib.in.h (__attribute__): Do not #define.
19932         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19933         be defined only if the _Exit module is also used.
19934         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19936         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19937         platforms.
19938         * modules/_Exit (Files): Add m4/attribute.m4.
19939         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19940         * m4/attribute.m4: New file.
19941
19942 2011-02-12  Bruno Haible  <bruno@clisp.org>
19943
19944         wcsrtombs: Work around bug on native Windows.
19945         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19946         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19947         instead of len.
19948         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19949
19950 2011-02-12  Bruno Haible  <bruno@clisp.org>
19951
19952         mbsrtowcs: Work around bug on native Windows.
19953         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19954         against mingw bug.
19955         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19956
19957 2011-02-12  Bruno Haible  <bruno@clisp.org>
19958
19959         Avoid setlocale bugs in tests.
19960         * modules/btowc (Dependencies): Add setlocale.
19961         * modules/c-strcase (Dependencies): Likewise.
19962         * modules/mbmemcasecmp (Dependencies): Likewise.
19963         * modules/mbmemcasecoll (Dependencies): Likewise.
19964         * modules/mbrtowc (Dependencies): Likewise.
19965         * modules/mbscasecmp (Dependencies): Likewise.
19966         * modules/mbscasestr (Dependencies): Likewise.
19967         * modules/mbschr (Dependencies): Likewise.
19968         * modules/mbscspn (Dependencies): Likewise.
19969         * modules/mbsinit (Dependencies): Likewise.
19970         * modules/mbsncasecmp (Dependencies): Likewise.
19971         * modules/mbsnrtowcs (Dependencies): Likewise.
19972         * modules/mbspbrk (Dependencies): Likewise.
19973         * modules/mbspcasecmp (Dependencies): Likewise.
19974         * modules/mbsrchr (Dependencies): Likewise.
19975         * modules/mbsrtowcs (Dependencies): Likewise.
19976         * modules/mbsspn (Dependencies): Likewise.
19977         * modules/mbsstr (Dependencies): Likewise.
19978         * modules/nl_langinfo (Dependencies): Likewise.
19979         * modules/quotearg (Dependencies): Likewise.
19980         * modules/unicase/locale-language (Dependencies): Likewise.
19981         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19982         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19983         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19984         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19985         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19986         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19987         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19988         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19989         * modules/vasnprintf-posix (Dependencies): Likewise.
19990         * modules/wcrtomb (Dependencies): Likewise.
19991         * modules/wcsnrtombs (Dependencies): Likewise.
19992         * modules/wcsrtombs (Dependencies): Likewise.
19993
19994 2011-02-12  Bruno Haible  <bruno@clisp.org>
19995
19996         setlocale: Workaround native Windows bug.
19997         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19998         succeeds but sets LC_CTYPE to "C", report a failure.
19999         * tests/test-setlocale2.sh: New file.
20000         * tests/test-setlocale2.c: New file.
20001         * modules/setlocale-tests (Files): Add the new files.
20002         (Makefile.am): Enable test-setlocale2.sh test.
20003         * doc/posix-functions/setlocale.texi: Mention workaround.
20004
20005 2011-02-11  Bruno Haible  <bruno@clisp.org>
20006
20007         Tests for module 'setlocale'.
20008         * modules/setlocale-tests: New file.
20009         * tests/test-setlocale1.sh: New file.
20010         * tests/test-setlocale1.c: New file.
20011
20012         New module 'setlocale'.
20013         * lib/locale.in.h (setlocale): New declaration.
20014         * lib/setlocale.c: New file, based on
20015         gettext/gettext-runtime/intl/setlocale.c.
20016         * m4/setlocale.m4: New file.
20017         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20018         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20019         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20020         REPLACE_SETLOCALE.
20021         * modules/setlocale: New file.
20022         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20023         * doc/posix-functions/setlocale.texi: Mention the new module.
20024
20025 2011-02-11  Bruno Haible  <bruno@clisp.org>
20026
20027         Prepare for locale dependent tests on mingw.
20028         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20029         because it has the wrong locale encoding.
20030         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20031         French_France.1252 instead of "fr".
20032         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20033         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20034         because it has the wrong locale encoding.
20035         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20036         native Windows, try Turkish_Turkey.65001.
20037         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20038         Chinese_China.54936.
20039
20040         Prepare for locale dependent tests on mingw.
20041         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20042         differently.
20043         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20044         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20045         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20047
20048 2011-02-11  Eric Blake  <eblake@redhat.com>
20049
20050         strptime: avoid compiler warnings
20051         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20052         compiler warnings about dead code.
20053         Reported by Daniel P. Berrange.
20054
20055 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20056
20057         doc: update users.txt
20058         * users.txt: Add rcs.
20059
20060 2011-02-10  John W. Eaton  <jwe@gnu.org>
20061
20062         doc: update users.txt
20063         * users.txt: Add octave.
20064
20065 2011-02-10  Jim Meyering  <meyering@redhat.com>
20066
20067         doc: update users.txt
20068         * users.txt: Add iwhd.
20069
20070 2011-02-09  Bruno Haible  <bruno@clisp.org>
20071
20072         gnulib-tool: Make copyright notice adjustment more robust.
20073         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20074         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20075         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20076         License".
20077         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20078
20079 2011-02-06  Bruno Haible  <bruno@clisp.org>
20080
20081         New module 'towctrans'.
20082         * modules/towctrans: New file.
20083         * lib/wctype.in.h (towctrans): New declaration.
20084         * lib/towctrans.c: New file.
20085         * lib/towctrans-impl.h: New file.
20086         * m4/towctrans.m4: New file.
20087         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20088         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20089         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20090         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20091         * doc/posix-functions/towctrans.texi: Mention the new module.
20092
20093 2011-02-06  Bruno Haible  <bruno@clisp.org>
20094
20095         New module 'wctrans'.
20096         * modules/wctrans: New file.
20097         * lib/wctype.in.h (wctrans): New declaration.
20098         * lib/wctrans.c: New file.
20099         * lib/wctrans-impl.h: New file.
20100         * m4/wctrans.m4: New file.
20101         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20102         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20103         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20104         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20105         * doc/posix-functions/wctrans.texi: Mention the new module.
20106
20107 2011-02-06  Bruno Haible  <bruno@clisp.org>
20108
20109         New module 'iswctype'.
20110         * modules/iswctype: New file.
20111         * lib/wctype.in.h (iswctype): New declaration.
20112         * lib/iswctype.c: New file.
20113         * lib/iswctype-impl.h: New file.
20114         * m4/iswctype.m4: New file.
20115         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20116         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20117         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20118         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20119         * doc/posix-functions/iswctype.texi: Mention the new module and the
20120         HP-UX 11.00 problem.
20121
20122 2011-02-06  Bruno Haible  <bruno@clisp.org>
20123
20124         New module 'wctype'.
20125         * modules/wctype: Change to represent the wctype() substitute.
20126         * lib/wctype.in.h (wctype): New declaration.
20127         * lib/wctype.c: New file.
20128         * lib/wctype-impl.h: New file.
20129         * m4/wctype.m4: New file.
20130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20132         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20133         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20134         * doc/posix-functions/wctype.texi: Mention the new module and the
20135         HP-UX 11.00 problem.
20136
20137 2011-02-06  Bruno Haible  <bruno@clisp.org>
20138
20139         wctype-h: Ensure wctype_t and wctrans_t are defined.
20140         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20141         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20142         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20143         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20144         HAVE_WCTRANS_T.
20145         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20146
20147 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20148
20149         flock: fix license typo
20150
20151         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20152         omitted.
20153
20154 2011-02-08  Bruno Haible  <bruno@clisp.org>
20155
20156         Split large sed scripts, for HP-UX sed.
20157         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20158         to avoid HP-UX limit of 99 commands, in the near future.
20159         * modules/stdlib (Makefile.am): Likewise.
20160         * modules/unistd (Makefile.am): Likewise.
20161         * modules/wchar (Makefile.am): Likewise.
20162         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20163         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20164         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20165
20166 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20167             Bruno Haible  <bruno@clisp.org>
20168
20169         stdlib: improve random_r modularization
20170         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20171         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20172         you also need the random_r module to get this material right.
20173         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20174         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20175         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20176
20177 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         stdlib: don't depend on stdint
20180         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20181         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20182         be independent of whether stdint.h is needed.
20183         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20184         here, instead of ...
20185         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20186         struct random_data should be using the random_r module, not just
20187         the stdlib module (which wouldn't make sense: what package needs
20188         just struct random_data without also needing random_r?).
20189         * modules/stdlib (Depends-on): Remove stdint.
20190
20191         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20192         See the thread rooted at
20193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20194         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20195         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20196         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20197         __VMS)); previously it was always included (via fcntl--.h).
20198         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20199         hand; this is good enough for load averages.  Also, do not use
20200         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20201         flags directly if available and don't bother otherwise.  (Packages
20202         that need the extra reliability should use the modules that define
20203         these flags on older platforms that lack them.)
20204         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20205         fcntl-safer.
20206
20207 2011-02-08  Jim Meyering  <meyering@redhat.com>
20208
20209         di-set.h, ino-map.h: add multiple-inclusion guard
20210         Technically, the guard is required only for ino-map.h, due to its
20211         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20212         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20213         * lib/ino-map.h: Likewise.
20214
20215 2011-02-06  Bruno Haible  <bruno@clisp.org>
20216
20217         iswblank: Ensure declaration on glibc systems.
20218         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20219         * modules/iswblank (Dependencies): Add 'extensions'.
20220         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20221
20222 2011-02-06  Bruno Haible  <bruno@clisp.org>
20223
20224         New module 'iswblank'.
20225         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20226         * modules/iswblank: New file.
20227         * modules/wctype-h (Files): Remove lib/iswblank.c.
20228         (Makefile.am): Substitute GNULIB_ISWBLANK.
20229         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20230         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20231         (gl_WCTYPE_H_DEFAULTS): New macro.
20232         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20233         * modules/iswblank-tests: New file.
20234         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20235         * tests/test-wctype-h.c (main): Remove iswblank tests.
20236         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20237         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20238         of 'wctype-h'.
20239         * NEWS: Mention the change.
20240         * modules/mbchar (Depends-on): Add iswblank.
20241
20242 2011-02-08  Bruno Haible  <bruno@clisp.org>
20243
20244         di-set tests: Refactor.
20245         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20246         unnecessary includes.
20247         (ASSERT): Remove macro.
20248         (main): Make C90 compliant by avoiding variable declaration after
20249         statement.
20250         * modules/di-set-tests (Files): Add tests/macros.h.
20251
20252 2011-02-08  Bruno Haible  <bruno@clisp.org>
20253
20254         ino-map tests: Refactor.
20255         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20256         unnecessary includes.
20257         (ASSERT): Remove macro.
20258         (main): Make C90 compliant by avoiding variable declaration after
20259         statement.
20260         * modules/ino-map-tests (Files): Add tests/macros.h.
20261
20262 2011-02-08  Jim Meyering  <meyering@redhat.com>
20263
20264         di-set: add "const" to a cast
20265         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20266         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20267
20268 2011-02-06  Bruno Haible  <bruno@clisp.org>
20269
20270         Rename module 'wctype' to 'wctype-h'.
20271         * modules/wctype-h: Renamed from modules/wctype.
20272         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20273         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20274         (Files, Depends-on, Makefile.am): Update.
20275         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20276         (Files, Makefile.am): Update.
20277         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20278         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20279         * doc/posix-headers/wctype.texi: Update.
20280         * doc/posix-functions/iswalnum.texi: Update.
20281         * doc/posix-functions/iswalpha.texi: Update.
20282         * doc/posix-functions/iswblank.texi: Update.
20283         * doc/posix-functions/iswcntrl.texi: Update.
20284         * doc/posix-functions/iswdigit.texi: Update.
20285         * doc/posix-functions/iswgraph.texi: Update.
20286         * doc/posix-functions/iswlower.texi: Update.
20287         * doc/posix-functions/iswprint.texi: Update.
20288         * doc/posix-functions/iswpunct.texi: Update.
20289         * doc/posix-functions/iswspace.texi: Update.
20290         * doc/posix-functions/iswupper.texi: Update.
20291         * doc/posix-functions/iswxdigit.texi: Update.
20292         * doc/posix-functions/towlower.texi: Update.
20293         * doc/posix-functions/towupper.texi: Update.
20294         * NEWS: Mention the change.
20295         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20296         * modules/mbchar (Dependencies): Likewise.
20297         * modules/mbswidth (Dependencies): Likewise.
20298         * modules/quotearg (Dependencies): Likewise.
20299         * modules/regex (Dependencies): Likewise.
20300         * modules/wcscasecmp (Dependencies): Likewise.
20301         * modules/wcsncasecmp (Dependencies): Likewise.
20302         * modules/wcwidth (Dependencies): Likewise.
20303
20304 2011-02-06  Bruno Haible  <bruno@clisp.org>
20305
20306         New module 'wcswidth'.
20307         * modules/wcswidth: New file.
20308         * lib/wchar.in.h (wcswidth): New declaration.
20309         * lib/wcswidth.c: New file.
20310         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20311         * m4/wcswidth.m4: New file.
20312         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20313         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20314         REPLACE_WCSWIDTH.
20315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20316         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20317         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20318         * doc/posix-functions/wcswidth.texi: Mention the new module.
20319
20320 2011-02-06  Bruno Haible  <bruno@clisp.org>
20321
20322         New module 'wcstok'.
20323         * modules/wcstok: New file.
20324         * lib/wchar.in.h (wcstok): New declaration.
20325         * lib/wcstok.c: New file.
20326         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20327         * m4/wcstok.m4: New file.
20328         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20329         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20331         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20332         * doc/posix-functions/wcstok.texi: Mention the new module.
20333
20334 2011-02-06  Bruno Haible  <bruno@clisp.org>
20335
20336         New module 'wcsstr'.
20337         * modules/wcsstr: New file.
20338         * lib/wchar.in.h (wcsstr): New declaration.
20339         * lib/wcsstr.c: New file.
20340         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20341         * m4/wcsstr.m4: New file.
20342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20344         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20345         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20346         * doc/posix-functions/wcsstr.texi: Mention the new module.
20347
20348 2011-02-06  Bruno Haible  <bruno@clisp.org>
20349
20350         New module 'wcspbrk'.
20351         * modules/wcspbrk: New file.
20352         * lib/wchar.in.h (wcspbrk): New declaration.
20353         * lib/wcspbrk.c: New file.
20354         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20355         * m4/wcspbrk.m4: New file.
20356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20358         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20359         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20360         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20361
20362 2011-02-06  Bruno Haible  <bruno@clisp.org>
20363
20364         New module 'wcsspn'.
20365         * modules/wcsspn: New file.
20366         * lib/wchar.in.h (wcsspn): New declaration.
20367         * lib/wcsspn.c: New file.
20368         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20369         * m4/wcsspn.m4: New file.
20370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20373         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20374         * doc/posix-functions/wcsspn.texi: Mention the new module.
20375
20376 2011-02-06  Bruno Haible  <bruno@clisp.org>
20377
20378         New module 'wcscspn'.
20379         * modules/wcscspn: New file.
20380         * lib/wchar.in.h (wcscspn): New declaration.
20381         * lib/wcscspn.c: New file.
20382         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20383         * m4/wcscspn.m4: New file.
20384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20387         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20388         * doc/posix-functions/wcscspn.texi: Mention the new module.
20389
20390 2011-02-06  Bruno Haible  <bruno@clisp.org>
20391
20392         New module 'wcsrchr'.
20393         * modules/wcsrchr: New file.
20394         * lib/wchar.in.h (wcsrchr): New declaration.
20395         * lib/wcsrchr.c: New file.
20396         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20397         * m4/wcsrchr.m4: New file.
20398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20401         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20402         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20403
20404 2011-02-06  Bruno Haible  <bruno@clisp.org>
20405
20406         New module 'wcschr'.
20407         * modules/wcschr: New file.
20408         * lib/wchar.in.h (wcschr): New declaration.
20409         * lib/wcschr.c: New file.
20410         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20411         * m4/wcschr.m4: New file.
20412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20415         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20416         * doc/posix-functions/wcschr.texi: Mention the new module.
20417
20418 2011-02-06  Bruno Haible  <bruno@clisp.org>
20419
20420         New module 'wcsdup'.
20421         * modules/wcsdup: New file.
20422         * lib/wchar.in.h (wcsdup): New declaration.
20423         * lib/wcsdup.c: New file.
20424         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20425         * m4/wcsdup.m4: New file.
20426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20429         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20430         * doc/posix-functions/wcsdup.texi: Mention the new module.
20431
20432 2011-02-06  Bruno Haible  <bruno@clisp.org>
20433
20434         New module 'wcsxfrm'.
20435         * modules/wcsxfrm: New file.
20436         * lib/wchar.in.h (wcsxfrm): New declaration.
20437         * lib/wcsxfrm.c: New file.
20438         * lib/wcsxfrm-impl.h: New file.
20439         * m4/wcsxfrm.m4: New file.
20440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20443         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20444         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20445
20446 2011-02-06  Bruno Haible  <bruno@clisp.org>
20447
20448         New module 'wcscoll'.
20449         * modules/wcscoll: New file.
20450         * lib/wchar.in.h (wcscoll): New declaration.
20451         * lib/wcscoll.c: New file.
20452         * lib/wcscoll-impl.h: New file.
20453         * m4/wcscoll.m4: New file.
20454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20457         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20458         * doc/posix-functions/wcscoll.texi: Mention the new module.
20459
20460 2011-02-06  Bruno Haible  <bruno@clisp.org>
20461
20462         New module 'wcsncasecmp'.
20463         * modules/wcsncasecmp: New file.
20464         * lib/wchar.in.h (wcsncasecmp): New declaration.
20465         * lib/wcsncasecmp.c: New file.
20466         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20467         * m4/wcsncasecmp.m4: New file.
20468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20471         HAVE_WCSNCASECMP.
20472         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20473         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20474
20475 2011-02-06  Bruno Haible  <bruno@clisp.org>
20476
20477         New module 'wcscasecmp'.
20478         * modules/wcscasecmp: New file.
20479         * lib/wchar.in.h (wcscasecmp): New declaration.
20480         * lib/wcscasecmp.c: New file.
20481         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20482         * m4/wcscasecmp.m4: New file.
20483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20486         HAVE_WCSCASECMP.
20487         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20488         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20489
20490 2011-02-05  Bruno Haible  <bruno@clisp.org>
20491
20492         New module 'wcsncmp'.
20493         * modules/wcsncmp: New file.
20494         * lib/wchar.in.h (wcsncmp): New declaration.
20495         * lib/wcsncmp.c: New file.
20496         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20497         * m4/wcsncmp.m4: New file.
20498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20501         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20502         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20503
20504 2011-02-05  Bruno Haible  <bruno@clisp.org>
20505
20506         New module 'wcscmp'.
20507         * modules/wcscmp: New file.
20508         * lib/wchar.in.h (wcscmp): New declaration.
20509         * lib/wcscmp.c: New file.
20510         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20511         * m4/wcscmp.m4: New file.
20512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20515         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20516         * doc/posix-functions/wcscmp.texi: Mention the new module.
20517
20518 2011-02-05  Bruno Haible  <bruno@clisp.org>
20519
20520         New module 'wcsncat'.
20521         * modules/wcsncat: New file.
20522         * lib/wchar.in.h (wcsncat): New declaration.
20523         * lib/wcsncat.c: New file.
20524         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20525         * m4/wcsncat.m4: New file.
20526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20529         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20530         * doc/posix-functions/wcsncat.texi: Mention the new module.
20531
20532 2011-02-05  Bruno Haible  <bruno@clisp.org>
20533
20534         New module 'wcscat'.
20535         * modules/wcscat: New file.
20536         * lib/wchar.in.h (wcscat): New declaration.
20537         * lib/wcscat.c: New file.
20538         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20539         * m4/wcscat.m4: New file.
20540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20543         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20544         * doc/posix-functions/wcscat.texi: Mention the new module.
20545
20546 2011-02-05  Bruno Haible  <bruno@clisp.org>
20547
20548         New module 'wcpncpy'.
20549         * modules/wcpncpy: New file.
20550         * lib/wchar.in.h (wcpncpy): New declaration.
20551         * lib/wcpncpy.c: New file.
20552         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20553         * m4/wcpncpy.m4: New file.
20554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20556         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20557         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20558         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20559
20560 2011-02-05  Bruno Haible  <bruno@clisp.org>
20561
20562         New module 'wcsncpy'.
20563         * modules/wcsncpy: New file.
20564         * lib/wchar.in.h (wcsncpy): New declaration.
20565         * lib/wcsncpy.c: New file.
20566         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20567         * m4/wcsncpy.m4: New file.
20568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20571         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20572         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20573
20574 2011-02-05  Bruno Haible  <bruno@clisp.org>
20575
20576         New module 'wcpcpy'.
20577         * modules/wcpcpy: New file.
20578         * lib/wchar.in.h (wcpcpy): New declaration.
20579         * lib/wcpcpy.c: New file.
20580         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20581         * m4/wcpcpy.m4: New file.
20582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20584         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20585         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20586         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20587
20588 2011-02-05  Bruno Haible  <bruno@clisp.org>
20589
20590         New module 'wcscpy'.
20591         * modules/wcscpy: New file.
20592         * lib/wchar.in.h (wcscpy): New declaration.
20593         * lib/wcscpy.c: New file.
20594         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20595         * m4/wcscpy.m4: New file.
20596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20599         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20600         * doc/posix-functions/wcscpy.texi: Mention the new module.
20601
20602 2011-02-05  Bruno Haible  <bruno@clisp.org>
20603
20604         New module 'wcsnlen'.
20605         * modules/wcsnlen: New file.
20606         * lib/wchar.in.h (wcsnlen): New declaration.
20607         * lib/wcsnlen.c: New file.
20608         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20609         * m4/wcsnlen.m4: New file.
20610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20613         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20614         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20615
20616 2011-02-05  Bruno Haible  <bruno@clisp.org>
20617
20618         New module 'wcslen'.
20619         * modules/wcslen: New file.
20620         * lib/wchar.in.h (wcslen): New declaration.
20621         * lib/wcslen.c: New file.
20622         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20623         * m4/wcslen.m4: New file.
20624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20627         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20628         * doc/posix-functions/wcslen.texi: Mention the new module.
20629
20630 2011-02-05  Bruno Haible  <bruno@clisp.org>
20631
20632         New module 'wmemset'.
20633         * modules/wmemset: New file.
20634         * lib/wchar.in.h (wmemset): New declaration.
20635         * lib/wmemset.c: New file.
20636         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20637         * m4/wmemset.m4: New file.
20638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20640         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20641         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20642         * doc/posix-functions/wmemset.texi: Mention the new module.
20643
20644 2011-02-05  Bruno Haible  <bruno@clisp.org>
20645
20646         New module 'wmemmove'.
20647         * modules/wmemmove: New file.
20648         * lib/wchar.in.h (wmemmove): New declaration.
20649         * lib/wmemmove.c: New file.
20650         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20651         * m4/wmemmove.m4: New file.
20652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20654         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20655         HAVE_WMEMMOVE.
20656         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20657         * doc/posix-functions/wmemmove.texi: Mention the new module.
20658
20659 2011-02-05  Bruno Haible  <bruno@clisp.org>
20660
20661         New module 'wmemcpy'.
20662         * modules/wmemcpy: New file.
20663         * lib/wchar.in.h (wmemcpy): New declaration.
20664         * lib/wmemcpy.c: New file.
20665         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20666         * m4/wmemcpy.m4: New file.
20667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20669         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20670         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20671         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20672
20673 2011-02-05  Bruno Haible  <bruno@clisp.org>
20674
20675         New module 'wmemcmp'.
20676         * modules/wmemcmp: New file.
20677         * lib/wchar.in.h (wmemcmp): New declaration.
20678         * lib/wmemcmp.c: New file.
20679         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20680         * m4/wmemcmp.m4: New file.
20681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20683         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20684         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20685         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20686
20687 2011-02-07  Jim Meyering  <meyering@redhat.com>
20688
20689         di-set, ino-map: new modules, from coreutils
20690         * lib/di-set.c: New file.
20691         * lib/di-set.h: Likewise.
20692         * lib/ino-map.c: Likewise.
20693         * lib/ino-map.h: Likewise.
20694         * modules/di-set: Likewise.
20695         * modules/di-set-tests: Likewise.
20696         * modules/ino-map: Likewise.
20697         * modules/ino-map-tests: Likewise.
20698         * tests/test-di-set.c: Likewise.
20699         * tests/test-ino-map.c: Likewise.
20700
20701 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20702
20703         getloadavg: merge minor changes from Emacs
20704
20705         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20706         (getloadavg): Use memset, not bzero.
20707
20708         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20709         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20710         clash (bug#86).
20711
20712 2010-11-14  Bruno Haible  <bruno@clisp.org>
20713
20714         Allow multiple gnulib generated replacements to coexist.
20715         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20716         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20717         * lib/langinfo.in.h (nl_item): Likewise.
20718         * lib/math.in.h (_NaN, NAN): Likewise.
20719         * lib/netdb.in.h (struct addrinfo): Likewise.
20720         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20721         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20722         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20723         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20724         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20725         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20726         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20727         pthread_mutexattr_init, pthread_mutexattr_settype,
20728         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20729         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20730         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20731         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20732         * lib/sched.in.h (struct sched_param): Likewise.
20733         * lib/se-selinux.in.h (security_class_t, security_context_t,
20734         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20735         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20736         lsetfilecon, fsetfilecon, security_check_context,
20737         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20738         Likewise.
20739         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20740         Likewise.
20741         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20742         _gl_function_taking_int_returning_void_t, union sigval,
20743         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20744         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20745         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20746         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20747         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20748         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20749         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20750         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20751         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20752         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20753         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20754         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20755         socklen_t, rpl_fd_isset): Likewise.
20756         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20757         * lib/sys_time.in.h (struct timeval): Likewise.
20758         * lib/sys_times.in.h (struct tms): Likewise.
20759         * lib/sys_utsname.in.h (struct utsname):
20760         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20761         * lib/unistd.in.h (getpagesize): Likewise.
20762         * lib/wchar.in.h (mbstate_t): Likewise.
20763         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20764         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20765         towlower, towupper): Likewise.
20766         Reported by Sam Steingold <sds@gnu.org>.
20767
20768 2011-02-05  Eric Blake  <eblake@redhat.com>
20769
20770         unsetenv: work around Haiku issues
20771         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20772         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20773
20774 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20775
20776         libposix: avoid calling error() within libposix
20777         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20778         is defined.
20779
20780 2011-02-05  Eric Blake  <eblake@redhat.com>
20781
20782         strerror_r-posix: port to cygwin
20783         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20784         implementation.
20785         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20786         * tests/test-strerror_r.c (main): Fix test.
20787         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20788         issue.
20789
20790 2011-02-05  Bruno Haible  <bruno@clisp.org>
20791
20792         New module 'wmemchr'.
20793         * modules/wmemchr: New file.
20794         * lib/wchar.in.h (wmemchr): New declaration.
20795         * lib/wmemchr.c: New file.
20796         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20797         * m4/wmemchr.m4: New file.
20798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20800         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20801         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20802         * doc/posix-functions/wmemchr.texi: Mention the new module.
20803
20804 2011-02-04  Eric Blake  <eblake@redhat.com>
20805
20806         fdopendir: detect FreeBSD bug
20807         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20808         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20809
20810 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20811
20812         stdbool: do not define HAVE_STDBOOL_H
20813         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20814         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20815         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20816         imported from the latest Autoconf git.  It was motivated by Emacs,
20817         which uses gnulib but does not need HAVE_STDBOOL_H.
20818
20819 2011-02-04  Bruno Haible  <bruno@clisp.org>
20820
20821         wcsnrtombs: Prepare for new module wwcsnrtombs.
20822         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20823         * lib/wcsnrtombs.c: Include it.
20824         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20825
20826         wcsrtombs: Prepare for new module wwcsrtombs.
20827         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20828         * lib/wcsrtombs.c: Include it.
20829         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20830
20831         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20832         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20833         * lib/mbsnrtowcs.c: Include it.
20834         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20835
20836         mbsrtowcs: Prepare for new module mbsrtowwcs.
20837         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20838         * lib/mbsrtowcs.c: Include it.
20839         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20840
20841 2011-02-04  Bruno Haible  <bruno@clisp.org>
20842
20843         vasnprintf: Reduce use of malloc for small format strings.
20844         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20845         (arguments): Add room for the first 7 arguments.
20846         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20847         (char_directives, u8_directives, u16_directives, u32_directives): Add
20848         room for the first 7 directives.
20849         * lib/printf-parse.c: Include <string.h>.
20850         (PRINTF_PARSE): Change memory handling code so that it uses the first
20851         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20852         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20853         Reported by Pádraig Brady <P@draigbrady.com>.
20854
20855 2011-01-31  Eric Blake  <eblake@redhat.com>
20856
20857         dup2: work around Haiku bug
20858         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20859         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20860         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20861         * tests/test-dup2.c (main): Enhance test.
20862
20863 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20864
20865         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20866         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20867         declared by eglibc 2.11.2.
20868         * lib/stdio.in.h: Likewise.
20869
20870 2011-01-31  Eric Blake  <eblake@redhat.com>
20871
20872         ignore-value: add missing test dependency
20873         * tests/test-ignore-value.c: Revert previous change; stdio.h
20874         provides off_t.
20875         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20876
20877 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20878
20879         mktime: clarify long_int width checking
20880         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20881         the top level, to make it clearer that the assumption about
20882         long_int width is being checked.  See
20883         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20884
20885 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20886
20887         ignore-value: Fix self-test.
20888         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20889
20890 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20891
20892         TYPE_MAXIMUM: avoid theoretically undefined behavior
20893         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20894         negative number, which the C Standard says has undefined behavior.
20895         In practice this is not a problem, but might as well do it by the book.
20896         Reported by Rich Felker and Eric Blake; see
20897         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20898         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20899         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20900         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20901         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20902         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20903         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20904
20905         mktime: #undef mktime before #defining it
20906         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20907
20908         mktime: systematically normalize tm_isdst comparisons
20909         * lib/mktime.c (isdst_differ): New function.
20910         (__mktime_internal): Use it systematically for all isdst comparisons.
20911         This completes the fix for libc BZ #6723, and removes the need for
20912         normalizing tm_isdst.  See
20913         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20914         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20915
20916         mktime: fix some integer overflow issues and sidestep the rest
20917
20918         This was prompted by a bug report by Benjamin Lindner for MinGW
20919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20920         His bug is due to signed integer overflow (0 - INT_MIN), and I
20921         I scanned through mktime.c looking for other integer overflow
20922         problems, fixing all the bugs I found.
20923
20924         Although the C Standard says the resulting code is still not safe
20925         in the presence of integer overflow, in practice it should be good
20926         enough for all real-world two's-complement implementations, except
20927         for debugging environments that deliberately trap on integer
20928         overflow (e.g., gcc -ftrapv).
20929
20930         * lib/mktime.c (WRAPV): New macro.
20931         (SHR): Also check that long_int and time_t shift right in the
20932         usual way, before using the fast-but-unportable method.
20933         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20934         used.  The code already assumed two's complement, so there's
20935         no need to test for alternatives.  All uses removed.
20936         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20937         the C standard.  Problem reported by Rich Felker in
20938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20939         (twos_complement_arithmetic): Also check long_int and time_t.
20940         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20941         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20942         (__mktime_internal): Avoid integer overflow with unary subtraction
20943         in two instances where -1 - X is an adequate replacement for -X,
20944         since the calculations are approximate.
20945
20946 2011-01-29  Eric Blake  <eblake@redhat.com>
20947
20948         mktime: avoid infinite loop
20949         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20950         type; behavior is still undefined but portable to all known targets.
20951         Reported by Rich Felker.
20952
20953 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20954
20955         rename, unlink, same-inode: Relicense.
20956         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20957         * modules/unlink (License): Likewise.
20958         * modules/same-inode (License): Likewise.
20959
20960 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20961
20962         mktime: avoid problems on NetBSD 5 / i386
20963         * lib/mktime.c (long_int): New type.  This works around a problem
20964         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20965         but time_t is 64 bits, and where I expect the existing code is
20966         wrong in some cases.
20967         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20968         (ydhms_diff): Bring back the compile-time check for wide-enough
20969         year and yday.
20970
20971         mktime: fix misspelling in comment
20972         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20973         This merges all recent glibc changes of importance.
20974
20975 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20976
20977         move-if-change: cope with concurrent mv of identical file.
20978         * build-aux/move-if-change (CMPPROG): Accept environment
20979         variable as an override for `cmp'.
20980         (usage): Document CMPPROG.
20981         Adjust comparison to drop stdout.  Cope with failure of mv if
20982         the target file exists and is identical to the source, for
20983         parallel builds.
20984         Report from H.J. Lu against binutils in PR binutils/12283.
20985
20986 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20987
20988         * users.txt: Mention sharutils.
20989
20990 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20991
20992         * users.txt: Mention OATH Toolkit.
20993
20994 2011-01-27  Bruno Haible  <bruno@clisp.org>
20995
20996         Prepare for supporting FreeBSD 10.
20997         * build-aux/config.libpath: Remove handling of freebsd1*.
20998
20999 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21000
21001         Prepare for supporting FreeBSD 10.
21002         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21003         match FreeBSD 10.0.
21004
21005 2011-01-27  Bruno Haible  <bruno@clisp.org>
21006
21007         vma-iter, get-rusage-as: Add OpenBSD support.
21008         * modules/vma-iter (configure.ac): Test for mquery.
21009         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21010         * lib/vma-iter.c: Include <sys/mman.h>.
21011         (vma_iterate): Add an implementation based on mquery().
21012         * lib/resource-ext.h (get_rusage_as): Update comments.
21013         * lib/get-rusage-as.c: Likewise.
21014         * lib/get-rusage-data.c: Likewise.
21015
21016 2011-01-26  Karl Berry  <karl@gnu.org>
21017
21018         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21019         variables to make it easier to override the makeinfo program used.
21020
21021 2011-01-26  Eric Blake  <eblake@redhat.com>
21022
21023         fcntl: work around Haiku F_DUPFD bugs
21024         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21025         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21026         cloexec bit on duplication.
21027         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21028
21029 2011-01-26  Bruno Haible  <bruno@clisp.org>
21030
21031         Enable memory leak tests on AIX.
21032         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21033         * tests/test-fprintf-posix3.c (main): Likewise.
21034
21035 2011-01-26  Bruno Haible  <bruno@clisp.org>
21036
21037         Tests for module 'get-rusage-data'.
21038         * modules/get-rusage-data-tests: New file.
21039         * tests/test-get-rusage-data.c: New file.
21040
21041         New module 'get-rusage-data'.
21042         * lib/resource-ext.h (get_rusage_data): New declaration.
21043         * lib/get-rusage-data.c: New file.
21044         * modules/get-rusage-data: New file.
21045
21046 2011-01-25  Bruno Haible  <bruno@clisp.org>
21047
21048         get-rusage-as: Allow for easier testing.
21049         * lib/resource-ext.h (get_rusage_as): Add comment.
21050         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21051         (main): New function for interactive testing.
21052
21053 2011-01-25  Bruno Haible  <bruno@clisp.org>
21054
21055         vma-iter: Treat Haiku like BeOS.
21056         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21057         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21058
21059 2011-01-25  Eric Blake  <eblake@redhat.com>
21060
21061         c-stack: fix regression on cygwin when libsigsegv is present
21062         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21063
21064 2011-01-24  Bruno Haible  <bruno@clisp.org>
21065
21066         vma-iter: Avoid empty intervals.
21067         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21068         on an empty interval.
21069
21070 2011-01-24  Jim Meyering  <meyering@redhat.com>
21071
21072         u64: remove unnecessary #include
21073         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21074
21075 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21076
21077         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21078         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21079
21080 2011-01-23  Bruno Haible  <bruno@clisp.org>
21081
21082         New module 'vma-iter'.
21083         * lib/vma-iter.h: New file.
21084         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21085         * modules/vma-iter: New file.
21086         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21087         for get_rusage_as_via_iterator.
21088         (vma_iterate_callback): New function.
21089         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21090         * modules/get-rusage-as (Depends-on): Add vma-iter.
21091
21092 2011-01-23  Bruno Haible  <bruno@clisp.org>
21093
21094         uninorm: Tweak includes.
21095         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21096         Reported by Jim Meyering.
21097
21098 2011-01-23  Bruno Haible  <bruno@clisp.org>
21099
21100         get-rusage-as: Improve on NetBSD.
21101         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21102         /proc, like on FreeBSD.
21103
21104 2011-01-23  Jim Meyering  <meyering@redhat.com>
21105
21106         xreadlink.h: remove unnecessary #include
21107         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21108
21109         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21110         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21111
21112 2011-01-23  Bruno Haible  <bruno@clisp.org>
21113
21114         get-rusage-as: Fix bug.
21115         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21116         original limit when aborting the first loop.
21117
21118 2011-01-23  Bruno Haible  <bruno@clisp.org>
21119
21120         wctype: Ensure valid C syntax.
21121         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21122         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21123
21124 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21125
21126         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21127         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21128         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21129         as they are needed only for configure's test case.
21130         This removes two unnecessary symbols from config.h.
21131
21132         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21133         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21135         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21136         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21137         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21138         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21139         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21140         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21141         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21142         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21143         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21144         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21145         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21146         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21147         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21148         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21149         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21150
21151 2011-01-21  Eric Blake  <eblake@redhat.com>
21152
21153         maintainer-makefile: work with older git for submodule check
21154         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21155         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21156         Reported by Matthias Bolte.
21157
21158         bootstrap: minor portability fixes
21159         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21160         (usage): Omit leading capital and trailing . on help phrases, per
21161         GNU Coding Standards.
21162         (check_versions, top level): Prefix messages with script name.
21163
21164 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21165
21166         bootstrap: support --no-git option
21167         * build-aux/bootstrap: Add --no-git option, to be used when
21168         --gnulib-srcdir points to the exact desired checkout.
21169
21170 2011-01-21  Eric Blake  <eblake@redhat.com>
21171
21172         strerror_r-posix: work with glibc 2.13
21173         * lib/strerror_r.c (strerror_r): Fix return type.
21174
21175 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21176             Bruno Haible  <bruno@clisp.org>
21177
21178         uN_strstr: New unit tests.
21179         * modules/unistr/u8-strstr-tests: New file.
21180         * modules/unistr/u16-strstr-tests: New file.
21181         * modules/unistr/u32-strstr-tests: New file.
21182         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21183         * tests/unistr/test-u8-strstr.c: New file.
21184         * tests/unistr/test-u16-strstr.c: New file.
21185         * tests/unistr/test-u32-strstr.c: New file.
21186
21187 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21188             Bruno Haible  <bruno@clisp.org>
21189
21190         Make uN_strstr functions O(n) worst-case.
21191         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21192         16-bit and 32-bit unit cases, use the unibyte algorithm from
21193         lib/mbsstr.c.
21194         * lib/unistr/u8-strstr.c: Include <string.h>.
21195         (UNIT_IS_UINT8_T): New macro.
21196         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21197         (U_STRLEN, U_STRNLEN): New macros.
21198         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21199         (U_STRLEN, U_STRNLEN): New macros.
21200         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21201         (configure.ac): Update required libunistring version.
21202         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21203         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21204         malloca.
21205         (configure.ac): Update required libunistring version.
21206         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21207         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21208         malloca.
21209         (configure.ac): Update required libunistring version.
21210
21211 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21212             Bruno Haible  <bruno@clisp.org>
21213
21214         Prepare for faster uN_strstr functions.
21215         * lib/str-kmp.h: Support definable UNITs.
21216         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21217         needle_len argument.
21218         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21219         * lib/mbscasestr.c (mbscasestr): Likewise.
21220
21221 2011-01-21  Pádraig Brady <P@draigBrady.com>
21222
21223         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21224         * tests/test-malloca.c (main): Unset the environment variable
21225         to greatly speed up the test.
21226         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21227         * modules/malloca-tests: Depend on unsetenv.
21228
21229 2011-01-21  Pádraig Brady <P@draigBrady.com>
21230
21231         ignore-value: remove stdint dependency
21232         * lib/ignore-value.h: Remove <stdint.h>
21233         * modules/ignore-value: Remove stdint dependency.
21234
21235 2011-01-21  Jim Meyering  <meyering@redhat.com>
21236
21237         maint.mk: adjust variable name to be consistent with other gl_ vars
21238         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21239         to be lower case.
21240
21241 2011-01-20  Jim Meyering  <meyering@redhat.com>
21242
21243         maint.mk: make "check" depend on public-submodule-commit by default
21244         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21245
21246 2011-01-20  Bruno Haible  <bruno@clisp.org>
21247
21248         mbfile, mbiter: Complete change from 2008-12-21.
21249         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21250         * m4/mbiter.m4 (gl_MBITER): Likewise.
21251
21252 2011-01-20  Jim Meyering  <meyering@redhat.com>
21253
21254         init.sh: insert space between each function name and "()"
21255         * tests/init.sh: Make it a little easier to see that a function's
21256         name is "warn_", and not "warn" when looking at the first part of
21257         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21258
21259 2011-01-20  Jim Meyering  <meyering@redhat.com>
21260
21261         mountlist: clean up code formatting
21262         * lib/mountlist.c (read_file_system_list): Split a long line,
21263         correct bracing style, use NULL in place of "(struct statfs *)0",
21264         don't parenthesize return value, add spaces around "=" and after
21265         ";-in-for-stmt".
21266
21267 2011-01-14  Markus Duft <mduft@gentoo.org>
21268
21269         mountlist: add support for Interix
21270         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21271         Apply statvfs to all entries of /dev/fs.
21272         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21273         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21274
21275 2011-01-20  Jim Meyering  <meyering@redhat.com>
21276
21277         maint.mk: improve the public-submodule-commit rule
21278         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21279         to suppress printing of its commands... unless V=1.
21280         Add git submodule's --quiet option to suppress printing of e.g.,
21281         "Entering gnulib" output.
21282         "cd" into $(srcdir) before running git submodule.
21283
21284 2011-01-20  Bruno Haible  <bruno@clisp.org>
21285
21286         include_next: Fix bug introduced on 2011-01-18.
21287         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21288         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21289         ac_cv_header_... variable if the second argument is not 'check'.
21290         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21291         gl_NEXT_HEADERS_INTERNAL.
21292
21293 2011-01-20  Bruno Haible  <bruno@clisp.org>
21294
21295         Allow the user to avoid the GNULIB_TEST_* macros.
21296         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21297         Suggested by Paul Eggert.
21298
21299 2011-01-14  Jim Meyering  <meyering@redhat.com>
21300
21301         bootstrap: avoid failure when there is no .gitmodules file
21302         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21303         has been assigned to, even when its value is the empty string.
21304         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21305         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21306         Reported by John W. Eaton <jwe@gnu.org>.
21307
21308 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         assume <ctype.h>, ..., <time.h> exist
21311         For years gnulib has been assuming the existence of the headers
21312         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21313         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21314         them, since they don't appear to be needed.
21315         * README (Portability guidelines): Document this.
21316         * lib/flock.c: Assume <fcntl.h> exists.
21317         * lib/regex_internal.h: Assume <locale.h> exists.
21318         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21319         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21320         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21321         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21322         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21323         * m4/regex.m4 (gl_REGEX): Likewise.
21324         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21325         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21326         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21327         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21328         * tests/test-argp.c: Likewise.
21329         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21330
21331         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21332         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21333         AA_APPLE_UNIVERSAL_BUILD.  See
21334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21335         * NEWS: Document this.
21336
21337 2011-01-19  Eric Blake  <eblake@redhat.com>
21338
21339         c-stack: assume stack overflow if SA_SIGINFO unsupported
21340         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21341         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21342         sigaction will work.
21343         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21344         behavior match Linux.
21345         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21346
21347         stdbool-tests: accomodate Haiku
21348         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21349
21350         binary-io: fix O_TEXT on Haiku
21351         * modules/binary-io (Depends-on): Add fcntl-h.
21352         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21353         than blindly undefining O_TEXT.
21354         Reported by Scott McCreary.
21355
21356 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21357
21358         include_next: do not check for standard headers like stddef.h
21359
21360         I found this problem when modifying Emacs to use gnulib.
21361         I noticed that it added HAVE_STDDEF_H to config.h, even though
21362         gnulib always assumes <stddef.h> exists as per README and this
21363         symbol is unnecessary.
21364         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21365         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21366         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21367         faster for headers like stddef.h that are known to exist.
21368         (gl_CHECK_NEXT_HEADERS): Use it.
21369         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21370         rather than gl_CHECK_NEXT_HEADERS.
21371         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21372         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21373
21374 2011-01-18  Eric Blake  <eblake@redhat.com>
21375
21376         ansi-c++-opt: skip C++ dependency style if C++ is unused
21377         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21378         tests when we know C++ compilation is not desired.
21379         Reported by Scott McCreary.
21380
21381 2011-01-18  Bruno Haible  <bruno@clisp.org>
21382
21383         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21384         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21385         (main): Perform test also when getrlimit and setrlimit don't exist or
21386         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21387         limiting the address space size using setrlimit, compare the address
21388         space size before and after the the test.
21389         * tests/test-dprintf-posix2.c: Likewise.
21390         * tests/test-fprintf-posix3.sh: Update skip messages.
21391         * tests/test-dprintf-posix2.sh: Likewise.
21392         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21393         * modules/dprintf-posix-tests (Depends-on): Likewise.
21394         Reported by Bruce Korb <bkorb@gnu.org> and
21395         Gary V. Vaughan <gary@gnu.org>.
21396
21397 2011-01-18  Bruno Haible  <bruno@clisp.org>
21398
21399         get-rusage-as: Improvement for Cygwin.
21400         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21401         areas that are merely reserved.
21402
21403 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         strftime: remove dependencies on multibyte modules
21406
21407         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21408         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21409         only if __osf__ is defined, and I suspect OSF doesn't need these
21410         other modules.  If my guess is wrong, we'll need to come up with a
21411         variant of strftime that doesn't need the multibyte modules.
21412
21413         I discovered this problem when attempting modify Emacs to use the
21414         strftime module.  With the previous gnulib, this caused Emacs to
21415         need 31 new files, ranging from lib/config.charset to
21416         m4/wint_t.m4.  This was overkill and I expect would be offputting
21417         to the Emacs maintainers.  After this change, only 6 new files are
21418         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21419         stdbool.m4, and tm_gmtoff.m4.
21420
21421         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21422         Suggested by Bruno Haible in
21423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21424         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21425         and do not check for wchar.h.
21426         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21427         (Depends-on): Remove mbrlen, mbsinit, wchar.
21428
21429 2011-01-18  Bruno Haible  <bruno@clisp.org>
21430
21431         Tests for module 'get-rusage-as'.
21432         * modules/get-rusage-as-tests: New file.
21433         * tests/test-get-rusage-as.c: New file.
21434
21435         New module 'get-rusage-as'.
21436         * modules/get-rusage-as: New file.
21437         * lib/resource-ext.h: New file.
21438         * lib/get-rusage-as.c: New file.
21439
21440 2011-01-17  Eric Blake  <eblake@redhat.com>
21441
21442         sigaction: relax license from LGPLv3+ to LGPLv2+
21443         * modules/sigaction (License): Relax to LGPLv2+.
21444
21445 2011-01-14  Bruno Haible  <bruno@clisp.org>
21446
21447         filemode: Make function declarations usable in C++ mode.
21448         * lib/filemode.h: Enclose function declarations in extern "C" block.
21449         Reported by John W. Eaton <jwe@gnu.org>.
21450
21451 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21452
21453         save-cwd: no longer include "xgetcwd.h"
21454         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21455         This avoids a compilation failure in projects that use save-cwd
21456         without also using the xgetcwd module.
21457
21458 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21461         This is so that a program like Emacs, which needs only dtoastr,
21462         does not have to bother with distributing and compiling ftoastr
21463         and ldtoastr.
21464         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21465         * modules/dtoastr, modules/ldtoastr: New files.
21466         * modules/ftoastr: Now works just for 'float'.
21467         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21468         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21469         dtoastr.c, ldtoastr.c.
21470
21471 2011-01-11  Jim Meyering  <meyering@redhat.com>
21472
21473         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21474         There is no need to work around the lack of the fchdir function,
21475         since gnulib can now provide a replacement when required.
21476         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21477         * modules/save-cwd (Depends-on): Add fchdir.
21478
21479 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21480
21481         openat, save-cwd: avoid xmalloc
21482
21483         This removes a direct (but undocumented) dependency of openat on
21484         xalloc, along with an indirect dependency via save-cwd.  It also
21485         removes a dependency of save-cwd on xgetcwd, and thereby
21486         indirectly on xalloc.  This change causes the openat substitute
21487         to fall back on save_cwd when memory is tight, and for save_cwd to
21488         fail instead of dying when memory is tight, but that's good enough.
21489         Problem and initial idea for fix reported by Bastien Roucaries in
21490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21491
21492         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21493         xalloc.h (for xmalloc).
21494         (openat_proc_name): Use malloc, not xmalloc.
21495         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21496         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21497
21498         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21499         This avoids heap allocation for file names whose lengths are in
21500         the range 512..1023, with the upper bound increasing to at most
21501         4031 depending on the platform's PATH_MAX.  (We do not want
21502         pathmax.h here as it might supply a non-constant PATH_MAX.)
21503         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21504         Perhaps they should be moved to malloca.h?
21505         (OPENAT_BUFFER_SIZE): Use them.
21506
21507 2011-01-10  Bruno Haible  <bruno@clisp.org>
21508
21509         doc: Update users.txt.
21510         * users.txt: Add recutils.
21511
21512 2011-01-09  Karl Berry  <karl@gnu.org>
21513
21514         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21515
21516         * doc/configmake.texi: New file.
21517         * doc/gnulib.texi: Include it.
21518         * modules/configmake: Move documentation from here.
21519
21520 2011-01-09  Bruno Haible  <bruno@clisp.org>
21521
21522         Update to Unicode 6.0.0.
21523         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21524         (get_lbp): Update for Unicode 6.0.0.
21525         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21526         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21527         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21528         U+11001, U+11038..U+11046. Remove U+06DE.
21529         (uc_width): Fix bounds of planes.
21530         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21531         lib/uniwidth/width.c.
21532         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21533         trailing whitespace removed.
21534         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21535         without comments, but with the original copyright notice.
21536         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21537         * lib/unicase/ignorable.h: Likewise.
21538         * lib/unicase/tocasefold.h: Likewise.
21539         * lib/unicase/tolower.h: Likewise.
21540         * lib/unicase/totitle.h: Likewise.
21541         * lib/unicase/toupper.h: Likewise.
21542         * lib/unictype/bidi_of.h: Likewise.
21543         * lib/unictype/blocks.h: Likewise.
21544         * lib/unictype/categ_C.h: Likewise.
21545         * lib/unictype/categ_Cn.h: Likewise.
21546         * lib/unictype/categ_L.h: Likewise.
21547         * lib/unictype/categ_Ll.h: Likewise.
21548         * lib/unictype/categ_Lm.h: Likewise.
21549         * lib/unictype/categ_Lo.h: Likewise.
21550         * lib/unictype/categ_Lu.h: Likewise.
21551         * lib/unictype/categ_M.h: Likewise.
21552         * lib/unictype/categ_Mc.h: Likewise.
21553         * lib/unictype/categ_Me.h: Likewise.
21554         * lib/unictype/categ_Mn.h: Likewise.
21555         * lib/unictype/categ_N.h: Likewise.
21556         * lib/unictype/categ_Nd.h: Likewise.
21557         * lib/unictype/categ_No.h: Likewise.
21558         * lib/unictype/categ_P.h: Likewise.
21559         * lib/unictype/categ_Po.h: Likewise.
21560         * lib/unictype/categ_S.h: Likewise.
21561         * lib/unictype/categ_Sc.h: Likewise.
21562         * lib/unictype/categ_Sk.h: Likewise.
21563         * lib/unictype/categ_Sm.h: Likewise.
21564         * lib/unictype/categ_So.h: Likewise.
21565         * lib/unictype/categ_of.h: Likewise.
21566         * lib/unictype/combining.h: Likewise.
21567         * lib/unictype/ctype_alnum.h: Likewise.
21568         * lib/unictype/ctype_alpha.h: Likewise.
21569         * lib/unictype/ctype_graph.h: Likewise.
21570         * lib/unictype/ctype_lower.h: Likewise.
21571         * lib/unictype/ctype_print.h: Likewise.
21572         * lib/unictype/ctype_punct.h: Likewise.
21573         * lib/unictype/ctype_upper.h: Likewise.
21574         * lib/unictype/decdigit.h: Likewise.
21575         * lib/unictype/digit.h: Likewise.
21576         * lib/unictype/numeric.h: Likewise.
21577         * lib/unictype/pr_alphabetic.h: Likewise.
21578         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21579         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21580         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21581         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21582         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21583         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21584         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21585         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21586         * lib/unictype/pr_case_ignorable.h: Likewise.
21587         * lib/unictype/pr_cased.h: Likewise.
21588         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21589         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21590         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21591         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21592         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21593         * lib/unictype/pr_combining.h: Likewise.
21594         * lib/unictype/pr_composite.h: Likewise.
21595         * lib/unictype/pr_currency_symbol.h: Likewise.
21596         * lib/unictype/pr_decimal_digit.h: Likewise.
21597         * lib/unictype/pr_deprecated.h: Likewise.
21598         * lib/unictype/pr_format_control.h: Likewise.
21599         * lib/unictype/pr_grapheme_base.h: Likewise.
21600         * lib/unictype/pr_grapheme_extend.h: Likewise.
21601         * lib/unictype/pr_grapheme_link.h: Likewise.
21602         * lib/unictype/pr_id_continue.h: Likewise.
21603         * lib/unictype/pr_id_start.h: Likewise.
21604         * lib/unictype/pr_ideographic.h: Likewise.
21605         * lib/unictype/pr_lowercase.h: Likewise.
21606         * lib/unictype/pr_math.h: Likewise.
21607         * lib/unictype/pr_numeric.h: Likewise.
21608         * lib/unictype/pr_other_alphabetic.h: Likewise.
21609         * lib/unictype/pr_other_id_continue.h: Likewise.
21610         * lib/unictype/pr_other_math.h: Likewise.
21611         * lib/unictype/pr_punctuation.h: Likewise.
21612         * lib/unictype/pr_sentence_terminal.h: Likewise.
21613         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21614         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21615         * lib/unictype/pr_unified_ideograph.h: Likewise.
21616         * lib/unictype/pr_uppercase.h: Likewise.
21617         * lib/unictype/pr_xid_continue.h: Likewise.
21618         * lib/unictype/pr_xid_start.h: Likewise.
21619         * lib/unictype/scripts.h: Likewise.
21620         * lib/unictype/scripts_byname.gperf: Likewise.
21621         * lib/unictype/sy_java_ident.h: Likewise.
21622         * lib/unigbrk/gbrkprop.h: Likewise.
21623         * lib/unilbrk/lbrkprop1.h: Likewise.
21624         * lib/unilbrk/lbrkprop2.h: Likewise.
21625         * lib/uninorm/decomposition-table2.h: Likewise.
21626         * lib/uniwbrk/wbrkprop.h: Likewise.
21627         * tests/unicase/test-cased.c: Likewise.
21628         * tests/unicase/test-ignorable.c: Likewise.
21629         * tests/unicase/test-uc_tolower.c: Likewise.
21630         * tests/unicase/test-uc_totitle.c: Likewise.
21631         * tests/unicase/test-uc_toupper.c: Likewise.
21632         * tests/unictype/test-categ_C.c: Likewise.
21633         * tests/unictype/test-categ_Cn.c: Likewise.
21634         * tests/unictype/test-categ_L.c: Likewise.
21635         * tests/unictype/test-categ_Ll.c: Likewise.
21636         * tests/unictype/test-categ_Lm.c: Likewise.
21637         * tests/unictype/test-categ_Lo.c: Likewise.
21638         * tests/unictype/test-categ_Lu.c: Likewise.
21639         * tests/unictype/test-categ_M.c: Likewise.
21640         * tests/unictype/test-categ_Mc.c: Likewise.
21641         * tests/unictype/test-categ_Me.c: Likewise.
21642         * tests/unictype/test-categ_Mn.c: Likewise.
21643         * tests/unictype/test-categ_N.c: Likewise.
21644         * tests/unictype/test-categ_Nd.c: Likewise.
21645         * tests/unictype/test-categ_No.c: Likewise.
21646         * tests/unictype/test-categ_P.c: Likewise.
21647         * tests/unictype/test-categ_Po.c: Likewise.
21648         * tests/unictype/test-categ_S.c: Likewise.
21649         * tests/unictype/test-categ_Sc.c: Likewise.
21650         * tests/unictype/test-categ_Sk.c: Likewise.
21651         * tests/unictype/test-categ_Sm.c: Likewise.
21652         * tests/unictype/test-categ_So.c: Likewise.
21653         * tests/unictype/test-ctype_alnum.c: Likewise.
21654         * tests/unictype/test-ctype_alpha.c: Likewise.
21655         * tests/unictype/test-ctype_graph.c: Likewise.
21656         * tests/unictype/test-ctype_lower.c: Likewise.
21657         * tests/unictype/test-ctype_print.c: Likewise.
21658         * tests/unictype/test-ctype_punct.c: Likewise.
21659         * tests/unictype/test-ctype_upper.c: Likewise.
21660         * tests/unictype/test-decdigit.h: Likewise.
21661         * tests/unictype/test-digit.h: Likewise.
21662         * tests/unictype/test-numeric.h: Likewise.
21663         * tests/unictype/test-pr_alphabetic.c: Likewise.
21664         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21665         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21666         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21667         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21668         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21669         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21670         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21671         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21672         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21673         * tests/unictype/test-pr_cased.c: Likewise.
21674         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21675         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21676         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21677         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21678         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21679         * tests/unictype/test-pr_combining.c: Likewise.
21680         * tests/unictype/test-pr_composite.c: Likewise.
21681         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21682         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21683         * tests/unictype/test-pr_deprecated.c: Likewise.
21684         * tests/unictype/test-pr_format_control.c: Likewise.
21685         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21686         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21687         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21688         * tests/unictype/test-pr_id_continue.c: Likewise.
21689         * tests/unictype/test-pr_id_start.c: Likewise.
21690         * tests/unictype/test-pr_ideographic.c: Likewise.
21691         * tests/unictype/test-pr_lowercase.c: Likewise.
21692         * tests/unictype/test-pr_math.c: Likewise.
21693         * tests/unictype/test-pr_numeric.c: Likewise.
21694         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21695         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21696         * tests/unictype/test-pr_other_math.c: Likewise.
21697         * tests/unictype/test-pr_punctuation.c: Likewise.
21698         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21699         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21700         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21701         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21702         * tests/unictype/test-pr_uppercase.c: Likewise.
21703         * tests/unictype/test-pr_xid_continue.c: Likewise.
21704         * tests/unictype/test-pr_xid_start.c: Likewise.
21705         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21706         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21707         changes.
21708         * lib/unictype/categ_Cc.h: Likewise.
21709         * lib/unictype/categ_Cf.h: Likewise.
21710         * lib/unictype/categ_Co.h: Likewise.
21711         * lib/unictype/categ_Cs.h: Likewise.
21712         * lib/unictype/categ_Lt.h: Likewise.
21713         * lib/unictype/categ_Nl.h: Likewise.
21714         * lib/unictype/categ_Pc.h: Likewise.
21715         * lib/unictype/categ_Pd.h: Likewise.
21716         * lib/unictype/categ_Pe.h: Likewise.
21717         * lib/unictype/categ_Pf.h: Likewise.
21718         * lib/unictype/categ_Pi.h: Likewise.
21719         * lib/unictype/categ_Ps.h: Likewise.
21720         * lib/unictype/categ_Z.h: Likewise.
21721         * lib/unictype/categ_Zl.h: Likewise.
21722         * lib/unictype/categ_Zp.h: Likewise.
21723         * lib/unictype/categ_Zs.h: Likewise.
21724         * lib/unictype/ctype_blank.h: Likewise.
21725         * lib/unictype/ctype_cntrl.h: Likewise.
21726         * lib/unictype/ctype_digit.h: Likewise.
21727         * lib/unictype/ctype_space.h: Likewise.
21728         * lib/unictype/ctype_xdigit.h: Likewise.
21729         * lib/unictype/mirror.h: Likewise.
21730         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21731         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21732         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21733         * lib/unictype/pr_bidi_control.h: Likewise.
21734         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21735         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21736         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21737         * lib/unictype/pr_bidi_pdf.h: Likewise.
21738         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21739         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21740         * lib/unictype/pr_dash.h: Likewise.
21741         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21742         * lib/unictype/pr_diacritic.h: Likewise.
21743         * lib/unictype/pr_extender.h: Likewise.
21744         * lib/unictype/pr_hex_digit.h: Likewise.
21745         * lib/unictype/pr_hyphen.h: Likewise.
21746         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21747         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21748         * lib/unictype/pr_ignorable_control.h: Likewise.
21749         * lib/unictype/pr_iso_control.h: Likewise.
21750         * lib/unictype/pr_join_control.h: Likewise.
21751         * lib/unictype/pr_left_of_pair.h: Likewise.
21752         * lib/unictype/pr_line_separator.h: Likewise.
21753         * lib/unictype/pr_logical_order_exception.h: Likewise.
21754         * lib/unictype/pr_non_break.h: Likewise.
21755         * lib/unictype/pr_not_a_character.h: Likewise.
21756         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21757         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21758         * lib/unictype/pr_other_id_start.h: Likewise.
21759         * lib/unictype/pr_other_lowercase.h: Likewise.
21760         * lib/unictype/pr_other_uppercase.h: Likewise.
21761         * lib/unictype/pr_paired_punctuation.h: Likewise.
21762         * lib/unictype/pr_paragraph_separator.h: Likewise.
21763         * lib/unictype/pr_pattern_syntax.h: Likewise.
21764         * lib/unictype/pr_pattern_white_space.h: Likewise.
21765         * lib/unictype/pr_private_use.h: Likewise.
21766         * lib/unictype/pr_quotation_mark.h: Likewise.
21767         * lib/unictype/pr_radical.h: Likewise.
21768         * lib/unictype/pr_soft_dotted.h: Likewise.
21769         * lib/unictype/pr_space.h: Likewise.
21770         * lib/unictype/pr_titlecase.h: Likewise.
21771         * lib/unictype/pr_variation_selector.h: Likewise.
21772         * lib/unictype/pr_white_space.h: Likewise.
21773         * lib/unictype/pr_zero_width.h: Likewise.
21774         * lib/unictype/sy_c_ident.h: Likewise.
21775         * lib/unictype/sy_c_whitespace.h: Likewise.
21776         * lib/unictype/sy_java_whitespace.h: Likewise.
21777         * lib/uninorm/composition-table.gperf: Likewise.
21778         * lib/uninorm/decomposition-table1.h: Likewise.
21779         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21780         LB8.
21781         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21782         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21783         * modules/unictype/*: Bump version number of expected libunistring
21784         version.
21785
21786 2011-01-09  Bruno Haible  <bruno@clisp.org>
21787
21788         Update to Unicode 5.2.0.
21789         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21790         trailing whitespace removed.
21791
21792 2011-01-09  Bruno Haible  <bruno@clisp.org>
21793
21794         New Unicode character properties, from Unicode 5.2.0.
21795         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21796         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21797         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21798         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21799         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21800         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21801         uc_is_property_cased, uc_is_property_case_ignorable,
21802         uc_is_property_changes_when_lowercased,
21803         uc_is_property_changes_when_uppercased,
21804         uc_is_property_changes_when_titlecased,
21805         uc_is_property_changes_when_casefolded,
21806         uc_is_property_changes_when_casemapped): New declarations.
21807         * lib/unictype/pr_byname.gperf: Add the new properties.
21808         * modules/unictype/property-byname (Depends-on): Depend on the new
21809         properties modules.
21810         * modules/unictype/property-all (Depends-on): Likewise.
21811         * MODULES.html.sh (Unicode string functions): Add
21812         unictype/property-case-ignorable, unictype/property-cased,
21813         unictype/property-changes-when-casefolded,
21814         unictype/property-changes-when-casemapped,
21815         unictype/property-changes-when-lowercased,
21816         unictype/property-changes-when-titlecased,
21817         unictype/property-changes-when-uppercased.
21818
21819         New module 'unictype/property-changes-when-casemapped'.
21820         * modules/unictype/property-changes-when-casemapped: New file.
21821         * lib/unictype/pr_changes_when_casemapped.c: New file.
21822         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21823         generated by gen-uni-tables.
21824         * modules/unictype/property-changes-when-casemapped-tests: New file.
21825         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21826         automatically generated by gen-uni-tables.
21827
21828         New module 'unictype/property-changes-when-casefolded'.
21829         * modules/unictype/property-changes-when-casefolded: New file.
21830         * lib/unictype/pr_changes_when_casefolded.c: New file.
21831         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21832         generated by gen-uni-tables.
21833         * modules/unictype/property-changes-when-casefolded-tests: New file.
21834         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21835         automatically generated by gen-uni-tables.
21836
21837         New module 'unictype/property-changes-when-titlecased'.
21838         * modules/unictype/property-changes-when-titlecased: New file.
21839         * lib/unictype/pr_changes_when_titlecased.c: New file.
21840         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21841         generated by gen-uni-tables.
21842         * modules/unictype/property-changes-when-titlecased-tests: New file.
21843         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21844         automatically generated by gen-uni-tables.
21845
21846         New module 'unictype/property-changes-when-uppercased'.
21847         * modules/unictype/property-changes-when-uppercased: New file.
21848         * lib/unictype/pr_changes_when_uppercased.c: New file.
21849         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21850         generated by gen-uni-tables.
21851         * modules/unictype/property-changes-when-uppercased-tests: New file.
21852         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21853         automatically generated by gen-uni-tables.
21854
21855         New module 'unictype/property-changes-when-lowercased'.
21856         * modules/unictype/property-changes-when-lowercased: New file.
21857         * lib/unictype/pr_changes_when_lowercased.c: New file.
21858         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21859         generated by gen-uni-tables.
21860         * modules/unictype/property-changes-when-lowercased-tests: New file.
21861         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21862         automatically generated by gen-uni-tables.
21863
21864         New module 'unictype/property-case-ignorable'.
21865         * modules/unictype/property-case-ignorable: New file.
21866         * lib/unictype/pr_case_ignorable.c: New file.
21867         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21868         by gen-uni-tables.
21869         * modules/unictype/property-case-ignorable-tests: New file.
21870         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21871         generated by gen-uni-tables.
21872
21873         New module 'unictype/property-cased'.
21874         * modules/unictype/property-cased: New file.
21875         * lib/unictype/pr_cased.c: New file.
21876         * lib/unictype/pr_cased.h: New file, automatically generated by
21877         gen-uni-tables.
21878         * modules/unictype/property-cased-tests: New file.
21879         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21880         gen-uni-tables.
21881
21882 2011-01-09  Bruno Haible  <bruno@clisp.org>
21883
21884         Update to Unicode 5.2.0.
21885         * lib/gen-uni-tables.c (output_predicate, output_category,
21886         output_combclass, output_bidi_category, output_decimal_digit_test,
21887         output_decimal_digit, output_digit_test, output_digit,
21888         output_numeric_test, output_numeric, output_mirror, output_scripts,
21889         output_scripts_byname, output_blocks, output_ident_category): Fix
21890         comment header.
21891         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21892         get_wbp.
21893         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21894         items.
21895         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21896         Changes_When_Lowercased, Changes_When_Uppercased,
21897         Changes_When_Titlecased, Changes_When_Casefolded,
21898         Changes_When_Casemapped.
21899         (is_property_alphabetic, is_property_default_ignorable_code_point):
21900         Update for Unicode 5.2.0.
21901         (is_property_cased, is_property_case_ignorable,
21902         is_property_changes_when_lowercased,
21903         is_property_changes_when_uppercased,
21904         is_property_changes_when_titlecased,
21905         is_property_changes_when_casefolded,
21906         is_property_changes_when_casemapped): New functions.
21907         (output_properties): Output also the properties cased, case_ignorable,
21908         changes_when_lowercased, changes_when_uppercased,
21909         changes_when_titlecased, changes_when_casefolded,
21910         changes_when_casemapped.
21911         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21912         Unicode TR#11 revision 17 -> 19.
21913         (LBP_CP): New enumeration value.
21914         (LBP_*): Adjust values accordingly.
21915         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21916         TR#14 revision 22 -> 24.
21917         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21918         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21919         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21920         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21921         is_WBP_MIDLETTER.
21922         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21923         the code1 and code2 of each composition rule.
21924         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21925         * lib/unicase/ignorable.h: Likewise.
21926         * lib/unicase/tocasefold.h: Likewise.
21927         * lib/unicase/tolower.h: Likewise.
21928         * lib/unicase/totitle.h: Likewise.
21929         * lib/unicase/toupper.h: Likewise.
21930         * lib/unictype/bidi_of.h: Likewise.
21931         * lib/unictype/blocks.h: Likewise.
21932         * lib/unictype/categ_C.h: Likewise.
21933         * lib/unictype/categ_Cf.h: Likewise.
21934         * lib/unictype/categ_Cn.h: Likewise.
21935         * lib/unictype/categ_L.h: Likewise.
21936         * lib/unictype/categ_Ll.h: Likewise.
21937         * lib/unictype/categ_Lm.h: Likewise.
21938         * lib/unictype/categ_Lo.h: Likewise.
21939         * lib/unictype/categ_Lu.h: Likewise.
21940         * lib/unictype/categ_M.h: Likewise.
21941         * lib/unictype/categ_Mc.h: Likewise.
21942         * lib/unictype/categ_Mn.h: Likewise.
21943         * lib/unictype/categ_N.h: Likewise.
21944         * lib/unictype/categ_Nd.h: Likewise.
21945         * lib/unictype/categ_Nl.h: Likewise.
21946         * lib/unictype/categ_No.h: Likewise.
21947         * lib/unictype/categ_P.h: Likewise.
21948         * lib/unictype/categ_Pd.h: Likewise.
21949         * lib/unictype/categ_Po.h: Likewise.
21950         * lib/unictype/categ_S.h: Likewise.
21951         * lib/unictype/categ_Sc.h: Likewise.
21952         * lib/unictype/categ_So.h: Likewise.
21953         * lib/unictype/categ_of.h: Likewise.
21954         * lib/unictype/combining.h: Likewise.
21955         * lib/unictype/ctype_alnum.h: Likewise.
21956         * lib/unictype/ctype_alpha.h: Likewise.
21957         * lib/unictype/ctype_graph.h: Likewise.
21958         * lib/unictype/ctype_lower.h: Likewise.
21959         * lib/unictype/ctype_print.h: Likewise.
21960         * lib/unictype/ctype_punct.h: Likewise.
21961         * lib/unictype/ctype_upper.h: Likewise.
21962         * lib/unictype/decdigit.h: Likewise.
21963         * lib/unictype/digit.h: Likewise.
21964         * lib/unictype/numeric.h: Likewise.
21965         * lib/unictype/pr_alphabetic.h: Likewise.
21966         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21967         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21968         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21969         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21970         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21971         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21972         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21973         * lib/unictype/pr_combining.h: Likewise.
21974         * lib/unictype/pr_composite.h: Likewise.
21975         * lib/unictype/pr_currency_symbol.h: Likewise.
21976         * lib/unictype/pr_dash.h: Likewise.
21977         * lib/unictype/pr_decimal_digit.h: Likewise.
21978         * lib/unictype/pr_deprecated.h: Likewise.
21979         * lib/unictype/pr_diacritic.h: Likewise.
21980         * lib/unictype/pr_extender.h: Likewise.
21981         * lib/unictype/pr_grapheme_base.h: Likewise.
21982         * lib/unictype/pr_grapheme_extend.h: Likewise.
21983         * lib/unictype/pr_grapheme_link.h: Likewise.
21984         * lib/unictype/pr_id_continue.h: Likewise.
21985         * lib/unictype/pr_id_start.h: Likewise.
21986         * lib/unictype/pr_ideographic.h: Likewise.
21987         * lib/unictype/pr_ignorable_control.h: Likewise.
21988         * lib/unictype/pr_logical_order_exception.h: Likewise.
21989         * lib/unictype/pr_lowercase.h: Likewise.
21990         * lib/unictype/pr_numeric.h: Likewise.
21991         * lib/unictype/pr_other_alphabetic.h: Likewise.
21992         * lib/unictype/pr_punctuation.h: Likewise.
21993         * lib/unictype/pr_sentence_terminal.h: Likewise.
21994         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21995         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21996         * lib/unictype/pr_unified_ideograph.h: Likewise.
21997         * lib/unictype/pr_uppercase.h: Likewise.
21998         * lib/unictype/pr_xid_continue.h: Likewise.
21999         * lib/unictype/pr_xid_start.h: Likewise.
22000         * lib/unictype/pr_zero_width.h: Likewise.
22001         * lib/unictype/scripts.h: Likewise.
22002         * lib/unictype/scripts_byname.gperf: Likewise.
22003         * lib/unictype/sy_java_ident.h: Likewise.
22004         * lib/unigbrk/gbrkprop.h: Likewise.
22005         * lib/unilbrk/lbrkprop1.h: Likewise.
22006         * lib/unilbrk/lbrkprop2.h: Likewise.
22007         * lib/unilbrk/lbrktables.h: Likewise.
22008         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22009         LBP_CP. Implement rule LB30.
22010         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22011         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22012         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22013         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22014         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22015         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22016         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22017         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22018         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22019         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22020         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22021         bits instead of 16 bits in the code1 and code2 of each composition
22022         rule.
22023         (uc_composition): Update for Unicode 5.2.0.
22024         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22025         * lib/uninorm/decomposition-table2.h: Likewise.
22026         * lib/uniwbrk/wbrkprop.h: Likewise.
22027         * tests/unicase/test-cased.c: Likewise.
22028         * tests/unicase/test-ignorable.c: Likewise.
22029         * tests/unicase/test-uc_tolower.c: Likewise.
22030         * tests/unicase/test-uc_totitle.c: Likewise.
22031         * tests/unicase/test-uc_toupper.c: Likewise.
22032         * tests/unictype/test-categ_C.c: Likewise.
22033         * tests/unictype/test-categ_Cf.c: Likewise.
22034         * tests/unictype/test-categ_Cn.c: Likewise.
22035         * tests/unictype/test-categ_L.c: Likewise.
22036         * tests/unictype/test-categ_Ll.c: Likewise.
22037         * tests/unictype/test-categ_Lm.c: Likewise.
22038         * tests/unictype/test-categ_Lo.c: Likewise.
22039         * tests/unictype/test-categ_Lu.c: Likewise.
22040         * tests/unictype/test-categ_M.c: Likewise.
22041         * tests/unictype/test-categ_Mc.c: Likewise.
22042         * tests/unictype/test-categ_Mn.c: Likewise.
22043         * tests/unictype/test-categ_N.c: Likewise.
22044         * tests/unictype/test-categ_Nd.c: Likewise.
22045         * tests/unictype/test-categ_Nl.c: Likewise.
22046         * tests/unictype/test-categ_No.c: Likewise.
22047         * tests/unictype/test-categ_P.c: Likewise.
22048         * tests/unictype/test-categ_Pd.c: Likewise.
22049         * tests/unictype/test-categ_Po.c: Likewise.
22050         * tests/unictype/test-categ_S.c: Likewise.
22051         * tests/unictype/test-categ_Sc.c: Likewise.
22052         * tests/unictype/test-categ_So.c: Likewise.
22053         * tests/unictype/test-ctype_alnum.c: Likewise.
22054         * tests/unictype/test-ctype_alpha.c: Likewise.
22055         * tests/unictype/test-ctype_graph.c: Likewise.
22056         * tests/unictype/test-ctype_lower.c: Likewise.
22057         * tests/unictype/test-ctype_print.c: Likewise.
22058         * tests/unictype/test-ctype_punct.c: Likewise.
22059         * tests/unictype/test-ctype_upper.c: Likewise.
22060         * tests/unictype/test-decdigit.h: Likewise.
22061         * tests/unictype/test-digit.h: Likewise.
22062         * tests/unictype/test-numeric.h: Likewise.
22063         * tests/unictype/test-pr_alphabetic.c: Likewise.
22064         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22065         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22066         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22067         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22068         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22069         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22070         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22071         * tests/unictype/test-pr_combining.c: Likewise.
22072         * tests/unictype/test-pr_composite.c: Likewise.
22073         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22074         * tests/unictype/test-pr_dash.c: Likewise.
22075         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22076         * tests/unictype/test-pr_deprecated.c: Likewise.
22077         * tests/unictype/test-pr_diacritic.c: Likewise.
22078         * tests/unictype/test-pr_extender.c: Likewise.
22079         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22080         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22081         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22082         * tests/unictype/test-pr_id_continue.c: Likewise.
22083         * tests/unictype/test-pr_id_start.c: Likewise.
22084         * tests/unictype/test-pr_ideographic.c: Likewise.
22085         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22086         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22087         * tests/unictype/test-pr_lowercase.c: Likewise.
22088         * tests/unictype/test-pr_numeric.c: Likewise.
22089         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22090         * tests/unictype/test-pr_punctuation.c: Likewise.
22091         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22092         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22093         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22094         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22095         * tests/unictype/test-pr_uppercase.c: Likewise.
22096         * tests/unictype/test-pr_xid_continue.c: Likewise.
22097         * tests/unictype/test-pr_xid_start.c: Likewise.
22098         * tests/unictype/test-pr_zero_width.c: Likewise.
22099         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22100         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22101         changed behaviour: line breaking is now disallowed between a letter
22102         or '=' and '('.
22103         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22104         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22105         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22106         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22107         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22108         lib/uniwidth/width.c.
22109         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22110         without comments, but with the original copyright notice.
22111         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22112         changes.
22113         * lib/unictype/categ_Cc.h: Likewise.
22114         * lib/unictype/categ_Co.h: Likewise.
22115         * lib/unictype/categ_Cs.h: Likewise.
22116         * lib/unictype/categ_Lt.h: Likewise.
22117         * lib/unictype/categ_Me.h: Likewise.
22118         * lib/unictype/categ_Pc.h: Likewise.
22119         * lib/unictype/categ_Pe.h: Likewise.
22120         * lib/unictype/categ_Pf.h: Likewise.
22121         * lib/unictype/categ_Pi.h: Likewise.
22122         * lib/unictype/categ_Ps.h: Likewise.
22123         * lib/unictype/categ_Sk.h: Likewise.
22124         * lib/unictype/categ_Sm.h: Likewise.
22125         * lib/unictype/categ_Z.h: Likewise.
22126         * lib/unictype/categ_Zl.h: Likewise.
22127         * lib/unictype/categ_Zp.h: Likewise.
22128         * lib/unictype/categ_Zs.h: Likewise.
22129         * lib/unictype/ctype_blank.h: Likewise.
22130         * lib/unictype/ctype_cntrl.h: Likewise.
22131         * lib/unictype/ctype_digit.h: Likewise.
22132         * lib/unictype/ctype_space.h: Likewise.
22133         * lib/unictype/ctype_xdigit.h: Likewise.
22134         * lib/unictype/mirror.h: Likewise.
22135         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22136         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22137         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22138         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22139         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22140         * lib/unictype/pr_bidi_control.h: Likewise.
22141         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22142         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22143         * lib/unictype/pr_bidi_pdf.h: Likewise.
22144         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22145         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22146         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22147         * lib/unictype/pr_format_control.h: Likewise.
22148         * lib/unictype/pr_hex_digit.h: Likewise.
22149         * lib/unictype/pr_hyphen.h: Likewise.
22150         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22151         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22152         * lib/unictype/pr_iso_control.h: Likewise.
22153         * lib/unictype/pr_join_control.h: Likewise.
22154         * lib/unictype/pr_left_of_pair.h: Likewise.
22155         * lib/unictype/pr_line_separator.h: Likewise.
22156         * lib/unictype/pr_math.h: Likewise.
22157         * lib/unictype/pr_non_break.h: Likewise.
22158         * lib/unictype/pr_not_a_character.h: Likewise.
22159         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22160         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22161         * lib/unictype/pr_other_id_continue.h: Likewise.
22162         * lib/unictype/pr_other_id_start.h: Likewise.
22163         * lib/unictype/pr_other_lowercase.h: Likewise.
22164         * lib/unictype/pr_other_math.h: Likewise.
22165         * lib/unictype/pr_other_uppercase.h: Likewise.
22166         * lib/unictype/pr_paired_punctuation.h: Likewise.
22167         * lib/unictype/pr_paragraph_separator.h: Likewise.
22168         * lib/unictype/pr_pattern_syntax.h: Likewise.
22169         * lib/unictype/pr_pattern_white_space.h: Likewise.
22170         * lib/unictype/pr_private_use.h: Likewise.
22171         * lib/unictype/pr_quotation_mark.h: Likewise.
22172         * lib/unictype/pr_radical.h: Likewise.
22173         * lib/unictype/pr_soft_dotted.h: Likewise.
22174         * lib/unictype/pr_space.h: Likewise.
22175         * lib/unictype/pr_titlecase.h: Likewise.
22176         * lib/unictype/pr_variation_selector.h: Likewise.
22177         * lib/unictype/pr_white_space.h: Likewise.
22178         * lib/unictype/sy_c_ident.h: Likewise.
22179         * lib/unictype/sy_c_whitespace.h: Likewise.
22180         * lib/unictype/sy_java_whitespace.h: Likewise.
22181         * modules/uni*/*: Bump version number of expected libunistring version.
22182         Reported by Simon Josefsson.
22183
22184 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22185
22186         useless-if-before-free: fix typo in --help and make the internal,
22187         automatic version date update process work once again.
22188         --help output contained a NUL character instead of the
22189         backslash-zero that was intended.  Also, the "must lie within
22190         the first 8 lines" line is on line 9, and hence not getting
22191         automatically updated.
22192         * build-aux/useless-if-before-free: Fix the former by adding a
22193         backslash, and the latter by condensing the three lines of what-it-does
22194         to a single line, leaving one line of slack for the future.
22195
22196 2011-01-09  Bruno Haible  <bruno@clisp.org>
22197
22198         uniwidth/width: Fix width of U+1D173..U+1D17A.
22199         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22200         symbolic_width, output_width_property_test): New functions.
22201         (main): Invoke output_nonspacing_property, output_width_property_test.
22202         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22203         U+1D173..U+1D17A.
22204         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22205         1.
22206         * modules/uniwidth/*: Bump version number of expected libunistring
22207         version.
22208         * modules/unilbrk/*: Likewise.
22209
22210 2011-01-08  Bruno Haible  <bruno@clisp.org>
22211
22212         uninorm tests: Preserve copyright of Unicode data file.
22213         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22214         Mention modifications.
22215
22216 2011-01-08  Bruno Haible  <bruno@clisp.org>
22217
22218         gen-uni-tables: Prepare for Unicode 5.2.0.
22219         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22220         (debug_output_lbp, output_lbp): Update.
22221
22222 2011-01-08  Bruno Haible  <bruno@clisp.org>
22223
22224         unilbrk: Clarify gen-uni-tables.c code.
22225         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22226         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22227         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22228
22229 2011-01-07  Bruno Haible  <bruno@clisp.org>
22230
22231         strtod: Restore errno when successfully parsing Infinity or NaN.
22232         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22233         restore the original errno.
22234
22235 2011-01-07  Bruno Haible  <bruno@clisp.org>
22236
22237         remove test: Avoid failure on HP-UX 11.
22238         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22239
22240 2011-01-07  Bruno Haible  <bruno@clisp.org>
22241
22242         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22243         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22244         error code.
22245
22246 2011-01-07  Pádraig Brady <P@draigBrady.com>
22247
22248         ignore-value: fixup comments, and add Eric Blake
22249         as an author since he rewrote the macros.
22250         * lib/ignore-value.h (ignore_value):  State that
22251         we now support aggregates.  Also specify exactly
22252         when the GCC warn_unused_result feature was added.
22253
22254 2011-01-06  Eric Blake  <eblake@redhat.com>
22255
22256         ignore-value: support aggregate types
22257         * lib/ignore-value.h (ignore_value): Provide separate gcc
22258         definition.
22259         * modules/ignore-value-tests: New test module.
22260         * tests/test-ignore-value.c: New test.
22261
22262         maint.mk: improve sc_prohibit_strcmp regex
22263         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22264         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22265         definition of STRNEQ.
22266
22267         signal: work around Haiku issue with SIGBUS
22268         * lib/siglist.h: Add comment.
22269         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22270         strsignal's favoring of SIGSEGV.
22271         * tests/test-signal.c (main): Avoid test failure.
22272         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22273         Reported by Scott McCreary.
22274
22275         maint.mk: add pre-release check to ensure submodule commits are public
22276         * top/maint.mk (public-submodule-commit): New rule.
22277         (submodule-checks): New variable.
22278         (alpha beta stable): Depend on the variable.
22279
22280 2011-01-05  Pádraig Brady <P@draigBrady.com>
22281         and Jim Meyering  <meyering@redhat.com>
22282
22283         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22284         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22285         (ATTRIBUTE_DEPRECATED): Define.
22286         (_ignore_case): New function.
22287         (ignore_value): New macro, to replace the old function.
22288         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22289         * modules/ignore-value (Depends-on): Add stdint.
22290
22291 2011-01-04  Eric Blake  <eblake@redhat.com>
22292
22293         doc: regenerate INSTALL
22294         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22295         @firstparagraphindent support, now that autoconf dropped it.
22296         (INSTALL_PRELUDE): Reinstate old macro.
22297         * doc/install.texi: Resync from autoconf.
22298         * doc/INSTALL: Reflect recent autoconf update.
22299         * doc/INSTALL.ISO: Likewise.
22300         * doc/INSTALL.UTF-8: Likewise.
22301         Reported by Karl Berry.
22302
22303 2011-01-04  Bruce Korb  <address@hidden>
22304
22305         git-version-gen: avoid a sub-shell
22306         * build-aux/git-version-gen: Redirect stderr in `...` via
22307         "exec 2>...", rather than via an added sub-shell.
22308
22309 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22310
22311         git-version-gen: use (...) rather than sh -c '...'
22312         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22313         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22314
22315 2011-01-03  Jim Meyering  <meyering@redhat.com>
22316
22317         git-version-gen: convert leading TABs to spaces
22318         * build-aux/git-version-gen: Expand leading TABs.
22319
22320         git-version-gen: handle failed "git rev-list"
22321         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22322         from git and proceeding as if it had succeeded but printed no SHA1
22323         checksums, suppress the diagnostic and handle the failure.
22324         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22325
22326         git-version-gen: include command name in one more diagnostic
22327         * build-aux/git-version-gen: When the required .tarball-version file
22328         was missing or unreadable, you might see the diagnostic from "cat",
22329         but no trace of the name of the invoking script.  Now, you still see
22330         the diagnostic from cat, but also get one from "git-version-gen: ".
22331         Inspired by a patch from Bruce Korb.
22332
22333         update-copyright: adjust test to match changed code
22334         * tests/test-update-copyright.sh: Change test's expected output
22335         to match new actual output.
22336
22337 2011-01-02  Bruno Haible  <bruno@clisp.org>
22338
22339         getlogin_r: Avoid test failure on HP-UX 11.
22340         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22341         ERANGE when the second argument is zero.
22342         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22343         portability problem.
22344
22345 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22346
22347         * build-aux/update-copyright: doc Simon's changes
22348
22349 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22350
22351         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22352         environment variable.
22353
22354 2011-01-02  Bruno Haible  <bruno@clisp.org>
22355
22356         unigbrk: Avoid gcc warnings.
22357         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22358         unused variable.
22359         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22360         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22361         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22362         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22363         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22364         Change type of first argument to 'const char *'.
22365         (main): Remove unused variable.
22366         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22367         type of first argument to 'const char *'.
22368         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22369         Likewise.
22370         (main): Change type of variable 's'.
22371         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22372         to 'int'.
22373
22374 2011-01-02  Bruno Haible  <bruno@clisp.org>
22375
22376         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22377         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22378         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22379         bug.
22380         * lib/pwrite.c: Undo 2010-12-31 patch.
22381         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22382
22383 2011-01-02  Bruno Haible  <bruno@clisp.org>
22384
22385         pread: Fix test whether it works.
22386         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22387
22388 2011-01-02  Bruno Haible  <bruno@clisp.org>
22389
22390         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22391         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22392         ends in "6". Don't require a specific month name. Try also the locale
22393         names found on HP-UX 11 and Solaris 7.
22394
22395 2011-01-02  Bruno Haible  <bruno@clisp.org>
22396
22397         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22398         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22399         C linkage.
22400         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22401
22402 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22403
22404         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22405         for consistency, since the "cluster" term is not used elsewhere.
22406         * lib/unigbrk.in.h: Update name.
22407         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22408         * lib/unigbrk/u16-grapheme-next.c: Update name.
22409         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22410         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22411         * lib/unigbrk/u32-grapheme-next.c: Update name.
22412         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22413         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22414         * lib/unigbrk/u8-grapheme-next.c: Update name.
22415         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22416         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22417         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22418         Suggested by Bruno Haible.
22419
22420 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22421
22422         Remove module 'u8-grapheme-len' as too redundant with
22423         'u8-grapheme-next'.
22424         * modules/unigbrk/u8-grapheme-len: Delete file.
22425         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22426         * lib/unigbrk.in.h: Remove prototype for deleted function.
22427         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22428         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22429
22430         Remove module 'u16-grapheme-len' as too redundant with
22431         'u16-grapheme-next'.
22432         * modules/unigbrk/u16-grapheme-len: Delete file.
22433         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22434         * lib/unigbrk.in.h: Remove prototype for deleted function.
22435         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22436         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22437
22438         Remove module 'u32-grapheme-len' as too redundant with
22439         'u32-grapheme-next'.
22440         * modules/unigbrk/u32-grapheme-len: Delete file.
22441         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22442         * lib/unigbrk.in.h: Remove prototype for deleted function.
22443         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22444         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22445
22446         Suggested by Bruno Haible.
22447
22448 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22449
22450         * unigbrk.in.h: Fix typo: "ben" => "been".
22451         Reported by Bruno Haible.
22452
22453 2011-01-01  Jim Meyering  <meyering@redhat.com>
22454
22455         maint: update almost all copyright ranges to include 2011
22456         Run the new "make update-copyright" rule.
22457
22458 2011-01-01  Jim Meyering  <meyering@redhat.com>
22459
22460         maint: update-copyright: exempt doc/INSTALL*
22461         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22462         since they are generated.  Suggested by Bruno Haible.
22463
22464 2011-01-01  Jim Meyering  <meyering@redhat.com>
22465
22466         maint: refine the update-copyright rule
22467         * Makefile (update-copyright): Also exclude any file that includes
22468         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22469         code that merely generates the comment.
22470
22471 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22472
22473         New module 'u8-grapheme-len'.
22474         * modules/unigbrk/u8-grapheme-len: New file.
22475         * modules/unigbrk/u8-grapheme-len-tests: New file.
22476         * lib/unigbrk.in.h: Add prototype for new function.
22477         * lib/unigbrk/u8-grapheme-len.c: New file.
22478         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22479
22480         New module 'u16-grapheme-len'.
22481         * modules/unigbrk/u16-grapheme-len: New file.
22482         * modules/unigbrk/u16-grapheme-len-tests: New file.
22483         * lib/unigbrk.in.h: Add prototype for new function.
22484         * lib/unigbrk/u16-grapheme-len.c: New file.
22485         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22486
22487         New module 'u32-grapheme-len'.
22488         * modules/unigbrk/u32-grapheme-len: New file.
22489         * modules/unigbrk/u32-grapheme-len-tests: New file.
22490         * lib/unigbrk.in.h: Add prototype for new function.
22491         * lib/unigbrk/u32-grapheme-len.c: New file.
22492         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22493
22494         New module 'u8-grapheme-next'.
22495         * modules/unigbrk/u8-grapheme-next: New file.
22496         * modules/unigbrk/u8-grapheme-next-tests: New file.
22497         * lib/unigbrk.in.h: Add prototype for new function.
22498         * lib/unigbrk/u8-grapheme-next.c: New file.
22499         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22500
22501         New module 'u16-grapheme-next'.
22502         * modules/unigbrk/u16-grapheme-next: New file.
22503         * modules/unigbrk/u16-grapheme-next-tests: New file.
22504         * lib/unigbrk.in.h: Add prototype for new function.
22505         * lib/unigbrk/u16-grapheme-next.c: New file.
22506         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22507
22508         New module 'u32-grapheme-next'.
22509         * modules/unigbrk/u32-grapheme-next: New file.
22510         * modules/unigbrk/u32-grapheme-next-tests: New file.
22511         * lib/unigbrk.in.h: Add prototype for new function.
22512         * lib/unigbrk/u32-grapheme-next.c: New file.
22513         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22514
22515         New module 'u8-grapheme-prev'.
22516         * modules/unigbrk/u8-grapheme-prev: New file.
22517         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22518         * lib/unigbrk.in.h: Add prototype for new function.
22519         * lib/unigbrk/u8-grapheme-prev.c: New file.
22520         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22521
22522         New module 'u16-grapheme-prev'.
22523         * modules/unigbrk/u16-grapheme-prev: New file.
22524         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22525         * lib/unigbrk.in.h: Add prototype for new function.
22526         * lib/unigbrk/u16-grapheme-prev.c: New file.
22527         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22528
22529         New module 'u32-grapheme-prev'.
22530         * modules/unigbrk/u32-grapheme-prev: New file.
22531         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22532         * lib/unigbrk.in.h: Add prototype for new function.
22533         * lib/unigbrk/u32-grapheme-prev.c: New file.
22534         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22535
22536         New module 'u8-grapheme-breaks'.
22537         * modules/unigbrk/u8-grapheme-breaks: New file.
22538         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22539         * lib/unigbrk.in.h: Add prototype for new function.
22540         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22541         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22542
22543         New module 'u16-grapheme-breaks'.
22544         * modules/unigbrk/u16-grapheme-breaks: New file.
22545         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22546         * lib/unigbrk.in.h: Add prototype for new function.
22547         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22548         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22549
22550         New module 'u32-grapheme-breaks'.
22551         * modules/unigbrk/u32-grapheme-breaks: New file.
22552         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22553         * lib/unigbrk.in.h: Add prototype for new function.
22554         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22555         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22556
22557         New module 'ulc-grapheme-breaks'.
22558         * modules/unigbrk/ulc-grapheme-breaks: New file.
22559         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22560         * m4/locale-ar.m4: New file.
22561         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22562         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22563         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22564
22565 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22566
22567         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22568         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22569         modified how this file was generated before I initially submitted
22570         the module, but failed to regenerate it.  This meant that several
22571         of the level2 entries were wrong.
22572         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22573         Remove the division-by-2 that is folded into the table now that
22574         gbrkprop.h has been regenerated properly.  Now -1 entries are
22575         handled correctly.
22576
22577         New module 'unigbrk/uc-gbrk-prop-tests'.
22578         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22579         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22580         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22581         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22582
22583 2011-01-01  Bruno Haible  <bruno@clisp.org>
22584
22585         Avoid use of hexadecimal escapes.
22586         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22587         instead of hexadecimal escapes.
22588
22589 2011-01-01  Jim Meyering  <meyering@redhat.com>
22590
22591         maint: new rule to update copyright year ranges
22592         * Makefile (update-copyright): New rule.
22593
22594         maint: indent with TABs in Makefile
22595         * Makefile: Expand leading sequences of spaces to TABs
22596
22597         version-etc: update the copyright year it reports
22598         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22599
22600 2010-12-31  Bruno Haible  <bruno@clisp.org>
22601
22602         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22603         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22604         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22605         zero.
22606
22607 2010-12-31  Bruno Haible  <bruno@clisp.org>
22608
22609         pwrite: Work around HP-UX 11.11 bug.
22610         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22611         works and set REPLACE_PWRITE if not.
22612         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22613         function.
22614         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22615
22616 2010-12-31  Bruno Haible  <bruno@clisp.org>
22617
22618         pread: Work around HP-UX 11 bugs.
22619         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22620         and set REPLACE_PREAD if not.
22621         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22622
22623 2010-12-31  Eric Blake  <eblake@redhat.com>
22624
22625         nl_langinfo: fix YESEXPR on Irix 6.5
22626         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22627         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22628         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22629         it.
22630
22631 2010-12-31  Bruno Haible  <bruno@clisp.org>
22632
22633         iconv: Document HP-UX 11 bug.
22634         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22635
22636 2010-12-31  Bruno Haible  <bruno@clisp.org>
22637
22638         ldexpl: Fix link error on HP-UX 11.
22639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22640         LDEXPL_LIBM, using $ISNANL_LIBM.
22641
22642 2010-12-31  Eric Blake  <eblake@redhat.com>
22643
22644         ftello: avoid compilation failure with SunStudio c89
22645         * lib/ftello.c (ftello): Use lseek, not llseek.
22646
22647         tests: avoid failing coreutils tests on cygwin
22648         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22649         (create_exe_shims_): Return 0 when skipping.
22650
22651 2010-12-31  Bruno Haible  <bruno@clisp.org>
22652
22653         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22654         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22655
22656 2010-12-31  Bruno Haible  <bruno@clisp.org>
22657
22658         waitpid: Fix link error in C++ mode.
22659         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22660
22661 2010-12-31  Bruno Haible  <bruno@clisp.org>
22662
22663         isnan: Use GCC built-ins when possible.
22664         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22665         __builtin_isnan.
22666         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22667         (isnan): Define using GCC built-ins for GCC >= 4.0.
22668
22669 2010-12-31  Bruno Haible  <bruno@clisp.org>
22670
22671         isnand: Fix mistake.
22672         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22673         __builtin_isnand.
22674
22675 2010-12-31  Bruno Haible  <bruno@clisp.org>
22676
22677         open: Avoid C++ error on HP-UX 11.
22678         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22679
22680 2010-12-31  Bruno Haible  <bruno@clisp.org>
22681
22682         time_r: Add missing declarations on HP-UX 11.
22683         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22684         instead of HAVE_LOCALTIME_R.
22685         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22686         HAVE_LOCALTIME_R always.
22687         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22688         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22689         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22690         HAVE_LOCALTIME_R.
22691         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22692         * doc/posix-functions/localtime_r.texi: Likewise.
22693
22694 2010-12-29  Eric Blake  <eblake@redhat.com>
22695
22696         mountlist: tweak previous commit
22697         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22698         Reported by Paul Eggert.
22699
22700         mountlist: fix local drive detection on cygwin
22701         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22702         that works for cygwin.
22703
22704 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22705
22706         ftoastr, snprintf: ftoastr + snprintf module
22707         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22708         since the snprintf module now should be good enough here.
22709         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22710         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22711         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22712         GNULIB_SNPRINTF only for the test directory, and the latter
22713         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22714         seems to suffice by itself.
22715
22716 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22717
22718         alloca: one step towards thread-safety
22719         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22720         need for a static variable.  All callers changed.  This does not
22721         make the alloca replacement thread-safe, but it's one step.
22722
22723         tests: minor indenting change
22724         * tests/init.sh: Sync from coreutils housekeeping patch
22725         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22726         to keep lines within 80 columns.
22727
22728 2010-12-28  Jim Meyering  <meyering@redhat.com>
22729
22730         regex: don't infloop on persistent failing calloc
22731         * lib/regexec.c (build_trtable): Return failure indication upon
22732         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22733         In glibc, this was fixed for version 2.13:
22734         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22735
22736 2010-12-28  Bruno Haible  <bruno@clisp.org>
22737             Paul Eggert <eggert@cs.ucla.edu>
22738
22739         linkat: Make implementation robust against system behaviour variations.
22740         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22741         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22742         way, and to -2 if it needs a generic runtime test.
22743         * lib/linkat.c (solaris_optimized_link_immediate,
22744         solaris_optimized_link_follow): New functions.
22745         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22746         (check_same_link): Use it.
22747
22748 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22749
22750         New module 'unigbrk/base'.
22751         * modules/unigbrk/base: New file.
22752         * lib/unigbrk.in.h: New file.
22753
22754         New module 'unigbrk/uc-gbrk-prop'.
22755         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22756         * modules/unigbrk/uc-gbrk-prop: New file.
22757         * lib/unigbrk/gbrkprop.h: New file.
22758         * lib/unigbrk/uc-gbrk-prop.c: New file.
22759
22760         New module 'unigbrk/uc-is-grapheme-break'.
22761         * modules/unigbrk/uc-is-grapheme-break: New file.
22762         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22763         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22764         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22765         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22766         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22767
22768         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22769
22770 2010-12-27  Bruno Haible  <bruno@clisp.org>
22771
22772         linkat test: Avoid failure on Solaris 11 2010-11.
22773         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22774
22775 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22776
22777         utimens: work around glibc rounding bug on more platforms
22778         * lib/utimens.c (fdutimens): Work around rounding bug even if
22779         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22781
22782 2010-12-27  Bruno Haible  <bruno@clisp.org>
22783
22784         select tests: Improve comments.
22785         * tests/test-select.c (do_select): Add comments.
22786
22787 2010-12-27  Bruno Haible  <bruno@clisp.org>
22788
22789         select tests: Safer way of handling timeout.
22790         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22791         at every invocation.
22792
22793 2010-12-27  Bruno Haible  <bruno@clisp.org>
22794
22795         select tests: Use 'bool' where appropriate.
22796         * tests/test-select.c (connect_to_socket): Change argument type to
22797         'bool'.
22798
22799 2010-12-27  Bruno Haible  <bruno@clisp.org>
22800
22801         select tests: Use existing modules.
22802         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22803         (configure.ac): Don't test for unistd.h.
22804         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22805         declared in <unistd.h>.
22806
22807 2010-12-27  Bruno Haible  <bruno@clisp.org>
22808
22809         mbrtowc: Work around a Solaris 7 bug.
22810         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22811         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22812         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22813         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22814         MBRTOWC_NULL_ARG1_BUG.
22815         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22816         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22817         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22818         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22819
22820 2010-12-27  Jim Meyering  <meyering@redhat.com>
22821
22822         read-file.c: tweak syntax
22823         * lib/read-file.c (fread_file): Remove space after "*" in function
22824         definitions.
22825
22826 2010-12-27  Bruno Haible  <bruno@clisp.org>
22827
22828         times test: Avoid gcc warnings on OSF/1.
22829         * tests/test-times.c (main): Cast printf arguments from clock_t to
22830         'long int'.
22831
22832 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22833
22834         utimens: work around glibc rounding bug on older Linux kernels
22835         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22836         on Linux with a glibc whose utimes might not work, then work
22837         around a longstanding glibc bug involving rounding rather than
22838         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22840
22841 2010-12-26  Bruno Haible  <bruno@clisp.org>
22842
22843         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22844         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22845         _GL_CXXALIAS_SYS.
22846         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22847
22848 2010-12-26  Bruno Haible  <bruno@clisp.org>
22849
22850         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22851         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22852         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22853         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22854         looking for the declaration.
22855         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22856         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22857         problem.
22858         * doc/posix-functions/inet_pton.texi: Likewise.
22859
22860 2010-12-26  Bruno Haible  <bruno@clisp.org>
22861
22862         arpa_inet: Use the common idioms with C++ support.
22863         * lib/arpa_inet.in.h: Include c++defs.h.
22864         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22865         support.
22866         * modules/arpa_inet (Depends-on): Add c++defs.
22867         (Makefile.am): Substitute the contents of c++defs.h.
22868         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22869         * modules/arpa_inet-c++-tests: New file.
22870         * tests/test-arpa_inet-c++.cc: New file.
22871
22872 2010-12-25  Bruno Haible  <bruno@clisp.org>
22873
22874         Fix more C++ link errors on Solaris 8.
22875         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22876         $(LIB_EACCESS).
22877         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22878         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22879         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22880         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22881         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22882
22883 2010-12-25  Bruno Haible  <bruno@clisp.org>
22884
22885         printf-posix: Fix link error when a non-GCC compiler is used.
22886         * lib/stdio.in.h (printf): When not using GCC, override printf
22887         correctly.
22888         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22889
22890 2010-12-25  Bruno Haible  <bruno@clisp.org>
22891
22892         strerror_r-posix: Update doc.
22893         * doc/posix-functions/strerror_r.texi: Update doc about the return
22894         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22895
22896 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22897
22898         utimens: simplify the logic of the previous change
22899         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22900         This should not affect whether the test succeeds or fails.
22901
22902         utimens: configure better on hosts with NFS clock skew
22903         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22904         uses the clock of the local host.  It might use the clock of the
22905         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22907
22908 2010-12-25  Bruno Haible  <bruno@clisp.org>
22909
22910         ptsname test: Avoid failure on Solaris.
22911         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22912         open a pseudo-terminal; don't use BSD-style ptys.
22913         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22914
22915 2010-12-25  Bruno Haible  <bruno@clisp.org>
22916
22917         ptsname: Avoid ERANGE failure on some systems.
22918         * lib/ptsname.c (buffer): Increase size.
22919
22920 2010-12-25  Bruno Haible  <bruno@clisp.org>
22921
22922         rename, renameat: Avoid test failures at NFS mounted locations.
22923         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22924         so that subsequent mkdir calls succeed.
22925
22926 2010-12-25  Bruno Haible  <bruno@clisp.org>
22927
22928         iswblank: Fix C++ link error on Solaris 8.
22929         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22930         _GL_FUNCDECL_SYS.
22931
22932 2010-12-25  Bruno Haible  <bruno@clisp.org>
22933
22934         unistd: Fix C++ link error on Solaris 8.
22935         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22936
22937 2010-12-25  Bruno Haible  <bruno@clisp.org>
22938
22939         readlink doc: Mention an old glibc bug.
22940         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22941
22942 2010-12-25  Bruno Haible  <bruno@clisp.org>
22943
22944         fcntl-h: Fix for use of C++ on glibc systems.
22945         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22946         also on glibc systems in C++ mode.
22947         Reported by Gary V. Vaughan <gary@gnu.org>.
22948
22949 2010-12-25  Bruno Haible  <bruno@clisp.org>
22950
22951         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22952         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22953
22954 2010-12-25  Bruno Haible  <bruno@clisp.org>
22955
22956         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22957         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22958         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22959         test whether truncl works according to ISO C 99 with IEC 60559.
22960         * m4/truncl-ieee.m4: New file.
22961         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22962         m4/signbit.m4.
22963         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22964
22965 2010-12-25  Bruno Haible  <bruno@clisp.org>
22966
22967         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22968         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22969         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22970         test whether ceill works according to ISO C 99 with IEC 60559.
22971         * m4/ceill-ieee.m4: New file.
22972         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22973         m4/signbit.m4.
22974         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22975
22976 2010-12-25  Bruno Haible  <bruno@clisp.org>
22977
22978         Ensure all prerequisites of <wchar.h> are included.
22979         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22980         before <wchar.h>.
22981         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22982         gl_MBRLEN_NUL_RETVAL): Likewise.
22983         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22984         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22985         AC_FUNC_MBRTOWC): Likewise.
22986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22987         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22988         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22989         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22990         Likewise.
22991         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22992         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22993         (gl_WCHAR_H): Improve comments.
22994         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22995
22996 2010-12-25  Bruno Haible  <bruno@clisp.org>
22997
22998         strtok_r: Fix C syntax error in autoconf macro.
22999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23000         characters in test program.
23001
23002 2010-12-24  Bruno Haible  <bruno@clisp.org>
23003
23004         ceil, trunc, round: Fix gcc warnings.
23005         * lib/ceil.c (MIN): Undefine before redefining.
23006         * lib/trunc.c (MIN): Likewise.
23007         * lib/round.c (MIN): Likewise.
23008         Include <math.h> first.
23009
23010 2010-12-24  Bruno Haible  <bruno@clisp.org>
23011
23012         select tests: Avoid failures on OSF/1 5.1.
23013         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23014         failure of closing the last socket; it may fail with ECONNRESET.
23015
23016 2010-12-24  Eric Blake  <eblake@redhat.com>
23017
23018         stdint: avoid HP-UX 10.20 preprocessor bug
23019         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23020         than #if.
23021         * tests/test-floor2.c (main): Likewise.
23022         Reported by Peter O'Gorman.
23023
23024         pipe: make obsoletion transition easier
23025         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23026         * modules/pipe (Files): Include revived file.
23027         (Include): Drop reference, to mirror getdate's behavior.
23028
23029 2010-12-24  Bruno Haible  <bruno@clisp.org>
23030
23031         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23032         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23033         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23034         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23035
23036 2010-12-24  Bruno Haible  <bruno@clisp.org>
23037
23038         gethostname: Ensure declaration on NonStop Kernel.
23039         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23040         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23041
23042 2010-12-24  Bruno Haible  <bruno@clisp.org>
23043
23044         sys_select: Ensure all necessary types on NonStop Kernel.
23045         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23046         include <sys/time.h>.
23047         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23048         NonStop Kernel.
23049         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23050
23051 2010-12-24  Bruno Haible  <bruno@clisp.org>
23052
23053         sys_select: Remove unneeded include.
23054         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23055         have <sys/select.h>.
23056
23057 2010-12-24  Bruno Haible  <bruno@clisp.org>
23058
23059         gethostname: Provide a fallback for HOST_NAME_MAX.
23060         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23061         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23062         instead.
23063         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23064
23065 2010-12-24  Bruno Haible  <bruno@clisp.org>
23066
23067         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23068         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23069         (SA_RESTART): Likewise.
23070         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23071
23072 2010-12-24  Bruno Haible  <bruno@clisp.org>
23073
23074         signal: Define NSIG.
23075         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23076         * tests/test-signal.c (nsig): New variable.
23077         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23078
23079 2010-12-24  Bruno Haible  <bruno@clisp.org>
23080
23081         rename, renameat: Avoid test failures on OSF/1 5.1.
23082         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23083         alternative error codes.
23084         * tests/test-renameat.c (main): Likewise.
23085
23086 2010-12-24  Bruno Haible  <bruno@clisp.org>
23087
23088         *printf: Detect large precisions bug on Solaris 10/SPARC.
23089         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23090         by Paul Eggert.
23091         * tests/test-snprintf-posix.h (test_function): Add this test code here
23092         too.
23093         * tests/test-sprintf-posix.h (test_function): Likewise.
23094         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23095         * tests/test-vasprintf-posix.c (test_function): Likewise.
23096         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23097         around by gnulib.
23098         * doc/posix-functions/printf.texi: Likewise.
23099         * doc/posix-functions/snprintf.texi: Likewise.
23100         * doc/posix-functions/sprintf.texi: Likewise.
23101         * doc/posix-functions/vfprintf.texi: Likewise.
23102         * doc/posix-functions/vprintf.texi: Likewise.
23103         * doc/posix-functions/vsnprintf.texi: Likewise.
23104         * doc/posix-functions/vsprintf.texi: Likewise.
23105         * doc/posix-functions/dprintf.texi: Undo last commit.
23106         * doc/posix-functions/vdprintf.texi: Likewise.
23107
23108 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23109
23110         tests: port test-fdutimensat.c to Solaris 8
23111         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23112         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23113         On Solaris 8, it fails with errno == ENOSYS, because there is no
23114         futimens (so it can't use the fd), and there is no lutimens (so it
23115         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23116
23117         vsnprintf: make more consistent with snprintf; doc fixes
23118
23119         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23120         the byte count return problem was promoted from the snprintf-posix
23121         to the snprintf module.
23122         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23123         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23124         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23125         * tests/test-snprintf.c (main): Check the byte count returned.
23126         * tests/test-vsnprintf.c (main): Likewise.
23127
23128 2010-12-23  Eric Blake  <eblake@redhat.com>
23129
23130         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23131         * modules/sigpipe (License): Relax license.
23132
23133 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23134
23135         doc: document Solaris printf bug with large float precisions
23136         * doc/posix-functions/dprintf.texi (dprintf):
23137         * doc/posix-functions/fprintf.texi (fprintf):
23138         * doc/posix-functions/printf.texi (printf):
23139         * doc/posix-functions/snprintf.texi (snprintf):
23140         * doc/posix-functions/sprintf.texi (sprintf):
23141         * doc/posix-functions/vdprintf.texi (vdprintf):
23142         * doc/posix-functions/vfprintf.texi (vfprintf):
23143         * doc/posix-functions/vprintf.texi (vprintf):
23144         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23145         * doc/posix-functions/vsprintf.texi (vsprintf):
23146         Mention that these functions mishandle large floating point
23147         precisions on Solaris 10.  The same bug is also present in Solaris
23148         8, and I assume earlier.  This causes "cd gnulib-tests; make
23149         check" to fail on Solaris 8 (and I assume, later) when building
23150         the latest coreutils, in test-vasprintf-posix's call to
23151         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23152         the wide flavors (e.g., wprintf) so this patch just updates the
23153         documentation for the narrow ones.
23154
23155         test-posixtm.c: add two tests
23156         * tests/test-posixtm.c: Add two tests, to highlight the
23157         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23158         around this bug; this is merely to document it.
23159
23160 2010-12-22  Bruno Haible  <bruno@clisp.org>
23161
23162         getlogin_r: Work around portability problem on OSF/1.
23163         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23164         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23165         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23166         test for a truncated result.
23167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23168         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23169         * modules/getlogin_r (Depends-on): Add memchr.
23170         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23171
23172 2010-12-22  Bruno Haible  <bruno@clisp.org>
23173
23174         ptsname: Avoid test failure on OSF/1 5.1.
23175         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23176         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23177         (same_slave): New function.
23178         (main): Use it to compare ptsname's result with the expected file name.
23179
23180 2010-12-22  Bruno Haible  <bruno@clisp.org>
23181
23182         Port extended stdio modules to HP NonStop Kernel.
23183         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23184         macros.
23185         * lib/fbufmode.c: Update comments.
23186         * lib/fflush.c: Likewise.
23187         * lib/fpurge.c: Likewise.
23188         * lib/freadable.c: Likewise.
23189         * lib/freadahead.c: Likewise.
23190         * lib/freading.c: Likewise.
23191         * lib/freadptr.c: Likewise.
23192         * lib/freadseek.c: Likewise.
23193         * lib/fseeko.c: Likewise.
23194         * lib/fseterr.c: Likewise.
23195         * lib/fwritable.c: Likewise.
23196         * lib/fwriting.c: Likewise.
23197         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23198
23199 2010-12-22  Bruno Haible  <bruno@clisp.org>
23200
23201         ttyname_r: Work around bug on OSF/1 5.1.
23202         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23203         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23204         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23205         present.
23206         * lib/ttyname_r.c (ttyname_r): Update comments.
23207
23208 2010-12-22  Bruno Haible  <bruno@clisp.org>
23209
23210         round: Implement result sign according to IEEE 754.
23211         * lib/round.c (MIN, MINUS_ZERO): New macros.
23212         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23213         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23214         * tests/test-round-ieee.c (main): Likewise.
23215         * tests/test-roundl-ieee.c (main): Likewise.
23216
23217         trunc: Implement result sign according to IEEE 754.
23218         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23219         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23220         * tests/test-trunc2.c: Include minus-zero.h.
23221         (MINUS_ZERO): New macro.
23222         (trunc_reference): Keep in sync with lib/trunc.c.
23223         * tests/test-truncf2.c: Include minus-zero.h.
23224         (MINUS_ZERO): New macro.
23225         (truncf_reference): Keep in sync with lib/trunc.c.
23226         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23227         * tests/test-trunc-ieee.c (main): Likewise.
23228         * tests/test-truncl-ieee.c (main): Likewise.
23229
23230         ceil: Implement result sign according to IEEE 754.
23231         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23232         (FUNC): Return -0.0 for -1 < x < 0.
23233         * tests/test-ceil2.c: Include minus-zero.h.
23234         (MINUS_ZERO): New macro.
23235         (ceil_reference): Keep in sync with lib/ceil.c.
23236         * tests/test-ceilf2.c: Include minus-zero.h.
23237         (MINUS_ZERO): New macro.
23238         (ceilf_reference): Keep in sync with lib/ceil.c.
23239         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23240         * tests/test-ceil-ieee.c (main): Likewise.
23241         * tests/test-ceill-ieee.c (main): Likewise.
23242
23243         floor: Implement result sign according to IEEE 754.
23244         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23245         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23246         * tests/test-floorf2.c (floorf_reference): Likewise.
23247         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23248         * tests/test-floor-ieee.c (main): Likewise.
23249         * tests/test-floorl-ieee.c (main): Likewise.
23250
23251 2010-12-22  Bruno Haible  <bruno@clisp.org>
23252
23253         getaddrinfo: Update doc.
23254         * doc/posix-functions/gai_strerror.texi: Return type is also different
23255         on AIX and HP-UX.
23256
23257 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23258
23259         getaddrinfo, inet_ntop: Update doc for Solaris.
23260         * doc/posix-functions/gai_strerror.texi: Return type is also an
23261         issue on Solaris 9 and earlier.
23262         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23263         on Solaris 10 and earlier.
23264
23265 2010-12-21  Bruno Haible  <bruno@clisp.org>
23266
23267         New module 'roundl-ieee'.
23268         * modules/roundl-ieee: New file.
23269         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23270         test whether roundl works according to ISO C 99 with IEC 60559.
23271         * m4/roundl-ieee.m4: New file.
23272         * modules/roundl-ieee-tests: New file.
23273         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23274         * tests/test-roundl.c (main): Remove signbit tests.
23275         * modules/roundl-tests (Depends-on): Remove signbit.
23276         * doc/posix-functions/roundl.texi: Mention the new module.
23277
23278 2010-12-21  Bruno Haible  <bruno@clisp.org>
23279
23280         New module 'truncl-ieee'.
23281         * modules/truncl-ieee: New file.
23282         * modules/truncl-ieee-tests: New file.
23283         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23284         * tests/test-truncl.c (main): Remove signbit tests.
23285         * modules/truncl-tests (Depends-on): Remove signbit.
23286         * doc/posix-functions/truncl.texi: Mention the new module.
23287
23288 2010-12-21  Bruno Haible  <bruno@clisp.org>
23289
23290         New module 'ceill-ieee'.
23291         * modules/ceill-ieee: New file.
23292         * modules/ceill-ieee-tests: New file.
23293         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23294         * tests/test-ceill.c (main): Remove signbit tests.
23295         * modules/ceill-tests (Depends-on): Remove signbit.
23296         * doc/posix-functions/ceill.texi: Mention the new module.
23297
23298 2010-12-21  Bruno Haible  <bruno@clisp.org>
23299
23300         New module 'floorl-ieee'.
23301         * modules/floorl-ieee: New file.
23302         * modules/floorl-ieee-tests: New file.
23303         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23304         * tests/test-floorl.c (main): Remove signbit tests.
23305         * modules/floorl-tests (Depends-on): Remove signbit.
23306         * doc/posix-functions/floorl.texi: Mention the new module.
23307
23308 2010-12-21  Bruno Haible  <bruno@clisp.org>
23309
23310         New module 'round-ieee'.
23311         * modules/round-ieee: New file.
23312         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23313         whether round works according to ISO C 99 with IEC 60559.
23314         * m4/round-ieee.m4: New file.
23315         * modules/round-ieee-tests: New file.
23316         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23317         * tests/test-round1.c (main): Remove signbit tests.
23318         * modules/round-tests (Depends-on): Remove 'signbit'.
23319         * doc/posix-functions/round.texi: Mention the new module.
23320
23321 2010-12-21  Bruno Haible  <bruno@clisp.org>
23322
23323         New module 'trunc-ieee'.
23324         * modules/trunc-ieee: New file.
23325         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23326         whether trunc works according to ISO C 99 with IEC 60559.
23327         * m4/trunc-ieee.m4: New file.
23328         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23330         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23331         * modules/trunc-ieee-tests: New file.
23332         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23333         * tests/test-trunc1.c (main): Remove signbit tests.
23334         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23335         * doc/posix-functions/trunc.texi: Mention the new module.
23336
23337 2010-12-21  Bruno Haible  <bruno@clisp.org>
23338
23339         New module 'ceil-ieee'.
23340         * modules/ceil-ieee: New file.
23341         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23342         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23343         ISO C 99 with IEC 60559.
23344         * m4/ceil-ieee.m4: New file.
23345         * modules/ceil (Files): Add lib/ceil.c.
23346         (Depends-on): Add 'float'.
23347         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23348         * lib/math.in.h (ceil): New declaration.
23349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23350         REPLACE_CEIL.
23351         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23352         * modules/ceil-ieee-tests: New file.
23353         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23354         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23355         * doc/posix-functions/ceil.texi: Mention the new module.
23356
23357 2010-12-21  Bruno Haible  <bruno@clisp.org>
23358
23359         New module 'floor-ieee'.
23360         * modules/floor-ieee: New file.
23361         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23362         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23363         ISO C 99 with IEC 60559.
23364         * m4/floor-ieee.m4: New file.
23365         * modules/floor (Files): Add lib/floor.c.
23366         (Depends-on): Add 'float'.
23367         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23368         * lib/math.in.h (floor): New declaration.
23369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23370         REPLACE_FLOOR.
23371         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23372         * modules/floor-ieee-tests: New file.
23373         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23374         * tests/test-math-c++.cc: Check the signature of 'floor'.
23375         * doc/posix-functions/floor.texi: Mention the new module.
23376
23377 2010-12-21  Bruno Haible  <bruno@clisp.org>
23378
23379         New module 'roundf-ieee'.
23380         * modules/roundf-ieee: New file.
23381         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23382         test whether roundf works according to ISO C 99 with IEC 60559.
23383         * m4/roundf-ieee.m4: New file.
23384         * modules/roundf-ieee-tests: New file.
23385         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23386         * tests/test-roundf1.c (main): Remove signbit tests.
23387         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23388         * doc/posix-functions/roundf.texi: Mention the new module.
23389
23390 2010-12-21  Bruno Haible  <bruno@clisp.org>
23391
23392         New module 'truncf-ieee'.
23393         * modules/truncf-ieee: New file.
23394         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23395         test whether truncf works according to ISO C 99 with IEC 60559.
23396         * m4/truncf-ieee.m4: New file.
23397         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23399         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23400         * modules/truncf-ieee-tests: New file.
23401         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23402         * tests/test-truncf1.c (main): Remove signbit tests.
23403         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23404         * doc/posix-functions/truncf.texi: Mention the new module.
23405
23406 2010-12-21  Bruno Haible  <bruno@clisp.org>
23407
23408         New module 'ceilf-ieee'.
23409         * modules/ceilf-ieee: New file.
23410         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23411         test whether ceilf works according to ISO C 99 with IEC 60559.
23412         * m4/ceilf-ieee.m4: New file.
23413         * modules/ceilf-ieee-tests: New file.
23414         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23415         * tests/test-ceilf1.c (main): Remove signbit tests.
23416         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23417         * doc/posix-functions/ceilf.texi: Mention the new module.
23418
23419 2010-12-21  Bruno Haible  <bruno@clisp.org>
23420
23421         New module 'floorf-ieee'.
23422         * modules/floorf-ieee: New file.
23423         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23424         test whether floorf works according to ISO C 99 with IEC 60559.
23425         * m4/floorf-ieee.m4: New file.
23426         * modules/floorf-ieee-tests: New file.
23427         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23428         * tests/test-floorf1.c (main): Remove signbit tests.
23429         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23430         * doc/posix-functions/floorf.texi: Mention the new module.
23431
23432 2010-12-21  Bruno Haible  <bruno@clisp.org>
23433
23434         Support for minus zero in autoconf macros.
23435         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23436         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23437         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23438         * tests/minus-zero.h: Update comments.
23439
23440 2010-12-21  Bruno Haible  <bruno@clisp.org>
23441
23442         Tests for module 'ceil'.
23443         * modules/ceil-tests: New file.
23444         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23445         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23446
23447 2010-12-21  Bruno Haible  <bruno@clisp.org>
23448
23449         Tests for module 'floor'.
23450         * modules/floor-tests: New file.
23451         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23452         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23453
23454 2010-12-21  Bruno Haible  <bruno@clisp.org>
23455
23456         math: Fix indentation.
23457         * lib/math.in.h (floorf): Fix indentation.
23458
23459 2010-12-21  Bruno Haible  <bruno@clisp.org>
23460
23461         Fix cross-compilation guesses on Solaris.
23462         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23463         not match "solaris2.10".
23464         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23465         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23466         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23467
23468 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23471         This fixes a problem observed with the latest coreutils snapshot
23472         that caused a test to fail on Solaris 8.  src/csplit.c's call
23473         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23474         earlier, instead of returning the number of bytes that would have
23475         been generated; this causes csplit to incorrectly report memory
23476         exhaustion.
23477         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23478         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23479         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23480         comments to match.
23481         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23482         Fix typo in matching older versions of Solaris: "solaris2.10"
23483         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23484         only for guessing while cross-compiling.
23485         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23486
23487 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23488
23489         ftoastr: fix comment again
23490         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23492         Also, simplify example a bit by using flags = 0.
23493
23494 2010-12-20  Bruno Haible  <bruno@clisp.org>
23495
23496         round*, trunc*: Update documentation regarding glibc.
23497         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23498         * doc/posix-functions/round.texi: Likewise.
23499         * doc/posix-functions/roundl.texi: Likewise.
23500         * doc/posix-functions/truncf.texi: Likewise.
23501         * doc/posix-functions/trunc.texi: Likewise.
23502         * doc/posix-functions/truncl.texi: Likewise.
23503
23504 2010-12-20  Bruno Haible  <bruno@clisp.org>
23505
23506         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23507         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23508         * doc/posix-functions/round.texi: Likewise.
23509         * doc/posix-functions/roundl.texi: Likewise.
23510
23511 2010-12-20  Bruno Haible  <bruno@clisp.org>
23512
23513         ttyname_r: Add missing declaration on HP-UX 11.
23514         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23515         HAVE_TTYNAME_R.
23516         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23517         declared. Set HAVE_TTYNAME_R always.
23518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23519         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23520         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23521         HAVE_TTYNAME_R.
23522         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23523
23524 2010-12-20  Bruno Haible  <bruno@clisp.org>
23525
23526         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23527         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23528         * doc/posix-functions/getlogin_r.texi: Likewise.
23529         * tests/test-getlogin.c: Include <errno.h>.
23530         (main): Avoid test failure on HP-UX 11.11.
23531         * tests/test-getlogin_r.c (main): Likewise.
23532
23533 2010-12-20  Bruno Haible  <bruno@clisp.org>
23534
23535         getlogin_r: Add missing declaration on HP-UX 11.
23536         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23537         declared also when it exists as a function.
23538         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23539
23540 2010-12-20  Bruno Haible  <bruno@clisp.org>
23541
23542         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23543         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23544         through wcrtomb.
23545
23546 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23547
23548         ftoastr: fix comment
23549         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23551
23552 2010-12-19  Bruno Haible  <bruno@clisp.org>
23553
23554         isnan: Ensure it is a macro.
23555         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23556         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23557         Solaris.
23558
23559 2010-12-19  Bruno Haible  <bruno@clisp.org>
23560
23561         ldexpl test: Fix link error on OSF/1 5.1.
23562         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23563
23564 2010-12-19  Bruno Haible  <bruno@clisp.org>
23565
23566         wctype: Make it work in C++ mode on OSF/1 5.1.
23567         * lib/wctype.in.h (iswblank): Declare but not define here.
23568         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23569         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23570         * modules/wctype (Files): Add lib/iswblank.c.
23571
23572 2010-12-19  Bruno Haible  <bruno@clisp.org>
23573
23574         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23575         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23576         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23577
23578 2010-12-19  Bruno Haible  <bruno@clisp.org>
23579
23580         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23581         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23582         _POSIX_PII_SOCKET.
23583         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23584         * doc/posix-functions/recvfrom.texi: Likewise.
23585         * doc/posix-functions/send.texi: Likewise.
23586         * doc/posix-functions/sendto.texi: Likewise.
23587
23588 2010-12-19  Bruno Haible  <bruno@clisp.org>
23589
23590         tcgetsid: Add missing declaration on OSF/1 5.1.
23591         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23592         HAVE_TCGETSID.
23593         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23594         Don't set HAVE_TCGETSID.
23595         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23596         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23597         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23598         HAVE_TCGETSID.
23599         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23600
23601 2010-12-19  Bruno Haible  <bruno@clisp.org>
23602
23603         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23604         * lib/stdio.in.h: During the include_next statement, let recursive
23605         includes of this file include only the system header file.
23606
23607 2010-12-19  Bruno Haible  <bruno@clisp.org>
23608
23609         iconv_open: Fix regression from 2010-12-04.
23610         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23611         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23612
23613 2010-12-19  Bruno Haible  <bruno@clisp.org>
23614
23615         stdbool test: Avoid a gcc warning.
23616         * tests/test-stdbool.c (main): Fail if e1 is false.
23617         Reported by Jim Meyering.
23618
23619 2010-12-19  Jim Meyering  <meyering@redhat.com>
23620
23621         setenv: restore to working order
23622         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23623         mistakenly removed.
23624         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23625         HAVE_SETENV.
23626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23627         HAVE_SETENV.
23628
23629 2010-12-19  Bruno Haible  <bruno@clisp.org>
23630
23631         Document some different function declarations on OSF/1 5.1.
23632         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23633         * doc/posix-functions/inet_ntop.texi: Likewise.
23634         * doc/posix-functions/gethostname.texi: Likewise.
23635         * lib/unistd.in.h (gethostname): Update comment.
23636
23637 2010-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         doc: Mention vasprintf-posix module.
23640         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23641         the 'vasprintf-posix' module.
23642         * doc/glibc-functions/vasprintf.texi: Likewise.
23643
23644 2010-12-19  Bruno Haible  <bruno@clisp.org>
23645
23646         unsetenv: Add missing declaration on OSF/1 5.1.
23647         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23648         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23649         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23651         not HAVE_UNSETENV.
23652         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23653         HAVE_UNSETENV.
23654         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23655
23656 2010-12-19  Bruno Haible  <bruno@clisp.org>
23657
23658         setenv: Add missing declaration on OSF/1 5.1.
23659         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23660         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23661         declared. Don't set HAVE_SETENV.
23662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23663         not HAVE_SETENV.
23664         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23665         HAVE_SETENV.
23666         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23667
23668 2010-12-19  Bruno Haible  <bruno@clisp.org>
23669
23670         nl_langinfo tests: Avoid gcc warning.
23671         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23672
23673 2010-12-19  Bruno Haible  <bruno@clisp.org>
23674
23675         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23676         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23677         _GL_CXXALIAS_SYS.
23678
23679 2010-12-19  Bruno Haible  <bruno@clisp.org>
23680
23681         stdbool: Relax test.
23682         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23683         address to 'bool' work in static initializer, for compilers other than
23684         GCC.
23685
23686 2010-12-19  Bruno Haible  <bruno@clisp.org>
23687
23688         ftello: Add missing declaration on OSF/1 5.1.
23689         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23690         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23692         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23693         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23694
23695 2010-12-19  Bruno Haible  <bruno@clisp.org>
23696
23697         fseeko: Add missing declaration on OSF/1 5.1.
23698         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23699         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23700         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23701         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23702         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23703
23704 2010-12-19  Bruno Haible  <bruno@clisp.org>
23705
23706         fchdir: Add missing declaration on OSF/1 5.1.
23707         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23708         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23710         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23711         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23712
23713 2010-12-19  Bruno Haible  <bruno@clisp.org>
23714
23715         relocatable-prog-wrapper: Separate from relocatable-prog.
23716         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23717         uninstall-relocwrapper rule here.
23718         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23719         Reported by Ian Beckwith <ianb@erislabs.net>.
23720
23721 2010-12-19  Bruno Haible  <bruno@clisp.org>
23722
23723         unistr/u8-mbsnlen: Add missing dependency.
23724         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23725         Reported by Ian Beckwith <ianb@erislabs.net>.
23726
23727 2010-12-19  Bruno Haible  <bruno@clisp.org>
23728
23729         iconv: Make it possible again to use this module without 'iconv-h'.
23730         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23731         if it is not defined.
23732         Reported by Ian Beckwith <ianb@erislabs.net>.
23733
23734 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23735
23736         acl: port to Solaris 8 when copying from tmpfs to ufs
23737         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23738         error number.  Problem observed on Solaris 8 with latest
23739         coreutils, with "mv A B", where A is on a tmpfs file system and B
23740         is on a ufs file system.  This caused coreutils' mv/part-symlink
23741         test to fail.
23742
23743         tests: set fail=0 at start
23744         * tests/init.sh (setup_): Move fail=0 initialization here ...
23745         (mktempd_): ... from here, so that tests can rely on fail being
23746         set to 0 initially.  This fixes a problem in coreutils; see:
23747         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23748
23749 2010-12-18  Bruno Haible  <bruno@clisp.org>
23750
23751         memmem-simple: Stylistic changes.
23752         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23753         Fix preprocessor directive indentation.
23754
23755 2010-12-15  Pádraig Brady <P@draigBrady.com>
23756
23757         memmem, memmem-simple: reorganize and expand empty needle check
23758         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23759         functional checks to memmem-simple so that one has a fully functional
23760         memmem by using just this module.
23761         Restrict the performance only check to the memmem module.
23762         Also expand the empty needle check to ensure the correct
23763         pointer is returned, not just a non NULL pointer.
23764         * doc/glibc-functions/memmem.texi: Rearrange the portability
23765         documentation to correlate with the rearranged checks.
23766         Clarify exactly how the memmem and memmem-simple modules
23767         relate to each other.
23768
23769 2010-12-15  Pádraig Brady <P@draigBrady.com>
23770             Bruno Haible  <bruno@clisp.org>
23771
23772         Improve cross-compilation guesses for uClibc.
23773         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23774         that uClibc does not have the glibc bug.
23775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23776         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23777
23778 2010-12-14  Eric Blake  <eblake@redhat.com>
23779
23780         configmake: provide fallbacks for oldest supported autotools
23781         * m4/configmake.m4: New file.
23782         * modules/configmake (Files): Ship it.
23783         (configure.ac): Use it to guarantee fallbacks.
23784
23785 2010-12-13  Pádraig Brady <P@draigBrady.com>
23786
23787         read-file: Improve handling of large files
23788         * lib/read-file.c (fread_file): Minimize realloc()s
23789         for regular files, and better manage sizes around SIZE_MAX.
23790
23791 2010-12-13  Eric Blake  <eblake@redhat.com>
23792
23793         cloexec, fcntl: relax license
23794         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23795         consent from all contributors.
23796         * modules/fcntl (License): Likewise.
23797
23798 2010-12-10  Bruno Haible  <bruno@clisp.org>
23799
23800         Tests for module 'pipe-posix'.
23801         * modules/pipe-posix-tests: New file.
23802         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23803
23804 2010-12-10  Bruno Haible  <bruno@clisp.org>
23805
23806         pipe-posix: Make it work in C++ mode.
23807         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23808         (pipe): Use common idiom, not a macro definition.
23809         * lib/pipe.c: New file.
23810         * m4/pipe.m4: New file.
23811         * modules/pipe-posix (Description): Enhance.
23812         (Files): Add lib/pipe.c, m4/pipe.m4.
23813         (configure.ac): Invoke gl_FUNC_PIPE.
23814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23815         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23816         * tests/test-unistd-c++.cc: Check the signature of pipe.
23817
23818 2010-12-10  Bruno Haible  <bruno@clisp.org>
23819
23820         Rename module 'pipe' to 'spawn-pipe'.
23821         * modules/spawn-pipe: New file, renamed from modules/pipe.
23822         (Files, configure.ac, Makefile.am): Update.
23823         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23824         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23825         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23826         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23827         "spawn-pipe.h" instead of "pipe.h".
23828         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23829         to gl_SPAWN_PIPE.
23830         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23831         (Files, Makefile.am): Update.
23832         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23833         Update.
23834         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23835         Include "spawn-pipe.h" instead of "pipe.h".
23836         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23837         * lib/javacomp.c: Likewise.
23838         * lib/javaversion.c: Likewise.
23839         * lib/pipe-filter-gi.c: Likewise.
23840         * lib/pipe-filter-ii.c: Likewise.
23841         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23842         * modules/javacomp (Depends-on): Likewise.
23843         * modules/javaversion (Depends-on): Likewise.
23844         * modules/pipe-filter-gi (Depends-on): Likewise.
23845         * modules/pipe-filter-ii (Depends-on): Likewise.
23846         * MODULES.html.sh (Executing programs): Update.
23847         * NEWS: Mention the change.
23848
23849 2010-12-10  Eric Blake  <eblake@redhat.com>
23850
23851         pipe-posix: new module
23852         * modules/pipe-posix: New file.
23853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23854         (gl_UNISTD_H): Check for declaration.
23855         * modules/unistd (Makefile.am): Substitute it.
23856         * lib/unistd.in.h (pipe): Provide it for mingw.
23857         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23858         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23859
23860 2010-12-07  Bruno Haible  <bruno@clisp.org>
23861
23862         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23863         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23864         u8_strcmp_gnu.
23865         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23866
23867 2010-12-06  Bruno Haible  <bruno@clisp.org>
23868
23869         Update internal documentation.
23870         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23871
23872 2010-12-04  Bruno Haible  <bruno@clisp.org>
23873
23874         Put more information about failed tests into the test return codes.
23875         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23876         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23877         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23878         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23879         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23880         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23881         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23882         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23883         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23884         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23885         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23886         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23887         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23888         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23889         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23890         returns a bit mask.
23891         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23892         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23893         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23894         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23895         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23899         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23900         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23901         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23902         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23903         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23905         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23906         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23907         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23908         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23909         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23910         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23912         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23914         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23915         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23916         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23917         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23918         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23919         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23920         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23921         gl_PRINTF_PRECISION): Likewise.
23922         * m4/regex.m4 (gl_REGEX): Likewise.
23923         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23924         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23925         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23926         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23927         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23929         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23930         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23931         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23932         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23933         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23934         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23935         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23936         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23937         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23938         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23939         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23940         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23942         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23943         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23944         enumerated value.
23945         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23946
23947 2010-12-04  Bruno Haible  <bruno@clisp.org>
23948
23949         Update for Solaris 11 2010-11.
23950         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23951         Express, released in November 2010.
23952
23953 2010-12-04  Bruno Haible  <bruno@clisp.org>
23954
23955         nproc: Relax license.
23956         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23957         and Paul Eggert.
23958         Requested by Ludovic Courtès <ludo@gnu.org>.
23959
23960 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23961
23962         utimecmp: fine-grained src to nearby coarse-grained dest
23963
23964         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23965         and the source is on a file system with higher-resolution time
23966         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23967         not work, and the time stamps are close together, the algorithm to
23968         determine the exact resolution from the read-back mtime was buggy:
23969         it had a "!=" where it should have had an "==".  This bug has been
23970         in the code ever since it was introduced to gnulib.
23971         Problem reported by Dan Jacobson in
23972         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23973
23974 2010-11-30  Bruno Haible  <bruno@clisp.org>
23975
23976         strerror_r-posix: Fix autoconf test.
23977         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23978
23979 2010-11-28  Bruno Haible  <bruno@clisp.org>
23980             Paul Eggert  <eggert@cs.ucla.edu>
23981
23982         Tests for module 'getdomainname'.
23983         * modules/getdomainname-tests: New file.
23984         * tests/test-getdomainname.c: New file, based on
23985         tests/test-gethostname.c.
23986
23987 2010-11-28  Bruno Haible  <bruno@clisp.org>
23988             Paul Eggert  <eggert@cs.ucla.edu>
23989
23990         getdomainname: Use the system function when possible.
23991         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23992         (getdomainname): Replace if needed. Provide the declaration if it is
23993         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23994         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23995         (getdomainname): When the system has getdomainname, call the system
23996         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23997         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23998         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23999         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24000         the function if its second argument is of type 'int' or if it is found
24001         in libnsl.
24002         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24003         <sys/systeminfo.h> and sysinfo().
24004         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24006         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24007         HAVE_GETDOMAINNAME.
24008         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24009         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24010         * doc/glibc-functions/getdomainname.texi: Document the problems with
24011         the getdomainname declaration.
24012
24013 2010-11-28  Bruno Haible  <bruno@clisp.org>
24014
24015         sys_socket: Ensure ss_family field on AIX.
24016         * lib/sys_socket.in.h (ss_family): New macro definition.
24017         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24018         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24019         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24020         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24021         * modules/sys_socket (Makefile.am): Substitute
24022         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24023         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24024
24025 2010-11-27  Bruno Haible  <bruno@clisp.org>
24026
24027         readline: Improve configure output.
24028         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24029         "checking for readline..." result understandable.
24030
24031 2010-11-27  Bruno Haible  <bruno@clisp.org>
24032
24033         *printf-posix: Detect a bug on Solaris 10/x86.
24034         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24035         for floating-point output.
24036         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24037         directive.
24038         * tests/test-snprintf-posix.h (test_function): Likewise.
24039         * tests/test-sprintf-posix.h (test_function): Likewise.
24040         * tests/test-vasprintf-posix.c (test_function): Likewise.
24041         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24042         * doc/posix-functions/printf.texi: Likewise.
24043         * doc/posix-functions/snprintf.texi: Likewise.
24044         * doc/posix-functions/sprintf.texi: Likewise.
24045         * doc/posix-functions/vfprintf.texi: Likewise.
24046         * doc/posix-functions/vprintf.texi: Likewise.
24047         * doc/posix-functions/vsnprintf.texi: Likewise.
24048         * doc/posix-functions/vsprintf.texi: Likewise.
24049         * doc/glibc-functions/obstack_printf.texi: Likewise.
24050         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24051
24052 2010-11-27  Bruno Haible  <bruno@clisp.org>
24053
24054         Fix link error when module libunistring-optional is in use.
24055         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24056         * modules/striconveha-tests (Makefile.am): Likewise.
24057
24058 2010-11-27  Bruno Haible  <bruno@clisp.org>
24059
24060         regex: Mention link dependencies.
24061         * modules/regex (Link): New section.
24062         * modules/rpmatch (Link): Likewise.
24063         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24064
24065 2010-11-27  Bruno Haible  <bruno@clisp.org>
24066
24067         ftoastr: Fix compilation error on Solaris.
24068         * lib/ftoastr.c: Include <config.h>.
24069
24070 2010-11-27  Bruno Haible  <bruno@clisp.org>
24071
24072         getloadavg: Update documentation.
24073         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24074
24075 2010-11-27  Bruno Haible  <bruno@clisp.org>
24076
24077         sys_socket: Fix test whether the functions are declared.
24078         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24079         not <sys/select.h>.
24080
24081 2010-11-27  Bruno Haible  <bruno@clisp.org>
24082
24083         getpass: Make sure to get system declaration on some platforms.
24084         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24085         gl_USE_SYSTEM_EXTENSIONS.
24086         * modules/getpass (Depends-on): Add extensions.
24087
24088 2010-11-26  Bruno Haible  <bruno@clisp.org>
24089
24090         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24091         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24092         'iconv' module is present.
24093         (ICONV_CONST): New macro.
24094         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24095         ICONV_CONST.
24096         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24097         set ICONV_CONST.
24098         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24099         here.
24100         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24101         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24102         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24103         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24104         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24105         present.
24106
24107 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24108
24109         ftoastr: comment fix
24110         * lib/ftoastr.c: "little" -> "little or no" in comment
24111
24112 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24113
24114         stdint: port to GCC 4.3 + OSX + Octave
24115         On this platform, stdint.h is buggy and defines int64_t to long
24116         long int.  The replacement defined it to long int, causing
24117         problems with C++ style name mangling.  Instead, trust the system
24118         definition if INT64_MAX is defined, and likewise for the unsigned
24119         variant.   Problem reported by Jarno Rajahalme in
24120         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24121         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24122         and don't mess with int64_t and INT64_MAX in this case.
24123         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24124
24125 2010-11-24  Bruno Haible  <bruno@clisp.org>
24126
24127         doc: Corrections regarding MacOS X 10.4 and 10.5.
24128         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24129         MacOS X.
24130         Reported by Simon Josefsson.
24131
24132 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24133
24134         Uninstall ".bin" files installed by relocwrapper.
24135         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24136         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24137         unless it is already there.
24138
24139 2010-11-21  Bruno Haible  <bruno@clisp.org>
24140
24141         Update for NetBSD 5.0.
24142         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24143         NetBSD; the test fails on NetBSD 5.0.
24144         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24145         about NetBSD.
24146
24147 2010-11-21  Bruno Haible  <bruno@clisp.org>
24148
24149         Update for HP-UX 11.23 and HP-UX 11.31.
24150         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24151         HP-UX.
24152
24153 2010-11-21  Bruno Haible  <bruno@clisp.org>
24154
24155         Update for MacOS X 10.5.
24156         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24157         MacOS X; the test fails on MacOS X 10.5.8.
24158         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24159         about MacOS X.
24160
24161 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24162
24163         bootstrap: add bootstrap_sync option.
24164         See discussion at
24165         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24167         * build-aux/bootstrap: Accept --bootstrap-sync to update
24168         bootstrap if it is not identical to the local gnulib's
24169         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24170         enable this by default.  Accept --no-bootstrap-sync to disable
24171         it.
24172
24173 2010-11-20  Bruno Haible  <bruno@clisp.org>
24174
24175         Ensure that <features.h> is included before __GLIBC__ is tested.
24176         * lib/printf-parse.h: Include <features.h>.
24177         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24178         Reported by Mike Frysinger <vapier@gentoo.org>.
24179
24180         Ensure that <features.h> is included before __GLIBC__ is tested.
24181         * lib/wchar.in.h: Include <features.h>.
24182         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24183         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24184         Reported by Mike Frysinger <vapier@gentoo.org>.
24185
24186         Ensure that <features.h> is included before __GLIBC__ is tested.
24187         * lib/arpa_inet.in.h: Include <features.h>.
24188         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24189         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24190         Reported by Mike Frysinger <vapier@gentoo.org>.
24191
24192         Ensure that <features.h> is included before __GLIBC__ is tested.
24193         * build-aux/link-warning.h: Include <features.h>.
24194         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24195         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24196         Reported by Mike Frysinger <vapier@gentoo.org>.
24197
24198         Ensure that <features.h> is included before __GLIBC__ is tested.
24199         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24200         Reported by Mike Frysinger <vapier@gentoo.org>.
24201
24202 2010-11-20  Bruno Haible  <bruno@clisp.org>
24203
24204         memmem: Fix autoconf test.
24205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24206
24207 2010-11-20  Bruno Haible  <bruno@clisp.org>
24208
24209         Port to uClibc.
24210         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24211         * lib/fcntl.in.h: Likewise.
24212         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24213         * lib/mbrtowc.c (mbrtowc): Likewise.
24214         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24215         * lib/strerror_r.c: Likewise.
24216         * lib/unistr/u8-strnlen.c: Likewise.
24217         * lib/vasnprintf.c (decimal_point_char): Likewise.
24218         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24219         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24221         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24222         * tests/test-sigaction.c (handler, main): Likewise.
24223         * lib/freading.h: Treat uClibc like a non-glibc platform.
24224         * lib/freading.c: Likewise.
24225         * lib/gettext.h: Likewise.
24226         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24227         Likewise.
24228         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24229         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24230         * lib/propername.c (proper_name_utf8): Likewise.
24231         * lib/spawn.in.h: Likewise.
24232         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24233         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24234         mem_cd_iconveh_internal): Likewise.
24235         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24236         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24237         strstr, strcasestr): Likewise.
24238         * lib/unicodeio.c (unicode_to_mb): Likewise.
24239         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24240         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24241         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24242         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24243         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24244         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24245         * lib/unistr/u8-stpncpy.c: Likewise.
24246         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24247         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24248         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24249         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24250         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24251         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24252         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24253         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24254         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24255         Likewise.
24256         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24257         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24258         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24259         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24260         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24261         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24262         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24263         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24264         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24265         * tests/test-striconveha.c (main): Likewise.
24266         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24267         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24268         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24269         * doc/posix-functions/getline.texi: Likewise.
24270         Reported by Mike Frysinger <vapier@gentoo.org>.
24271
24272 2010-11-20  Bruno Haible  <bruno@clisp.org>
24273
24274         nproc: Fix condition.
24275         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24276         HAVE_PTHREAD_AFFINITY_NP.
24277
24278 2010-11-20  Bruno Haible  <bruno@clisp.org>
24279
24280         Fix a comment.
24281         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24282
24283 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24284
24285         ftoastr: don't assume snprintf
24286         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24287         Implement a subset of snprintf here, by using sprintf safely.
24288         * modules/ftoastr (Depends-on): Remove snprintf.
24289
24290 2010-11-19  Jim Meyering  <meyering@redhat.com>
24291
24292         test-rename.h: fix compilation failure
24293         * tests/test-rename.h (test_rename): Add omitted "}".
24294
24295 2010-11-17  Jim Meyering  <meyering@redhat.com>
24296
24297         maint.mk: add a URL discussing the no-@acronym policy
24298         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24299
24300 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24301
24302         ftoastr: depend on snprintf, improve comments
24303         * lib/ftoastr.c: Also mention Loitsch's draft.
24304         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24305         needed in the current implementation, but it might simplify
24306         speeding up the code later.
24307         * modules/ftoastr: Depend on snprintf; this improves portability.
24308         Suggested by Bruno Haible in the same email.
24309
24310         ftoastr: port to hosts lacking strtof and strtold
24311         Problem reported by Bruno Haible in
24312         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24313         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24314         environment and strtold (and presumably strtof) are not available.
24315         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24316         (configure.ac): Require gl_C99_STRTOLD.
24317
24318 2010-11-18  Bruno Haible  <bruno@clisp.org>
24319
24320         c-strtold: Avoid link error on AIX 7.
24321         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24322         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24323         (gl_C_STRTOLD): Test whether strtold_l exists.
24324         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24325
24326 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24327
24328         intprops: new macro INT_BITS_STRLEN_BOUND
24329         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24330         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24331         not exposed.  Also, it uses a slightly tighter bound than before;
24332         though this makes no practical difference, we might as well be as
24333         tight as we easily can.
24334
24335         ftoastr: new module, for lossless conversion of floats to short strings
24336         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24337         * modules/ftoastr: New files.
24338
24339 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         bootstrap: port to Solaris sed
24342         * build-aux/bootstrap (get_version): Port to Solaris sed.
24343         See Ralf Wildenhues's note in
24344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24345
24346 2010-11-14  Jim Meyering  <meyering@redhat.com>
24347
24348         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24349         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24350         and move definition closer to sole use.
24351
24352 2010-11-13  Jim Meyering  <meyering@redhat.com>
24353
24354         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24355         Now we require at least autoconf-2.59, which means the work-around
24356         is no longer needed.
24357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24358         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24359         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24360         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24361         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24362
24363 2010-11-13  Bruno Haible  <bruno@clisp.org>
24364
24365         rename, renameat: Avoid test failures at NFS mounted locations.
24366         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24367         functions.
24368         (test_rename): Use assert_nonexistent.
24369         * tests/test-rename.c: Include <dirent.h>.
24370         * tests/test-renameat.c: Likewise.
24371         Reported by Gary V. Vaughan <gary@gnu.org>.
24372
24373         rename, renameat: Document Linux bug with NFS
24374         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24375         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24376         * doc/posix-functions/renameat.texi: Likewise.
24377         Suggested by Eric Blake.
24378
24379 2010-11-13  Bruno Haible  <bruno@clisp.org>
24380
24381         rename test: Add comments.
24382         * tests/test-rename.h (test_rename): Add structure and comments.
24383
24384 2010-11-13  Eric Blake  <eblake@redhat.com>
24385
24386         maintainer-makefile: cover a few more files
24387         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24388         scripts generated within C files, for libvirt.
24389
24390 2010-11-13  Bruno Haible  <bruno@clisp.org>
24391
24392         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24393         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24394         character, return the number of bytes that belong together, not always
24395         1.
24396         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24397         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24398         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24399         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24400         number of bytes of an invalid character.
24401         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24402         (main): Invoke it.
24403         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24404         results.
24405         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24406         malformed byte sequences.
24407         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24408         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24409         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24410         Reported by Ben Pfaff and Paolo Bonzini.
24411
24412 2010-11-13  Bruno Haible  <bruno@clisp.org>
24413
24414         openat: Work around glibc bug with fchownat() and empty file names.
24415         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24416         (gl_FUNC_FCHOWNAT): Invoke it.
24417         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24418         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24419         Reported by Gary V. Vaughan <gary@gnu.org>.
24420
24421 2010-11-13  Bruno Haible  <bruno@clisp.org>
24422
24423         openat: Ensure autoconf macro ordering.
24424         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24425         gl_USE_SYSTEM_EXTENSIONS.
24426         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24427
24428 2010-11-13  Bruno Haible  <bruno@clisp.org>
24429
24430         Update comments.
24431         * lib/unistr/u8-check.c: Update file name in comments.
24432         * lib/unistr/u8-mblen.c: Likewise.
24433         * lib/unistr/u8-prev.c: Likewise.
24434         * lib/unistr/u8-strmblen.c: Likewise.
24435         * lib/unistr/u8-strmbtouc.c: Likewise.
24436
24437 2010-11-13  Jim Meyering  <meyering@redhat.com>
24438
24439         tests: avoid test failure on Solaris 10 due to lack of PATH export
24440         * tests/test-update-copyright.sh: Don't forget to export PATH.
24441
24442         init.sh: ensure that IFS is defined, just in case...
24443         * tests/init.sh (setup_): Ensure that IFS is defined,
24444         so that saving and restoring it works as expected.  This
24445         appears to be useful at least for an old version of dash
24446         from a long time ago (RH 6).  See here for details:
24447         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24448
24449         maint.mk: tighten "test a == b" check
24450         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24451         test to files that contain something like #!/bin/sh.
24452         Without this, coreutils would get two false positives in
24453         the comments of C source files.
24454
24455 2010-11-12  Eric Blake  <eblake@redhat.com>
24456
24457         bootstrap: fix typo in previous attempt
24458         * build-aux/bootstrap (buildreq): Correct the grouping.
24459         Reported by Paul Eggert.
24460
24461         maintainer-makefile: prohibit test x == x
24462         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24463         Based on a report by Matthias Bolte.
24464
24465         bootstrap: allow FreeBSD gzip
24466         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24467         which has no '.' and goes to stderr.
24468         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24469         Reported by Matthias Bolte.
24470
24471         maintainer-makefile: check for i18n setup
24472         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24473         will likely work.
24474
24475 2010-11-12  Bruno Haible  <bruno@clisp.org>
24476
24477         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24478         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24479         * lib/nanosleep.c (nanosleep): Likewise.
24480
24481 2010-11-11  Bruno Haible  <bruno@clisp.org>
24482
24483         fcntl-h: Fix for use of C++ on glibc systems.
24484         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24485         also on glibc systems in C++ mode.
24486         Reported by Gary V. Vaughan <gary@gnu.org>.
24487
24488 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24489
24490         mknod: avoid false failure with dash
24491         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24492
24493 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24494
24495         unlink: Fix "is it should" typo in diagnostic.
24496         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24497         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24498
24499 2010-11-11  Bruno Haible  <bruno@clisp.org>
24500
24501         Tests for module 'strerror_r-posix'.
24502         * modules/strerror_r-posix-tests: New file.
24503         * tests/test-strerror_r.c: New file.
24504         * tests/test-string-c++.cc: Check the signature of strerror_r.
24505
24506         New module 'strerror_r-posix'.
24507         * lib/string.in.h (strerror_r): New declaration.
24508         * lib/strerror_r.c: New file.
24509         * m4/strerror_r.m4: New file.
24510         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24511         of strerror_r.
24512         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24513         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24514         * modules/strerror_r-posix: New file.
24515         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24516         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24517         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24518         portability problems.
24519
24520 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24521
24522         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24523         line is also considered for output. Quoted function name in shell
24524         command, so temporary files for functions like MyClass::operator()
24525         are removed correctly without errors.
24526
24527 2010-11-09  Bruno Haible  <bruno@clisp.org>
24528
24529         * doc/posix-functions/strerror.texi: List more failing platforms.
24530
24531         * doc/posix-functions/strerror.texi: Add a comment.
24532
24533 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24534
24535         fdopendir: fix bug on MacOS X when low on file descriptors
24536
24537         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24538         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24539         All callers changed.
24540         (fdopendir): Invoke save_cwd at the top level, not after using
24541         multiple dup() calls to use up file descriptors.  Then retry
24542         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24543         less than the maximum number of open file descriptors, because
24544         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24545         on Mac OS X 10.6.4 for tar 1.24
24546         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24547         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24548         and for tar 1.25
24549         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24550
24551 2010-11-07  Bruno Haible  <bruno@clisp.org>
24552
24553         vasnprintf: Support I flag on glibc systems.
24554         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24555         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24556         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24557         snprintf function.
24558         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24559         glibc systems.
24560         * tests/test-vasnprintf-posix3.c: New file.
24561         * modules/vasnprintf-posix-tests (Files): Add it.
24562         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24563
24564 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24565
24566         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24567         * MODULES.html.sh: For compiler warnings, use name
24568         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24569
24570 2010-11-05  Eric Blake  <eblake@redhat.com>
24571
24572         ceil, floor: avoid spurious failure with icc
24573         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24574         [denormals-as-zero] when optimizing without -mieee-fp option.
24575         * tests/test-floorf2.c (floorf_reference): Likewise.
24576         * tests/test-ceilf1.c (dummy): New function.
24577         (main): Use it to outsmart icc's optimization.
24578         * tests/test-floorf1.c (dummy, main): Likewise.
24579
24580         tests: require working signbit
24581         * modules/ceilf-tests (Depends-on): Add signbit.
24582         * modules/ceill-tests (Depends-on): Likewise.
24583         * modules/floorf-tests (Depends-on): Likewise.
24584         * modules/floorl-tests (Depends-on): Likewise.
24585         * modules/round-tests (Depends-on): Likewise.
24586         * modules/roundf-tests (Depends-on): Likewise.
24587         * modules/roundl-tests (Depends-on): Likewise.
24588         * modules/trunc-tests (Depends-on): Likewise.
24589         * modules/truncf-tests (Depends-on): Likewise.
24590         * modules/truncl-tests (Depends-on): Likewise.
24591
24592         strtod: work around icc bug
24593         * lib/strtod.c (minus_zero): Define to working value.
24594         (strtod): Use it to avoid icc bug.
24595
24596         copysign: enhance tests
24597         * modules/copysign-tests (Files): Add minus-zero.h.
24598         * tests/test-copysign.c (main): Also test zeros.
24599
24600 2010-11-04  Eric Blake  <eblake@redhat.com>
24601
24602         ceil, floor, round, trunc: enhance tests of -0
24603         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24604         * tests/test-ceill.c (main): Likewise.
24605         * tests/test-floorf1.c (main): Likewise.
24606         * tests/test-floorl.c (main): Likewise.
24607         * tests/test-round1.c (main): Likewise.
24608         * tests/test-roundf1.c (main): Likewise.
24609         * tests/test-roundl.c (main): Likewise.
24610         * tests/test-trunc1.c (main): Likewise.
24611         * tests/test-truncf1.c (main): Likewise.
24612         * tests/test-truncl.c (main): Likewise.
24613
24614 2010-11-04  Eric Blake  <eblake@redhat.com>
24615
24616         frexp, tests: work around ICC bug with -zero
24617         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24618         works with more compilers.
24619         * tests/minus-zero.h: New file.
24620         * modules/ceilf-tests (Files): Include it.
24621         * modules/ceill-tests (Files): Likewise.
24622         * modules/floorf-tests (Files): Likewise.
24623         * modules/floorl-tests (Files): Likewise.
24624         * modules/frexp-nolibm-tests (Files): Likewise.
24625         * modules/frexp-tests (Files): Likewise.
24626         * modules/frexpl-nolibm-tests (Files): Likewise.
24627         * modules/frexpl-tests (Files): Likewise.
24628         * modules/isnan-tests (Files): Likewise.
24629         * modules/isnand-nolibm-tests (Files): Likewise.
24630         * modules/isnand-tests (Files): Likewise.
24631         * modules/isnanf-nolibm-tests (Files): Likewise.
24632         * modules/isnanf-tests (Files): Likewise.
24633         * modules/isnanl-nolibm-tests (Files): Likewise.
24634         * modules/isnanl-tests (Files): Likewise.
24635         * modules/round-tests (Files): Likewise.
24636         * modules/roundf-tests (Files): Likewise.
24637         * modules/roundl-tests (Files): Likewise.
24638         * modules/ldexpl-tests (Files): Likewise.
24639         * modules/signbit-tests (Files): Likewise.
24640         * modules/snprintf-posix-tests (Files): Likewise.
24641         * modules/sprintf-posix-tests (Files): Likewise.
24642         * modules/strtod-tests (Files): Likewise.
24643         * modules/trunc-tests (Files): Likewise.
24644         * modules/truncf-tests (Files): Likewise.
24645         * modules/truncl-tests (Files): Likewise.
24646         * modules/vsnprintf-posix-tests (Files): Likewise.
24647         * modules/vsprintf-posix-tests (Files): Likewise.
24648         * modules/vasnprintf-posix-tests (Files): Likewise.
24649         * modules/vasprintf-posix-tests (Files): Likewise.
24650         * tests/test-ceilf1.c (main): Use it.
24651         * tests/test-ceill.c (main): Likewise.
24652         * tests/test-floorf1.c (main): Likewise.
24653         * tests/test-floorl.c (main): Likewise.
24654         * tests/test-frexp.c (main): Likewise.
24655         * tests/test-frexpl.c (main): Likewise.
24656         * tests/test-isnan.c (main): Likewise.
24657         * tests/test-isnand.h (main): Likewise.
24658         * tests/test-isnanf.h (main): Likewise.
24659         * tests/test-isnanl.h (main): Likewise.
24660         * tests/test-ldexpl.c (main): Likewise.
24661         * tests/test-round.c (main): Likewise.
24662         * tests/test-roundf.c (main): Likewise.
24663         * tests/test-roundl.c (main): Likewise.
24664         * tests/test-signbit.c (test_signbitf, test_signbitd)
24665         (test_signbitl): Likewise.
24666         * tests/test-snprintf-posix.h (test_function): Likewise.
24667         * tests/test-sprintf-posix.h (test_function): Likewise.
24668         * tests/test-strtod.c (main): Likewise.
24669         * tests/test-trunc1.c (main): Likewise.
24670         * tests/test-truncf1.c (main): Likewise.
24671         * tests/test-truncl.c (main): Likewise.
24672
24673         isnanl: work around icc bug
24674         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24675
24676 2010-11-03  Eric Blake  <eblake@redhat.com>
24677
24678         tests: fix compiler warnings
24679         * tests/test-getopt.h (test_getopt): Fix condition.
24680         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24681         * tests/test-pipe2.c (main): Likewise.
24682         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24683
24684         utimens: fix broken m4 test
24685         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24686
24687 2010-10-28  Bruno Haible  <bruno@clisp.org>
24688
24689         posix_spawn*, getdtablesize: Relax license.
24690         * modules/posix_spawn (License): Change to LGPLv2+.
24691         * modules/posix_spawnp (License): Likewise.
24692         * modules/posix_spawn-internal (License): Likewise.
24693         * modules/posix_spawnattr_init (License): Likewise.
24694         * modules/posix_spawnattr_getflags (License): Likewise.
24695         * modules/posix_spawnattr_setflags (License): Likewise.
24696         * modules/posix_spawnattr_getpgroup (License): Likewise.
24697         * modules/posix_spawnattr_setpgroup (License): Likewise.
24698         * modules/posix_spawnattr_getschedparam (License): Likewise.
24699         * modules/posix_spawnattr_setschedparam (License): Likewise.
24700         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24701         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24702         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24703         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24704         * modules/posix_spawnattr_getsigmask (License): Likewise.
24705         * modules/posix_spawnattr_setsigmask (License): Likewise.
24706         * modules/posix_spawnattr_destroy (License): Likewise.
24707         * modules/posix_spawn_file_actions_init (License): Likewise.
24708         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24709         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24710         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24711         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24712         * modules/getdtablesize (License): Likewise.
24713         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24714
24715 2010-10-26  Bruno Haible  <bruno@clisp.org>
24716
24717         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24718         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24719         Cygwin and mingw.
24720         Suggested by Eric Blake.
24721
24722 2010-10-26  Bruno Haible  <bruno@clisp.org>
24723
24724         stdio: Work around compilation error due to renameat() on Solaris 10.
24725         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24726         * lib/renameat.c: Don't include <unistd.h> here.
24727         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24728         Reported by Paul Eggert and Eric Blake.
24729
24730 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24731
24732         renameat: port to Solaris 10, which declares renameat in unistd.h
24733
24734         * lib/renameat.c: Include unistd.h before stdio.h, because
24735         Solaris 10 declares renameat in unistd.h.  Problem encountered
24736         when building GNU tar 1.24 on Solaris 10.
24737
24738 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24739
24740         fdopendir: fix C89 compilation
24741         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24742         compilers.
24743
24744 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24745
24746         inttostr: simplify by removing unnecessary redundancy
24747         * lib/anytostr.c: Don't include verify.h.
24748         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24749         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24750         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24751         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24752         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24753         Likewise.
24754         * modules/inttostr (Depends-on): Remove 'verify'.
24755
24756 2010-10-23  Bruno Haible  <bruno@clisp.org>
24757
24758         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24759         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24760         Reported by Eric Blake.
24761
24762 2010-10-23  Bruno Haible  <bruno@clisp.org>
24763
24764         Tests: Fix LOCALE_JA on MirBSD 10.
24765         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24766         to an UTF-8 locale.
24767         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24768         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24769         Reported by Eric Blake.
24770
24771 2010-10-21  Bruno Haible  <bruno@clisp.org>
24772
24773         nl_langinfo test: Avoid test failure on NetBSD 5.
24774         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24775         Reported by Eric Blake.
24776
24777 2010-10-21  Eric Blake  <eblake@redhat.com>
24778
24779         c-stack: work around libsigsegv 2.8 bug
24780         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24781         overflow on at least PowerPC64.
24782
24783 2010-10-17  Bruno Haible  <bruno@clisp.org>
24784
24785         userspec: Drop redundant file.
24786         * modules/userspec (Files): Remove lib/inttostr.h.
24787
24788 2010-10-17  Bruno Haible  <bruno@clisp.org>
24789
24790         nl_langinfo tests: Silence some warnings.
24791         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24792         Reported by Jim Meyering.
24793
24794 2010-10-17  Bruno Haible  <bruno@clisp.org>
24795
24796         Make use of GCC's attribute __alloc_size__.
24797         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24798         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24799         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24800         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24801         __alloc_size__.
24802         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24803         Suggested by Jim Meyering.
24804
24805 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24806
24807         bootstrap: anchor .gitignore entries.
24808         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24809         with...
24810         (insert_vc_ignore): ... this new function, which prepends `/' to
24811         all .gitignore entries before passing them to
24812         insert_sorted_if_absent.
24813
24814 2010-10-16  Bruno Haible  <bruno@clisp.org>
24815
24816         nextafter: Fix configure check.
24817         * modules/nextafter (configure.ac): Correct expected prototype.
24818
24819 2010-10-16  Bruno Haible  <bruno@clisp.org>
24820
24821         termios: Update documentation.
24822         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24823
24824 2010-10-16  Bruno Haible  <bruno@clisp.org>
24825
24826         tests: Make them compile with TinyCC.
24827         * tests/test-strstr.c (main): Remove parentheses around array
24828         initializer.
24829
24830 2010-10-15  Eric Blake  <eblake@redhat.com>
24831
24832         ignore-value: make header idempotent
24833         * lib/ignore-value.h: Add double-inclusion guards.
24834         Reported by Stefan Berger.
24835
24836 2010-10-15  Jim Meyering  <meyering@redhat.com>
24837
24838         GNUmakefile: handle "stable" target, not "major"
24839         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24840         lists in maint.mk and announce-gen.  Without this, "make stable"
24841         would fail to ensure that $(VERSION) is up to date.
24842
24843 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24844
24845         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24846         & co.
24847
24848 2010-10-14  Bruno Haible  <bruno@clisp.org>
24849
24850         vasnprintf: Don't set errno to 0.
24851         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24852         block that sets it to 0.
24853         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24854
24855 2010-10-14  Bruno Haible  <bruno@clisp.org>
24856
24857         socketlib: Fix.
24858         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24859         gl_PREREQ_SYS_H_WINSOCK2.
24860         Reported by Ian Beckwith <ianb@erislabs.net>.
24861
24862 2010-10-13  Jim Meyering  <meyering@redhat.com>
24863
24864         test-select-stdin.c: avoid warn_unused_result warnings
24865         * tests/test-select-stdin.c: Include "macros.h".
24866         ASSERT that read and fflush succeed.
24867
24868 2010-10-13  Jim Meyering  <meyering@redhat.com>
24869
24870         git-version-gen: do require git-VC'd files in cwd
24871         * build-aux/git-version-gen: Reject a git version string
24872         if there are no commits associated with the current directory.
24873         This avoids an unlikely false-positive (unrelated dir whose parent
24874         repository also contains a tag matching v*), as pointed out
24875         by Giuseppe Scrivano in
24876         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24877
24878 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24879
24880         argv-iter: omit nonconforming declaration
24881         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24882         enum arg_iter_err declaration, which doesn't conform to C99.
24883         Solaris 10 cc warns about this.
24884
24885 2010-10-13  Eric Blake  <eblake@redhat.com>
24886
24887         termios: fix compilation on mingw
24888         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24889         (gl_TERMIOS_H): Adjust it on mingw.
24890         * modules/termios (Makefile.am): Substitute new key.
24891         * lib/termios.in.h (includes): Make include_next conditional.
24892         * doc/posix-headers/termios.texi (termios.h): Update
24893         documentation.
24894         Reported by Daniel P. Berrange.
24895
24896 2010-10-13  Jim Meyering  <meyering@redhat.com>
24897
24898         git-version-gen: don't require that .git/ be in the current dir
24899         * build-aux/git-version-gen: Adjust this script so that it works
24900         when run from any working directory beneath the top-level .git/-
24901         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24902         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24903
24904         test-select: avoid warn_unused_result warnings
24905         * tests/test-select.c: Include "macros.h".
24906         ASSERT that each call to read, write, and pipe succeeds.
24907         While not technically required, also check each "close".
24908         * modules/select-tests (Files): Add tests/macros.h.
24909
24910         test-symlinkat: remove declaration of unused local
24911         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24912
24913         test-inttostr: avoid shadowing warnings
24914         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24915         and use malloc rather than the stack for the same reason as
24916         mentioned in the comment justifying the other allocation.
24917
24918 2010-10-11  Bruno Haible  <bruno@clisp.org>
24919
24920         stdlib: Allow multiple gnulib generated replacements to coexist.
24921         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24922         Reported by Sam Steingold <sds@gnu.org>.
24923
24924 2010-10-11  Jim Meyering  <meyering@redhat.com>
24925
24926         fix a documentation typo
24927         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24928
24929 2010-10-11  Eric Blake  <eblake@redhat.com>
24930
24931         futimens: work around Solaris 11 bug
24932         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24933         * tests/test-futimens.h (test_futimens): Enhance, rather than
24934         weaken test.
24935         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24936
24937 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24938
24939         Indentation.
24940         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24941         higher-level operators more to the left.
24942
24943 2010-10-11  Jim Meyering  <meyering@redhat.com>
24944
24945         test-futimens: avoid unwarranted test failure on Solaris 5.11
24946         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24947         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24948         because it tries to dereference the NULL name argument.
24949
24950 2010-10-11  Bruno Haible  <bruno@clisp.org>
24951
24952         Indentation.
24953         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24954         indentation.
24955
24956 2010-10-11  Jim Meyering  <meyering@redhat.com>
24957
24958         spawn.in.h: make indentation consistent with parentheses
24959         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24960         Make indentation consistent with parentheses.
24961
24962 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24963
24964         Fix mismatched parens in previous commit
24965         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24966         parens.
24967
24968 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24969
24970         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24971
24972         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24973         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24974         * lib/malloca.c: Include "verify.h".
24975         (verify1): Remove, replacing with a verify call.
24976         * lib/relocwrapper.c (verify1): Likewise.
24977         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24978         Likewise.
24979         * modules/malloca (Depends-on): Add 'verify'.
24980         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24981         * modules/vasnprintf (Depends-on): Add 'verify'.
24982         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24983         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24984         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24985         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24986         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24987         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24988         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24989
24990         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24991
24992         Formerly the style was sometimes 2*X - 1, because the C standard
24993         was wrongly thought to disallow ?: in integral constant expressions.
24994         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24995         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24996         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24997         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24998         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24999         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25000         verify that time_t cannot be floating.
25001
25002 2010-10-08  Eric Blake  <eblake@redhat.com>
25003
25004         time: enforce recent POSIX ruling that time_t is integral
25005         * lib/time.in.h (__time_t_must_be_integral): Detect any
25006         problematic systems, allowing the rest of gnulib to assume POSIX.
25007
25008 2010-10-08  Jim Meyering  <meyering@redhat.com>
25009
25010         fdopendir: fix a bug on systems lacking openat and /proc support
25011         OpenBSD 4.7 is one such system.  The most noticeable effect was
25012         failure of any application making nontrivial use of fts: rm, du,
25013         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25014           ./rm: traversal failed: `a': Bad file descriptor
25015         Debugging that, you see that even though FD 6 was closed just
25016         prior to the opendir call in fd_clone_opendir, its resulting
25017         dir->dd_fd was 8, rather than the expected value of 6:
25018
25019         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25020         93                close (fd);
25021         (gdb) n
25022         94                dir = fd_clone_opendir (dupfd);
25023         (gdb) n
25024         95                saved_errno = errno;
25025         (gdb) p dir->dd_fd
25026         $11 = 8
25027
25028         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25029         The problem is that on OpenBSD, fd_clone_opendir has to resort
25030         to using the old-style save/restore CWD mechanism, due to its
25031         lack of openat/proc support, and *that* would steal the FD (6)
25032         that opendir was supposed to use.
25033
25034         The fix is to squirrel away the desired FD so that save_cwd uses a
25035         different one, and then free the dest FD right before calling opendir.
25036         That guarantees opendir will use the required file descriptor.
25037
25038         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25039
25040 2010-10-08  Bruno Haible  <bruno@clisp.org>
25041
25042         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25043         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25044
25045 2010-10-08  Bruno Haible  <bruno@clisp.org>
25046
25047         nanosleep: Make replacement POSIX compliant.
25048         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25049         is out of range.
25050         Reported by Jim Meyering.
25051
25052 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25053
25054         bootstrap: add hook for altering gnulib.mk, for Bison
25055         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25056         the Bison bootstrapping process can rewrite file names and variables
25057         in this file before later parts of 'bootstrap' use the file.
25058         Bison wants to include lib/gnulib.mk from the top-level makefile,
25059         so it needs the file names in this file to be relative to the top
25060         level, not relative to lib; plus it needs variable names to be
25061         rewritten.
25062         (slurp): Use the new function.
25063
25064         bootstrap: reformat for readability
25065         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25066
25067 2010-10-08  Eric Blake  <eblake@redhat.com>
25068
25069         docs: update cygwin progress
25070         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25071         1.7.7.
25072         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25073         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25074         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25075         * doc/posix-functions/carg.texi (carg): Likewise.
25076         * doc/posix-functions/cargf.texi (cargf): Likewise.
25077         * doc/posix-functions/casin.texi (casin): Likewise.
25078         * doc/posix-functions/casinf.texi (casinf): Likewise.
25079         * doc/posix-functions/casinh.texi (casinh): Likewise.
25080         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25081         * doc/posix-functions/catan.texi (catan): Likewise.
25082         * doc/posix-functions/catanf.texi (catanf): Likewise.
25083         * doc/posix-functions/catanh.texi (catanh): Likewise.
25084         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25085         * doc/posix-functions/ccos.texi (ccos): Likewise.
25086         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25087         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25088         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25089         * doc/posix-functions/cexp.texi (cexp): Likewise.
25090         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25091         * doc/posix-functions/cimag.texi (cimag): Likewise.
25092         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25093         * doc/posix-functions/clog.texi (clog): Likewise.
25094         * doc/posix-functions/clogf.texi (clogf): Likewise.
25095         * doc/posix-functions/conj.texi (conj): Likewise.
25096         * doc/posix-functions/conjf.texi (conjf): Likewise.
25097         * doc/posix-functions/cpow.texi (cpow): Likewise.
25098         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25099         * doc/posix-functions/cproj.texi (cproj): Likewise.
25100         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25101         * doc/posix-functions/creal.texi (creal): Likewise.
25102         * doc/posix-functions/crealf.texi (crealf): Likewise.
25103         * doc/posix-functions/csin.texi (csin): Likewise.
25104         * doc/posix-functions/csinf.texi (csinf): Likewise.
25105         * doc/posix-functions/csinh.texi (csinh): Likewise.
25106         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25107         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25108         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25109         * doc/posix-functions/ctan.texi (ctan): Likewise.
25110         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25111         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25112         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25113         * doc/posix-headers/complex.texi (complex.h): Likewise.
25114
25115 2010-10-07  Jim Meyering  <meyering@redhat.com>
25116
25117         parse-datetime: avoid compilation failure on OpenBSD 4.7
25118         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25119         This works around a compilation failure on OpenBSD 4.7:
25120         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25121
25122 2010-10-07  Eric Blake  <eblake@redhat.com>
25123
25124         docs: update cygwin progress
25125         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25126         1.7.6.
25127         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25128         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25129         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25130         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25131         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25132         Likewise.
25133         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25134         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25135         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25136         Likewise.
25137         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25138         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25139         Likewise.
25140         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25141         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25142         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25143         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25144         Likewise.
25145         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25146         Likewise.
25147         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25148
25149         docs: update parse-datetime history
25150         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25151         documentation of this function's history and alternatives.
25152
25153         cygwin: use more robust version check
25154         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25155         exclude an eventual cygwin 1.9.1.
25156         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25158         (gl_FUNC_STRCASESTR): Likewise.
25159         Reported by Bruno Haible.
25160
25161 2010-10-06  Bruno Haible  <bruno@clisp.org>
25162
25163         string, sys_select: Avoid #including large headers unless necessary.
25164         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25165         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25166         OSF/1, BeOS, Haiku.
25167         Reported by Jim Meyering.
25168
25169 2010-10-05  Eric Blake  <eblake@redhat.com>
25170
25171         memmem, strstr, strcasestr: fix bug with long periodic needle
25172         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25173         periodic needle having false positive.
25174         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25175         and cygwin 1.7.7.
25176         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25178         (gl_FUNC_STRCASESTR): Likewise.
25179         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25180         * tests/test-memmem.c (main): Expose the bug.
25181         * tests/test-strcasestr.c (main): Likewise.
25182         * tests/test-strstr.c (main): Likewise.
25183         * tests/test-c-strcasestr.c (main): Likewise.
25184         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25185         * doc/posix-functions/strstr.texi (strstr): Likewise.
25186         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25187         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25188
25189 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25190
25191         parse-datetime: do some more renaming
25192         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25193         parse_datetime, not get_date.  Mention the renaming.
25194         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25195         in comments.
25196         * m4/bison.m4: Likewise.
25197
25198 2010-10-05  Eric Blake  <eblake@redhat.com>
25199
25200         parse-datetime: better name than get_date
25201         * NEWS: Reword the deprecation notice.
25202         * modules/get_date: Rename to modules/parse-datetime.
25203         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25204         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25205         * lib/get_date.y: Rename to lib/parse-datetime.y.
25206         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25207         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25208         * doc/getdate.texi: Provide fallback wrapper.
25209         * lib/getdate.h: Move guts, and wrap...
25210         * lib/parse-datetime.h: ...new file.
25211         * lib/parse-datetime.y (get_date): Rename...
25212         (parse_datetime): ...to this.
25213         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25214         (gl_PARSE_DATETIME): ...to this.
25215         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25216         documentation.
25217         * modules/getdate (Files): Provide fallback docs and header.
25218         (Notice, Depends-on): Update references.
25219         * tests/test-parse-datetime.c: Likewise.
25220         * DEPENDENCIES: Likewise.
25221         * MODULES.html.sh (Date and time <time.h>): Likewise.
25222         * doc/parse-datetime.texi (Date input formats)
25223         (Authors of parse_datetime): Likewise.
25224         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25225         (Include): Likewise.
25226         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25227         * gnulib-tool: Likewise.
25228         * m4/bison.m4 (gl_BISON): Likewise.
25229         Suggested by Bruno Haible.
25230
25231 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25232
25233         more ports to Solaris tr, which needs [] around ranges
25234         * gnulib-tool: Solaris tr needs [] around ranges.
25235         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25236         * tests/test-pipe-filter-gi1.c (main): Likewise.
25237         * tests/test-pipe-filter-ii1.c (main): Likewise.
25238
25239 2010-10-05  Eric Blake  <eblake@redhat.com>
25240
25241         bootstrap: fix Solaris regression
25242         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25243         around ranges.
25244         Reported by Pádraig Brady.
25245
25246         bootstrap: work with pkg-config
25247         * build-aux/bootstrap (check_versions): Also transliterate - in
25248         prerequisite name.
25249         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25250         prerequisites that were already found, to avoid confusion.
25251         Reported by Justin Clift.
25252
25253         faccessat: remove unused wrappers
25254         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25255         presence of these wrappers dragged in -lgen on Solaris.
25256         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25257
25258 2010-10-05  Jim Meyering  <meyering@redhat.com>
25259
25260         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25261         * Makefile (sc_pragma_columns): New syntax-check rule.
25262
25263 2010-10-04  Bruno Haible  <bruno@clisp.org>
25264
25265         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25266         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25267         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25268         Reported by Bruce Korb and Eric Blake.
25269
25270 2010-10-04  Bruno Haible  <bruno@clisp.org>
25271
25272         threadlib: Make option --with-libpth-prefix work.
25273         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25274         use $LIBPTH, not just -lpth.
25275
25276 2010-10-04  Bruno Haible  <bruno@clisp.org>
25277
25278         Avoid line length limitation from HP NonStop system header files.
25279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25280         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25281         * lib/ctype.in.h: Likewise.
25282         * lib/dirent.in.h: Likewise.
25283         * lib/errno.in.h: Likewise.
25284         * lib/fcntl.in.h: Likewise.
25285         * lib/float.in.h: Likewise.
25286         * lib/getopt.in.h: Likewise.
25287         * lib/iconv.in.h: Likewise.
25288         * lib/inttypes.in.h: Likewise.
25289         * lib/langinfo.in.h: Likewise.
25290         * lib/locale.in.h: Likewise.
25291         * lib/math.in.h: Likewise.
25292         * lib/netdb.in.h: Likewise.
25293         * lib/netinet_in.in.h: Likewise.
25294         * lib/poll.in.h: Likewise.
25295         * lib/pthread.in.h: Likewise.
25296         * lib/pty.in.h: Likewise.
25297         * lib/sched.in.h: Likewise.
25298         * lib/se-selinux.in.h: Likewise.
25299         * lib/search.in.h: Likewise.
25300         * lib/signal.in.h: Likewise.
25301         * lib/spawn.in.h: Likewise.
25302         * lib/stdarg.in.h: Likewise.
25303         * lib/stddef.in.h: Likewise.
25304         * lib/stdint.in.h: Likewise.
25305         * lib/stdio.in.h: Likewise.
25306         * lib/stdlib.in.h: Likewise.
25307         * lib/string.in.h: Likewise.
25308         * lib/strings.in.h: Likewise.
25309         * lib/sys_file.in.h: Likewise.
25310         * lib/sys_ioctl.in.h: Likewise.
25311         * lib/sys_select.in.h: Likewise.
25312         * lib/sys_socket.in.h: Likewise.
25313         * lib/sys_stat.in.h: Likewise.
25314         * lib/sys_time.in.h: Likewise.
25315         * lib/sys_times.in.h: Likewise.
25316         * lib/sys_utsname.in.h: Likewise.
25317         * lib/sys_wait.in.h: Likewise.
25318         * lib/sysexits.in.h: Likewise.
25319         * lib/termios.in.h: Likewise.
25320         * lib/time.in.h: Likewise.
25321         * lib/unistd.in.h: Likewise.
25322         * lib/wchar.in.h: Likewise.
25323         * lib/wctype.in.h: Likewise.
25324         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25325         * modules/ctype (Makefile.am): Likewise.
25326         * modules/dirent (Makefile.am): Likewise.
25327         * modules/errno (Makefile.am): Likewise.
25328         * modules/fcntl-h (Makefile.am): Likewise.
25329         * modules/float (Makefile.am): Likewise.
25330         * modules/getopt-posix (Makefile.am): Likewise.
25331         * modules/iconv-h (Makefile.am): Likewise.
25332         * modules/inttypes (Makefile.am): Likewise.
25333         * modules/langinfo (Makefile.am): Likewise.
25334         * modules/locale (Makefile.am): Likewise.
25335         * modules/math (Makefile.am): Likewise.
25336         * modules/netdb (Makefile.am): Likewise.
25337         * modules/netinet_in (Makefile.am): Likewise.
25338         * modules/poll-h (Makefile.am): Likewise.
25339         * modules/pthread (Makefile.am): Likewise.
25340         * modules/pty (Makefile.am): Likewise.
25341         * modules/sched (Makefile.am): Likewise.
25342         * modules/search (Makefile.am): Likewise.
25343         * modules/selinux-h (Makefile.am): Likewise.
25344         * modules/signal (Makefile.am): Likewise.
25345         * modules/spawn (Makefile.am): Likewise.
25346         * modules/stdarg (Makefile.am): Likewise.
25347         * modules/stddef (Makefile.am): Likewise.
25348         * modules/stdint (Makefile.am): Likewise.
25349         * modules/stdio (Makefile.am): Likewise.
25350         * modules/stdlib (Makefile.am): Likewise.
25351         * modules/string (Makefile.am): Likewise.
25352         * modules/strings (Makefile.am): Likewise.
25353         * modules/sys_file (Makefile.am): Likewise.
25354         * modules/sys_ioctl (Makefile.am): Likewise.
25355         * modules/sys_select (Makefile.am): Likewise.
25356         * modules/sys_socket (Makefile.am): Likewise.
25357         * modules/sys_stat (Makefile.am): Likewise.
25358         * modules/sys_time (Makefile.am): Likewise.
25359         * modules/sys_times (Makefile.am): Likewise.
25360         * modules/sys_utsname (Makefile.am): Likewise.
25361         * modules/sys_wait (Makefile.am): Likewise.
25362         * modules/sysexits (Makefile.am): Likewise.
25363         * modules/termios (Makefile.am): Likewise.
25364         * modules/time (Makefile.am): Likewise.
25365         * modules/unistd (Makefile.am): Likewise.
25366         * modules/wchar (Makefile.am): Likewise.
25367         * modules/wctype (Makefile.am): Likewise.
25368
25369 2010-10-04  Bruno Haible  <bruno@clisp.org>
25370
25371         read-file tests: Avoid a test failure on NonStop Kernel.
25372         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25373         a regular file.
25374         Reported by Joachim Schmitz <schmitz@hp.com>.
25375
25376 2010-10-03  Bruno Haible  <bruno@clisp.org>
25377
25378         gnulib-tool: Fixes for --create-testdir with --libtool.
25379         * gnulib-tool (func_get_automake_snippet): Don't augment
25380         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25381         an executable.
25382         (func_create_testdir): Handle module 'alloca' like func_import.
25383         Reported by Bruce Korb <bruce.korb@gmail.com>.
25384
25385 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25386
25387         Avoid some lines longer than 80 characters.
25388         * lib/stdint.in.h: Break long comment lines.
25389         * lib/math.in.h: Likewise.
25390         (_GL_NUM_UINT_WORDS): New macro, for readability.
25391         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25392         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25393         * lib/stdlib.in.h: Likewise.
25394         * lib/spawn.in.h: Likewise.
25395         * lib/sys_socket.in.h: Update an URL.
25396         * lib/sys_stat.in.h: Break long line.
25397
25398 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25399
25400         Improve pmccabe2html.
25401         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25402         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25403         when the sources change. Remove the line in the HTML about "Used
25404         ranges" (which implied that there might be other unused ranges),
25405         rename "Resume" to "Summary" (easier to understand for more users).
25406         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25407         styles, and some unnecessary blank lines.
25408
25409 2010-10-03  Bruno Haible  <bruno@clisp.org>
25410             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25411
25412         acl: Add support for ACLs on NonStop Kernel.
25413         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25414         Check whether the function aclsort() exists.
25415         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25416         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25417         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25418         (acl_nontrivial [HAVE_ACLSORT]: New function.
25419         (file_has_acl): Implement for NonStop Kernel.
25420         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25421         (qset_acl): Implement for NonStop Kernel.
25422         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25423         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25424         (main): Implement for NonStop Kernel.
25425         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25426         Kernel. Handle this flavor.
25427         * tests/test-set-mode-acl.sh: Likewise.
25428         * tests/test-copy-acl.sh: Likewise.
25429         * tests/test-copy-file.sh: Likewise.
25430
25431 2010-10-03  Bruno Haible  <bruno@clisp.org>
25432
25433         Info about ACLs on NonStop Kernel.
25434         * doc/acl-resources.txt: Add info about NonStop Kernel.
25435         References by Joachim Schmitz <schmitz@hp.com>.
25436
25437 2010-10-02  Bruno Haible  <bruno@clisp.org>
25438
25439         Define missing EDQUOT on NonStop Kernel.
25440         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25441         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25443         missing.
25444         * doc/posix-headers/errno.texi: Mention the NSK bug.
25445         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25446         Reported by Joachim Schmitz <schmitz@hp.com>.
25447
25448 2010-10-02  Bruno Haible  <bruno@clisp.org>
25449
25450         Update doc for POSIX:2008.
25451         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25452         Update URL of POSIX specification.
25453
25454 2010-10-02  Bruno Haible  <bruno@clisp.org>
25455
25456         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25457         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25458         from gnulib, not from Automake.
25459
25460 2010-10-02  Bruno Haible  <bruno@clisp.org>
25461
25462         New module 'system-posix'.
25463         * modules/system-posix: New file.
25464         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25465         module is present.
25466         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25467         GNULIB_SYSTEM_POSIX.
25468         * modules/stdlib (Depends-on): Remove sys_wait.
25469         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25470         * doc/posix-functions/system.texi: Mention the new module.
25471         * doc/posix-headers/stdlib.texi: Likewise.
25472         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25473         define test_sys_wait_macros to a no-op.
25474         Reported by Sam Steingold <sds@gnu.org>.
25475
25476 2010-09-30  Bruno Haible  <bruno@clisp.org>
25477
25478         More renaming from 'getdate' to 'get_date'.
25479         * doc/get_date.texi: Renamed from doc/getdate.texi.
25480         * modules/get_date (Files): Update.
25481         * MODULES.html.sh (Date and time <time.h>): Update.
25482         * DEPENDENCIES: Update.
25483         * gnulib-tool: Update comment.
25484         * m4/bison.m4 (gl_BISON): Likewise.
25485         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25486
25487 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25488
25489         bootstrap: support ACLOCAL_FLAGS during aclocal
25490         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25491         can add additional -I dir for third-party .m4 files.
25492
25493 2010-09-30  Eric Blake  <eblake@redhat.com>
25494
25495         bootstrap: use glibtoolize on MacOS
25496         * build-aux/bootstrap (check_versions): Convert libtool into
25497         libtoolize.
25498         (tool search): Move libtool check earlier, and look for
25499         glibtoolize for MacOS.
25500         (gnulib_tool_options): Auto-add --libtool when appropriate.
25501         Reported by Justin Clift.
25502
25503         poll: fix typo that broke test on MacOS
25504         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25505         Reported by Justin Clift.
25506
25507         getdate: rename to get_date
25508         Note: getdate.h is not renamed, to minimize client impact.
25509         * modules/getdate: Mark obsolete.  Move old contents...
25510         * modules/get_date: ...to new module name.
25511         * modules/getdate-tests: Move...
25512         * modules/get_date-tests: ...here.
25513         * m4/getdate.m4: Move...
25514         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25515         * lib/getdate.y: Move...
25516         * lib/get_date.y: ...here.
25517         * tests/test-getdate.c: Move...
25518         * tests/test-get_date.c: ...here.
25519         * doc/posix-functions/getdate.texi (getdate): Update name.
25520         * NEWS: Mention the change.
25521
25522 2010-09-29  Bruno Haible  <bruno@clisp.org>
25523
25524         Separate the module 'waitpid' from the module 'sys_wait'.
25525         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25526         present.
25527         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25528         gl_MODULE_INDICATOR_FOR_TESTS.
25529         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25530         * modules/sys_wait (Depends-on): Remove waitpid.
25531         (Makefile.am): Substitute GNULIB_WAITPID.
25532         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25533         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25534         signature only if the 'waitpid' module is present.
25535         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25536         * NEWS: Mention the change.
25537         * modules/grantpt (Depends-on): Add waitpid.
25538         * modules/wait-process (Depends-on): Likewise.
25539
25540 2010-09-29  Bruno Haible  <bruno@clisp.org>
25541
25542         More tests for module 'sys_wait'.
25543         * modules/sys_wait-c++-tests: New file.
25544         * tests/test-sys_wait-c++.cc: New file.
25545         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25546         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25547
25548 2010-09-29  Bruno Haible  <bruno@clisp.org>
25549
25550         New module 'waitpid'.
25551         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25552         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25553         Don't include <process.h>.
25554         (waitpid): Declare only, using modern idiom.
25555         * m4/waitpid.m4: New file.
25556         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25557         * modules/waitpid: New file.
25558         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25559         (Makefile.am): Update.
25560         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25561
25562 2010-09-28  Bruno Haible  <bruno@clisp.org>
25563
25564         poll: Assume ANSI C.
25565         * lib/poll.c (poll): Use an ANSI C declaration.
25566
25567 2010-09-28  Bruno Haible  <bruno@clisp.org>
25568
25569         poll-h: Create poll.h on all platforms.
25570         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25571         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25572         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25573         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25574         (gl_REPLACE_POLL_H): Don't set POLL_H.
25575         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25576         * modules/poll-h (Depends-on): Add include_next.
25577         (Makefile.am): Create poll.h unconditionally. Substitute also
25578         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25579
25580 2010-09-28  Bruno Haible  <bruno@clisp.org>
25581
25582         Tests for module 'poll-h'.
25583         * modules/poll-h-c++-tests: New file.
25584         * tests/test-poll-h-c++.cc: New file.
25585
25586         Tests for module 'poll-h'.
25587         * modules/poll-h-tests: New file.
25588         * tests/test-poll-h.c: New file.
25589
25590 2010-09-28  Bruno Haible  <bruno@clisp.org>
25591
25592         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25593         * modules/poll-h (Depends-on): Add 'extensions'.
25594
25595 2010-09-28  Bruno Haible  <bruno@clisp.org>
25596
25597         New module 'poll-h'.
25598         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25599         (poll): Use modern idiom.
25600         * modules/poll-h: New file.
25601         * modules/poll (Files): Remove lib/poll.in.h.
25602         (Depends-on): Add poll-h.
25603         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25604         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25605         * m4/poll_h.m4: New file.
25606         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25607         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25608         and invoke gl_REPLACE_POLL_H.
25609         * lib/poll.c: Use common idiom.
25610         * tests/test-poll.c: Likewise.
25611         * doc/posix-headers/poll.texi: Mention the poll-h module.
25612         Suggested by Eric Blake.
25613
25614 2010-09-26  Bruno Haible  <bruno@clisp.org>
25615
25616         sys_wait: Implement WSTOPSIG.
25617         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25618         Reported by Simon Josefsson.
25619
25620 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25621
25622         stdlib, sys_wait: Avoid compilation error on mingw.
25623         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25624
25625 2010-09-26  Bruno Haible  <bruno@clisp.org>
25626
25627         stdlib tests: Avoid code duplication.
25628         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25629         * modules/sys_wait-tests (Files): Likewise.
25630         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25631         * tests/test-stdlib.c: Include test-sys_wait.h.
25632         (main): Invoke test_sys_wait_macros.
25633         * tests/test-sys_wait.c: Include test-sys_wait.h.
25634         (main): Invoke test_sys_wait_macros.
25635
25636 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25637
25638         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25639         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25640         sure Windows sockets are working before calling getaddrinfo.
25641         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25642         * doc/gnulib.texi (Windows sockets): Fix typo.
25643
25644 2010-09-25  Bruno Haible  <bruno@clisp.org>
25645
25646         Tests for module 'regex-quote'.
25647         * modules/regex-quote-tests: New file.
25648         * tests/test-regex-quote.c: New file.
25649
25650         New module 'regex-quote'.
25651         * lib/regex-quote.h: New file.
25652         * lib/regex-quote.c: New file.
25653         * modules/regex-quote: New file.
25654         Suggested by Reuben Thomas <rrt@sc3d.org>.
25655
25656 2010-09-24  Bruno Haible  <bruno@clisp.org>
25657
25658         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25659         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25660
25661 2010-09-23  Bruno Haible  <bruno@clisp.org>
25662
25663         setenv: Relax license.
25664         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25665         Blake.
25666         Requested by Eric Blake.
25667
25668 2010-09-22  Bruno Haible  <bruno@clisp.org>
25669
25670         termios: Relax license.
25671         * modules/termios (License): Change to LGPLv2+.
25672         Requested by Eric Blake.
25673
25674 2010-09-22  Bruno Haible  <bruno@clisp.org>
25675
25676         threadlib: Allow the package to change the default to 'no'.
25677         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25678         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25679         Reported by Paul Eggert.
25680
25681 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25682             Bruno Haible  <bruno@clisp.org>
25683
25684         Fix endless loop in mbmemcasecoll.
25685         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25686         byte.
25687         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25688
25689 2010-09-22  Bruno Haible  <bruno@clisp.org>
25690
25691         Tests for module 'memcoll'.
25692         * modules/memcoll-tests: New file.
25693         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25694
25695         memcoll, xmemcoll: Clarify size vs. length.
25696         * modules/memcoll.c (memcoll0): Clarify specification.
25697         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25698         passed to collate_error.
25699
25700 2010-09-22  Bruno Haible  <bruno@clisp.org>
25701
25702         Tests for module 'memcasecmp'.
25703         * modules/memcasecmp-tests: New file.
25704         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25705
25706 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25707
25708         * lib/pthread.in.h: Add split double-inclusion guard, and include
25709         system <pthread.h> if there is one.  Use @@-style as in other
25710         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25711         pthread.h doesn't.
25712         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25713         (pthread_mutexattr_settype, pthread_mutex_trylock):
25714         New static inline functions, if there's no system <pthread.h>.
25715         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25716         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25717         Approximate with mutexes if the system lacks spinlocks, as in
25718         MacOS.
25719         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25720         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25721         @@-style.  Check for spinlocks separately.
25722         (gl_PTHREAD_DEFAULTS): New macro.
25723         * modules/pthread: Redo to use a more typical style for in.h files.
25724
25725 2010-09-21  Eric Blake  <eblake@redhat.com>
25726
25727         net_if: enhance tests
25728         * tests/test-net_if.c (main): Move signature checks earlier.
25729         Print failures to stderr.
25730         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25731         Document the bug that we do not yet fix.
25732
25733 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25734
25735         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25736         about gnulib, not GSS.
25737
25738 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25739
25740         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25741         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25742         for Emacs.
25743         * build-aux/pmccabe2html: Make Makefile.am example code more
25744         cut-and-paste friendly.
25745
25746 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25747
25748         * tests/test-net_if.c: New file.
25749         * modules/net_if-tests: New file.
25750
25751 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25752
25753         pthread: add pthread_spin_destroy
25754         * lib/pthread.in.h (pthread_spin_destroy): New function.
25755
25756 2010-09-19  Bruno Haible  <bruno@clisp.org>
25757
25758         gnulib-tool: Fix --help output.
25759         * gnulib-tool (func_usage): Fix help message.
25760         Reported by Reuben Thomas <rrt@sc3d.org>.
25761
25762 2010-09-18  Jim Meyering  <meyering@redhat.com>
25763
25764         maint.mk: avoid unexpanded \n in two diagnostics
25765         * top/maint.mk (sc_prohibit_always_true_header_tests):
25766         Don't use a literal \n in a halt=... assignment.  It would not be
25767         expanded, and the two \n bytes would appear in the diagnostic output
25768         rather than the desired newline.  Use halt=$$(printf ... instead.
25769         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25770
25771 2010-09-18  Bruno Haible  <bruno@clisp.org>
25772
25773         netinet_in: Doc tweak.
25774         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25775         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25776
25777 2010-09-18  Jim Meyering  <meyering@redhat.com>
25778
25779         init.sh: correct an outdated comment
25780         * tests/init.sh (create_exe_shims_):  s/function/alias/
25781
25782         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25783         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25784         a file named "*.exe" is removed between the glob expansion and the
25785         processing of that oddly named file.
25786
25787 2010-09-17  Eric Blake  <eblake@redhat.com>
25788
25789         mirbsd: add some more support
25790         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25791         in BSD family.
25792         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25793         devices as OpenBSD.
25794         * m4/host-os.m4 (mirbsd): Add MirBSD.
25795
25796         tests: fix unportable assumption on sys/wait.h
25797         * tests/test-sys_wait.c (main): Relax test.
25798         * tests/test-stdlib.c (main): Likewise.
25799
25800         init.sh: accomodate directory with no .exes
25801         * tests/init.sh: Accomodate directory containing only scripts.
25802
25803         tests: avoid compiler warning
25804         * tests/test-stdlib.c (main): Use the variable.
25805
25806         fdutimens, fdutimensat: update signature, again
25807         * lib/utimens.h (gl_futimens): Delete, and move signature...
25808         (fdutimens): ...here.
25809         (fdutimensat): Rearrange signature.
25810         (lutimensat): Rename variable for clarity.
25811         * lib/fdutimensat.c (fdutimensat): Update signature.
25812         * lib/utimens.c (fdutimens): Likewise.
25813         (gl_futimens): Delete.
25814         (utimens, lutimens): Update callers.
25815         * lib/futimens.c (futimens): Likewise.
25816         * tests/test-fdutimensat.c: Likewise.
25817         * tests/test-utimens.c: Likewise.
25818         * tests/test-futimens.h: Update comment.
25819         * NEWS: Mention this.
25820         Suggested by Paul Eggert.
25821
25822 2010-09-17  Bruno Haible  <bruno@clisp.org>
25823
25824         Take over the maintenance of some older macros from Autoconf.
25825         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25826         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25827         GNU Autoconf.
25828         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25829         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25830
25831 2010-09-17  Eric Blake  <eblake@redhat.com>
25832
25833         fdutimensat: drop atflag validation
25834         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25835         with valid fd, to close a race scenario where futimens is
25836         unsupported and FILE was replaced by a symlink.
25837         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25838         accordingly.
25839         Suggested by Paul Eggert.
25840
25841 2010-09-16  Bruno Haible  <bruno@clisp.org>
25842
25843         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25844         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25845
25846 2010-09-16  Bruno Haible  <bruno@clisp.org>
25847
25848         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25849         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25850         login_tty exists.
25851         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25852
25853 2010-09-16  Bruno Haible  <bruno@clisp.org>
25854
25855         login_tty: Make the replacement code work on BSD systems.
25856         * lib/login_tty.c: Include <sys/ioctl.h>.
25857         (login_tty): Use ioctl TIOCSCTTY when available.
25858         * modules/login_tty (Depends-on): Add sys_ioctl.
25859         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25860
25861 2010-09-16  Bruno Haible  <bruno@clisp.org>
25862
25863         login_tty: Stricter unit test.
25864         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25865         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25866         and tcgetsid() after login_tty.
25867         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25868
25869 2010-09-16  Bruno Haible  <bruno@clisp.org>
25870
25871         New module 'tcgetsid'.
25872         * lib/tcgetsid.c: New file.
25873         * m4/tcgetsid.m4: New file.
25874         * modules/tcgetsid: New file.
25875         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25876         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25877         GNULIB_TCGETSID, HAVE_TCGETSID.
25878         * lib/termios.in.h: Include <sys/types.h>.
25879         (tcgetsid): New declaration.
25880         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25881         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25882         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25883         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25884
25885 2010-09-16  Bruno Haible  <bruno@clisp.org>
25886
25887         Tests for module 'termios'.
25888         * modules/termios-c++-tests: New file.
25889         * modules/termios-tests: New file.
25890         * tests/test-termios-c++.cc: New file.
25891         * tests/test-termios.c: New file.
25892
25893         New module 'termios'.
25894         * modules/termios: New file.
25895         * lib/termios.in.h: New file.
25896         * m4/termios_h.m4: New file.
25897         * doc/posix-headers/termios.texi: Mention the new module.
25898
25899 2010-09-16  Eric Blake  <eblake@redhat.com>
25900
25901         fdutimensat: add an atflag parameter
25902         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25903         * lib/utimens.h (fdutimensat): Update prototype.
25904         * tests/test-fdutimensat.c: Adjust test to match.
25905         * NEWS: Document the change.
25906         Suggested by Paul Eggert.
25907
25908 2010-09-16  Bruno Haible  <bruno@clisp.org>
25909
25910         Fix typos in comments.
25911         * lib/striconveh.h: Fix typo in comment.
25912         * lib/login_tty.c (login_tty): Likewise.
25913
25914 2010-09-15  Bruno Haible  <bruno@clisp.org>
25915
25916         stdlib: clarify MirBSD WEXITSTATUS bug
25917         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25918         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25919
25920 2010-09-15  Eric Blake  <eblake@redhat.com>
25921
25922         stdlib: work around MirBSD WEXITSTATUS bug
25923         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25924         * modules/stdlib (Depends-on): Add sys_wait.
25925         * tests/test-sys_wait.c (main): Enhance test.
25926         * tests/test-stdlib.c (main): Likewise.
25927         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25928
25929         docs: mention MacOS issue with WEXITSTATUS(constant)
25930         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25931         issue.
25932         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25933
25934         strnlen: add tests
25935         * modules/strnlen-tests: New file.
25936         * tests/test-strnlen.c: Likewise.
25937
25938 2010-09-14  Bruno Haible  <bruno@clisp.org>
25939
25940         unistr/base: Avoid link errors when module 'libunistring' is also used.
25941         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25942         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25943         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25944         Declare also when HAVE_LIBUNISTRING is set.
25945         Reported by Pádraig Brady <P@draigbrady.com>.
25946
25947 2010-09-14  Eric Blake  <eblake@redhat.com>
25948
25949         test-rawmemchr: make more robust
25950         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25951         (Depends-on, configure.ac): Add needed prerequisites to use it.
25952         * modules/memchr-tests (Files, Depends-on, configure.ac):
25953         Likewise, to avoid implicit reliance on memchr module prereqs.
25954         * tests/test-memchr.c (main): Ensure proper masking.
25955         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25956         reads.
25957
25958         memchr: detect glibc Alpha bug
25959         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25960         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25961         Alpha.
25962         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25963         * tests/test-memchr.c (main): Enhance test.
25964         Reported by Nelson H. F. Beebe.
25965
25966 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25967
25968         fts, getcwd, glob: audit for dirfd returning -1
25969         * lib/fts.c (opendir): Remove #define; no longer used.
25970         (opendirat): New arg PDIR_FD.  All callers changed.
25971         (fts_build, _opendir2): Use new opendirat to avoid the need for
25972         dirfd, or for checking whether dirfd returns a negative value.
25973         Don't use opendir; always use openat followed by fdopendir.
25974         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25975         it.
25976         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25977         returns -1 here.
25978         * modules/fts (Depends-on): Remove dirfd.
25979         * modules/getcwd (Depends-on): Likewise.
25980
25981 2010-09-13  Eric Blake  <eblake@redhat.com>
25982
25983         float: fix broken MirBSD header
25984         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25985         * doc/posix-headers/float.texi (float.h): Document it.
25986
25987 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25988
25989         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25990         * lib/fts.c (opendirat): New arg extra_flags.
25991         (__opendir2): Use it to avoid following symlinks when opening
25992         a directory, if symlinks are not supposed to be followed.  See
25993         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25994
25995         fdopendir: preserve argument fd before returning
25996         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25997         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25998         (fdopendir): Use them, arranging for FD to be open to the same
25999         directory that it was when it started.  (It might be temporarily
26000         closed while fdopendir is running, so this not thread- or
26001         signal-safe.)  Be careful to do the right thing even when file
26002         descriptors are scarce and dup fails with errno == EMFILE.  See
26003         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26004
26005 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26006
26007         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26008         * NEWS: Document change.
26009         * m4/regex.m4: Disable test for regoff_t size.
26010
26011 2010-09-13  Jim Meyering  <meyering@redhat.com>
26012
26013         fts: don't operate on an invalid file descriptor after failed dup
26014         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26015         negative file descriptor.
26016
26017 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26018
26019         savedir: add streamsavedir, deprecate fdsavedir
26020         * NEWS: Mention deprecation of fdsavedir.
26021         * lib/savedir.c (streamsavedir): New extern function, whose name
26022         ends in "savedir" to be consistent with the others.  This differs
26023         from savedirstream in that it doesn't close its argument.  The
26024         next version of GNU tar will use this instead of fdsavedir, to
26025         avoid some race conditions and conserve file descriptors.
26026         (savedirstream): Reimplement as a wrapper around streamsavedir.
26027         (fdsavedir): Add a comment deprecating this function.  As far as
26028         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26029         * lib/savedir.h (streamsavedir): New decl.
26030         (fdsavedir): Add a comment deprecating this.
26031
26032 2010-09-10  Bruno Haible  <bruno@clisp.org>
26033
26034         langinfo: Fix last commit.
26035         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26036         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26037         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26038
26039 2010-09-10  Bruno Haible  <bruno@clisp.org>
26040
26041         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26042         * lib/progreloc.c (O_EXEC): Define fallback.
26043
26044 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26045
26046         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26047         * NEWS: Document recent changes to fcntl-h.
26048         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26049         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26050         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26051         Similarly for O_SEARCH; this last was already true, but not documented.
26052         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26053         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26054         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26055         Likewise.
26056         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26057         is zero, not whether it is defined.
26058         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26059         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26060         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26061
26062 2010-09-10  Bruno Haible  <bruno@clisp.org>
26063
26064         langinfo, nl_langinfo: Fix for IRIX 5.3.
26065         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26066         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26067         HAVE_LANGINFO_YESEXPR.
26068         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26069         HAVE_LANGINFO_YESEXPR.
26070         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26071         HAVE_LANGINFO_T_FMT_AMPM is 0.
26072         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26073         HAVE_LANGINFO_YESEXPR is 0.
26074         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26075         NOEXPR.
26076         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26077         * doc/posix-functions/nl_langinfo.texi: Likewise.
26078         Reported by Eric Blake.
26079
26080 2010-09-10  Bruno Haible  <bruno@clisp.org>
26081
26082         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26083         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26084         on FreeBSD 8.0 and OpenBSD 4.6.
26085         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26086         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26087         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26088         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26089         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26090         ac_includes_default.
26091         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26092
26093 2010-09-09  Eric Blake  <eblake@redhat.com>
26094
26095         strsignal: work around NetBSD bug
26096         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26097         * lib/string.in.h (includes): Likewise.
26098         * doc/posix-functions/strsignal.texi (strsignal): Document the
26099         bug.
26100         Reported by Nelson H. F. Beebe.
26101
26102         gnulib-tool: work with NetBSD /bin/sh
26103         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26104         (func_get_description, func_get_comment, func_get_status)
26105         (func_get_notice, func_get_applicability, func_get_filelist)
26106         (func_get_dependencies, func_get_autoconf_early_snippet)
26107         (func_get_autoconf_snippet, func_get_automake_snippet)
26108         (func_get_include_directive, func_get_link_directive)
26109         (func_get_license, func_get_maintainer, func_import): Avoid
26110         shell syntax errors from parsing syntax extensions.
26111
26112 2010-09-09  Bruno Haible  <bruno@clisp.org>
26113
26114         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26115         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26116         a reliable way to determine whether the 'alias' command works.
26117
26118 2010-09-08  Jim Meyering  <meyering@redhat.com>
26119
26120         init.sh: penalize a set-x-impaired shell; don't disqualify it
26121         * tests/init.sh: Too many shells corrupt application stderr when
26122         you set -x, so we can't afford to disqualify them, since at least
26123         on Irix-6.5, that would disqualify all bourne shells.
26124         Instead, use a two-pass approach.
26125         On the first pass, try to find a shell that meets the stricter
26126         condition that set -x does not corrupt stderr.
26127         If no shell meets the stricter condition, retest each candidate
26128         shell, but without that extra condition.  Finally, when
26129         VERBOSE=yes is requested and set -x might cause trouble, simply
26130         issue a warning and refrain from enabling debug output.
26131
26132 2010-09-08  Eric Blake  <eblake@redhat.com>
26133
26134         unsetenv: fix OpenBSD bug
26135         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26136         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26137         documentation.
26138         Reported by Jim Meyering.
26139
26140         strtod: work around IRIX 6.5 bug
26141         * lib/strtod.c (strtod): Reparse number on shorter string if
26142         exponent parse was invalid.
26143         * tests/test-strtod.c (main): Add check for "0x1p 2".
26144         Reported by Tom G. Christensen.
26145
26146         getopt: optimize previous patch
26147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26148         empty variable.  Speed up awk script.
26149         Reported by Paolo Bonzini.
26150
26151 2010-09-08  Jim Meyering  <meyering@redhat.com>
26152
26153         test.sh: disqualify shells for which set -x corrupts stderr
26154         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26155         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26156         appear in stderr output.  For example, this command:
26157             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26158         prints "P=1" on those two systems:
26159
26160 2010-09-08  Bruno Haible  <bruno@clisp.org>
26161
26162         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26163         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26164         commands, because some shells ignore redirections when there is an
26165         error in the command lookup.
26166         Reported by Eric Blake.
26167
26168 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26169
26170         * lib/regex.h: Fix a mention of `regex_compile' (should be
26171         `re_compile_pattern').
26172         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26173         (re_set_registers): Correct name of parameter in comment.
26174
26175         * doc/regex.texi: Add documentation for missing syntax flags.
26176         Remove commented-out documentation of defunct syntax option
26177         RE_NO_EMPTY_ALTS.
26178         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26179         Add documentation of re_set_registers.
26180         Document trick to re-use a pattern buffer by setting fastmap manually.
26181         Update documentation of struct re_pattern_buffer per public members.
26182         Uncomment documentation of equivalence class operators and
26183         collating symbol operators, since they are now implemented,
26184         Explain leftmost-longest matching in relation to alternatives.
26185         Tidy documentation of substring matching.
26186         Remove POSIX documentation, which is done better in
26187         glibc, and refer the reader there. Keep BSD API documentation, as
26188         that is not readily available elsewhere.
26189
26190 2010-09-07  Eric Blake  <eblake@redhat.com>
26191
26192         getopt: handle POSIXLY_CORRECT set but not exported
26193         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26194         export state of POSIXLY_CORRECT, due to bash set -o posix.
26195         Reported by Dustin J. Mitchell.
26196
26197 2010-09-05  Bruno Haible  <bruno@clisp.org>
26198
26199         gnulib-tool: Highlight the changed options.
26200         * gnulib-tool (func_usage): Display the --import, --add-import,
26201         --remove-import explanations in bold font.
26202
26203 2010-09-06  Karl Berry  <karl@gnu.org>
26204
26205         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26206
26207 2010-09-05  Bruno Haible  <bruno@clisp.org>
26208
26209         uniwidth/width: Update comment.
26210         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26211         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26212
26213 2010-09-05  Bruno Haible  <bruno@clisp.org>
26214
26215         isinf, isnan: Relax license.
26216         * modules/isinf (License): Change from GPL to LGPL, with consent from
26217         Ben Pfaff.
26218         * modules/isnan (License): Likewise.
26219         Requested by Ludovic Courtès.
26220
26221 2010-09-04  Bruno Haible  <bruno@clisp.org>
26222
26223         gnulib-tool: Help migration from --import to --add-import or --update.
26224         * gnulib-tool: Emit a verbose error message when --import is used
26225         without any module name.
26226
26227 2010-09-04  Bruno Haible  <bruno@clisp.org>
26228
26229         Update doc about gnulib-tool.
26230         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26231         'gnulib-tool --update' in more detail.
26232         Reported by Eric Blake.
26233
26234 2010-09-04  Bruno Haible  <bruno@clisp.org>
26235
26236         gnulib-tool: Change --import. New options --add/remove-import.
26237         * gnulib-tool: New options --add-import, --remove-import.
26238         (func_usage): Document them.
26239         (have_associative): Define always.
26240         (func_import): In import mode, don't merge the specified settings with
26241         the cached settings. Implement remove-import mode.
26242         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26243         Explain when to use them versus --import.
26244         (Simple update): Use --add-import instead of --import.
26245         * NEWS: Mention the change.
26246
26247 2010-09-04  Bruno Haible  <bruno@clisp.org>
26248
26249         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26250         separate gnulib.mk.
26251
26252 2010-09-04  Bruno Haible  <bruno@clisp.org>
26253
26254         gnulib-tool: Don't talk about CVS any more.
26255         * gnulib-tool (func_usage, func_import): Write "version control"
26256         instead of CVS.
26257
26258 2010-09-04  Jim Meyering  <meyering@redhat.com>
26259
26260         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26261         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26262         false positives (whose names may be ill-chosen) when searching
26263         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26264         would cause a false-positive.
26265
26266         avoid coreutils "make distcheck" failure
26267         Coreutils tests with an absolute build directory name that contains
26268         a space.  Not quoting this directory name caused a failure.
26269         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26270         * tests/test-vc-list-files-cvs.sh: Likewise.
26271
26272 2010-09-04  Bruno Haible  <bruno@clisp.org>
26273
26274         gnulib-tool: Avoid error when run in a package without Makefile.am.
26275         * gnulib-tool: When collecting the m4dirs in a package that does not
26276         have a Makefile.am, eliminate those directories that contain no
26277         gnulib-cache.m4. Fix expression that counts these directories.
26278
26279 2010-09-04  Bruno Haible  <bruno@clisp.org>
26280
26281         update-copyright test: Improve output when perl is missing or too old.
26282         * tests/test-update-copyright.sh: Move test of Perl version down after
26283         the test whether Perl exists. Provide an explanation relating Perl's
26284         error message to Automake's SKIP: message.
26285
26286 2010-09-04  Bruno Haible  <bruno@clisp.org>
26287
26288         Don't augment PATH in TESTS_ENVIRONMENT.
26289         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26290         set abs_aux_dir instead of augmenting PATH.
26291         * modules/vc-list-files-tests (Makefile.am): Likewise.
26292         * tests/test-update-copyright.sh: Augment PATH here.
26293         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26294         path_prepend_.
26295         * tests/test-vc-list-files-git.sh: Likewise.
26296
26297 2010-09-04  Jim Meyering  <meyering@redhat.com>
26298
26299         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26300         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26301
26302 2010-09-04  Bruno Haible  <bruno@clisp.org>
26303
26304         strdup: Fix compilation error in C++ mode.
26305         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26306         the macro.
26307
26308 2010-09-04  Bruno Haible  <bruno@clisp.org>
26309
26310         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26311         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26312         macro into a function.
26313         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26314
26315 2010-09-04  Bruno Haible  <bruno@clisp.org>
26316
26317         Set PATH_SEPARATOR the same way autoconf does.
26318         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26319         the value of PATH_SEPARATOR the same way autoconf-generated configure
26320         scripts do.
26321         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26322         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26323
26324 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26325
26326         Set PATH_SEPARATOR the same way autoconf does.
26327         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26328         the same way autoconf-generated configure scripts do.
26329         * posix-modules: Likewise.
26330
26331 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26332
26333         hash: fix safe_hasher const typo
26334         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26335         const; otherwise, there is a type error later.
26336
26337 2010-09-02  Jim Meyering  <meyering@redhat.com>
26338
26339         test-update-copyright.sh: require perl 5.8.0
26340         * tests/test-update-copyright.sh: Require 5.8.0,
26341         which Tom G. Christensen has confirmed is adequate,
26342         while 5.6.1 is not.
26343
26344 2010-09-02  Eric Blake  <eblake@redhat.com>
26345
26346         tests: init.sh improvements for re-exec'ing with zsh
26347         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26348         -vx through shell re-exec.
26349         Reported by Tom G. Christensen.
26350
26351         wctype: fix typo in previous commit
26352         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26353         Reported by Ludovic Courtès.
26354
26355 2010-09-02  Jim Meyering  <meyering@redhat.com>
26356
26357         test-update-copyright.sh: skip test if Perl is too old
26358         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26359         Reported by Tom G. Christensen.
26360
26361 2010-09-02  Bruno Haible  <bruno@clisp.org>
26362
26363         wctype: Avoid compilation error on IRIX 6.5.30.
26364         * lib/wctype.in.h (iswblank): Declare with a replacement if
26365         REPLACE_ISWBLANK is set.
26366         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26367         declared. Set REPLACE_ISWBLANK.
26368         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26369         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26370         * doc/posix-headers/wctype.texi: Likewise.
26371         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26372
26373 2010-09-01  Bruno Haible  <bruno@clisp.org>
26374
26375         New module 'socketlib'.
26376         * modules/socketlib: New file.
26377         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26378         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26379         * modules/sockets (Depends-on): Add socketlib.
26380         Suggested by Sam Steingold <sds@gnu.org>.
26381
26382 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26383
26384         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26385
26386         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26387         when one needs search access to a directory but not read access.
26388         On systems where it is available, it works in some cases where
26389         O_RDONLY does not, namely on directories that are searchable but
26390         not readable, and which need only to be searchable.  If O_SEARCH
26391         is not available, fall back to the traditional method of using
26392         O_RDONLY.
26393
26394         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26395         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26396         when opening a directory that needs only to be searchable.
26397         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26398         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26399         * lib/openat-proc.c (openat_proc_name): Likewise.
26400         * lib/openat.c (openat_needs_fchdir): Likewise.
26401         * lib/save-cwd.c (save_cwd): Likewise.
26402         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26403
26404 2010-08-28  Bruno Haible  <bruno@clisp.org>
26405
26406         New module 'host-cpu-c-abi'.
26407         * modules/host-cpu-c-abi: New file.
26408         * m4/host-cpu-c-abi.m4: New file, based on part of
26409         clisp/src/m4/general.m4.
26410         Requested by Sam Steingold <sds@gnu.org>.
26411
26412 2010-08-31  Eric Blake  <eblake@redhat.com>
26413         and Jim Meyering  <meyering@redhat.com>
26414
26415         hash: factor, and guard against misbehaving hasher function
26416         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26417         of table->hasher's return value.  Also protect against a hash value
26418         so large that adding it to table->bucket results in a NULL pointer.
26419         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26420         Use it in place of open-coded check-and-abort.
26421
26422 2010-08-30  Bruno Haible  <bruno@clisp.org>
26423
26424         hash: silence spurious clang warning
26425         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26426         Reported by Eric Blake.
26427
26428 2010-08-30  Eric Blake  <eblake@redhat.com>
26429
26430         strstr, memmem, strcasestr: avoid leaked shell message
26431         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26432         FreeBSD.
26433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26434         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26435
26436         tests: silence clang warning
26437         * tests/test-malloca.c (do_allocation): Avoid dead store.
26438
26439 2010-08-29  Bruno Haible  <bruno@clisp.org>
26440
26441         gettext: Fix recent mistake.
26442         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26443
26444 2010-08-29  Bruno Haible  <bruno@clisp.org>
26445
26446         selinux-h: Offer a --without-selinux option.
26447         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26448         --without-selinux was specified, skip all tests and define
26449         HAVE_SELINUX_SELINUX_H to 0.
26450         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26451         set LIB_SELINUX to empty.
26452         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26453         gl_LIBSELINUX. If --without-selinux was specified, replace
26454         selinux/context.h.
26455         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26456
26457 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26458             Bruno Haible  <bruno@clisp.org>
26459
26460         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26461         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26462         of HAVE_REALLOC.
26463         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26464         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26465         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26466         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26467
26468 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26469             Bruno Haible  <bruno@clisp.org>
26470
26471         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26472         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26473         HAVE_CALLOC.
26474         * lib/xmalloc.c: Update accordingly.
26475         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26476         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26477         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26478
26479 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26480             Bruno Haible  <bruno@clisp.org>
26481
26482         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26483         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26484         HAVE_MALLOC.
26485         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26486         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26487         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26488
26489 2010-08-29  Bruno Haible  <bruno@clisp.org>
26490
26491         Update modules list.
26492         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26493         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26494         (String handling <string.h>): Add astrxfrm.
26495         (File system functions): Add readlinkat.
26496
26497 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26498
26499         Tests for module 'realloc-gnu'.
26500         * modules/realloc-gnu-tests: New file.
26501         * tests/test-realloc-gnu.c: New file.
26502
26503         Tests for module 'calloc-gnu'.
26504         * modules/calloc-gnu-tests: New file.
26505         * tests/test-calloc-gnu.c: New file.
26506
26507         Tests for module 'malloc-gnu'.
26508         * modules/malloc-gnu-tests: New file.
26509         * tests/test-malloc-gnu.c: New file.
26510
26511 2010-08-28  Bruno Haible  <bruno@clisp.org>
26512
26513         Rename module 'realloc' -> 'realloc-gnu'.
26514         * modules/realloc-gnu: New file, copied from modules/realloc.
26515         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26516         obsolete.
26517         * modules/mgetgroups (Depends-on): Update.
26518         * doc/posix-functions/realloc.texi: Update.
26519         * NEWS: Mention the change.
26520
26521         Rename module 'calloc' -> 'calloc-gnu'.
26522         * modules/calloc-gnu: New file, copied from modules/calloc.
26523         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26524         obsolete.
26525         * doc/posix-functions/calloc.texi: Update.
26526         * NEWS: Mention the change.
26527
26528         Rename module 'malloc' -> 'malloc-gnu'.
26529         * modules/malloc-gnu: New file, copied from modules/malloc.
26530         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26531         obsolete.
26532         * modules/argp (Depends-on): Update.
26533         * modules/regex (Depends-on): Update.
26534         * doc/posix-functions/malloc.texi: Update.
26535         * NEWS: Mention the change.
26536
26537 2010-08-28  Eric Blake  <eblake@redhat.com>
26538
26539         pread, pwrite: add missing dependency
26540         * modules/pread (Depends-on): Add extensions.
26541         * modules/pwrite (Depends-on): Likewise.
26542
26543 2010-08-28  Bruno Haible  <bruno@clisp.org>
26544
26545         unistr/u*-strchr: Fix tests dependencies.
26546         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26547         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26548         Reported by Ian Beckwith <ianb@erislabs.net>.
26549
26550 2010-08-28  Bruno Haible  <bruno@clisp.org>
26551
26552         read-file: Don't occupy too much unused memory.
26553         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26554
26555 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26556             Eric Blake  <eblake@redhat.com>
26557             Bruno Haible  <bruno@clisp.org>
26558
26559         read-file: Avoid memory reallocations with regular files.
26560         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26561         (fread_file): With regular files, use the remaining length as the
26562         initial buffer size.  Check against overflow.
26563         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26564         sys_stat.
26565
26566 2010-08-28  Bruno Haible  <bruno@clisp.org>
26567
26568         ftello: Relax license.
26569         * modules/ftello (License): Relax to LGPLv2+.
26570         Reported by Eric Blake.
26571
26572 2010-08-28  Bruno Haible  <bruno@clisp.org>
26573
26574         Avoid relocwrapper link errors due to gnulib replacement functions.
26575         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26576         function.
26577         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26578
26579 2010-08-28  Bruno Haible  <bruno@clisp.org>
26580
26581         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26582         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26583         defined.
26584         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26585         Suggested by Eric Blake.
26586
26587 2010-08-28  Bruno Haible  <bruno@clisp.org>
26588
26589         sys_socket, netdb: Ensure socklen_t gets defined.
26590         * modules/sys_socket (Depends-on): Add socklen.
26591         * modules/netdb (Depends-on): Likewise.
26592         * modules/getaddrinfo (Depends-on): Remove socklen.
26593         * modules/getsockopt (Depends-on): Likewise.
26594         * modules/setsockopt (Depends-on): Likewise.
26595         * tests/test-sys_socket.c: Check that socklen_t is defined.
26596         * tests/test-netdb.c: Likewise.
26597         * m4/socklen.m4: Update comments.
26598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26599
26600 2010-08-27  Eric Blake  <eblake@redhat.com>
26601
26602         login_tty: add missing dependency
26603         * modules/login_tty (Depends-on): Add pty.
26604
26605 2010-08-26  Eric Blake  <eblake@redhat.com>
26606
26607         lib-symbol-versions: fix m4 quoting
26608         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26609         format for AC_LINK_IFELSE.
26610
26611         glob: fix compile test
26612         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26613
26614         btowc: fix missing file
26615         * modules/btowc (Files): Also ship locale-fr.m4.
26616
26617         lseek: fix link test
26618         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26619         AC_LINK_IFELSE.
26620
26621         include_next: silence autoconf 2.68 warning
26622         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26623         AC_COMPILE_IFELSE as special.
26624         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26625         autoconf < 2.68.
26626
26627         acl: fix compilation test
26628         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26629         AC_COMPILE_IFELSE.
26630
26631 2010-08-26  Bruno Haible  <bruno@clisp.org>
26632
26633         Modernize AC_TRY_RUN invocations.
26634         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26635         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26636         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26637         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26638         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26639         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26640         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26641         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26642         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26643         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26644         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26645         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26646         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26647         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26648         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26649         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26650         gl_MBRLEN_NUL_RETVAL): Likewise.
26651         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26652         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26653         Likewise.
26654         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26655         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26656         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26657         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26658         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26659         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26660         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26661         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26662         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26663         Likewise.
26664         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26665         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26666         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26667         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26668         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26669         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26670         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26671         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26672         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26673         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26674
26675 2010-08-26  Bruno Haible  <bruno@clisp.org>
26676
26677         Modernize AC_TRY_LINK invocations.
26678         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26679         AC_TRY_LINK.
26680         * m4/argp.m4 (gl_ARGP): Likewise.
26681         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26682         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26683         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26684         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26686         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26687         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26688         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26689         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26690         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26691         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26692         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26693         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26694         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26695         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26696         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26697         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26698         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26699         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26700         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26701         Likewise.
26702         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26703         Likewise.
26704         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26705         Likewise.
26706         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26708         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26709         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26710         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26711         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26712         * m4/servent.m4 (gl_SERVENT): Likewise.
26713         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26714         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26715         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26716         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26717         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26718         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26719         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26721         * modules/tsearch-tests (configure.ac): Likewise.
26722
26723 2010-08-26  Bruno Haible  <bruno@clisp.org>
26724
26725         Modernize AC_TRY_COMPILE invocations.
26726         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26727         AC_TRY_COMPILE.
26728         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26729         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26730         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26731         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26732         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26733         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26734         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26735         * m4/lock.m4 (gl_LOCK): Likewise.
26736         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26737         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26738         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26739         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26740         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26741         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26742         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26744         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26745         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26746         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26747         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26748         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26749         extraneous semicolon.
26750
26751 2010-08-26  Jim Meyering  <meyering@redhat.com>
26752
26753         stat-time: relax license LGPL
26754         * modules/stat-time (License): Change from GPL to LGPL,
26755         with consent from all contributors, for use in libguile.
26756         Requested by Ludovic Courtès.
26757
26758 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26759
26760         poll: return immediately on POLLHUP.
26761         * lib/poll.c (poll): Always set timeout before wait_timeout is
26762         computed.
26763
26764 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26765
26766         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26767         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26768         rmdir ("dir/.//"), unlinkat.
26769
26770 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26771
26772         stdbool: avoid spurious failure with modern xlc
26773         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26774
26775 2010-08-24  Bruno Haible  <bruno@clisp.org>
26776
26777         getloadavg: simplify code
26778         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26779         gl_have_func. Update comments.
26780
26781 2010-08-24  Eric Blake  <eblake@redhat.com>
26782
26783         getloadavg: don't define SVR4 on cygwin
26784         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26785         only define SVR4 when -lkvm is required.
26786         Reported by Yaakov Selkowitz.
26787
26788 2010-08-24  Bruno Haible  <bruno@clisp.org>
26789
26790         priv-set: fix comment
26791         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26792
26793 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26794
26795         priv-set: fix comments
26796         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26797         to match code, as suggested by David Bartley in:
26798         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26799
26800 2010-08-23  Eric Blake  <eblake@redhat.com>
26801
26802         stdbool: avoid rejecting clang
26803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26804         * tests/test-stdbool.c: Enable more tests if using the system
26805         <stdbool.h> instead of the gnulib replacement.
26806         (main): Move xlc bug test to a runtime test for all compilers.
26807         Reported by Anders Kaseorg.
26808
26809         argz: fix shell quoting issue
26810         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26811         Reported by Charles Wilson.
26812
26813 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26814             Erik Faye-Lund <kusmabite@gmail.com>
26815
26816         poll, select: handle ERROR_BROKEN_PIPE.
26817         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26818         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26819         * lib/select.c (win32_compute_revents): Do not mark a pipe
26820         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26821
26822 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26823
26824         fts: allow compilation with C++
26825         * lib/fts_.h: Specify extern "C" linkage with C++.
26826
26827 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26828
26829         Fix gnulib-tool sed script de-commentation for AIX sed.
26830         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26831         sed.
26832
26833 2010-08-17  Eric Blake  <eblake@redhat.com>
26834
26835         test-stddef: test for (some) offsetof bugs
26836         * tests/test-stddef.c: Enhance test to ensure correct type of
26837         offsetof.
26838         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26839         that we are not fixing at this time.
26840
26841 2010-08-15  Bruno Haible  <bruno@clisp.org>
26842
26843         stpncpy: Allow stpncpy to be defined as a macro.
26844         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26845         if it's already correctly declared.
26846         * lib/string.in.h (stpncpy): Undefine before redefining.
26847         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26848
26849 2010-08-14  Bruno Haible  <bruno@clisp.org>
26850
26851         Rename module 'memxfrm' to 'amemxfrm'.
26852         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26853         (amemxfrm): Renamed from memxfrm.
26854         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26855         (amemxfrm): Renamed from memxfrm.
26856         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26857         * NEWS: Mention the change.
26858         * MODULES.html.sh (String handling <string.h>): Update.
26859         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26860         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26861         * lib/unicase/u16-casexfrm.c: Likewise.
26862         * lib/unicase/u32-casexfrm.c: Likewise.
26863         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26864         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26865         * lib/uninorm/u16-normxfrm.c: Likewise.
26866         * lib/uninorm/u32-normxfrm.c: Likewise.
26867         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26868         memxfrm.
26869         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26870         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26871         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26872         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26873         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26874         Suggested by Paul Eggert.
26875
26876 2010-08-14  Bruno Haible  <bruno@clisp.org>
26877
26878         Tests for module 'astrxfrm'.
26879         * modules/astrxfrm-tests: New file.
26880         * tests/test-astrxfrm.c: New file.
26881
26882         New module 'astrxfrm'.
26883         * lib/astrxfrm.h: New file.
26884         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26885         * modules/astrxfrm: New file.
26886
26887 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26888
26889         regex: Tweak doc.
26890         * doc/regex.texi (Overview): Don't mention regex.c.
26891         (GNU Regular Expression Compiling): Likewise.
26892         (Match-end-of-line Operator): Mention 'not_eol'.
26893
26894 2010-08-14  Brian Gough  <bjg@gnu.org>
26895             Bruno Haible  <bruno@clisp.org>
26896
26897         git-merge-changelog: add doc relating to use with bzr and hg.
26898         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26899
26900 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26901
26902         pthread: fix pthread.h creation for srcdir != builddir
26903         * modules/pthread (Makefile.am): Fix the rule to work also in a
26904         non-srcdir build.
26905
26906 2010-08-13  Karl Berry  <karl@gnu.org>
26907
26908         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26909         * doc/posix-*/*: force line break before @url of POSIX
26910         specifications.
26911         Suggested by Werner Lemberg.
26912
26913 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26914
26915         strtod: fix const diagnostic
26916         * lib/strtod.c (strtod): Don't assign const char * to char *,
26917         as this elicits a warning from GCC when warnings are enabled.
26918
26919 2010-08-10  Pádraig Brady <P@draigbrady.com>
26920         and Eric Blake  <eblake@redhat.com>
26921
26922         copy-acl: ignore ENOTSUP on HP-UX
26923         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26924         so that it is available for HP-UX.
26925         * lib/copy-acl.c (qcopy_acl): Use it.
26926         Reported by Patrick M. Callahan.
26927
26928 2010-08-10  Eric Blake  <eblake@redhat.com>
26929
26930         open, chown: relax license
26931         * modules/open (License): Change to LGPLv2+, with consent by all
26932         authors, for use in augeas.
26933         * modules/chown (License): Likewise.
26934         * modules/lchown (Likewise): Likewise.
26935         Requested by Adam Stokes.
26936
26937 2010-08-09  Karl Berry  <karl@gnu.org>
26938
26939         * build-aux/ar-lib: new file, import from Automake.
26940         * config/srclist.txt: autocheck for updates.
26941
26942 2010-08-09  Eric Blake  <eblake@redhat.com>
26943
26944         readlinkat: adjust client modules
26945         * modules/areadlinkat (Depends-on): Use readlinkat, not
26946         symlinkat.
26947         * modules/areadlinkat-with-size (Depends-on): Likewise.
26948
26949         mknod: be more vocal about danger of running tests as root
26950         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26951         root, since that is just asking for problems.
26952         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26953
26954         readlinkat: split into its own module
26955         * modules/symlinkat: Split readlinkat...
26956         * modules/readlinkat: ...into separate module.
26957         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26958         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26959         * lib/symlinkat.c (readlinkat): Move...
26960         * lib/readlinkat.c: ...into new file.
26961         * modules/symlinkat-tests: Split readlinkat test...
26962         * modules/readlinkat-tests: ...into separate module.
26963         * tests/test-symlinkat.c: Split...
26964         * tests/test-readlinkat.c: ...into new file.
26965         * NEWS: Document the split.
26966         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26967         * lib/unistd.in.h (readlinkat): Likewise.
26968         Suggested by Bruno Haible.
26969
26970 2010-08-08  Bruno Haible  <bruno@clisp.org>
26971
26972         memxfrm: Speed up.
26973         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26974         that usually only one call to strxfrm is necessary for each string
26975         part.
26976         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26977
26978 2010-08-07  Karl Berry  <karl@gnu.org>
26979
26980         * doc/posix-headers/limits.texi,
26981         * doc/posix-functions/malloc.texi,
26982         * doc/posix-functions/strsignal.texi: missing @item.
26983         * doc/ld-version-script.texi: spurious leading i.
26984         * doc/regex.texi (Interval Operators): no commas inside @var.
26985
26986 2010-08-01  Bruno Haible  <bruno@clisp.org>
26987
26988         Integrate the regex documentation.
26989         * doc/gnulib.texi: Define 'cn' index.
26990         (Regular expressions): New a chapter that includes regex.texi and
26991         regexprops-generic.texi.
26992         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26993         syntax.
26994
26995         Whitespace cleanup.
26996         * doc/regex.texi: Remove trailing spaces.
26997
26998         Add regex documentation.
26999         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27000         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27001         Written by Kathy A. Hargreaves and Karl Berry.
27002
27003 2010-08-01  Bruno Haible  <bruno@clisp.org>
27004
27005         link: Update documentation.
27006         * doc/posix-functions/link.texi: Update regarding Solaris.
27007
27008 2010-07-31  Bruno Haible  <bruno@clisp.org>
27009
27010         Update modules list.
27011         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27012         (String handling <string.h>): Add memcmp2, memxfrm.
27013         (Container data structures): Add xlist, xsublist, xoset.
27014         (Core language properties): Add alignof, unused-parameter.
27015         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27016         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27017         (Unibyte characters <ctype.h>): New section.
27018         (String handling <string.h>): New section.
27019         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27020         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27021         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27022         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27023         tan, tanh, tanl, y0, y1, yn.
27024         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27025         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27026         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27027         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27028         unlockpt, vdprintf, vdprintf-posix.
27029         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27030         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27031         xconcat-filename.
27032         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27033         getdtablesize, pipe2, pipe2-safer.
27034         (Security): New section.
27035         (Networking functions): Add accept4.
27036         (Signal handling): Add sigpipe.
27037         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27038         mbmemcasecoll.
27039         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27040         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27041         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27042         pipe-filter-ii.
27043         (Misc): Add argp-version-etc, login_tty, parse-duration.
27044
27045 2010-07-31  Bruno Haible  <bruno@clisp.org>
27046
27047         Improve doc in MODULES.html.
27048         * modules/linkat (Description): Add the word "function".
27049         * modules/mkfifo (Description): Likewise.
27050         * modules/mknod (Description): Likewise.
27051         * modules/remove (Description): Likewise.
27052         * modules/renameat (Description): Likewise.
27053         * modules/stat (Description): Likewise.
27054         * modules/symlink (Description): Likewise.
27055         * modules/unlink (Description): Likewise.
27056
27057 2010-07-31  Bruno Haible  <bruno@clisp.org>
27058
27059         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27060         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27061         option --enable/disable-c++ instead of --enable/disable-cxx.
27062         * NEWS: Mention the change.
27063
27064 2010-07-31  Bruno Haible  <bruno@clisp.org>
27065
27066         readlink, areadlink: Relax test a bit.
27067         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27068         alternative to ENOTDIR.
27069         * tests/test-areadlink.h (test_areadlink): Likewise.
27070         Reported by Rainer Tammer.
27071
27072 2010-07-31  Bruno Haible  <bruno@clisp.org>
27073
27074         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27075         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27076         character, perform the search using U_STRCHR.
27077         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27078         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27079         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27080         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27081         Suggested by Paolo Bonzini.
27082
27083 2010-07-31  Bruno Haible  <bruno@clisp.org>
27084
27085         unistr/u*-strstr: Fix dependencies.
27086         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27087         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27088         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27089
27090 2010-07-31  Bruno Haible  <bruno@clisp.org>
27091
27092         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27093         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27094         the beginning of the loop.
27095         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27096         cases in 'switch' statement.
27097
27098         unistr/u8-strchr: Fix several bugs.
27099         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27100         the string. When not found, return NULL, not a pointer near the end.
27101
27102         More tests for unistr/u8-strchr.
27103         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27104         that the function does not read past the first occurrence of the byte
27105         being searched.
27106         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27107         * tests/unistr/test-u16-strchr.c (main): New function.
27108         * tests/unistr/test-u32-strchr.c (main): New function.
27109
27110 2010-07-31  Bruno Haible  <bruno@clisp.org>
27111
27112         posix-modules: Ignore backup files of documentation files.
27113         * posix-modules: grep only through files named *.texi.
27114
27115 2010-07-31  Bruno Haible  <bruno@clisp.org>
27116
27117         symlinkat: Fix documentation.
27118         * doc/posix-functions/readlinkat.texi: Fix module name.
27119
27120 2010-07-31  Bruno Haible  <bruno@clisp.org>
27121
27122         fchownat: Replace also when chown has the trailing slash bug.
27123         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27124         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27125         introduced on 2010-04-10.
27126         Reported by Rainer Tammer.
27127
27128 2010-07-31  Bruno Haible  <bruno@clisp.org>
27129
27130         linkat: Work around AIX 7.1 bug.
27131         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27132         whether linkat handles trailing slash correctly. If not, replace linkat
27133         and define LINKAT_TRAILING_SLASH_BUG.
27134         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27135         check whether (fd1,file1) points to a directory if file1 or file2 ends
27136         in a slash. Code taken from lib/link.c.
27137         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27138         Reported by Rainer Tammer.
27139
27140 2010-07-31  Bruno Haible  <bruno@clisp.org>
27141
27142         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27143         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27144         This disables an xlc optimization that was causing wrong test results.
27145         Reported by Rainer Tammer.
27146
27147 2010-07-31  Bruno Haible  <bruno@clisp.org>
27148
27149         iconv: Work around AIX 6.1..7.1 bug.
27150         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27151         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27152         cross-compiling, guess no on all versions of AIX.
27153         Reported by Rainer Tammer.
27154
27155 2010-07-31  Bruno Haible  <bruno@clisp.org>
27156
27157         readlink: Relax test a bit.
27158         * tests/test-readlink.h (test_readlink): Allow different errno value
27159         when readlink is called with a file name that ends in / and refers to
27160         a file.
27161         Suggested by Eric Blake.
27162         Reported by Rainer Tammer.
27163
27164 2010-07-31  Bruno Haible  <bruno@clisp.org>
27165
27166         copysign: Does not require -lm on glibc systems.
27167         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27168         gl_COMMON_DOUBLE_MATHFUNC.
27169         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27170
27171 2010-07-31  Bruno Haible  <bruno@clisp.org>
27172
27173         duplocale: Work around AIX 7.1 bug.
27174         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27175         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27176         * lib/duplocale.c (rpl_duplocale): Update comment.
27177         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27178         Reported by Rainer Tammer.
27179
27180 2010-07-30  Bruno Haible  <bruno@clisp.org>
27181
27182         dirfd: Avoid link error on AIX 7.1.
27183         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27184         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27185         exist, set REPLACE_DIRFD.
27186         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27187         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27188         * doc/posix-functions/dirfd.texi: Update.
27189         Reported by Rainer Tammer.
27190
27191 2010-07-30  Eric Blake  <eblake@redhat.com>
27192
27193         strtod: next round of AIX fixes
27194         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27195         exponent.
27196         * tests/test-strtod.c (main): Enhance tests.
27197         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27198         Reported by Rainer Tammer.
27199
27200         futimens: fix configure check
27201         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27202         Reported by Bruno Haible.
27203
27204 2010-07-30  Bruno Haible  <bruno@clisp.org>
27205
27206         getline: Update regarding AIX.
27207         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27208         Reported by Rainer Tammer.
27209
27210 2010-07-30  Bruno Haible  <bruno@clisp.org>
27211
27212         wcwidth: Drop replacement on AIX 7.
27213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27214         AIX 7.
27215         Reported by Rainer Tammer.
27216
27217 2010-07-30  Bruno Haible  <bruno@clisp.org>
27218
27219         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27220         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27221         a 'char *'.
27222         Reported by Rainer Tammer.
27223
27224 2010-07-30  Bruno Haible  <bruno@clisp.org>
27225
27226         unlink: Update regarding AIX.
27227         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27228         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27229         Reported by Rainer Tammer.
27230
27231 2010-07-30  Bruno Haible  <bruno@clisp.org>
27232
27233         symlink: Update regarding AIX.
27234         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27235         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27236         Reported by Rainer Tammer.
27237
27238 2010-07-30  Bruno Haible  <bruno@clisp.org>
27239
27240         strndup: Update regarding AIX.
27241         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27242         AIX 7.
27243         Reported by Rainer Tammer.
27244
27245 2010-07-30  Bruno Haible  <bruno@clisp.org>
27246
27247         stat: Update regarding AIX.
27248         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27249         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27250         Reported by Rainer Tammer.
27251
27252 2010-07-30  Bruno Haible  <bruno@clisp.org>
27253
27254         truncl: Fix autoconf test.
27255         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27256         whether truncl works.
27257         Reported by Rainer Tammer.
27258
27259 2010-07-30  Bruno Haible  <bruno@clisp.org>
27260
27261         round: Update regarding AIX.
27262         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27263         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27264         Reported by Rainer Tammer.
27265
27266 2010-07-30  Bruno Haible  <bruno@clisp.org>
27267
27268         rename: Update regarding AIX.
27269         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27270         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27271         Reported by Rainer Tammer.
27272
27273 2010-07-30  Bruno Haible  <bruno@clisp.org>
27274
27275         printf.m4: Update regarding AIX.
27276         * m4/printf.m4: Update comments regarding AIX.
27277         Reported by Rainer Tammer.
27278
27279 2010-07-30  Bruno Haible  <bruno@clisp.org>
27280
27281         iconv: Update regarding AIX.
27282         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27283         AIX 7.
27284         Reported by Rainer Tammer.
27285
27286 2010-07-30  Bruno Haible  <bruno@clisp.org>
27287
27288         getopt: Update regarding AIX.
27289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27290         no on AIX.
27291         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27292         Reported by Rainer Tammer.
27293
27294 2010-07-30  Bruno Haible  <bruno@clisp.org>
27295
27296         ldexpl; Update regarding AIX.
27297         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27298         on AIX 7.
27299         Reported by Rainer Tammer.
27300
27301 2010-07-30  Bruno Haible  <bruno@clisp.org>
27302
27303         frexpl: Update regarding AIX.
27304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27305         on AIX 7.
27306         Reported by Rainer Tammer.
27307
27308 2010-07-30  Bruno Haible  <bruno@clisp.org>
27309
27310         open, fopen: Update regarding AIX.
27311         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27312         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27313         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27314         * doc/posix-functions/fopen.texi: Likewise.
27315         Reported by Rainer Tammer.
27316
27317 2010-07-30  Bruno Haible  <bruno@clisp.org>
27318
27319         chown: Update doc regarding AIX.
27320         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27321         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27322         Reported by Rainer Tammer.
27323
27324 2010-07-30  Eric Blake  <eblake@redhat.com>
27325
27326         strtod: fix bug in replacement function on AIX
27327         * lib/strtod.c (strtod): Special case broken "0x" parse in
27328         underlying strtod.
27329         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27330         * doc/posix-functions/strtod.texi (strtod): Likewise.
27331         Reported by Rainer Tammer.
27332
27333 2010-07-30  Bruno Haible  <bruno@clisp.org>
27334
27335         mbrlen: Fix cross-compilation guess for AIX.
27336         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27337         guess. Leftover from 2008-12-22.
27338
27339 2010-07-30  Bruno Haible  <bruno@clisp.org>
27340
27341         mbrtowc: Fix cross-compilation guess for AIX.
27342         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27343         guess. Leftover from 2008-12-21.
27344
27345 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27346
27347         init.sh: work around trap limitation of some shells
27348         * tests/init.sh (setup_): Move exit trap outside of shell function.
27349
27350 2010-07-29  Eric Blake  <eblake@redhat.com>
27351
27352         strtod: aid debugging
27353         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27354         understanding why strtod is rejected.
27355
27356 2010-07-28  Bruno Haible  <bruno@clisp.org>
27357
27358         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27359         * lib/unistr/u8-chr.c: Include <string.h>.
27360         * tests/unistr/test-u8-chr.c: Likewise.
27361         * tests/unistr/test-u16-chr.c: Likewise.
27362         * tests/unistr/test-u32-chr.c: Likewise.
27363         * tests/unistr/test-u8-strchr.c: Likewise.
27364         * tests/unistr/test-u16-strchr.c: Likewise.
27365         * tests/unistr/test-u32-strchr.c: Likewise.
27366         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27367         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27368         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27369         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27370
27371 2010-07-28  Bruno Haible  <bruno@clisp.org>
27372
27373         Use spaces for indentation, not tabs.
27374         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27375
27376 2010-07-27  Bruno Haible  <bruno@clisp.org>
27377
27378         mbspcasecmp: Fix function specification.
27379         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27380         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27381         Reported by Eric Blake <eblake@redhat.com>.
27382
27383 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27384
27385         timespec: use cast and not conditional, as truncation isn't possible
27386         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27387         instead of a conditional.  Comment about the situation in more detail.
27388         This undoes most of the 2009-10-29 patch.
27389
27390 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27391
27392         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27393         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27394         * lib/unistr/u8-strchr.c: Likewise.
27395         * modules/unistr/u8-chr: Depend on memchr.
27396
27397         unistr/u*-strchr: add tests
27398         * modules/unistr/u8-strchr-tests: New file.
27399         * modules/unistr/u16-strchr-tests: New file.
27400         * modules/unistr/u32-strchr-tests: New file.
27401         * tests/unistr/test-strchr.h: New file.
27402         * tests/unistr/test-u8-strchr.c: New file.
27403         * tests/unistr/test-u16-strchr.c: New file.
27404         * tests/unistr/test-u32-strchr.c: New file.
27405
27406         unistr/u*-chr: test multibyte sequences more
27407         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27408         test vector.
27409         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27410         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27411         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27412
27413         unistr/u*-chr: test multibyte sequences
27414         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27415
27416         unistr/u*-chr: prepare for multibyte tests
27417         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27418         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27419         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27420         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27421         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27422         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27423
27424 2010-07-18  Bruno Haible  <bruno@clisp.org>
27425
27426         unistr/u8-strchr: Optimize non-ASCII argument case.
27427         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27428         because the first byte often matches anyway.
27429         Reported by Pádraig Brady <P@draigbrady.com>.
27430
27431 2010-07-15  Karl Berry  <karl@gnu.org>
27432
27433         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27434
27435 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27436
27437         getcwd: on Solaris, work better if ancestors are inaccessible
27438         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27439         buffer and size, try again with a large buffer.  This works better
27440         on Solaris, since its getcwd succeeds even if the path to the root
27441         is inaccessible, and this is helpful in common cases such as .zfs
27442         hidden directories.  Problem reported by J Chapman Flack in
27443         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27444         Use system getcwd if it's declared, not merely if it's partly
27445         working; use the partly-working test only to avoid needless effort
27446         if the system getcwd fails.
27447         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27448         comment that was already obsolete and is now even more obsolete.
27449         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27450         now might call strdup.
27451
27452 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27453
27454         pthread: Add enough so that coreutils/src/sort.c compiles.
27455         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27456         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27457         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27458         Include <sys/types.h>, in case it defines pthread_t.
27459         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27460         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27461         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27462         (pthread_rwlockattr_t, pthread_spinlock_t):
27463         New typedefs, if HAVE_PTHREAD_T is not defined.
27464         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27465         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27466         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27467         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27468         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27469         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27470         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27471         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27472         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27473         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27474         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27475         New macros.
27476         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27477         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27478         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27479         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27480         (pthread_spin_unlock): New dummy functions.
27481         (pthread_create): Return EAGAIN; don't set errno.
27482         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27483         require AC_C_INLINE.
27484         * modules/pthread (Depends-on): Add sched, time.
27485         (pthread.h): Use AM_V_GEN.
27486
27487 2010-07-13  Bruno Haible  <bruno@clisp.org>
27488
27489         striconveh: Don't malloc memory if the result buffer is sufficient.
27490         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27491         buffer if its size is sufficient.
27492         Reported by Ludovic Courtès <ludo@gnu.org>.
27493
27494 2010-07-13  Bruno Haible  <bruno@clisp.org>
27495
27496         strtod: Add safety check.
27497         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27498
27499 2010-07-12  Bruno Haible  <bruno@clisp.org>
27500
27501         Unify tests that set gl_cv_func_ldexpl_no_libm.
27502         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27503         gl_FUNC_LDEXPL.
27504         (gl_FUNC_LDEXPL): Invoke it.
27505         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27506
27507 2010-07-12  Bruno Haible  <bruno@clisp.org>
27508
27509         Unify tests that set gl_cv_func_ldexp_no_libm.
27510         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27511         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27512         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27513         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27514         * modules/strtod (Files): Add m4/ldexp.m4.
27515
27516 2010-07-12  Bruno Haible  <bruno@clisp.org>
27517
27518         Unify tests that set gl_cv_func_frexpl_no_libm.
27519         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27520         gl_FUNC_FREXPL_NO_LIBM.
27521         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27522         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27523
27524 2010-07-12  Bruno Haible  <bruno@clisp.org>
27525
27526         Unify tests that set gl_cv_func_frexp_no_libm.
27527         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27528         gl_FUNC_FREXP_NO_LIBM.
27529         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27530         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27531
27532 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27533
27534         memcoll: clarify sizes versus lengths, document better, and tweak perf
27535         * lib/memcoll.c (strcoll_loop, memcoll0):
27536         Improve quality of descriptive comments.  Name variables
27537         consistently as to whether they are lengths (which do not include
27538         terminating null) versus sizes (which do).
27539         * lib/xmemcoll.c (xmemcoll0): Likewise.
27540         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27541         returned when s1size == 0; this is easier to compile and saves
27542         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27543
27544 2010-07-12  Bruno Haible  <bruno@clisp.org>
27545
27546         Tests for module '_Exit'.
27547         * modules/_Exit-tests: New file.
27548         * tests/test-_Exit.sh: New file.
27549         * tests/test-_Exit.c: New file.
27550
27551         New module '_Exit'.
27552         * lib/stdlib.in.h (__attribute__): New macro.
27553         (_Exit): New declaration.
27554         * lib/_Exit.c: New file.
27555         * m4/_Exit.m4: New file.
27556         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27557         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27558         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27559         * modules/_Exit: New file.
27560         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27561         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27562
27563 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27564
27565         strtod: make it more-accurate typically, and don't require libm
27566         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27567         Include limits.h.  Don't include string.h.
27568         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27569         (locale_isspace): New function, so that no casts are needed to
27570         check whether *s is a space.
27571         (ldexp): Provide an unused dummy if not available.
27572         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27573         (strtod): Use them.  This implementation prefers to use the
27574         underlying strtod if available, falling back on our own code
27575         only to fix known bugs.  This is more likely to produce an
27576         accurate result.  Also, it avoids the use of libm functions.
27577         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27578         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27579         was absent, but it caused a test failure with coreutils.
27580         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27581         with libm.
27582         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27583         * modules/strtod-tests (Makefile.am): Likewise.
27584
27585 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27586             Bruno Haible  <bruno@clisp.org>
27587
27588         unistr/u8-strchr: Optimize ASCII argument case.
27589         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27590
27591 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27592
27593         (x)memcoll: minor tweaks
27594         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27595         is after the type that it qualifies.
27596         (memcoll0): Likewise.
27597         * lib/memcoll.h (memcoll0): Likewise.
27598         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27599         * lib/xmemcoll.h (xmemcoll0): Likewise.
27600         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27601         differs from memcoll in that the NUL byte is part of the argument.
27602         Omit the abort-checks, as performance is a real issue here.  Plus,
27603         the checks were wrong anyway (an off-by-one error).  Omit local
27604         variable 'diff', as it's a bit clearer that way.
27605         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27606         no longer needed.
27607
27608 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27609
27610         (x)memcoll: speedup when input is known to be NUL delimited
27611         * lib/memcoll.c: Include stdlib.
27612         (memcoll0): New function.
27613         (strcoll_loop): New function, refactored for use in both memcoll
27614         and memcoll0.
27615         * lib/memcoll.h (memcoll0): Add prototype.
27616         * lib/xmemcoll.c (xmemcoll0): New function.
27617         (collate_error): New function, refactored for use in both xmemcoll
27618         and xmemcoll0.
27619         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27620         * m4/memcoll.m4: add inline invocation.
27621
27622 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27623
27624         * build-aux/bootstrap: Remove any local translations
27625         from the translation project synchronization directory,
27626         so that local only translations are not distributed.
27627
27628 2010-07-04  Bruno Haible  <bruno@clisp.org>
27629
27630         fsusage: Clarify which code applies to which platforms.
27631         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27632         platform.
27633         * lib/fsusage.c (get_fs_usage): Likewise.
27634
27635 2010-07-04  Bruno Haible  <bruno@clisp.org>
27636
27637         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27638         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27639         Reported by Martin Lambers <marlam@marlam.de>.
27640
27641 2010-07-04  Jim Meyering  <meyering@redhat.com>
27642
27643         hash: once again explicitly disallow insertion of NULL
27644         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27645         inserting a NULL pointer cannot work with these functions.
27646         Add a comment with details.
27647         This reverts part of the 2010-07-01 commit, 5bef1a35
27648         "hash: extend module to deal with non-pointer keys".
27649
27650 2010-07-01  Bruno Haible  <bruno@clisp.org>
27651
27652         stdbool: Update doc.
27653         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27654         Info from Christian Weisgerber <naddy@mips.inka.de>.
27655
27656 2010-07-01  Jim Meyering  <meyering@redhat.com>
27657
27658         hash: extend module to deal with non-pointer keys
27659         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27660         but that allows insertion of non-pointer entries.
27661         Do not disallow an ENTRY value of NULL.
27662         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27663         * lib/hash.h (hash_insert0): Declare.
27664
27665 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27666
27667         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27668         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27669         not present (i.e. with autoconf 2.59 and when using gettextize, not
27670         gnulib), require AC_GNU_SOURCE instead.
27671
27672 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27673
27674         idpriv-drop: Fix tests.
27675         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27676         not to the test-idpriv-droptemp program.
27677
27678 2010-06-29  Bruno Haible  <bruno@clisp.org>
27679
27680         string: Fix syntax error with g++ 2.96.
27681         * lib/string.in.h (__pure__): Remove definition.
27682         (_GL_ATTRIBUTE_PURE): New macro.
27683         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27684         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27685         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27686
27687 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27688
27689         unitypes: Fix bug introduced on 2010-05-18.
27690         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27691
27692 2010-06-22  Eric Blake  <eblake@redhat.com>
27693
27694         memmem: slight optimization
27695         * lib/str-two-way.h (critical_factorization): Update comments.
27696         Reduce work during factorization phase.
27697         Reported by Carlos Bueno <carlos@bueno.org>.
27698
27699 2010-06-21  Bruno Haible  <bruno@clisp.org>
27700
27701         Fix HAVE_CALLOC_POSIX misnomer.
27702         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27703         !HAVE_CALLOC_POSIX.
27704         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27705         HAVE_CALLOC_POSIX.
27706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27707         instead of HAVE_CALLOC_POSIX.
27708         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27709         HAVE_CALLOC_POSIX.
27710
27711         Use modern idiom for calloc() replacement.
27712         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27713         AC_FUNC_CALLOC.
27714         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27715         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27716         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27717         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27718         (gl_REPLACE_CALLOC): New macro.
27719
27720 2010-06-21  Bruno Haible  <bruno@clisp.org>
27721
27722         Fix HAVE_REALLOC_POSIX misnomer.
27723         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27724         !HAVE_REALLOC_POSIX.
27725         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27726         HAVE_REALLOC_POSIX.
27727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27728         instead of HAVE_REALLOC_POSIX.
27729         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27730         HAVE_REALLOC_POSIX.
27731
27732         Use modern idiom for realloc() replacement.
27733         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27734         AC_FUNC_REALLOC.
27735         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27736         Autoconf's AC_FUNC_REALLOC.
27737         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27738         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27739         (gl_REPLACE_REALLOC): New macro.
27740         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27741
27742 2010-06-21  Bruno Haible  <bruno@clisp.org>
27743
27744         Fix HAVE_MALLOC_POSIX misnomer.
27745         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27746         !HAVE_MALLOC_POSIX.
27747         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27748         HAVE_MALLOC_POSIX.
27749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27750         instead of HAVE_MALLOC_POSIX.
27751         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27752         HAVE_MALLOC_POSIX.
27753
27754         Use modern idiom for malloc() replacement.
27755         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27756         AC_FUNC_MALLOC.
27757         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27758         Autoconf's AC_FUNC_MALLOC.
27759         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27760         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27761         (gl_REPLACE_MALLOC): New macro.
27762         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27763
27764 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27765
27766         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27767         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27768         This macro takes 3 arguments, not 4.
27769
27770 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27771
27772         ipv6: fix detection under mingw
27773         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27774         in6_addr.
27775
27776 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27777
27778         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27779         that strtod() works when cross-compiling to a glibc version known
27780         to work.
27781
27782 2010-06-15  Bruno Haible  <bruno@clisp.org>
27783
27784         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27785
27786 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27787
27788         select: Correct timeout.
27789         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27790
27791 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27792
27793         git-version-gen: init shell var to avoid env var influence
27794         * build-aux/git-version-gen (v): Init shell var to empty.
27795
27796 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27797
27798         priv-set: Don't assume that priv.h exists merely because getppriv does.
27799         See Jan Andersen's bug report about AIX 5L in
27800         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27801         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27802         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27803         * lib/priv-set.h: Likewise.
27804         * tests/test-priv-set.c: Likewise.
27805
27806 2010-06-13  Bruno Haible  <bruno@clisp.org>
27807
27808         relocatable: Make it easier to test whether to install wrappers.
27809         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27810         RELOCATABLE_VIA_WRAPPER.
27811
27812 2010-06-13  Bruno Haible  <bruno@clisp.org>
27813
27814         gnulib-tool: Display specified modules and dependencies differently.
27815         * gnulib-tool (func_show_module_list): New function.
27816         (func_import, func_create_testdir): Invoke it.
27817         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27818
27819 2010-06-13  Bruno Haible  <bruno@clisp.org>
27820
27821         gnulib-tool: Align code of func_import and func_create_testdir.
27822         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27823         specified_modules.
27824
27825 2010-06-12  Jim Meyering  <meyering@redhat.com>
27826
27827         test-inttostr: avoid spurious failure on Solaris 9
27828         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27829         to accept "%ju".  Reported by Bruno Haible.
27830
27831 2010-06-11  Jim Meyering  <meyering@redhat.com>
27832
27833         test-sys_socket: mark variables as used more readably
27834         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27835         as "used" explicitly via (void) statement casts.  This is more
27836         readable than using them in an artificial return expression.
27837         Suggestion from Bruno Haible.
27838
27839 2010-06-11  Bruno Haible  <bruno@clisp.org>
27840
27841         Avoid some more warnings from "gcc -Wwrite-strings".
27842         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27843         to 'const char *'.
27844         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27845         * tests/test-c-strcasestr.c (main): Likewise.
27846         * tests/test-mbscasestr1.c (main): Likewise.
27847         * tests/test-mbscasestr2.c (main): Likewise.
27848         * tests/test-memmem.c (main): Likewise.
27849         * tests/test-strstr.c (main): Likewise.
27850         * tests/test-strcasestr.c (main): Likewise.
27851
27852 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27853
27854         init.sh: change framework_failure_ to fail with status 99, not 1
27855         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27856         automake's parallel-tests rule that this is an unexpected failure,
27857         even if the test is listed in XFAIL_TESTS.
27858
27859 2010-06-11  Jim Meyering  <meyering@redhat.com>
27860
27861         test-inttostr: avoid warnings about 4-6KB literal strings
27862         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27863         Include "macros.h", for its definition of ASSERT.
27864         (CK): s/assert/ASSERT/
27865         * modules/inttostr-tests (Files): Add macros.h.
27866
27867         init.sh: don't use $ME_ or skip_ before they are defined
27868         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27869         their first uses.  Also hoist their companions: warn_, fail_,
27870         framework_failure_, $stderr_fileno.  Prompted by a patch from
27871         Stefano Lattarini.
27872
27873         test-sys_socket: avoid set-but-not-used warnings from gcc
27874         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27875         avoid warning about set-but-not-used variables.
27876
27877         test-xvasprintf: avoid 'const' discard warnings
27878         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27879         "const" when assigning from literal strings.
27880         (test_xasprintf): Add "void" in function argument list to placate
27881         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27882
27883         tests: avoid compilation warnings in argmatch and exclude tests...
27884         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27885         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27886         Since it always exits, declare with the "noreturn" attribute.
27887         * tests/test-argmatch.c: Likewise.
27888
27889         tests: avoid 'const' discard warnings in mbsstr tests
27890         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27891         * tests/test-mbsstr2.c (main): Likewise.
27892
27893         test-verify: avoid warning from gcc's -Wmissing-declarations
27894         * tests/test-verify.c (function): Declare to be static.
27895
27896         test-inttostr.c: include <string.h> for use of strcmp
27897         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27898
27899         test-linkat: avoid failed assertion on "other" architectures
27900         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27901         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27902         sparc: https://bugs.launchpad.net/bugs/591968
27903
27904 2010-06-11  Jim Meyering  <meyering@redhat.com>
27905
27906         printf.m4: avoid autoconf's "Expanded Before Required" warning
27907         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27908         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27909         autoconf warning.
27910
27911 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27912
27913         Replacement header templates are now named with ".in", not "_".
27914         * doc/gnulib-intro.texi: Correct.
27915
27916 2010-06-10  Jim Meyering  <meyering@redhat.com>
27917
27918         inttostr-tests: depend on snprintf, not snprintf-posix
27919         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27920         snprintf-posix, to avoid this aclocal failure:
27921           missing file gnulib-tests/vasnprintf.c
27922           configure.ac:45: error: expected source file, required through \
27923           AC_LIBSOURCES, not found
27924
27925 2010-06-10  Jim Meyering  <meyering@redhat.com>
27926
27927         inttostr: add a new function, inttostr, and tests
27928         The namesake function was not available.  The existence of the
27929         template file, inttostr.c makes its addition nontrivial.
27930         * lib/anytostr.c: Rename from inttostr.c.
27931         (anytostr): Rename from inttostr.
27932         * lib/inttostr.c: New file.
27933         * modules/inttostr (Files): Add anytostr.c.
27934         (Makefile.am): Set lib_SOURCES instead of ...
27935         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27936         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27937         * lib/offtostr.c: Likewise.
27938         * lib/uinttostr.c: Likewise.
27939         * lib/umaxtostr.c: Likewise.
27940         * modules/inttostr-tests: New file.
27941         * tests/test-inttostr.c: New file.  Test these functions.
27942
27943 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27944             Bruno Haible  <bruno@clisp.org>
27945
27946         Add "Extending Gnulib" chapter to manual.
27947         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27948         chapter.
27949         (Extending Gnulib): New chapter.
27950         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27951         chapter.
27952
27953 2010-06-09  Bruno Haible  <bruno@clisp.org>
27954
27955         Avoid relocwrapper link errors due to gnulib replacement functions.
27956         * lib/areadlink.c: Use the system's malloc, realloc functions.
27957         (areadlink): Set errno to ENOMEM explicitly.
27958         * modules/areadlink (Depends-on): Remove malloc-posix.
27959         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27960
27961 2010-06-09  Bruno Haible  <bruno@clisp.org>
27962
27963         Avoid relocwrapper link errors due to gnulib replacement functions.
27964         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27965         * lib/malloca.c: Likewise.
27966         * lib/relocatable.c: Likewise.
27967         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27968         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27969         * lib/setenv.c: Use the system's malloc, realloc functions.
27970         * lib/strerror.c: Use the system's sprintf function.
27971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27972
27973 2010-06-04  Bruno Haible  <bruno@clisp.org>
27974
27975         Prefer documented low-level autoconf macro names.
27976         * m4/lib-link.m4: Use m4_translit instead of translit.
27977         * m4/environ.m4: Likewise.
27978         * m4/mathfunc.m4: Likewise.
27979         * m4/onceonly.m4: Likewise.
27980         * m4/stdint.m4: Likewise.
27981         Suggested by Eric Blake.
27982
27983 2010-06-04  Martin Lambers  <marlam@marlam.de>
27984             Bruno Haible  <bruno@clisp.org>
27985
27986         havelib: Allow library names with '+' characters.
27987         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27988         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27989
27990 2010-06-09  Bruno Haible  <bruno@clisp.org>
27991
27992         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27993         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27994         realloc failed.
27995
27996 2010-06-08  Peter Simons  <simons@cryp.to>
27997
27998         maint.mk: make the news-check rule more configurable
27999         * top/maint.mk (news-check-lines-spec): New variable.
28000         (news-check): Use "sed -n 1,10p" in place of "head".
28001
28002 2010-06-07  Jim Meyering  <meyering@redhat.com>
28003
28004         do-release-commit-and-tag: fix typo in --help
28005         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28006
28007         regex: avoid new dead-code warning with gcc-4.6.0
28008         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28009         if-block containing a while-loop.  It's been unused for at least
28010         5 years.
28011
28012 2010-06-05  Bruno Haible  <bruno@clisp.org>
28013
28014         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28015         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28016
28017 2010-06-04  Bruno Haible  <bruno@clisp.org>
28018
28019         Update to GNU gettext 0.18.1.
28020         * modules/gettext (configure.ac): Require gettext infrastructure from
28021         version 0.18.1.
28022
28023 2010-06-03  Bruno Haible  <bruno@clisp.org>
28024
28025         Don't use AC_LIBOBJ with file names in subdirectories.
28026         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28027         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28028         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28029         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28030         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28031         gl_LIBUNISTRING_LIBSOURCE.
28032         (Makefile.am): Augment lib_SOURCES here, conditionally.
28033         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28034
28035 2010-06-03  Bruno Haible  <bruno@clisp.org>
28036
28037         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28038         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28039         expansion does not end with a newline.
28040         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28041         unnecessary newline.
28042
28043 2010-06-03  Bruno Haible  <bruno@clisp.org>
28044
28045         Reduce dependencies.
28046         * tests/test-quotearg.h: New file, extracted from
28047         tests/test-quotearg.c.
28048         * tests/test-quotearg-simple.c: New file, extracted from
28049         tests/test-quotearg.c.
28050         * tests/test-quotearg.c: Don't include <ctype.h>.
28051         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28052         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28053         use_quote_double_quotes, use_quotearg_colon): Moved to
28054         tests/test-quotearg.h.
28055         (results_g, flag_results, custom_quotes, custom_results): Moved
28056         to tests/test-quotearg-simple.c.
28057         (main): Moved the part that does not depend on gettext to
28058         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28059         performed.
28060         * modules/quotearg-simple: New file.
28061         * modules/quotearg-simple-tests: New file.
28062         * modules/quotearg (Depends-on): Add quotearg-simple.
28063         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28064         (Files): Add tests/test-quotearg.h.
28065         Reported by Paolo Bonzini.
28066
28067 2010-06-03  Bruno Haible  <bruno@clisp.org>
28068
28069         Reduce dependencies.
28070         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28071
28072 2010-06-03  Bruno Haible  <bruno@clisp.org>
28073
28074         time: Undefine more broken macros.
28075         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28076         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28077         Reported by Eric Blake.
28078
28079 2010-06-03  Bruno Haible  <bruno@clisp.org>
28080
28081         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28082         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28083         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28084         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28085         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28086         Reported by Ludovic Courtès <ludo@gnu.org>.
28087
28088 2010-06-02  Eric Blake  <eblake@redhat.com>
28089
28090         time: work with mingw + pthreads-win32 library
28091         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28092         if timespec is defined only in pthread.h.
28093         * modules/time (Makefile.am): Substitute it.
28094         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28095         <pthread.h>, when needed.
28096         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28097         from the library.
28098
28099 2010-05-31  Bruno Haible  <bruno@clisp.org>
28100
28101         Avoid expanding two macros in the wrong order.
28102         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28103         gl_LIBUNISTRING if it is defined.
28104         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28105         autoconf >= 2.64.
28106         Reported by Ludovic Courtès <ludo@gnu.org>.
28107
28108 2010-05-27  Jim Meyering  <meyering@redhat.com>
28109
28110         maint.mk: also prohibit "#undef" of always-defined symbols
28111         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28112         Allow more than one space before the symbol name.
28113         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28114         the regexp uses alternation.
28115
28116 2010-05-26  Eric Blake  <eblake@redhat.com>
28117
28118         maint.mk: avoid echo -e
28119         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28120         Convert all uses of echo -* to printf.
28121         Reported by Matthias Bolte.
28122
28123 2010-05-25  Bruno Haible  <bruno@clisp.org>
28124
28125         Update to GNU gettext 0.18, part 2.
28126         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28127         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28128
28129 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28130
28131         Add missing include in test-pwrite.c.
28132         * tests/test-pwrite.c: Include string.h, for strcmp.
28133
28134 2010-05-24  Bruno Haible  <bruno@clisp.org>
28135
28136         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28137
28138 2010-05-24  Bruno Haible  <bruno@clisp.org>
28139
28140         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28141         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28142         iconveh_error argument.
28143         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28144         U_STRCONV_TO_LOCALE.
28145         * lib/unistr/u16-strcoll.c: Likewise.
28146         * lib/unistr/u32-strcoll.c: Likewise.
28147         * modules/unistr/u8-strcoll (Depends-on): Add
28148         uniconv/u8-strconv-to-enc, localcharset. Remove
28149         uniconv/u8-strconv-to-locale.
28150         (configure.ac): Bump version number.
28151         * modules/unistr/u16-strcoll (Depends-on): Add
28152         uniconv/u16-strconv-to-enc, localcharset. Remove
28153         uniconv/u16-strconv-to-locale.
28154         (configure.ac): Bump version number.
28155         * modules/unistr/u32-strcoll (Depends-on): Add
28156         uniconv/u32-strconv-to-enc, localcharset. Remove
28157         uniconv/u32-strconv-to-locale.
28158         (configure.ac): Bump version number.
28159
28160 2010-05-24  Bruno Haible  <bruno@clisp.org>
28161
28162         Avoid a test failure on NetBSD 5.0.
28163         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28164         an iconv() bug.
28165
28166 2010-05-24  Bruno Haible  <bruno@clisp.org>
28167
28168         Adjust #include directive style.
28169         * modules/regex (Includes): Recommend to write <regex.h>.
28170
28171 2010-05-24  Bruno Haible  <bruno@clisp.org>
28172
28173         regex: Don't require alloca.
28174         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28175         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28176         only inside if (0).
28177
28178 2010-05-23  Jim Meyering  <meyering@redhat.com>
28179
28180         test-renameat.c: include <sys/stat.h>
28181         * tests/test-renameat.c: Include <sys/stat.h>; required for
28182         definition of S_IS* macros.
28183
28184 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28185
28186         Update maintainer documentation for 'relocatable-prog' module.
28187         * doc/relocatable-maint.texi: Update.
28188         Comments by Bruno Haible.
28189
28190 2010-05-23  Bruno Haible  <bruno@clisp.org>
28191
28192         git-merge-changelog: Enable --split-merged-entry by default.
28193         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28194         (usage): Don't mention this option any more.
28195         Reported by Ralf Wildenhues.
28196
28197 2010-05-23  Jim Meyering  <meyering@redhat.com>
28198
28199         test-pwrite: do not leave behind a test file named "out"
28200         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28201         The trivial-looking use of init.sh is really necessary.
28202         It ensures that the temporary file, "out", is created in
28203         a temporary directory, and removed upon termination.
28204         * tests/test-pwrite.sh: Re-add file.
28205         * modules/pwrite-tests: Reference it.
28206
28207 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28208
28209         Fix output redirection buglet in init.sh.
28210         * tests/init.sh: Fix redirection of stderr.
28211
28212 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28213
28214         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28215
28216 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28217
28218         * modules/valgrind-tests: New file.
28219         * m4/valgrind-tests.m4: New file.
28220         * doc/valgrind-tests.texi: New file.
28221         * doc/gnulib.texi (Running self-tests under valgrind): New
28222         section.
28223
28224 2010-05-19  Bruno Haible  <bruno@clisp.org>
28225
28226         Clean up dead code in recent commit.
28227         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28228         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28229         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28230         Suggested by Paolo Bonzini.
28231
28232 2010-05-19  Bruno Haible  <bruno@clisp.org>
28233
28234         Avoid valgrind error reports from libunistring.
28235         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28236         * modules/libunistring (Files): Add it.
28237         * modules/libunistring-optional (Files): Likewise.
28238
28239 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28240             Bruno Haible  <bruno@clisp.org>
28241
28242         New module 'libunistring-optional'.
28243         * modules/libunistring-optional: New file.
28244         * m4/libunistring-base.m4: New file.
28245         * m4/libunistring-optional.m4: New file.
28246         * lib/unicase.in.h: Renamed from lib/unicase.h.
28247         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28248         * lib/unictype.in.h: Renamed from lib/unictype.h.
28249         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28250         * lib/uniname.in.h: Renamed from lib/uniname.h.
28251         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28252         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28253         * lib/unistr.in.h: Renamed from lib/unistr.h.
28254         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28255         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28256         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28257         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28258         gl_LIBUNISTRING. If the library was found, determine the installed
28259         version and set LIBUNISTRING_VERSION.
28260         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28261         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28262         handle a configuration option --with-included-libunistring.
28263         * modules/libunistring (Files): Add m4/absolute-header.m4.
28264         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28265         Add m4/libunistring-base.m4.
28266         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28267         (Makefile.am): Build unicase.h from unicase.in.h.
28268         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28269         Add m4/libunistring-base.m4.
28270         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28271         (Makefile.am): Build uniconv.h from uniconv.in.h.
28272         * modules/unictype/base (Files): Use unictype.in.h instead of
28273         unictype.h. Add m4/libunistring-base.m4.
28274         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28275         (Makefile.am): Build unictype.h from unictype.in.h.
28276         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28277         Add m4/libunistring-base.m4.
28278         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28279         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28280         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28281         Add m4/libunistring-base.m4.
28282         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28283         (Makefile.am): Build uniname.h from uniname.in.h.
28284         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28285         Add m4/libunistring-base.m4.
28286         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28287         (Makefile.am): Build uninorm.h from uninorm.in.h.
28288         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28289         unistdio.h. Add m4/libunistring-base.m4.
28290         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28291         (Makefile.am): Build unistdio.h from unistdio.in.h.
28292         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28293         Add m4/libunistring-base.m4.
28294         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28295         (Makefile.am): Build unistr.h from unistr.in.h.
28296         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28297         Add m4/libunistring-base.m4.
28298         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28299         (Makefile.am): Build unitypes.h from unitypes.in.h.
28300         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28301         Add m4/libunistring-base.m4.
28302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28303         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28304         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28305         uniwidth.h. Add m4/libunistring-base.m4.
28306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28307         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28308         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28309         instead of augmenting lib_SOURCES.
28310         * modules/unicase/empty-suffix-context: Likewise.
28311         * modules/unicase/locale-language: Likewise.
28312         * modules/unicase/tolower: Likewise.
28313         * modules/unicase/totitle: Likewise.
28314         * modules/unicase/toupper: Likewise.
28315         * modules/unicase/u8-casecmp: Likewise.
28316         * modules/unicase/u8-casecoll: Likewise.
28317         * modules/unicase/u8-casefold: Likewise.
28318         * modules/unicase/u8-casexfrm: Likewise.
28319         * modules/unicase/u8-ct-casefold: Likewise.
28320         * modules/unicase/u8-ct-tolower: Likewise.
28321         * modules/unicase/u8-ct-totitle: Likewise.
28322         * modules/unicase/u8-ct-toupper: Likewise.
28323         * modules/unicase/u8-is-cased: Likewise.
28324         * modules/unicase/u8-is-casefolded: Likewise.
28325         * modules/unicase/u8-is-lowercase: Likewise.
28326         * modules/unicase/u8-is-titlecase: Likewise.
28327         * modules/unicase/u8-is-uppercase: Likewise.
28328         * modules/unicase/u8-prefix-context: Likewise.
28329         * modules/unicase/u8-suffix-context: Likewise.
28330         * modules/unicase/u8-tolower: Likewise.
28331         * modules/unicase/u8-totitle: Likewise.
28332         * modules/unicase/u8-toupper: Likewise.
28333         * modules/unicase/u16-casecmp: Likewise.
28334         * modules/unicase/u16-casecoll: Likewise.
28335         * modules/unicase/u16-casefold: Likewise.
28336         * modules/unicase/u16-casexfrm: Likewise.
28337         * modules/unicase/u16-ct-casefold: Likewise.
28338         * modules/unicase/u16-ct-tolower: Likewise.
28339         * modules/unicase/u16-ct-totitle: Likewise.
28340         * modules/unicase/u16-ct-toupper: Likewise.
28341         * modules/unicase/u16-is-cased: Likewise.
28342         * modules/unicase/u16-is-casefolded: Likewise.
28343         * modules/unicase/u16-is-lowercase: Likewise.
28344         * modules/unicase/u16-is-titlecase: Likewise.
28345         * modules/unicase/u16-is-uppercase: Likewise.
28346         * modules/unicase/u16-prefix-context: Likewise.
28347         * modules/unicase/u16-suffix-context: Likewise.
28348         * modules/unicase/u16-tolower: Likewise.
28349         * modules/unicase/u16-totitle: Likewise.
28350         * modules/unicase/u16-toupper: Likewise.
28351         * modules/unicase/u32-casecmp: Likewise.
28352         * modules/unicase/u32-casecoll: Likewise.
28353         * modules/unicase/u32-casefold: Likewise.
28354         * modules/unicase/u32-casexfrm: Likewise.
28355         * modules/unicase/u32-ct-casefold: Likewise.
28356         * modules/unicase/u32-ct-tolower: Likewise.
28357         * modules/unicase/u32-ct-totitle: Likewise.
28358         * modules/unicase/u32-ct-toupper: Likewise.
28359         * modules/unicase/u32-is-cased: Likewise.
28360         * modules/unicase/u32-is-casefolded: Likewise.
28361         * modules/unicase/u32-is-lowercase: Likewise.
28362         * modules/unicase/u32-is-titlecase: Likewise.
28363         * modules/unicase/u32-is-uppercase: Likewise.
28364         * modules/unicase/u32-prefix-context: Likewise.
28365         * modules/unicase/u32-suffix-context: Likewise.
28366         * modules/unicase/u32-tolower: Likewise.
28367         * modules/unicase/u32-totitle: Likewise.
28368         * modules/unicase/u32-toupper: Likewise.
28369         * modules/unicase/ulc-casecmp: Likewise.
28370         * modules/unicase/ulc-casecoll: Likewise.
28371         * modules/unicase/ulc-casexfrm: Likewise.
28372         * modules/uniconv/u8-conv-from-enc: Likewise.
28373         * modules/uniconv/u8-conv-to-enc: Likewise.
28374         * modules/uniconv/u8-strconv-from-enc: Likewise.
28375         * modules/uniconv/u8-strconv-from-locale: Likewise.
28376         * modules/uniconv/u8-strconv-to-enc: Likewise.
28377         * modules/uniconv/u8-strconv-to-locale: Likewise.
28378         * modules/uniconv/u16-conv-from-enc: Likewise.
28379         * modules/uniconv/u16-conv-to-enc: Likewise.
28380         * modules/uniconv/u16-strconv-from-enc: Likewise.
28381         * modules/uniconv/u16-strconv-from-locale: Likewise.
28382         * modules/uniconv/u16-strconv-to-enc: Likewise.
28383         * modules/uniconv/u16-strconv-to-locale: Likewise.
28384         * modules/uniconv/u32-conv-from-enc: Likewise.
28385         * modules/uniconv/u32-conv-to-enc: Likewise.
28386         * modules/uniconv/u32-strconv-from-enc: Likewise.
28387         * modules/uniconv/u32-strconv-from-locale: Likewise.
28388         * modules/uniconv/u32-strconv-to-enc: Likewise.
28389         * modules/uniconv/u32-strconv-to-locale: Likewise.
28390         * modules/unictype/bidicategory-byname: Likewise.
28391         * modules/unictype/bidicategory-name: Likewise.
28392         * modules/unictype/bidicategory-of: Likewise.
28393         * modules/unictype/bidicategory-test: Likewise.
28394         * modules/unictype/block-list: Likewise.
28395         * modules/unictype/block-test: Likewise.
28396         * modules/unictype/category-C: Likewise.
28397         * modules/unictype/category-Cc: Likewise.
28398         * modules/unictype/category-Cf: Likewise.
28399         * modules/unictype/category-Cn: Likewise.
28400         * modules/unictype/category-Co: Likewise.
28401         * modules/unictype/category-Cs: Likewise.
28402         * modules/unictype/category-L: Likewise.
28403         * modules/unictype/category-Ll: Likewise.
28404         * modules/unictype/category-Lm: Likewise.
28405         * modules/unictype/category-Lo: Likewise.
28406         * modules/unictype/category-Lt: Likewise.
28407         * modules/unictype/category-Lu: Likewise.
28408         * modules/unictype/category-M: Likewise.
28409         * modules/unictype/category-Mc: Likewise.
28410         * modules/unictype/category-Me: Likewise.
28411         * modules/unictype/category-Mn: Likewise.
28412         * modules/unictype/category-N: Likewise.
28413         * modules/unictype/category-Nd: Likewise.
28414         * modules/unictype/category-Nl: Likewise.
28415         * modules/unictype/category-No: Likewise.
28416         * modules/unictype/category-P: Likewise.
28417         * modules/unictype/category-Pc: Likewise.
28418         * modules/unictype/category-Pd: Likewise.
28419         * modules/unictype/category-Pe: Likewise.
28420         * modules/unictype/category-Pf: Likewise.
28421         * modules/unictype/category-Pi: Likewise.
28422         * modules/unictype/category-Po: Likewise.
28423         * modules/unictype/category-Ps: Likewise.
28424         * modules/unictype/category-S: Likewise.
28425         * modules/unictype/category-Sc: Likewise.
28426         * modules/unictype/category-Sk: Likewise.
28427         * modules/unictype/category-Sm: Likewise.
28428         * modules/unictype/category-So: Likewise.
28429         * modules/unictype/category-Z: Likewise.
28430         * modules/unictype/category-Zl: Likewise.
28431         * modules/unictype/category-Zp: Likewise.
28432         * modules/unictype/category-Zs: Likewise.
28433         * modules/unictype/category-and: Likewise.
28434         * modules/unictype/category-and-not: Likewise.
28435         * modules/unictype/category-byname: Likewise.
28436         * modules/unictype/category-name: Likewise.
28437         * modules/unictype/category-none: Likewise.
28438         * modules/unictype/category-of: Likewise.
28439         * modules/unictype/category-or: Likewise.
28440         * modules/unictype/category-test: Likewise.
28441         * modules/unictype/combining-class: Likewise.
28442         * modules/unictype/ctype-alnum: Likewise.
28443         * modules/unictype/ctype-alpha: Likewise.
28444         * modules/unictype/ctype-blank: Likewise.
28445         * modules/unictype/ctype-cntrl: Likewise.
28446         * modules/unictype/ctype-digit: Likewise.
28447         * modules/unictype/ctype-graph: Likewise.
28448         * modules/unictype/ctype-lower: Likewise.
28449         * modules/unictype/ctype-print: Likewise.
28450         * modules/unictype/ctype-punct: Likewise.
28451         * modules/unictype/ctype-space: Likewise.
28452         * modules/unictype/ctype-upper: Likewise.
28453         * modules/unictype/ctype-xdigit: Likewise.
28454         * modules/unictype/decimal-digit: Likewise.
28455         * modules/unictype/digit: Likewise.
28456         * modules/unictype/mirror: Likewise.
28457         * modules/unictype/numeric: Likewise.
28458         * modules/unictype/property-alphabetic: Likewise.
28459         * modules/unictype/property-ascii-hex-digit: Likewise.
28460         * modules/unictype/property-bidi-arabic-digit: Likewise.
28461         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28462         * modules/unictype/property-bidi-block-separator: Likewise.
28463         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28464         * modules/unictype/property-bidi-common-separator: Likewise.
28465         * modules/unictype/property-bidi-control: Likewise.
28466         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28467         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28468         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28469         * modules/unictype/property-bidi-european-digit: Likewise.
28470         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28471         * modules/unictype/property-bidi-left-to-right: Likewise.
28472         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28473         * modules/unictype/property-bidi-other-neutral: Likewise.
28474         * modules/unictype/property-bidi-pdf: Likewise.
28475         * modules/unictype/property-bidi-segment-separator: Likewise.
28476         * modules/unictype/property-bidi-whitespace: Likewise.
28477         * modules/unictype/property-byname: Likewise.
28478         * modules/unictype/property-combining: Likewise.
28479         * modules/unictype/property-composite: Likewise.
28480         * modules/unictype/property-currency-symbol: Likewise.
28481         * modules/unictype/property-dash: Likewise.
28482         * modules/unictype/property-decimal-digit: Likewise.
28483         * modules/unictype/property-default-ignorable-code-point: Likewise.
28484         * modules/unictype/property-deprecated: Likewise.
28485         * modules/unictype/property-diacritic: Likewise.
28486         * modules/unictype/property-extender: Likewise.
28487         * modules/unictype/property-format-control: Likewise.
28488         * modules/unictype/property-grapheme-base: Likewise.
28489         * modules/unictype/property-grapheme-extend: Likewise.
28490         * modules/unictype/property-grapheme-link: Likewise.
28491         * modules/unictype/property-hex-digit: Likewise.
28492         * modules/unictype/property-hyphen: Likewise.
28493         * modules/unictype/property-id-continue: Likewise.
28494         * modules/unictype/property-id-start: Likewise.
28495         * modules/unictype/property-ideographic: Likewise.
28496         * modules/unictype/property-ids-binary-operator: Likewise.
28497         * modules/unictype/property-ids-trinary-operator: Likewise.
28498         * modules/unictype/property-ignorable-control: Likewise.
28499         * modules/unictype/property-iso-control: Likewise.
28500         * modules/unictype/property-join-control: Likewise.
28501         * modules/unictype/property-left-of-pair: Likewise.
28502         * modules/unictype/property-line-separator: Likewise.
28503         * modules/unictype/property-logical-order-exception: Likewise.
28504         * modules/unictype/property-lowercase: Likewise.
28505         * modules/unictype/property-math: Likewise.
28506         * modules/unictype/property-non-break: Likewise.
28507         * modules/unictype/property-not-a-character: Likewise.
28508         * modules/unictype/property-numeric: Likewise.
28509         * modules/unictype/property-other-alphabetic: Likewise.
28510         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28511         * modules/unictype/property-other-grapheme-extend: Likewise.
28512         * modules/unictype/property-other-id-continue: Likewise.
28513         * modules/unictype/property-other-id-start: Likewise.
28514         * modules/unictype/property-other-lowercase: Likewise.
28515         * modules/unictype/property-other-math: Likewise.
28516         * modules/unictype/property-other-uppercase: Likewise.
28517         * modules/unictype/property-paired-punctuation: Likewise.
28518         * modules/unictype/property-paragraph-separator: Likewise.
28519         * modules/unictype/property-pattern-syntax: Likewise.
28520         * modules/unictype/property-pattern-white-space: Likewise.
28521         * modules/unictype/property-private-use: Likewise.
28522         * modules/unictype/property-punctuation: Likewise.
28523         * modules/unictype/property-quotation-mark: Likewise.
28524         * modules/unictype/property-radical: Likewise.
28525         * modules/unictype/property-sentence-terminal: Likewise.
28526         * modules/unictype/property-soft-dotted: Likewise.
28527         * modules/unictype/property-space: Likewise.
28528         * modules/unictype/property-terminal-punctuation: Likewise.
28529         * modules/unictype/property-test: Likewise.
28530         * modules/unictype/property-titlecase: Likewise.
28531         * modules/unictype/property-unassigned-code-value: Likewise.
28532         * modules/unictype/property-unified-ideograph: Likewise.
28533         * modules/unictype/property-uppercase: Likewise.
28534         * modules/unictype/property-variation-selector: Likewise.
28535         * modules/unictype/property-white-space: Likewise.
28536         * modules/unictype/property-xid-continue: Likewise.
28537         * modules/unictype/property-xid-start: Likewise.
28538         * modules/unictype/property-zero-width: Likewise.
28539         * modules/unictype/scripts: Likewise.
28540         * modules/unictype/syntax-c-ident: Likewise.
28541         * modules/unictype/syntax-c-whitespace: Likewise.
28542         * modules/unictype/syntax-java-ident: Likewise.
28543         * modules/unictype/syntax-java-whitespace: Likewise.
28544         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28545         * modules/unilbrk/u8-width-linebreaks: Likewise.
28546         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28547         * modules/unilbrk/u16-width-linebreaks: Likewise.
28548         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28549         * modules/unilbrk/u32-width-linebreaks: Likewise.
28550         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28551         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28552         * modules/uniname/uniname: Likewise.
28553         * modules/uninorm/canonical-decomposition: Likewise.
28554         * modules/uninorm/composition: Likewise.
28555         * modules/uninorm/decomposing-form: Likewise.
28556         * modules/uninorm/decomposition: Likewise.
28557         * modules/uninorm/filter: Likewise.
28558         * modules/uninorm/nfc: Likewise.
28559         * modules/uninorm/nfd: Likewise.
28560         * modules/uninorm/nfkc: Likewise.
28561         * modules/uninorm/nfkd: Likewise.
28562         * modules/uninorm/u8-normalize: Likewise.
28563         * modules/uninorm/u8-normcmp: Likewise.
28564         * modules/uninorm/u8-normcoll: Likewise.
28565         * modules/uninorm/u8-normxfrm: Likewise.
28566         * modules/uninorm/u16-normalize: Likewise.
28567         * modules/uninorm/u16-normcmp: Likewise.
28568         * modules/uninorm/u16-normcoll: Likewise.
28569         * modules/uninorm/u16-normxfrm: Likewise.
28570         * modules/uninorm/u32-normalize: Likewise.
28571         * modules/uninorm/u32-normcmp: Likewise.
28572         * modules/uninorm/u32-normcoll: Likewise.
28573         * modules/uninorm/u32-normxfrm: Likewise.
28574         * modules/unistdio/u8-asnprintf: Likewise.
28575         * modules/unistdio/u8-asprintf: Likewise.
28576         * modules/unistdio/u8-snprintf: Likewise.
28577         * modules/unistdio/u8-sprintf: Likewise.
28578         * modules/unistdio/u8-u8-asnprintf: Likewise.
28579         * modules/unistdio/u8-u8-asprintf: Likewise.
28580         * modules/unistdio/u8-u8-snprintf: Likewise.
28581         * modules/unistdio/u8-u8-sprintf: Likewise.
28582         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28583         * modules/unistdio/u8-u8-vasprintf: Likewise.
28584         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28585         * modules/unistdio/u8-u8-vsprintf: Likewise.
28586         * modules/unistdio/u8-vasnprintf: Likewise.
28587         * modules/unistdio/u8-vasprintf: Likewise.
28588         * modules/unistdio/u8-vsnprintf: Likewise.
28589         * modules/unistdio/u8-vsprintf: Likewise.
28590         * modules/unistdio/u16-asnprintf: Likewise.
28591         * modules/unistdio/u16-asprintf: Likewise.
28592         * modules/unistdio/u16-snprintf: Likewise.
28593         * modules/unistdio/u16-sprintf: Likewise.
28594         * modules/unistdio/u16-u16-asnprintf: Likewise.
28595         * modules/unistdio/u16-u16-asprintf: Likewise.
28596         * modules/unistdio/u16-u16-snprintf: Likewise.
28597         * modules/unistdio/u16-u16-sprintf: Likewise.
28598         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28599         * modules/unistdio/u16-u16-vasprintf: Likewise.
28600         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28601         * modules/unistdio/u16-u16-vsprintf: Likewise.
28602         * modules/unistdio/u16-vasnprintf: Likewise.
28603         * modules/unistdio/u16-vasprintf: Likewise.
28604         * modules/unistdio/u16-vsnprintf: Likewise.
28605         * modules/unistdio/u16-vsprintf: Likewise.
28606         * modules/unistdio/u32-asnprintf: Likewise.
28607         * modules/unistdio/u32-asprintf: Likewise.
28608         * modules/unistdio/u32-snprintf: Likewise.
28609         * modules/unistdio/u32-sprintf: Likewise.
28610         * modules/unistdio/u32-u32-asnprintf: Likewise.
28611         * modules/unistdio/u32-u32-asprintf: Likewise.
28612         * modules/unistdio/u32-u32-snprintf: Likewise.
28613         * modules/unistdio/u32-u32-sprintf: Likewise.
28614         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28615         * modules/unistdio/u32-u32-vasprintf: Likewise.
28616         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28617         * modules/unistdio/u32-u32-vsprintf: Likewise.
28618         * modules/unistdio/u32-vasnprintf: Likewise.
28619         * modules/unistdio/u32-vasprintf: Likewise.
28620         * modules/unistdio/u32-vsnprintf: Likewise.
28621         * modules/unistdio/u32-vsprintf: Likewise.
28622         * modules/unistdio/ulc-asnprintf: Likewise.
28623         * modules/unistdio/ulc-asprintf: Likewise.
28624         * modules/unistdio/ulc-fprintf: Likewise.
28625         * modules/unistdio/ulc-snprintf: Likewise.
28626         * modules/unistdio/ulc-sprintf: Likewise.
28627         * modules/unistdio/ulc-vasnprintf: Likewise.
28628         * modules/unistdio/ulc-vasprintf: Likewise.
28629         * modules/unistdio/ulc-vfprintf: Likewise.
28630         * modules/unistdio/ulc-vsnprintf: Likewise.
28631         * modules/unistdio/ulc-vsprintf: Likewise.
28632         * modules/unistr/u8-check: Likewise.
28633         * modules/unistr/u8-chr: Likewise.
28634         * modules/unistr/u8-cmp: Likewise.
28635         * modules/unistr/u8-cmp2: Likewise.
28636         * modules/unistr/u8-cpy: Likewise.
28637         * modules/unistr/u8-cpy-alloc: Likewise.
28638         * modules/unistr/u8-endswith: Likewise.
28639         * modules/unistr/u8-mblen: Likewise.
28640         * modules/unistr/u8-mbsnlen: Likewise.
28641         * modules/unistr/u8-mbtouc: Likewise.
28642         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28643         * modules/unistr/u8-mbtoucr: Likewise.
28644         * modules/unistr/u8-move: Likewise.
28645         * modules/unistr/u8-next: Likewise.
28646         * modules/unistr/u8-prev: Likewise.
28647         * modules/unistr/u8-set: Likewise.
28648         * modules/unistr/u8-startswith: Likewise.
28649         * modules/unistr/u8-stpcpy: Likewise.
28650         * modules/unistr/u8-stpncpy: Likewise.
28651         * modules/unistr/u8-strcat: Likewise.
28652         * modules/unistr/u8-strchr: Likewise.
28653         * modules/unistr/u8-strcmp: Likewise.
28654         * modules/unistr/u8-strcoll: Likewise.
28655         * modules/unistr/u8-strcpy: Likewise.
28656         * modules/unistr/u8-strcspn: Likewise.
28657         * modules/unistr/u8-strdup: Likewise.
28658         * modules/unistr/u8-strlen: Likewise.
28659         * modules/unistr/u8-strmblen: Likewise.
28660         * modules/unistr/u8-strmbtouc: Likewise.
28661         * modules/unistr/u8-strncat: Likewise.
28662         * modules/unistr/u8-strncmp: Likewise.
28663         * modules/unistr/u8-strncpy: Likewise.
28664         * modules/unistr/u8-strnlen: Likewise.
28665         * modules/unistr/u8-strpbrk: Likewise.
28666         * modules/unistr/u8-strrchr: Likewise.
28667         * modules/unistr/u8-strspn: Likewise.
28668         * modules/unistr/u8-strstr: Likewise.
28669         * modules/unistr/u8-strtok: Likewise.
28670         * modules/unistr/u8-to-u16: Likewise.
28671         * modules/unistr/u8-to-u32: Likewise.
28672         * modules/unistr/u8-uctomb: Likewise.
28673         * modules/unistr/u16-check: Likewise.
28674         * modules/unistr/u16-chr: Likewise.
28675         * modules/unistr/u16-cmp: Likewise.
28676         * modules/unistr/u16-cmp2: Likewise.
28677         * modules/unistr/u16-cpy: Likewise.
28678         * modules/unistr/u16-cpy-alloc: Likewise.
28679         * modules/unistr/u16-endswith: Likewise.
28680         * modules/unistr/u16-mblen: Likewise.
28681         * modules/unistr/u16-mbsnlen: Likewise.
28682         * modules/unistr/u16-mbtouc: Likewise.
28683         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28684         * modules/unistr/u16-mbtoucr: Likewise.
28685         * modules/unistr/u16-move: Likewise.
28686         * modules/unistr/u16-next: Likewise.
28687         * modules/unistr/u16-prev: Likewise.
28688         * modules/unistr/u16-set: Likewise.
28689         * modules/unistr/u16-startswith: Likewise.
28690         * modules/unistr/u16-stpcpy: Likewise.
28691         * modules/unistr/u16-stpncpy: Likewise.
28692         * modules/unistr/u16-strcat: Likewise.
28693         * modules/unistr/u16-strchr: Likewise.
28694         * modules/unistr/u16-strcmp: Likewise.
28695         * modules/unistr/u16-strcoll: Likewise.
28696         * modules/unistr/u16-strcpy: Likewise.
28697         * modules/unistr/u16-strcspn: Likewise.
28698         * modules/unistr/u16-strdup: Likewise.
28699         * modules/unistr/u16-strlen: Likewise.
28700         * modules/unistr/u16-strmblen: Likewise.
28701         * modules/unistr/u16-strmbtouc: Likewise.
28702         * modules/unistr/u16-strncat: Likewise.
28703         * modules/unistr/u16-strncmp: Likewise.
28704         * modules/unistr/u16-strncpy: Likewise.
28705         * modules/unistr/u16-strnlen: Likewise.
28706         * modules/unistr/u16-strpbrk: Likewise.
28707         * modules/unistr/u16-strrchr: Likewise.
28708         * modules/unistr/u16-strspn: Likewise.
28709         * modules/unistr/u16-strstr: Likewise.
28710         * modules/unistr/u16-strtok: Likewise.
28711         * modules/unistr/u16-to-u32: Likewise.
28712         * modules/unistr/u16-to-u8: Likewise.
28713         * modules/unistr/u16-uctomb: Likewise.
28714         * modules/unistr/u32-check: Likewise.
28715         * modules/unistr/u32-chr: Likewise.
28716         * modules/unistr/u32-cmp: Likewise.
28717         * modules/unistr/u32-cmp2: Likewise.
28718         * modules/unistr/u32-cpy: Likewise.
28719         * modules/unistr/u32-cpy-alloc: Likewise.
28720         * modules/unistr/u32-endswith: Likewise.
28721         * modules/unistr/u32-mblen: Likewise.
28722         * modules/unistr/u32-mbsnlen: Likewise.
28723         * modules/unistr/u32-mbtouc: Likewise.
28724         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28725         * modules/unistr/u32-mbtoucr: Likewise.
28726         * modules/unistr/u32-move: Likewise.
28727         * modules/unistr/u32-next: Likewise.
28728         * modules/unistr/u32-prev: Likewise.
28729         * modules/unistr/u32-set: Likewise.
28730         * modules/unistr/u32-startswith: Likewise.
28731         * modules/unistr/u32-stpcpy: Likewise.
28732         * modules/unistr/u32-stpncpy: Likewise.
28733         * modules/unistr/u32-strcat: Likewise.
28734         * modules/unistr/u32-strchr: Likewise.
28735         * modules/unistr/u32-strcmp: Likewise.
28736         * modules/unistr/u32-strcoll: Likewise.
28737         * modules/unistr/u32-strcpy: Likewise.
28738         * modules/unistr/u32-strcspn: Likewise.
28739         * modules/unistr/u32-strdup: Likewise.
28740         * modules/unistr/u32-strlen: Likewise.
28741         * modules/unistr/u32-strmblen: Likewise.
28742         * modules/unistr/u32-strmbtouc: Likewise.
28743         * modules/unistr/u32-strncat: Likewise.
28744         * modules/unistr/u32-strncmp: Likewise.
28745         * modules/unistr/u32-strncpy: Likewise.
28746         * modules/unistr/u32-strnlen: Likewise.
28747         * modules/unistr/u32-strpbrk: Likewise.
28748         * modules/unistr/u32-strrchr: Likewise.
28749         * modules/unistr/u32-strspn: Likewise.
28750         * modules/unistr/u32-strstr: Likewise.
28751         * modules/unistr/u32-strtok: Likewise.
28752         * modules/unistr/u32-to-u16: Likewise.
28753         * modules/unistr/u32-to-u8: Likewise.
28754         * modules/unistr/u32-uctomb: Likewise.
28755         * modules/uniwbrk/u8-wordbreaks: Likewise.
28756         * modules/uniwbrk/u16-wordbreaks: Likewise.
28757         * modules/uniwbrk/u32-wordbreaks: Likewise.
28758         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28759         * modules/uniwbrk/wordbreak-property: Likewise.
28760         * modules/uniwidth/u8-strwidth: Likewise.
28761         * modules/uniwidth/u8-width: Likewise.
28762         * modules/uniwidth/u16-strwidth: Likewise.
28763         * modules/uniwidth/u16-width: Likewise.
28764         * modules/uniwidth/u32-strwidth: Likewise.
28765         * modules/uniwidth/u32-width: Likewise.
28766         * modules/uniwidth/width: Likewise.
28767         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28768         with $(LIBUNISTRING).
28769         * modules/unicase/ignorable-tests: Likewise.
28770         * modules/unicase/locale-language-tests: Likewise.
28771         * modules/unicase/tolower-tests: Likewise.
28772         * modules/unicase/totitle-tests: Likewise.
28773         * modules/unicase/toupper-tests: Likewise.
28774         * modules/unicase/u8-casecmp-tests: Likewise.
28775         * modules/unicase/u8-casecoll-tests: Likewise.
28776         * modules/unicase/u8-casefold-tests: Likewise.
28777         * modules/unicase/u8-is-cased-tests: Likewise.
28778         * modules/unicase/u8-is-casefolded-tests: Likewise.
28779         * modules/unicase/u8-is-lowercase-tests: Likewise.
28780         * modules/unicase/u8-is-titlecase-tests: Likewise.
28781         * modules/unicase/u8-is-uppercase-tests: Likewise.
28782         * modules/unicase/u8-tolower-tests: Likewise.
28783         * modules/unicase/u8-totitle-tests: Likewise.
28784         * modules/unicase/u8-toupper-tests: Likewise.
28785         * modules/unicase/u16-casecmp-tests: Likewise.
28786         * modules/unicase/u16-casecoll-tests: Likewise.
28787         * modules/unicase/u16-casefold-tests: Likewise.
28788         * modules/unicase/u16-is-cased-tests: Likewise.
28789         * modules/unicase/u16-is-casefolded-tests: Likewise.
28790         * modules/unicase/u16-is-lowercase-tests: Likewise.
28791         * modules/unicase/u16-is-titlecase-tests: Likewise.
28792         * modules/unicase/u16-is-uppercase-tests: Likewise.
28793         * modules/unicase/u16-tolower-tests: Likewise.
28794         * modules/unicase/u16-totitle-tests: Likewise.
28795         * modules/unicase/u16-toupper-tests: Likewise.
28796         * modules/unicase/u32-casecmp-tests: Likewise.
28797         * modules/unicase/u32-casecoll-tests: Likewise.
28798         * modules/unicase/u32-casefold-tests: Likewise.
28799         * modules/unicase/u32-is-cased-tests: Likewise.
28800         * modules/unicase/u32-is-casefolded-tests: Likewise.
28801         * modules/unicase/u32-is-lowercase-tests: Likewise.
28802         * modules/unicase/u32-is-titlecase-tests: Likewise.
28803         * modules/unicase/u32-is-uppercase-tests: Likewise.
28804         * modules/unicase/u32-tolower-tests: Likewise.
28805         * modules/unicase/u32-totitle-tests: Likewise.
28806         * modules/unicase/u32-toupper-tests: Likewise.
28807         * modules/unicase/ulc-casecmp-tests: Likewise.
28808         * modules/unicase/ulc-casecoll-tests: Likewise.
28809         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28810         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28811         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28812         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28813         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28814         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28815         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28816         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28817         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28818         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28819         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28820         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28821         * modules/unictype/bidicategory-byname-tests: Likewise.
28822         * modules/unictype/bidicategory-name-tests: Likewise.
28823         * modules/unictype/bidicategory-of-tests: Likewise.
28824         * modules/unictype/bidicategory-test-tests: Likewise.
28825         * modules/unictype/block-list-tests: Likewise.
28826         * modules/unictype/block-of-tests: Likewise.
28827         * modules/unictype/block-test-tests: Likewise.
28828         * modules/unictype/category-C-tests: Likewise.
28829         * modules/unictype/category-Cc-tests: Likewise.
28830         * modules/unictype/category-Cf-tests: Likewise.
28831         * modules/unictype/category-Cn-tests: Likewise.
28832         * modules/unictype/category-Co-tests: Likewise.
28833         * modules/unictype/category-Cs-tests: Likewise.
28834         * modules/unictype/category-L-tests: Likewise.
28835         * modules/unictype/category-Ll-tests: Likewise.
28836         * modules/unictype/category-Lm-tests: Likewise.
28837         * modules/unictype/category-Lo-tests: Likewise.
28838         * modules/unictype/category-Lt-tests: Likewise.
28839         * modules/unictype/category-Lu-tests: Likewise.
28840         * modules/unictype/category-M-tests: Likewise.
28841         * modules/unictype/category-Mc-tests: Likewise.
28842         * modules/unictype/category-Me-tests: Likewise.
28843         * modules/unictype/category-Mn-tests: Likewise.
28844         * modules/unictype/category-N-tests: Likewise.
28845         * modules/unictype/category-Nd-tests: Likewise.
28846         * modules/unictype/category-Nl-tests: Likewise.
28847         * modules/unictype/category-No-tests: Likewise.
28848         * modules/unictype/category-P-tests: Likewise.
28849         * modules/unictype/category-Pc-tests: Likewise.
28850         * modules/unictype/category-Pd-tests: Likewise.
28851         * modules/unictype/category-Pe-tests: Likewise.
28852         * modules/unictype/category-Pf-tests: Likewise.
28853         * modules/unictype/category-Pi-tests: Likewise.
28854         * modules/unictype/category-Po-tests: Likewise.
28855         * modules/unictype/category-Ps-tests: Likewise.
28856         * modules/unictype/category-S-tests: Likewise.
28857         * modules/unictype/category-Sc-tests: Likewise.
28858         * modules/unictype/category-Sk-tests: Likewise.
28859         * modules/unictype/category-Sm-tests: Likewise.
28860         * modules/unictype/category-So-tests: Likewise.
28861         * modules/unictype/category-Z-tests: Likewise.
28862         * modules/unictype/category-Zl-tests: Likewise.
28863         * modules/unictype/category-Zp-tests: Likewise.
28864         * modules/unictype/category-Zs-tests: Likewise.
28865         * modules/unictype/category-and-not-tests: Likewise.
28866         * modules/unictype/category-and-tests: Likewise.
28867         * modules/unictype/category-byname-tests: Likewise.
28868         * modules/unictype/category-name-tests: Likewise.
28869         * modules/unictype/category-none-tests: Likewise.
28870         * modules/unictype/category-of-tests: Likewise.
28871         * modules/unictype/category-or-tests: Likewise.
28872         * modules/unictype/category-test-withtable-tests: Likewise.
28873         * modules/unictype/combining-class-tests: Likewise.
28874         * modules/unictype/ctype-alnum-tests: Likewise.
28875         * modules/unictype/ctype-alpha-tests: Likewise.
28876         * modules/unictype/ctype-blank-tests: Likewise.
28877         * modules/unictype/ctype-cntrl-tests: Likewise.
28878         * modules/unictype/ctype-digit-tests: Likewise.
28879         * modules/unictype/ctype-graph-tests: Likewise.
28880         * modules/unictype/ctype-lower-tests: Likewise.
28881         * modules/unictype/ctype-print-tests: Likewise.
28882         * modules/unictype/ctype-punct-tests: Likewise.
28883         * modules/unictype/ctype-space-tests: Likewise.
28884         * modules/unictype/ctype-upper-tests: Likewise.
28885         * modules/unictype/ctype-xdigit-tests: Likewise.
28886         * modules/unictype/decimal-digit-tests: Likewise.
28887         * modules/unictype/digit-tests: Likewise.
28888         * modules/unictype/mirror-tests: Likewise.
28889         * modules/unictype/numeric-tests: Likewise.
28890         * modules/unictype/property-alphabetic-tests: Likewise.
28891         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28892         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28893         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28894         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28895         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28896         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28897         * modules/unictype/property-bidi-control-tests: Likewise.
28898         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28899         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28900         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28901         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28902         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28903         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28904         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28905         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28906         * modules/unictype/property-bidi-pdf-tests: Likewise.
28907         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28908         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28909         * modules/unictype/property-byname-tests: Likewise.
28910         * modules/unictype/property-combining-tests: Likewise.
28911         * modules/unictype/property-composite-tests: Likewise.
28912         * modules/unictype/property-currency-symbol-tests: Likewise.
28913         * modules/unictype/property-dash-tests: Likewise.
28914         * modules/unictype/property-decimal-digit-tests: Likewise.
28915         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28916         * modules/unictype/property-deprecated-tests: Likewise.
28917         * modules/unictype/property-diacritic-tests: Likewise.
28918         * modules/unictype/property-extender-tests: Likewise.
28919         * modules/unictype/property-format-control-tests: Likewise.
28920         * modules/unictype/property-grapheme-base-tests: Likewise.
28921         * modules/unictype/property-grapheme-extend-tests: Likewise.
28922         * modules/unictype/property-grapheme-link-tests: Likewise.
28923         * modules/unictype/property-hex-digit-tests: Likewise.
28924         * modules/unictype/property-hyphen-tests: Likewise.
28925         * modules/unictype/property-id-continue-tests: Likewise.
28926         * modules/unictype/property-id-start-tests: Likewise.
28927         * modules/unictype/property-ideographic-tests: Likewise.
28928         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28929         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28930         * modules/unictype/property-ignorable-control-tests: Likewise.
28931         * modules/unictype/property-iso-control-tests: Likewise.
28932         * modules/unictype/property-join-control-tests: Likewise.
28933         * modules/unictype/property-left-of-pair-tests: Likewise.
28934         * modules/unictype/property-line-separator-tests: Likewise.
28935         * modules/unictype/property-logical-order-exception-tests: Likewise.
28936         * modules/unictype/property-lowercase-tests: Likewise.
28937         * modules/unictype/property-math-tests: Likewise.
28938         * modules/unictype/property-non-break-tests: Likewise.
28939         * modules/unictype/property-not-a-character-tests: Likewise.
28940         * modules/unictype/property-numeric-tests: Likewise.
28941         * modules/unictype/property-other-alphabetic-tests: Likewise.
28942         * modules/unictype/property-other-default-ignorable-code-point-tests:
28943         Likewise.
28944         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28945         * modules/unictype/property-other-id-continue-tests: Likewise.
28946         * modules/unictype/property-other-id-start-tests: Likewise.
28947         * modules/unictype/property-other-lowercase-tests: Likewise.
28948         * modules/unictype/property-other-math-tests: Likewise.
28949         * modules/unictype/property-other-uppercase-tests: Likewise.
28950         * modules/unictype/property-paired-punctuation-tests: Likewise.
28951         * modules/unictype/property-paragraph-separator-tests: Likewise.
28952         * modules/unictype/property-pattern-syntax-tests: Likewise.
28953         * modules/unictype/property-pattern-white-space-tests: Likewise.
28954         * modules/unictype/property-private-use-tests: Likewise.
28955         * modules/unictype/property-punctuation-tests: Likewise.
28956         * modules/unictype/property-quotation-mark-tests: Likewise.
28957         * modules/unictype/property-radical-tests: Likewise.
28958         * modules/unictype/property-sentence-terminal-tests: Likewise.
28959         * modules/unictype/property-soft-dotted-tests: Likewise.
28960         * modules/unictype/property-space-tests: Likewise.
28961         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28962         * modules/unictype/property-test-tests: Likewise.
28963         * modules/unictype/property-titlecase-tests: Likewise.
28964         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28965         * modules/unictype/property-unified-ideograph-tests: Likewise.
28966         * modules/unictype/property-uppercase-tests: Likewise.
28967         * modules/unictype/property-variation-selector-tests: Likewise.
28968         * modules/unictype/property-white-space-tests: Likewise.
28969         * modules/unictype/property-xid-continue-tests: Likewise.
28970         * modules/unictype/property-xid-start-tests: Likewise.
28971         * modules/unictype/property-zero-width-tests: Likewise.
28972         * modules/unictype/scripts-tests: Likewise.
28973         * modules/unictype/syntax-c-ident-tests: Likewise.
28974         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28975         * modules/unictype/syntax-java-ident-tests: Likewise.
28976         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28977         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28978         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28979         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28980         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28981         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28982         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28983         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28984         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28985         * modules/uniname/uniname-tests: Likewise.
28986         * modules/uninorm/canonical-decomposition-tests: Likewise.
28987         * modules/uninorm/compat-decomposition-tests: Likewise.
28988         * modules/uninorm/composition-tests: Likewise.
28989         * modules/uninorm/decomposing-form-tests: Likewise.
28990         * modules/uninorm/decomposition-tests: Likewise.
28991         * modules/uninorm/filter-tests: Likewise.
28992         * modules/uninorm/nfc-tests: Likewise.
28993         * modules/uninorm/nfd-tests: Likewise.
28994         * modules/uninorm/nfkc-tests: Likewise.
28995         * modules/uninorm/nfkd-tests: Likewise.
28996         * modules/uninorm/u8-normcmp-tests: Likewise.
28997         * modules/uninorm/u8-normcoll-tests: Likewise.
28998         * modules/uninorm/u16-normcmp-tests: Likewise.
28999         * modules/uninorm/u16-normcoll-tests: Likewise.
29000         * modules/uninorm/u32-normcmp-tests: Likewise.
29001         * modules/uninorm/u32-normcoll-tests: Likewise.
29002         * modules/unistdio/u8-asnprintf-tests: Likewise.
29003         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29004         * modules/unistdio/u8-vasprintf-tests: Likewise.
29005         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29006         * modules/unistdio/u8-vsprintf-tests: Likewise.
29007         * modules/unistdio/u16-asnprintf-tests: Likewise.
29008         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29009         * modules/unistdio/u16-vasprintf-tests: Likewise.
29010         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29011         * modules/unistdio/u16-vsprintf-tests: Likewise.
29012         * modules/unistdio/u32-asnprintf-tests: Likewise.
29013         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29014         * modules/unistdio/u32-vasprintf-tests: Likewise.
29015         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29016         * modules/unistdio/u32-vsprintf-tests: Likewise.
29017         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29018         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29019         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29020         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29021         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29022         * modules/unistr/u8-check-tests: Likewise.
29023         * modules/unistr/u8-chr-tests: Likewise.
29024         * modules/unistr/u8-cmp-tests: Likewise.
29025         * modules/unistr/u8-cmp2-tests: Likewise.
29026         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29027         * modules/unistr/u8-cpy-tests: Likewise.
29028         * modules/unistr/u8-mblen-tests: Likewise.
29029         * modules/unistr/u8-mbsnlen-tests: Likewise.
29030         * modules/unistr/u8-mbtouc-tests: Likewise.
29031         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29032         * modules/unistr/u8-mbtoucr-tests: Likewise.
29033         * modules/unistr/u8-move-tests: Likewise.
29034         * modules/unistr/u8-next-tests: Likewise.
29035         * modules/unistr/u8-prev-tests: Likewise.
29036         * modules/unistr/u8-set-tests: Likewise.
29037         * modules/unistr/u8-stpcpy-tests: Likewise.
29038         * modules/unistr/u8-stpncpy-tests: Likewise.
29039         * modules/unistr/u8-strcat-tests: Likewise.
29040         * modules/unistr/u8-strcmp-tests: Likewise.
29041         * modules/unistr/u8-strcoll-tests: Likewise.
29042         * modules/unistr/u8-strcpy-tests: Likewise.
29043         * modules/unistr/u8-strdup-tests: Likewise.
29044         * modules/unistr/u8-strlen-tests: Likewise.
29045         * modules/unistr/u8-strmblen-tests: Likewise.
29046         * modules/unistr/u8-strmbtouc-tests: Likewise.
29047         * modules/unistr/u8-strncat-tests: Likewise.
29048         * modules/unistr/u8-strncmp-tests: Likewise.
29049         * modules/unistr/u8-strncpy-tests: Likewise.
29050         * modules/unistr/u8-strnlen-tests: Likewise.
29051         * modules/unistr/u8-to-u16-tests: Likewise.
29052         * modules/unistr/u8-to-u32-tests: Likewise.
29053         * modules/unistr/u8-uctomb-tests: Likewise.
29054         * modules/unistr/u16-check-tests: Likewise.
29055         * modules/unistr/u16-chr-tests: Likewise.
29056         * modules/unistr/u16-cmp-tests: Likewise.
29057         * modules/unistr/u16-cmp2-tests: Likewise.
29058         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29059         * modules/unistr/u16-cpy-tests: Likewise.
29060         * modules/unistr/u16-mblen-tests: Likewise.
29061         * modules/unistr/u16-mbsnlen-tests: Likewise.
29062         * modules/unistr/u16-mbtouc-tests: Likewise.
29063         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29064         * modules/unistr/u16-mbtoucr-tests: Likewise.
29065         * modules/unistr/u16-move-tests: Likewise.
29066         * modules/unistr/u16-next-tests: Likewise.
29067         * modules/unistr/u16-prev-tests: Likewise.
29068         * modules/unistr/u16-set-tests: Likewise.
29069         * modules/unistr/u16-stpcpy-tests: Likewise.
29070         * modules/unistr/u16-stpncpy-tests: Likewise.
29071         * modules/unistr/u16-strcat-tests: Likewise.
29072         * modules/unistr/u16-strcmp-tests: Likewise.
29073         * modules/unistr/u16-strcoll-tests: Likewise.
29074         * modules/unistr/u16-strcpy-tests: Likewise.
29075         * modules/unistr/u16-strdup-tests: Likewise.
29076         * modules/unistr/u16-strlen-tests: Likewise.
29077         * modules/unistr/u16-strmblen-tests: Likewise.
29078         * modules/unistr/u16-strmbtouc-tests: Likewise.
29079         * modules/unistr/u16-strncat-tests: Likewise.
29080         * modules/unistr/u16-strncmp-tests: Likewise.
29081         * modules/unistr/u16-strncpy-tests: Likewise.
29082         * modules/unistr/u16-strnlen-tests: Likewise.
29083         * modules/unistr/u16-to-u32-tests: Likewise.
29084         * modules/unistr/u16-to-u8-tests: Likewise.
29085         * modules/unistr/u16-uctomb-tests: Likewise.
29086         * modules/unistr/u32-check-tests: Likewise.
29087         * modules/unistr/u32-chr-tests: Likewise.
29088         * modules/unistr/u32-cmp-tests: Likewise.
29089         * modules/unistr/u32-cmp2-tests: Likewise.
29090         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29091         * modules/unistr/u32-cpy-tests: Likewise.
29092         * modules/unistr/u32-mblen-tests: Likewise.
29093         * modules/unistr/u32-mbsnlen-tests: Likewise.
29094         * modules/unistr/u32-mbtouc-tests: Likewise.
29095         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29096         * modules/unistr/u32-mbtoucr-tests: Likewise.
29097         * modules/unistr/u32-move-tests: Likewise.
29098         * modules/unistr/u32-next-tests: Likewise.
29099         * modules/unistr/u32-prev-tests: Likewise.
29100         * modules/unistr/u32-set-tests: Likewise.
29101         * modules/unistr/u32-stpcpy-tests: Likewise.
29102         * modules/unistr/u32-stpncpy-tests: Likewise.
29103         * modules/unistr/u32-strcat-tests: Likewise.
29104         * modules/unistr/u32-strcmp-tests: Likewise.
29105         * modules/unistr/u32-strcoll-tests: Likewise.
29106         * modules/unistr/u32-strcpy-tests: Likewise.
29107         * modules/unistr/u32-strdup-tests: Likewise.
29108         * modules/unistr/u32-strlen-tests: Likewise.
29109         * modules/unistr/u32-strmblen-tests: Likewise.
29110         * modules/unistr/u32-strmbtouc-tests: Likewise.
29111         * modules/unistr/u32-strncat-tests: Likewise.
29112         * modules/unistr/u32-strncmp-tests: Likewise.
29113         * modules/unistr/u32-strncpy-tests: Likewise.
29114         * modules/unistr/u32-strnlen-tests: Likewise.
29115         * modules/unistr/u32-to-u16-tests: Likewise.
29116         * modules/unistr/u32-to-u8-tests: Likewise.
29117         * modules/unistr/u32-uctomb-tests: Likewise.
29118         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29119         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29120         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29121         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29122         * modules/uniwidth/u8-strwidth-tests: Likewise.
29123         * modules/uniwidth/u8-width-tests: Likewise.
29124         * modules/uniwidth/u16-strwidth-tests: Likewise.
29125         * modules/uniwidth/u16-width-tests: Likewise.
29126         * modules/uniwidth/u32-strwidth-tests: Likewise.
29127         * modules/uniwidth/u32-width-tests: Likewise.
29128         * modules/uniwidth/width-tests: Likewise.
29129
29130 2010-05-18  Richard Jones  <rjones@redhat.com>
29131
29132         doc: users.txt: list hivex
29133         * users.txt: Add hivex.
29134
29135 2010-05-18  Richard Jones  <rjones@redhat.com>
29136
29137         doc: users.txt: list febootstrap
29138         * users.txt: Add febootstrap.
29139
29140 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29141
29142         bootstrap: fix an error when gnulib is not used as a git submodule
29143         * build-aux/bootstrap (gnulib_path): If its length is zero then
29144         assign "gnulib" to it.
29145         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29146
29147 2010-05-16  Bruno Haible  <bruno@clisp.org>
29148
29149         Avoid autoconf warnings about AM_ICONV.
29150         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29151         2.64.
29152
29153 2010-05-16  Bruno Haible  <bruno@clisp.org>
29154
29155         absolute-header: Make the macro usable in more situations.
29156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29157         from gl_ABSOLUTE_HEADER.
29158         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29159
29160 2010-05-16  James Youngman  <jay@gnu.org>
29161
29162         doc: update users.txt
29163         * users.txt: Add CSSC.
29164
29165 2010-05-16  Jim Meyering  <meyering@redhat.com>
29166
29167         init.sh: fix an error in the previous change; add more comments
29168         * tests/init.sh: Compare exit code in loop against 9, not 2.
29169         Patch by Bruno Haible.
29170         Make the two tests more similar by adding an empty "then" clause.
29171         Add comments.
29172
29173         init.sh: avoid unnecessary shell re-exec
29174         * tests/init.sh: Improve the re-exec-required check to first test the
29175         current shell.  If it passes the test, do not search for a shell that
29176         does pass, and do not re-exec.  This test is particularly contorted to
29177         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29178         of $(...) evokes a syntax error and causes immediate shell exit with
29179         status 2.  Bruno Haible reported that the re-exec made it impossible
29180         to single-step through any init.sh-using script.
29181
29182 2010-05-16  Bruno Haible  <bruno@clisp.org>
29183
29184         Fix collision between gnulib's and libintl's printf replacements.
29185         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29186         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29187         (printf): When using GNU C, map the __printf__ function to rpl_printf
29188         via __asm__. When not using GNU C, define rpl_printf instead of
29189         __printf__.
29190         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29191         commit.
29192         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29193         commit.
29194         * m4/asm-underscore.m4: New file.
29195         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29196         * modules/stdio (Files): Add m4/asm-underscore.m4.
29197         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29198         Reported by Ben Pfaff.
29199
29200 2010-05-16  Bruno Haible  <bruno@clisp.org>
29201
29202         verify: Avoid skipping the test on openSUSE 11.0.
29203         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29204
29205 2010-05-13  Bruno Haible  <bruno@clisp.org>
29206
29207         Avoid useless warnings from G++.
29208         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29209         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29211
29212 2010-05-11  Jim Meyering  <meyering@redhat.com>
29213
29214         maint.mk: tweak preceding change
29215         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29216         regexps tighter by anchoring at EOL, and make the new group "shy"
29217         for slightly decreased overhead.
29218
29219 2010-05-11  Eric Blake  <eblake@redhat.com>
29220
29221         maint.mk: gnulib doesn't guarantee NSIG
29222         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29223
29224 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29225
29226         test-pwrite.c: Remove unused variable declaration.
29227         * tests/test-pwrite.c (main): Remove read_buf declaration.
29228
29229         Remove useless test-pwrite.sh file.
29230         * tests/test-pwrite.sh: Delete file.
29231         * modules/pwrite-tests: Remove references.
29232         Reported by Bruno Haible.
29233
29234 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29235
29236         init.sh: fix a typo
29237         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29238
29239 2010-05-10  Jim Meyering  <meyering@redhat.com>
29240
29241         maint.mk: avoid using a temporary file in the always-defined-macros check
29242         * top/maint.mk (.re-defmac): Remove rule.
29243         (gl_trap_): Remove definition.
29244         (sc_prohibit_always-defined_macros): Rewrite not to create and
29245         depend on a temporary file.  Instead, depend on GNU grep's ability
29246         to read a list of regular expressions from stdin when given "-f -".
29247
29248 2010-05-09  Bruno Haible  <bruno@clisp.org>
29249
29250         Update to GNU gettext 0.18, part 1.
29251         * m4/gettext.m4: Update to GNU gettext 0.18.
29252         * m4/intl.m4: Likewise.
29253         * m4/po.m4: Likewise.
29254         * modules/gettext (Files): Add m4/fcntl-o.m4.
29255         (configure.ac): Require gettext infrastructure from version 0.18.
29256
29257 2010-05-09  Jim Meyering  <meyering@redhat.com>
29258
29259         init.sh: enable MALLOC_PERTURB_
29260         * tests/init.sh: Enable glibc's malloc-perturbing option.
29261
29262         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29263         With my recent change in init.sh from the two-line form:
29264             -#   : ${srcdir=.}
29265             -#   . "$srcdir/init.sh"; path_prepend_ .
29266             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29267         I noticed that using the one-line form would cause this test
29268         to fail with a false-positive, or to stop working altogether,
29269         depending on whether help-version changed or all the tests did.
29270         * top/maint.mk (_hv_regex): Remove this definition.
29271         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29272         (_hv_regex_strong): Use a stronger regex to check for conformance.
29273         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29274         Give a separate diagnostic for lack of conforming use.
29275
29276         maint.mk: prohibit definition of symbols defined by gnulib
29277         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29278         definition of symbols defined by gnulib.
29279
29280 2010-05-09  Bruno Haible  <bruno@clisp.org>
29281
29282         acl: Avoid test failure on Cygwin-hosted mingw.
29283         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29284
29285 2010-05-09  Bruno Haible  <bruno@clisp.org>
29286
29287         error: Use system's fcntl function.
29288         * lib/error.c (fcntl): Undefine.
29289
29290 2010-05-09  Jim Meyering  <meyering@redhat.com>
29291
29292         verify: adjust formatting to be more consistent
29293         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29294         argument-list '('s, and after one comma.
29295
29296 2010-05-09  Bruno Haible  <bruno@clisp.org>
29297
29298         error: More reliable output on mingw.
29299         * lib/error.c: Include <windows.h>.
29300         (is_open): New function.
29301         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29302         defined.
29303
29304 2010-05-09  Bruno Haible  <bruno@clisp.org>
29305
29306         vasnprintf: Fix syntax errors in libintl build on mingw.
29307         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29308         pad_ourselves and prec_ourselves after use.
29309
29310 2010-05-08  Bruno Haible  <bruno@clisp.org>
29311
29312         * lib/config.charset: Update comments for Cygwin 1.7.
29313         * lib/localcharset.c: Likewise.
29314
29315 2010-05-07  Jim Meyering  <meyering@redhat.com>
29316
29317         init.sh: improve comments
29318         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29319         . "${srcdir=.}/init.sh"; path_prepend_ .
29320         Add a note about path_prepend_ and the alternative of using
29321         TESTS_ENVIRONMENT.
29322
29323 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29324
29325         exclude: Unescape hashed patterns in wildcard mode.
29326         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29327         to the hash list.
29328         * tests/test-exclude8.sh: New test case.
29329         * modules/exclude-tests: Add new test.
29330
29331 2010-05-05  Eric Blake  <eblake@redhat.com>
29332
29333         verify: automate tests
29334         * modules/verify-tests: New module.
29335         * tests/test-verify.sh: New file.
29336         * tests/test-verify.c: Guard each negative test with a unique id.
29337         Also avoid warning about unused left hand of comma expressions.
29338
29339 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29340
29341         Further improvements to verify.h, suggested by Eric Blake.
29342         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29343         the GL_* versions, to avoid collision with OpenGL.
29344         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29345         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29346         than testing merely whether it's defined.
29347
29348         Modify verify.h to pacify gcc -Wredundant_decls.
29349         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29350         These use the prefix "GL_" since they're likely to be useful elsewhere.
29351         We may need to break them out into a different .h file.
29352         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29353         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29354         of verify_function__.
29355
29356 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29357
29358         Tests for module pwrite.
29359         * modules/pwrite-tests: New file.
29360         * tests/test-pwrite.sh: New file.
29361         * tests/test-pwrite.c: New file.
29362
29363         New module pwrite.
29364         * lib/unistd.in.h (pwrite): New declaration.
29365         * lib/pwrite.c: New file, from glibc with modifications.
29366         * m4/pwrite.m4: New file.
29367         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29368         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29369         REPLACE_PWRITE.
29370         * modules/pwrite: New file.
29371         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29372         REPLACE_PWRITE.
29373         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29374         * doc/posix-functions/pwrite.texi: Mention the new module.
29375
29376 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29377
29378         pread: Update documentation.
29379         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29380
29381 2010-05-04  Eric Blake  <eblake@redhat.com>
29382
29383         docs: update cygwin progress
29384         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29385         this bug.
29386         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29387         Added in cygwin 1.7.2.
29388         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29389         Likewise.
29390         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29391         Likewise.
29392         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29393         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29394         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29395         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29396         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29397         Mention nproc module.
29398         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29399         bug in cygwin 1.7.5 addition.
29400         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29401         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29402         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29403         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29404         1.7.5.
29405         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29406         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29407         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29408         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29409         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29410         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29411         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29412         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29413         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29414         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29415         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29416         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29417         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29418         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29419         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29420         Likewise.
29421         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29422         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29423         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29424         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29425         Likewise.
29426         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29427         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29428         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29429         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29430         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29431         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29432         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29433         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29434         Likewise.
29435         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29436         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29437         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29438         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29439         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29440         Likewise.
29441         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29442         Likewise.
29443         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29444         Likewise.
29445         * doc/glibc-functions/xdrrec_endofrecord.texi
29446         (xdrrec_endofrecord): Likewise.
29447         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29448         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29449         Likewise.
29450         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29451         Likewise.
29452
29453 2010-05-04  Jim Meyering  <meyering@redhat.com>
29454
29455         gendocs.sh: make its "-s FILE" option more useful
29456         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29457         $PACKAGE to reflect the probably-different basename of "FILE".
29458
29459 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29460
29461         bootstrap: don't ignore download_po_files failure
29462         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29463         failure.
29464
29465 2010-05-03  Jim Meyering  <meyering@redhat.com>
29466
29467         maint.mk: allow to pass options to gendocs.sh
29468         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29469         (gendocs_options_): New overridable variable.
29470
29471         gnu-web-doc-update: don't ignore configure or build failure
29472         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29473
29474         announce-gen: backslash-escape '@'s in --help output
29475         * build-aux/announce-gen: Fix syntax errors.
29476
29477         maint.mk, announce-gen: allow project-specific announcement mail headers
29478         * top/maint.mk (translation_project_): Define default.
29479         (announcement_Cc_, announcement_mail_headers_): Likewise.
29480         (announcement): Invoke announce-gen with new --mail-headers option.
29481         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29482
29483         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29484         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29485         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29486         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29487         line in the "err2" output file when running "make check" in verbose
29488         mode (i.e., with set -x enabled).
29489
29490 2010-05-03  Bruno Haible  <bruno@clisp.org>
29491
29492         wctob: Fix for weird platforms.
29493         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29494         argument value.
29495
29496 2010-05-03  Jim Meyering  <meyering@redhat.com>
29497
29498         maint.mk: prohibit unwarranted use of <strings.h>
29499         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29500         strings.h in a file that does not also use strcasecmp, strncasecmp,
29501         ffs or ffsll.
29502
29503         maint.mk: remove obsolete comments
29504         * top/maint.mk: Remove stale, commented-out rules.
29505
29506 2010-05-02  Bruno Haible  <bruno@clisp.org>
29507
29508         wcwidth: Declare also when it's aliased.
29509         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29510         macro.
29511
29512 2010-05-02  Bruno Haible  <bruno@clisp.org>
29513
29514         Fix regression from 2010-04-25.
29515         * gnulib-tool (func_modules_transitive_closure): Check the status of
29516         all modules, not only of the tests that are of the form foo-tests where
29517         foo is a module.
29518
29519 2010-05-02  Bruno Haible  <bruno@clisp.org>
29520
29521         wctob: Work around nasty Cygwin 1.7.2 bug.
29522         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29523         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29524
29525 2010-05-01  Bruno Haible  <bruno@clisp.org>
29526
29527         fpurge: Sharper test.
29528         * tests/test-fpurge.c (main): Add one more ftell check.
29529         * modules/fpurge-tests (Depends-on): Add ftell.
29530         Suggested by Eric Blake.
29531
29532 2010-05-01  Bruno Haible  <bruno@clisp.org>
29533
29534         ftello: Another test.
29535         * tests/test-ftello3.c: New file.
29536         * modules/ftello-tests (Files): Add it.
29537         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29538         MOSTLYCLEANFILES.
29539
29540         ftell: Another test.
29541         * tests/test-ftell3.c: New file.
29542         * modules/ftell-tests (Files): Add it.
29543         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29544         MOSTLYCLEANFILES.
29545
29546 2010-05-01  Bruno Haible  <bruno@clisp.org>
29547
29548         ftell, ftello: Work around Solaris bug.
29549         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29550         * lib/ftello.c: Include stdio-impl.h.
29551         (ftello): On Solaris, when _IOWRT is set, compute the result without
29552         looking at _IOREAD.
29553         * modules/ftello (Files): Add lib/stdio-impl.h.
29554         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29555         * doc/posix-functions/ftello.texi: Likewise.
29556         Reported by Eric Blake.
29557
29558 2010-05-01  Bruno Haible  <bruno@clisp.org>
29559
29560         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29561         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29562         the _IOWRT flag is also set.
29563
29564 2010-05-01  Bruno Haible  <bruno@clisp.org>
29565
29566         Fix doc about a HP-UX stdio bug.
29567         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29568         * doc/posix-functions/ftello.texi: Likewise.
29569
29570 2010-05-01  Bruno Haible  <bruno@clisp.org>
29571
29572         lseek test: Fix failure on Solaris.
29573         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29574         output.
29575
29576 2010-04-30  Jim Meyering  <meyering@redhat.com>
29577
29578         bootstrap: don't ignore failure to generate po*/Makevars
29579         * build-aux/bootstrap (with_gettext): Don't ignore failure
29580         to create po/Makevars or runtime-po/Makevars.
29581
29582 2010-04-29  Eric Blake  <eblake@redhat.com>
29583
29584         headers: relax license to LGPLv2+
29585         * modules/fcntl-h (License): Relax license.
29586         * modules/getopt-posix (License): Likewise.
29587         * modules/locale (License): Likewise.
29588         * modules/math (License): Likewise.
29589         * modules/pty (License): Likewise.
29590         * modules/sched (License): Likewise.
29591         * modules/search (License): Likewise.
29592         * modules/spawn (License): Likewise.
29593         * modules/stdarg (License): Likewise.
29594         * modules/sysexits (License): Likewise.
29595
29596 2010-04-29  Jim Meyering  <meyering@redhat.com>
29597
29598         inttypes: relax license to LGPLv2+
29599         * modules/inttypes (License): Relax license.
29600
29601 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29602
29603         * top/maint.mk (indent): Run twice to produce idempotent results.
29604
29605 2010-04-28  Bruno Haible  <bruno@clisp.org>
29606
29607         getdate: Generate getdate.c in the source directory.
29608         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29609         MOSTLYCLEANFILES.
29610         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29611
29612 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29613
29614         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29615         is not declared as a const *; avoid warnings in that case.
29616
29617 2010-04-28  Eric Blake  <eblake@redhat.com>
29618
29619         canonicalize-lgpl: avoid compiler warning
29620         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29621         declaration' / 'extraneous semicolon' warning with some compilers.
29622         Reported by Andreas Gruenbacher.
29623
29624 2010-04-28  Jim Meyering  <meyering@redhat.com>
29625
29626         init.sh: ensure a more reliable exit status when exiting via trap
29627         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29628         Inspired by patches from Dmitry V. Levin.
29629         Also trap on signal 3 (SIGQUIT).
29630
29631 2010-04-27  Bruno Haible  <bruno@clisp.org>
29632
29633         Update doc about utimes().
29634         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29635         'utimens' module.
29636         Reported by Andreas Gruenbacher <agruen@suse.de>.
29637
29638 2010-04-27  Eric Blake  <eblake@redhat.com>
29639
29640         full-read, full-write: relax license
29641         * modules/full-read (License): Drop to LGPLv2+.
29642         * modules/full-write (License): Likewise.
29643         * modules/safe-read (License): Likewise.
29644         * modules/safe-write (License): Likewise.
29645
29646         pthread: mention library for linking
29647         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29648
29649 2010-04-27  Jim Meyering  <meyering@redhat.com>
29650
29651         maint.mk: fix a bug introduced in last change
29652         * top/maint.mk (gl_assured_headers_): Now that all names are on
29653         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29654         is not anchored to end of word, it should be adequate.
29655
29656         maint.mk: avoid side-effect in latest syntax-check
29657         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29658         to run commands via $(shell...), and hence to incur cost only when
29659         the new rule is actually run.
29660
29661         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29662         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29663         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29664         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29665         (gl_assured_headers_, az_, AZ_): Define.
29666         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29667
29668 2010-04-26  Jim Meyering  <jim@meyering.net>
29669             Bruno Haible  <bruno@clisp.org>
29670
29671         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29672         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29673         Prompted by an exchange with Gilles Espinasse.
29674
29675 2010-04-26  Jim Meyering  <meyering@redhat.com>
29676
29677         git-version-gen: aesthetic tweak
29678         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29679         so that the command remains on a single line.
29680
29681 2010-04-26  Eric Blake  <eblake@redhat.com>
29682
29683         git-version-gen: allow use on EBCDIC hosts
29684         * build-aux/git-version-gen (dirty): Use literal rather than tying
29685         ourselves to ascii.
29686         Reported by Steve Goetze.
29687
29688 2010-04-25  Bruno Haible  <bruno@clisp.org>
29689
29690         netdb: Add support for GNULIB_POSIXCHECK.
29691         * lib/netdb.in.h: Include warn-on-use.h.
29692         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29693         functions are used when GNULIB_POSIXCHECK is defined and the
29694         getaddrinfo module is not in use.
29695         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29696         freeaddrinfo, gai_strerror, getnameinfo are declared.
29697         * modules/netdb (Depends-on): Add warn-on-use.
29698         (Makefile.am): Include warn-on-use.h in netdb.h.
29699
29700 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29701
29702         build: avoid "make check" failure without .git/ directory
29703         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29704         there is no .git/ directory.
29705
29706 2010-04-25  Bruno Haible  <bruno@clisp.org>
29707
29708         ptsname: Fix misuse of ttyname_r.
29709         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29710         of errno.
29711
29712 2010-04-25  Bruno Haible  <bruno@clisp.org>
29713
29714         ttyname_r: Make it work on Solaris 10.
29715         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29716         if the system function has the POSIX declaration. Test whether the
29717         function fails if the buffer is less than 128 bytes large.
29718         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29719         system's ttyname_r function. Provide a reasonably large buffer.
29720         * modules/ttyname_r (Depends-on): Add extensions.
29721         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29722
29723 2010-04-25  Bruno Haible  <bruno@clisp.org>
29724
29725         Use the 'extensions' module for some more functions on Solaris.
29726         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29727         module.
29728         * doc/posix-functions/ctime_r.texi: Likewise.
29729         * doc/posix-functions/getgrgid_r.texi: Likewise.
29730         * doc/posix-functions/getgrnam_r.texi: Likewise.
29731         * doc/posix-functions/getpwnam_r.texi: Likewise.
29732         * doc/posix-functions/getpwuid_r.texi: Likewise.
29733         * doc/posix-functions/readdir_r.texi: Likewise.
29734         * doc/posix-functions/sigwait.texi: Likewise.
29735         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29736         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29737
29738 2010-04-25  Bruno Haible  <bruno@clisp.org>
29739
29740         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29741         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29742         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29743         * lib/ttyname_r.c: Include <limits.h>.
29744         (ttyname_r): Define using the system's ttyname_r function, if it exists
29745         and not on Solaris.
29746         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29747         set.
29748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29749         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29750         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29751         Reported by Simon Josefsson.
29752
29753 2010-04-25  Bruno Haible  <bruno@clisp.org>
29754
29755         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29756         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29757         * doc/posix-functions/ctime_r.texi: Likewise.
29758         * doc/posix-functions/getgrgid_r.texi: Likewise.
29759         * doc/posix-functions/getgrnam_r.texi: Likewise.
29760         * doc/posix-functions/getlogin_r.texi: Likewise.
29761         * doc/posix-functions/getpwnam_r.texi: Likewise.
29762         * doc/posix-functions/getpwuid_r.texi: Likewise.
29763         * doc/posix-functions/readdir_r.texi: Likewise.
29764         * doc/posix-functions/sigwait.texi: Likewise.
29765         * doc/posix-functions/ttyname_r.texi: Likewise.
29766         Reported by Simon Josefsson.
29767
29768 2010-04-25  Bruno Haible  <bruno@clisp.org>
29769
29770         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29771         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29772         also to --create-testdir.
29773         (func_acceptable): Don't consider the status of *-tests modules here.
29774         (func_modules_transitive_closure): Consider it here, before including a
29775         test module.
29776         (func_import, func_create_testdir): Set inc_all_direct_tests,
29777         inc_all_indirect_tests.
29778         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29779         --create-testdir and --create-megatestdir.
29780
29781 2010-04-25  Bruno Haible  <bruno@clisp.org>
29782
29783         gnulib-tool: Add --without-*-tests options.
29784         * gnulib-tool (func_usage): Document the --without-*-tests options.
29785         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29786         excl_unportable_tests): New variables.
29787         Fail if they are specified with --import or --update.
29788         (func_acceptable): Respect the excl_*_tests variables.
29789         (func_import): Set the excl_*_tests variables to empty.
29790
29791 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29792             Bruno Haible  <bruno@clisp.org>
29793
29794         Work around a MacOS X 10.4 bug with openpty.
29795         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29796         * tests/test-openpty.c (main): Close the master side explicitly.
29797
29798 2010-04-25  Bruno Haible  <bruno@clisp.org>
29799
29800         strnlen: Fix a C++ test error on MacOS X and Solaris.
29801         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29802         the function is not declared.
29803         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29804         Simon Josefsson.
29805
29806 2010-04-24  Bruno Haible  <bruno@clisp.org>
29807
29808         Avoid a gcc warning.
29809         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29810         of correct type for %08lx directive.
29811         Reported by Eric Blake.
29812
29813 2010-04-24  Bruno Haible  <bruno@clisp.org>
29814
29815         vasnprintf: Correct errno value in case of out-of-memory.
29816         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29817         or sprintf. Use the errno value from SNPRINTF or sprintf.
29818         Reported by Ian Beckwith <ianb@erislabs.net>.
29819
29820 2010-04-24  Bruno Haible  <bruno@clisp.org>
29821
29822         ansi-c++-opt: Find correct compiler when cross-compiling.
29823         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29824         AC_CHECK_PROGS.
29825         Reported by Simon Josefsson.
29826
29827 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29828
29829         vc-list-files: Add support for subversion
29830         * build-aux/vc-list-files: Use "svn list" to generate the list of
29831         files controlled by subversion.
29832
29833 2010-04-23  Jim Meyering  <meyering@redhat.com>
29834
29835         vc-list-files tests: convert to use init.sh
29836         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29837         path_prepend_.
29838         Use Exit, not exit.
29839         Use skip_ rather than open coding it.
29840         Remove trap set-up and compare definitions.
29841         * tests/test-vc-list-files-git.sh: Likewise.
29842         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29843
29844 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29845
29846         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29847         backup files.
29848
29849 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29850
29851         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29852
29853 2010-04-20  Eric Blake  <eblake@redhat.com>
29854
29855         tests: be robust to ignored SIGPIPE
29856         * tests/test-select-in.sh: Consume all output.
29857         * tests/test-lseek.sh: Check correct exit status, while avoiding
29858         EPIPE.
29859
29860 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29861             Bruno Haible  <bruno@clisp.org>
29862
29863         visibility: Don't use -fvisibility if it leads to a warning.
29864         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29865         yes, don't pretend that visibility works if it leads to a warning.
29866         Reported by Mike Gran <spk121@yahoo.com>.
29867
29868 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29869
29870         * build-aux/bootstrap: Use "git -h" for testing for supported options
29871         instead of "git --help".  The short-form option only shows a summary,
29872         and doesn't layout the full man page.  Grep for the full option name
29873         in the summary, too.
29874
29875 2010-04-19  Bruno Haible  <bruno@clisp.org>
29876
29877         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29878         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29879         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29880         mention of RELOCATABLE_STRIP.
29881         Reported by Sylvain Beucler <beuc@beuc.net>.
29882
29883 2010-04-19  Bruno Haible  <bruno@clisp.org>
29884
29885         * lib/diffseq.h: Fix typo in comment.
29886         Reported by Eric Blake.
29887
29888 2010-04-19  Bruno Haible  <bruno@clisp.org>
29889
29890         ioctl: Move autoconf macro to a .m4 file.
29891         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29892         * modules/ioctl (Files): Add it.
29893         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29894         Reported by Ian Beckwith <ianb@erislabs.net>.
29895
29896 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29897             Bruno Haible  <bruno@clisp.org>
29898
29899         diffseq: Accommodate use-case with abstract arrays.
29900         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29901         is not defined.
29902         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29903         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29904
29905 2010-04-18  Bruno Haible  <bruno@clisp.org>
29906
29907         * doc/posix-headers/stdbool.texi: More precise wording.
29908
29909 2010-04-17  Jim Meyering  <meyering@redhat.com>
29910
29911         maint.mk: use gnu-style indentation in an embedded perl script
29912         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29913         Rename variable: s/two/last_two_bytes/
29914
29915 2010-04-16  Eric Blake  <eblake@redhat.com>
29916
29917         test-stdbool: skip test that fails with Solaris CC
29918         * tests/test-stdbool.c (f): Skip test that causes compilation
29919         error under buggy C++ compiler.
29920         * lib/stdbool.in.h: Document the limitation.
29921         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29922
29923         setenv: allow compilation with C++
29924         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29925         register keyword.
29926
29927         stdint: allow test to pass with C++
29928         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29929
29930         getopt: allow compilation with C++
29931         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29932         struct.
29933         * lib/getopt.c (_getopt_internal_r): Use correct type.
29934         Reported by Dagobert Michelson, via Joel E. Denny.
29935
29936 2010-04-16  Bruno Haible  <bruno@clisp.org>
29937
29938         Override netdb.h always.
29939         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29940         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29941         Reported by Ludovic Courtès <ludo@gnu.org>.
29942
29943 2010-04-15  Bruno Haible  <bruno@clisp.org>
29944
29945         openpty: Fix mistake from 2010-03-21.
29946         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29947         Reported by Simon Josefsson.
29948
29949 2010-04-15  Eric Blake  <eblake@redhat.com>
29950
29951         test-forkpty: fix expected signature
29952         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29953         Reported by Simon Josefsson.
29954
29955 2010-04-15  Jim Meyering  <meyering@redhat.com>
29956
29957         maint.mk: texinfo_suffix_re_: correct the default regexp
29958         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29959
29960         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29961         make it configurable via texinfo_suffix_re_.
29962
29963 2010-04-14  Eric Blake  <eblake@redhat.com>
29964
29965         strtok_r: relax license to LGPLv2+
29966         * modules/strtok_r (License): Relax license.
29967         Reported by Matthias Bolte.
29968
29969 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29970
29971         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29972         version 1.4.4 by default instead of requiring the libgcrypt
29973         version used during build.  This makes it possible to use the
29974         application with older but still binary compatible libgcrypt
29975         versions.
29976
29977 2010-04-13  Eric Blake  <eblake@redhat.com>
29978
29979         getopt-gnu: match recent glibc fixes and posix ruling
29980         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29981         '+' handling, when requesting extensions.
29982         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29983         'W;' handling.
29984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29985         * doc/posix-functions/getopt.texi (getopt): Document this.
29986         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29987         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29988         Likewise.
29989
29990         getopt: merge bug fixes from glibc
29991         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29992         diagnostics.  Honor '+:' correctly.  Reject ';'.
29993
29994         getopt-posix: detect MacOS bug
29995         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29996         optind when missing a required argument.
29997         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29998         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29999         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30000         Likewise.
30001
30002         getopt-posix: avoid spurious failure on Solaris
30003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30004         an indicator that setting optind=1 is sufficient for reset.
30005
30006         getopt-posix: avoid spurious failure on FreeBSD
30007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30008         in POSIX mode, since the m4 test uses it.
30009
30010         gnulib-tool: silence warning on BSD sh
30011         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30012
30013 2010-04-13  Jim Meyering  <meyering@redhat.com>
30014
30015         doc: users.txt: GNU patch now uses gnulib
30016         * users.txt: Add patch.
30017
30018 2010-04-12  Jim Meyering  <meyering@redhat.com>
30019
30020         maint.mk: generate more concise timing data for syntax-check rules
30021         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30022         " done" from each line that reports a syntax-check test duration.
30023
30024 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30025
30026         git-version-gen: use "git update-index..." rather than "git status"
30027         * build-aux/git-version-gen: Use git update-index --refresh, not
30028         "git status".  With some versions of git, "git status" would fail
30029         to update the index and result in an unwarranted "-dirty" suffix.
30030
30031 2010-04-11  Jim Meyering  <meyering@redhat.com>
30032
30033         openat: correct formatting (no semantic change)
30034         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30035         Suggested by Bruno Haible.
30036
30037 2010-04-11  Bruno Haible  <bruno@clisp.org>
30038
30039         Stricter declaration checking in testdirs.
30040         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30041         If for_tests is true, augment AM_CPPFLAGS to define
30042         GNULIB_STRICT_CHECKING.
30043         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30044         GNULIB_STRICT_CHECKING is defined, verify that the function is
30045         declared.
30046
30047 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30048             Bruno Haible  <bruno@clisp.org>
30049
30050         libunistring: Improve configure output.
30051         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30052         Don't say "consider installing GNU libunistring" when checking again
30053         with libiconv.
30054
30055 2010-04-11  Bruno Haible  <bruno@clisp.org>
30056
30057         libunistring: Correct value of $LTLIBUNISTRING.
30058         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30059         correct the value of $LTLIBUNISTRING.
30060
30061 2010-04-11  Bruno Haible  <bruno@clisp.org>
30062
30063         havelib: Add static libraries to LIBS in the right order.
30064         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30065         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30066
30067 2010-04-11  Bruno Haible  <bruno@clisp.org>
30068
30069         libunistring: Detect libunistring also when it depends on libiconv.
30070         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30071         the second AC_LIB_HAVE_LINKFLAGS invocation.
30072
30073 2010-04-11  James Youngman  <jay@gnu.org>
30074
30075         close-stream: declare local scalars to be "const"
30076         * lib/close-stream.c (close_stream): Make boolean variables const
30077         to document the fact that we set but do not change them.
30078
30079 2010-04-11  Bruno Haible  <bruno@clisp.org>
30080
30081         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30082
30083 2010-04-11  Jim Meyering  <meyering@redhat.com>
30084
30085         maint.mk: don't include dist-check.mk
30086         * top/maint.mk: Remove bogus include directive.
30087
30088         maint.mk: improve empty-line-at-EOF check
30089         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30090         solution, rather than tail+Perl-based one.  The latter would read
30091         a few kilobytes from the end of each file, and did not handle empty
30092         files properly.
30093
30094         maint.mk: print the elapsed time for each syntax-check rule
30095         * top/maint.mk (sc_m_rules_): Save start time in a file.
30096         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30097         (local-check): Interpose the .z rules
30098
30099 2010-04-11  Jim Meyering  <meyering@redhat.com>
30100
30101         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30102         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30103         empty file with one that ends in an empty line.
30104
30105 2010-04-10  Bruno Haible  <bruno@clisp.org>
30106
30107         mkdir: Make it work on mingw64.
30108         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30109         * lib/mkdir.c: Update comment.
30110         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30111
30112 2010-04-10  Bruno Haible  <bruno@clisp.org>
30113
30114         Don't override improved macro from newer autoconf.
30115         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30116         autoconf >= 2.62.
30117         Reported by Joel E. Denny <jdenny@clemson.edu>.
30118
30119 2010-04-10  Jim Meyering  <meyering@redhat.com>
30120
30121         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30122         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30123
30124         maint.mk: correct a diagnostic
30125         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30126         in diagnostic; now use $prohibit.
30127
30128 2010-04-10  Bruno Haible  <address@hidden>
30129
30130         fchownat: Fix a C++ test error on Solaris 8.
30131         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30132         the function does not exist.
30133
30134 2010-04-10  Bruno Haible  <bruno@clisp.org>
30135
30136         vasnprintf: Add more tests.
30137         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30138         (test_function): Test converting an invalid wide string.
30139
30140         vasnprintf: Correct handling of unconvertible wide string arguments.
30141         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30142         VASNPRINTF.
30143         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30144         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30145         smaller than the expected maximum need for the directive. Set errno to
30146         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30147         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30148         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30149         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30150         * modules/vasnprintf (Files): Add m4/printf.m4.
30151         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30152
30153 2010-04-10  Bruno Haible  <bruno@clisp.org>
30154
30155         vasnprintf: Fix crash in %ls directive.
30156         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30157         string is passed as argument to %ls, with no precision and no width.
30158         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30159
30160 2010-04-10  Bruno Haible  <bruno@clisp.org>
30161
30162         vasnprintf: Fix multiple test failures on mingw.
30163         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30164         _snprintf, or snwprintf, not _snwprintf.
30165
30166 2010-04-10  Bruno Haible  <bruno@clisp.org>
30167
30168         write: Fix a C++ test error on mingw.
30169         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30170
30171 2010-04-10  Bruno Haible  <bruno@clisp.org>
30172
30173         vasnprintf test: Reduce code duplication.
30174         * tests/test-vasnprintf.c (test_function): New function, extracted from
30175         test_vasnprintf.
30176         (test_vasnprintf, test_asnprintf): Invoke it.
30177
30178 2010-04-10  Bruno Haible  <bruno@clisp.org>
30179
30180         strnlen: Fix warning in C++ mode on MacOS X.
30181         * lib/string.in.h (strnlen): Use the modern idiom.
30182         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30183         defining strnlen as a macro already in <config.h>.
30184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30185         REPLACE_STRNLEN.
30186         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30187         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30188
30189 2010-04-08  James Youngman  <jay@gnu.org>
30190
30191         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30192         the example.
30193
30194 2010-04-09  Jim Meyering  <meyering@redhat.com>
30195
30196         maint.mk: print better diagnostic when there is no $(_hv_file)
30197         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30198         announce that when $(_hv_file) (aka help-version) does not exist.
30199
30200         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30201         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30202         not try to interpret its random input bytes.  Jarno Rajahalme reported
30203         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30204         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30205         (mktempd_): Likewise, just in case.
30206
30207         ftruncate: add two years to projected module removal date: 2012
30208         * m4/ftruncate.m4: Adjust comments.
30209
30210         ftruncate: mark module as obsolete; even MinGW provides it, now
30211         * modules/ftruncate (Status): Obsolete.
30212         (Notice): Say that.
30213         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30214         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30215
30216 2010-04-08  Bruno Haible  <bruno@clisp.org>
30217
30218         Fix side effects from tests-related modules.
30219         * modules/dprintf-posix (Comment): New section.
30220         * modules/fprintf-posix (Comment): Likewise.
30221         * modules/obstack-printf-posix (Comment): Likewise.
30222         * modules/printf-posix (Comment): Likewise.
30223         * modules/snprintf-posix (Comment): Likewise.
30224         * modules/sprintf-posix (Comment): Likewise.
30225         * modules/vasnprintf-posix (Comment): Likewise.
30226         * modules/vasprintf-posix (Comment): Likewise.
30227         * modules/vdprintf-posix (Comment): Likewise.
30228         * modules/vfprintf-posix (Comment): Likewise.
30229         * modules/vprintf-posix (Comment): Likewise.
30230         * modules/vsnprintf-posix (Comment): Likewise.
30231         * modules/vsprintf-posix (Comment): Likewise.
30232         * modules/xprintf-posix (Comment): Likewise.
30233         * modules/xvasprintf-posix (Comment): Likewise.
30234         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30235         * modules/floorf-tests (Depends-on): Likewise.
30236         * modules/round-tests (Depends-on): Likewise.
30237         * modules/roundf-tests (Depends-on): Likewise.
30238         * modules/trunc-tests (Depends-on): Likewise.
30239         * modules/truncf-tests (Depends-on): Likewise.
30240         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30241         'fprintf-posix' module is not present.
30242         * tests/test-floorf2.c (check): Likewise.
30243         * tests/test-trunc2.c (check): Likewise.
30244         * tests/test-truncf2.c (check): Likewise.
30245         * tests/test-round2.c (equal): Likewise.
30246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30247
30248 2010-04-07  Karl Berry  <karl@gnu.org>
30249
30250         * config/srclist.txt,
30251         * config/srclistvars.sh,
30252         * config/srclist-update: doc fixes.
30253
30254 2010-04-07  Jim Meyering  <meyering@redhat.com>
30255
30256         maint.mk: add a PATH crosschecking syntax-check rule
30257         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30258         Useful if you use a test like the one in help-version (coreutils,
30259         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30260         printed by prog --version.
30261
30262 2010-04-06  Bruno Haible  <bruno@clisp.org>
30263
30264         Fix link error on mingw.
30265         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30266         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30267
30268 2010-04-06  Bruno Haible  <bruno@clisp.org>
30269
30270         Assume rmdir exists.
30271         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30272
30273 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30274
30275         doc: update users.txt
30276         * users.txt: Add gcal.
30277
30278 2010-04-06  Jim Meyering  <meyering@redhat.com>
30279
30280         init.sh: simply unset TMPDIR rather than risking env -i
30281         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30282         although it probably works fine on all Unix-based systems, some
30283         systems (Cygwin?) cannot tolerate a totally cleared environment.
30284         Suggestion from Eric Blake.
30285
30286 2010-04-06  Jim Meyering  <meyering@redhat.com>
30287
30288         init.sh: portability fix: use env's POSIX-specified -i option not -u
30289         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30290         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30291
30292 2010-04-05  Bruno Haible  <bruno@clisp.org>
30293
30294         btowc: Work around Cygwin 1.7.2 bug.
30295         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30296         does not map NUL to 0.
30297         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30298
30299 2010-04-05  Bruno Haible  <bruno@clisp.org>
30300
30301         Make the multithread modules work on Cygwin 1.7.2.
30302         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30303         imported symbols can be declared weak, so that it returns "no" on
30304         Cygwin 1.7.2.
30305
30306 2010-04-05  Bruno Haible  <bruno@clisp.org>
30307
30308         Use the module 'strncat'.
30309         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30310
30311         Tests for module 'strncat'.
30312         * modules/strncat-tests: New file.
30313         * tests/test-strncat.c: New file.
30314
30315         New module 'strncat'.
30316         * lib/string.in.h (strncat): New declaration.
30317         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30318         * m4/strncat.m4: New file, based on m4/memchr.m4.
30319         * modules/strncat: New file.
30320         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30321         is declared.
30322         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30323         REPLACE_STRNCAT.
30324         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30325         REPLACE_STRNCAT.
30326         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30327         module.
30328         * tests/test-string-c++.cc: Check signature of strncat.
30329
30330 2010-04-05  Jim Meyering  <meyering@redhat.com>
30331
30332         xstrtoumax-tests: convert to use init.sh
30333         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30334         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30335         Use Exit, not exit.
30336         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30337
30338         xstrtoimax-tests: convert to use init.sh
30339         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30340         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30341         Use Exit, not exit.
30342         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30343
30344 2010-04-05  Bruno Haible  <bruno@clisp.org>
30345
30346         sys_socket: Avoid #define replacements in C++ mode.
30347         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30348         warning to the function if possible, rather than #defining the symbol
30349         to a dysfunctional alias.
30350
30351 2010-04-05  Bruno Haible  <bruno@clisp.org>
30352
30353         fseeko: Fix C++ test error on mingw.
30354         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30355         gl_FUNC_FSEEKO.
30356         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30357         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30358         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30359         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30360
30361 2010-04-05  Bruno Haible  <bruno@clisp.org>
30362
30363         duplocale: Improve test output.
30364         * tests/test-duplocale.c (main): Print reason for skipped test.
30365
30366 2010-04-05  Bruno Haible  <bruno@clisp.org>
30367
30368         Assume rmdir exists.
30369         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30370         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30371
30372 2010-04-05  Bruno Haible  <bruno@clisp.org>
30373
30374         Fix link error on Solaris 8 with cc.
30375         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30376
30377 2010-04-05  Bruno Haible  <bruno@clisp.org>
30378
30379         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30380         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30381
30382 2010-04-05  Bruno Haible  <bruno@clisp.org>
30383
30384         vasprintf: Update documentation.
30385         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30386
30387 2010-04-05  Bruno Haible  <bruno@clisp.org>
30388
30389         ptsname: Improve test.
30390         * tests/test-ptsname.c (main): Also try the various master names of BSD
30391         systems.
30392
30393 2010-04-05  Bruno Haible  <bruno@clisp.org>
30394
30395         memchr: Avoid a possible C++ test error.
30396         * lib/string.in.h (memchr): Provide declaration if function is missing.
30397         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30398         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30399         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30400         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30401
30402 2010-04-05  Bruno Haible  <bruno@clisp.org>
30403
30404         strtok_r: Improve idiom.
30405         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30406         AC_LIBOBJ is used.
30407
30408 2010-04-05  Bruno Haible  <bruno@clisp.org>
30409
30410         strdup: Improve idiom.
30411         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30412         AC_LIBOBJ is used.
30413         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30414         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30415         when AC_LIBOBJ is used.
30416
30417 2010-04-05  Bruno Haible  <bruno@clisp.org>
30418
30419         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30420         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30421         don't set REPLACE_MBSINIT to 1.
30422         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30423         don't set REPLACE_MBRTOWC to 1.
30424         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30425         exist, don't set REPLACE_MBSRTOWCS to 1.
30426         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30427         exist, don't set REPLACE_MBSNRTOWCS to 1.
30428         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30429         don't set REPLACE_WCRTOMB to 1.
30430         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30431         exist, don't set REPLACE_WCSRTOMBS to 1.
30432         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30433         exist, don't set REPLACE_WCSNRTOMBS to 1.
30434
30435 2010-04-05  Bruno Haible  <bruno@clisp.org>
30436
30437         ldexpl: Improve idiom.
30438         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30439         make sure to set HAVE_DECL_LDEXPL to 0.
30440
30441 2010-04-05  Jim Meyering  <meyering@redhat.com>
30442
30443         xstrtol-tests: convert to use init.sh
30444         * modules/xstrtol-tests (Files): Add tests/init.sh.
30445         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30446         Use Exit, not exit.
30447         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30448
30449         atexit-tests: convert to use init.sh
30450         * modules/atexit-tests (Files): Add tests/init.sh.
30451         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30452         Use Exit, not exit.
30453         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30454
30455         init.sh: fix typo
30456         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30457
30458         init.sh: make it easier for a test script to write to the tty, ...
30459         when using automake's parallel-tests mode.
30460         * tests/init.sh (stderr_fileno_): Define overridable variable.
30461         (warn_): New function, to use it.
30462         (fail_, skip_, framework_failure_): Use warn_.
30463
30464 2010-04-04  Bruno Haible  <bruno@clisp.org>
30465
30466         btowc: Avoid warning.
30467         * lib/btowc.c: Include <stdlib.h>.
30468         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30469
30470 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30471             Bruno Haible  <bruno@clisp.org>
30472
30473         wchar: Port to NetBSD 1.5.
30474         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30475         * lib/wctype.in.h (WEOF): Likewise.
30476
30477 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30478             Bruno Haible  <bruno@clisp.org>
30479
30480         Port extended stdio to NetBSD 1.5.
30481         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30482         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30483         older.
30484
30485 2010-04-04  Bruno Haible  <bruno@clisp.org>
30486
30487         string: Remove unused substitution.
30488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30489         HAVE_DECL_STRERROR.
30490         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30491
30492 2010-04-04  Bruno Haible  <bruno@clisp.org>
30493
30494         strtod: Avoid a possible C++ test error.
30495         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30496         set REPLACE_STRTOD.
30497
30498 2010-04-04  Bruno Haible  <bruno@clisp.org>
30499
30500         strerror: Update documentation.
30501         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30502
30503 2010-04-04  Bruno Haible  <bruno@clisp.org>
30504
30505         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30506         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30507         _GL_CXXALIAS_SYS_CAST.
30508
30509 2010-04-04  Bruno Haible  <bruno@clisp.org>
30510
30511         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30512         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30513         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30514         REPLACE_FREXPL to 1.
30515         * doc/posix-functions/frexpl.texi: Update documentation.
30516
30517 2010-04-04  Bruno Haible  <bruno@clisp.org>
30518
30519         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30520         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30521
30522 2010-04-04  Bruno Haible  <bruno@clisp.org>
30523
30524         Implement nanosleep for native Windows.
30525         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30526
30527 2010-04-04  Bruno Haible  <bruno@clisp.org>
30528
30529         math: Fix some C++ test errors on Solaris 8.
30530         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30531
30532 2010-04-04  Bruno Haible  <bruno@clisp.org>
30533
30534         math: Fix some C++ test errors on Cygwin.
30535         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30536         truncl): Provide declaration if the system does not have it.
30537         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30538         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30539         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30540         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30541         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30542         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30543         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30544         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30545         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30546         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30547         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30548         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30549         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30550         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30551         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30552         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30554         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30555         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30556         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30557         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30558         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30559
30560 2010-04-04  Bruno Haible  <bruno@clisp.org>
30561
30562         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30563         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30564         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30565         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30566         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30567         * m4/isinf.m4 (gl_ISINF): Likewise.
30568         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30569
30570 2010-04-04  Bruno Haible  <bruno@clisp.org>
30571
30572         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30573         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30574
30575 2010-04-04  Bruno Haible  <bruno@clisp.org>
30576
30577         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30578         * modules/tmpfile (configure.ac): Update.
30579
30580         tmpfile: Fix C++ test error on mingw.
30581         * lib/stdio.in.h (tmpfile): New declaration.
30582         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30583         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30584         * modules/tmpfile (Depends-on): Add stdio.
30585         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30586         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30587         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30588         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30589         REPLACE_TMPFILE.
30590         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30591
30592 2010-04-04  Bruno Haible  <bruno@clisp.org>
30593
30594         ioctl: Fix C++ test error on mingw.
30595         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30596         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30597         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30598
30599 2010-04-03  Bruno Haible  <bruno@clisp.org>
30600
30601         wcwidth: Fix C++ test error on mingw.
30602         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30603         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30604         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30605
30606 2010-04-03  Bruno Haible  <bruno@clisp.org>
30607
30608         nanosleep: Fix C++ test error on mingw.
30609         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30610         * lib/time.in.h (nanosleep): Use modern idiom.
30611         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30612         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30613         REPLACE_NANOSLEEP to 1.
30614         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30615         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30616
30617 2010-04-03  Bruno Haible  <bruno@clisp.org>
30618
30619         strptime: Fix C++ test error on mingw.
30620         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30621         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30622         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30623         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30624         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30625         not REPLACE_STRPTIME.
30626         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30627         REPLACE_STRPTIME.
30628
30629 2010-04-03  Bruno Haible  <bruno@clisp.org>
30630
30631         timegm: Fix C++ test error on mingw.
30632         * lib/time.in.h (timegm): Use modern idiom.
30633         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30634         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30635         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30636         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30637
30638 2010-04-03  Bruno Haible  <bruno@clisp.org>
30639
30640         timegm: Assume declaration if function exists.
30641         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30642         if it exists. Don't clobber ac_cv_func_timegm.
30643
30644 2010-04-03  Bruno Haible  <bruno@clisp.org>
30645
30646         time_r: Fix C++ test error on mingw.
30647         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30648         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30649         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30651         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30652
30653 2010-04-03  Bruno Haible  <bruno@clisp.org>
30654
30655         time_r: Minor updates.
30656         * modules/time_r (Description): Mention the provided functions.
30657         * lib/time_r.c: Don't include <string.h>.
30658         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30659         * doc/posix-functions/localtime_r.texi: Likewise.
30660
30661 2010-04-03  Bruno Haible  <bruno@clisp.org>
30662
30663         time: Fix regression introduced on 2010-03-08.
30664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30665         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30666
30667 2010-04-03  Jim Meyering  <meyering@redhat.com>
30668
30669         maint.mk: don't silently disable project-specific syntax-check rules
30670         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30671         that they need to convert their project-specific syntax-check rules
30672         to use the new _sc_search_regexp.
30673
30674 2010-04-03  Bruno Haible  <bruno@clisp.org>
30675
30676         fchdir: Fix regression introduced on 2010-03-08.
30677         * lib/unistd.in.h (fchdir): Fix declaration.
30678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30680         REPLACE_FCHDIR.
30681         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30682         REPLACE_FCHDIR.
30683
30684 2010-04-03  Bruno Haible  <bruno@clisp.org>
30685
30686         getpagesize: Fix C++ test error on mingw.
30687         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30688         system does not declare the function.
30689         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30690         declared.
30691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30692         HAVE_DECL_GETPAGESIZE.
30693         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30694
30695 2010-04-03  Bruno Haible  <bruno@clisp.org>
30696
30697         stdio: Make C++ tests work on mingw.
30698         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30699         does not declare the function.
30700
30701 2010-04-03  Bruno Haible  <bruno@clisp.org>
30702
30703         ftello: Fix C++ test error on mingw.
30704         * lib/stdio.in.h (ftello): Use modern idiom.
30705         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30706         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30707         is missing and that it needs to be replaced.
30708         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30709         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30710         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30711
30712 2010-04-03  Bruno Haible  <bruno@clisp.org>
30713
30714         fseeko: Fix C++ test error on mingw.
30715         * lib/stdio.in.h (fseeko): Use modern idiom.
30716         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30717         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30718         is missing and that it needs to be replaced.
30719         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30721         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30722
30723 2010-04-03  Bruno Haible  <bruno@clisp.org>
30724
30725         mkstemp: Fix C++ test error on mingw.
30726         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30727         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30728         function is missing and that it needs to be replaced.
30729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30730         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30731
30732 2010-04-03  Bruno Haible  <bruno@clisp.org>
30733
30734         stpncpy: Fix C++ test error on mingw.
30735         * lib/string.in.h (stpncpy): Use modern idiom.
30736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30737         function is missing and that it needs to be replaced.
30738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30739         REPLACE_STPNCPY.
30740         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30741
30742 2010-04-03  Bruno Haible  <bruno@clisp.org>
30743
30744         sys_stat: Fix C++ test error on mingw.
30745         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30746         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30747
30748 2010-04-03  Bruno Haible  <bruno@clisp.org>
30749
30750         pty: Update doc.
30751         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30752
30753 2010-04-03  Bruno Haible  <bruno@clisp.org>
30754
30755         unistd: Fix C++ test error on mingw.
30756         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30757
30758 2010-04-03  Bruno Haible  <bruno@clisp.org>
30759
30760         Update doc regarding mingw.
30761         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30762         * doc/glibc-functions/login_tty.texi: Likewise.
30763         * doc/glibc-functions/forkpty.texi: Likewise.
30764
30765 2010-04-03  Bruno Haible  <bruno@clisp.org>
30766
30767         stdlib: Avoid compilation failure of c-strtold on mingw.
30768         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30769
30770 2010-04-03  Bruno Haible  <bruno@clisp.org>
30771
30772         locale: Make C++ tests work on Cygwin and mingw.
30773         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30774         cannot provide the function.
30775         Reported by Simon Josefsson.
30776
30777 2010-04-03  Bruno Haible  <bruno@clisp.org>
30778
30779         localename: Port to MacOS X 10.6.
30780         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30781         memory layout of the locales in MacOS X 10.6 as well.
30782         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30783
30784 2010-04-02  Bruno Haible  <bruno@clisp.org>
30785
30786         gnulib-tool: Ensure that long-running tests are executed last.
30787         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30788         running tests after the one for the other tests.
30789
30790 2010-04-02  Bruno Haible  <bruno@clisp.org>
30791
30792         gnulib-tool: Ensure the tests in the main directory are executed first.
30793         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30794         start with the current directory.
30795
30796 2010-04-02  Bruno Haible  <bruno@clisp.org>
30797
30798         Tests for module 'havelib', moved here from GNU gettext.
30799         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30800         modifications.
30801         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30802         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30803         with modifications.
30804         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30805         modifications.
30806         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30807         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30808         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30809         with modifications.
30810         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30811         with modifications.
30812         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30813         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30814         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30815         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30816         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30817         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30818         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30819         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30820         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30821         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30822         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30823         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30824         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30825         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30826         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30827         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30828         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30829         with modifications.
30830         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30831         with modifications.
30832         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30833         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30834         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30835         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30836         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30837         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30838         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30839         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30840         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30841         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30842         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30843         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30844         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30845         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30846         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30847         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30848         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30849         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30850         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30851         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30852         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30853         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30854         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30855         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30856         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30857         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30858         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30859         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30860         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30861         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30862         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30863         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30864         * tests/havelib/rpathx/rpathx.c: New file, from
30865         gettext/autoconf-lib-link.
30866         * tests/havelib/rpathx/Makefile.am: New file, from
30867         gettext/autoconf-lib-link.
30868         * tests/havelib/rpathx/configure.ac: New file, from
30869         gettext/autoconf-lib-link with modifications.
30870         * tests/havelib/rpathy/rpathy.c: New file, from
30871         gettext/autoconf-lib-link.
30872         * tests/havelib/rpathy/Makefile.am: New file, from
30873         gettext/autoconf-lib-link.
30874         * tests/havelib/rpathy/configure.ac: New file, from
30875         gettext/autoconf-lib-link with modifications.
30876         * tests/havelib/rpathz/rpathz.c: New file, from
30877         gettext/autoconf-lib-link.
30878         * tests/havelib/rpathz/Makefile.am: New file, from
30879         gettext/autoconf-lib-link.
30880         * tests/havelib/rpathz/configure.ac: New file, from
30881         gettext/autoconf-lib-link with modifications.
30882         * tests/havelib/rpathlx/usex.c: New file, from
30883         gettext/autoconf-lib-link.
30884         * tests/havelib/rpathlx/Makefile.am: New file, from
30885         gettext/autoconf-lib-link.
30886         * tests/havelib/rpathlx/configure.ac: New file, from
30887         gettext/autoconf-lib-link with modifications.
30888         * tests/havelib/rpathly/usey.c: New file, from
30889         gettext/autoconf-lib-link.
30890         * tests/havelib/rpathly/Makefile.am: New file, from
30891         gettext/autoconf-lib-link.
30892         * tests/havelib/rpathly/configure.ac: New file, from
30893         gettext/autoconf-lib-link with modifications.
30894         * tests/havelib/rpathlz/usez.c: New file, from
30895         gettext/autoconf-lib-link.
30896         * tests/havelib/rpathlz/Makefile.am: New file, from
30897         gettext/autoconf-lib-link.
30898         * tests/havelib/rpathlz/configure.ac: New file, from
30899         gettext/autoconf-lib-link with modifications.
30900         * tests/havelib/rpathlyx/usey.c: New file, from
30901         gettext/autoconf-lib-link.
30902         * tests/havelib/rpathlyx/Makefile.am: New file, from
30903         gettext/autoconf-lib-link.
30904         * tests/havelib/rpathlyx/configure.ac: New file, from
30905         gettext/autoconf-lib-link with modifications.
30906         * tests/havelib/rpathlzyx/usez.c: New file, from
30907         gettext/autoconf-lib-link.
30908         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30909         gettext/autoconf-lib-link.
30910         * tests/havelib/rpathlzyx/configure.ac: New file, from
30911         gettext/autoconf-lib-link with modifications.
30912         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30913         with modifications.
30914
30915 2010-04-02  Bruno Haible  <bruno@clisp.org>
30916
30917         gnulib-tool: Create distributed built sources also for the tests.
30918         * gnulib-tool (func_create_testdir): Also generate distributed built
30919         sources in the tests directory.
30920
30921 2010-04-02  Bruno Haible  <bruno@clisp.org>
30922
30923         gnulib-tool: Obey user's environment variables.
30924         * gnulib-tool (func_create_testdir): When creating built sources,
30925         respect the environment variables for autoconf, automake, etc. given by
30926         the user.
30927
30928 2010-04-02  Bruno Haible  <bruno@clisp.org>
30929
30930         gnulib-tool: Provide the value of --m4-base to modules.
30931         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30932         of gl_m4_base.
30933
30934 2010-04-02  Eric Blake  <eblake@redhat.com>
30935
30936         maint.mk: fix some fallout
30937         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30938         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30939
30940 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30941
30942         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30943         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30944         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30945         (sc_cast_of_x_alloc_return_value): Likewise.
30946         (sc_cast_of_alloca_return_value): Likewise.
30947         (sc_space_tab): Likewise.
30948         (sc_prohibit_atoi_atof): Likewise.
30949         (sc_prohibit_magic_number_exit): Likewise.
30950         (sc_error_exit_success): Likewise.
30951         (sc_file_system): Likewise.
30952         (sc_prohibit_have_config_h): Likewise.
30953         (sc_require_config_h): Likewise.
30954         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30955         (sc_obsolete_symbols): Likewise.
30956         (sc_changelog): Likewise.
30957         (sc_program_name): Likewise.
30958         (sc_the_the): Likewise.
30959         (sc_trailing_blank): Likewise.
30960         (sc_two_space_separator_in_usage): Likewise.
30961         (sc_useless_cpp_parens): Likewise.
30962         (sc_GPL_version): Likewise.
30963         (sc_GFDL_version): Likewise.
30964         (sc_texinfo_acronym): Likewise.
30965         (sc_prohibit_cvs_keyword): Likewise.
30966         (sc_prohibit_stat_st_blocks): Likewise.
30967         (sc_prohibit_S_IS_definition): Likewise.
30968         (sc_redundant_const): Likewise.
30969         (sc_makefile_TAB_only_indentation): Likewise.
30970         (sc_m4_quote_check): Likewise.
30971         (sc_makefile_path_separator_check): Likewise.
30972         (sc_copyright_check): Likewise.
30973         (sc_Wundef_boolean): Likewise.
30974         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30975
30976         maint.mk: match 0 or more whitespace-before-function-call '('
30977         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30978         that have zero or two-and-more spaces between the function name
30979         and the open parenthesis.
30980         (sc_error_message_warn_fatal): Likewise.
30981         (sc_error_message_uppercase): Likewise.
30982         (sc_error_message_period): Likewise.
30983
30984 2010-03-31  Eric Blake  <eblake@redhat.com>
30985
30986         maint.mk: check for [ as well as test
30987         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30988         Based on a libvirt report by Matthias Bolte.
30989
30990         gnumakefile: don't squelch _version output
30991         * top/GNUmakefile (_version): Create one-shot dependency rather
30992         than using $(shell) when version must be regenerated.
30993         (_autoreconf): Run verbosely, by default.
30994
30995         sys_time: avoid compiler warnings
30996         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30997         unconditional, fixing regression from 2010-03-29.
30998         Reported by Simon Josefsson.
30999
31000 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31001
31002         maint.mk: s/_header_without_use/_sc_header_without_use/
31003         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31004         (sc_prohibit_assert_without_use): Use the new name.
31005         (sc_prohibit_close_stream_without_use): Likewise.
31006         (sc_prohibit_getopt_without_use): Likewise.
31007         (sc_prohibit_quotearg_without_use): Likewise.
31008         (sc_prohibit_quote_without_use): Likewise.
31009         (sc_prohibit_long_options_without_use): Likewise.
31010         (sc_prohibit_inttostr_without_use): Likewise.
31011         (sc_prohibit_ignore_value_without_use): Likewise.
31012         (sc_prohibit_error_without_use): Likewise.
31013         (sc_prohibit_xalloc_without_use): Likewise.
31014         (sc_prohibit_hash_without_use): Likewise.
31015         (sc_prohibit_hash_pjw_without_use): Likewise.
31016         (sc_prohibit_safe_read_without_use): Likewise.
31017         (sc_prohibit_argmatch_without_use): Likewise.
31018         (sc_prohibit_canonicalize_without_use): Likewise.
31019         (sc_prohibit_root_dev_ino_without_use): Likewise.
31020         (sc_prohibit_openat_without_use): Likewise.
31021         (sc_prohibit_c_ctype_without_use): Likewise.
31022         (sc_prohibit_signal_without_use): Likewise.
31023         (sc_prohibit_intprops_without_use): Likewise.
31024
31025 2010-03-30  Eric Blake  <eblake@redhat.com>
31026
31027         maint: improve module indicators
31028         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31029         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31030         columns, and avoid extra macro expansion.
31031
31032         fdopendir: work around FreeBSD bug
31033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31034         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31035         * modules/dirent (Makefile.am): Substitute it.
31036         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31037         declaration.
31038         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31039         fix.
31040         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31041
31042 2010-03-29  Bruno Haible  <bruno@clisp.org>
31043
31044         Emit #pragma system_header after the inclusion guard, not before.
31045         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31046         guard that spans the entire file, not before. This enables an
31047         optimization in GCC's preprocessor.
31048         * lib/ctype.in.h: Likewise.
31049         * lib/dirent.in.h: Likewise.
31050         * lib/errno.in.h: Likewise.
31051         * lib/float.in.h: Likewise.
31052         * lib/getopt.in.h: Likewise.
31053         * lib/iconv.in.h: Likewise.
31054         * lib/langinfo.in.h: Likewise.
31055         * lib/locale.in.h: Likewise.
31056         * lib/math.in.h: Likewise.
31057         * lib/netdb.in.h: Likewise.
31058         * lib/netinet_in.in.h: Likewise.
31059         * lib/pty.in.h: Likewise.
31060         * lib/sched.in.h: Likewise.
31061         * lib/se-selinux.in.h: Likewise.
31062         * lib/search.in.h: Likewise.
31063         * lib/spawn.in.h: Likewise.
31064         * lib/stdarg.in.h: Likewise.
31065         * lib/stdint.in.h: Likewise.
31066         * lib/string.in.h: Likewise.
31067         * lib/strings.in.h: Likewise.
31068         * lib/sys_file.in.h: Likewise.
31069         * lib/sys_ioctl.in.h: Likewise.
31070         * lib/sys_time.in.h: Likewise.
31071         * lib/sys_times.in.h: Likewise.
31072         * lib/sys_utsname.in.h: Likewise.
31073         * lib/sys_wait.in.h: Likewise.
31074         * lib/sysexits.in.h: Likewise.
31075         * lib/wctype.in.h: Likewise.
31076
31077 2010-03-28  James Youngman  <jay@gnu.org>
31078
31079         save-cwd: don't leak a file descriptor when the caller execs.
31080         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31081         saved file descriptor.
31082         * modules/save-cwd (Depends-on): Depend on cloexec.
31083
31084 2010-03-29  Bruno Haible  <bruno@clisp.org>
31085
31086         Remove vestiges of fts-lgpl module.
31087         * lib/fts_.h: Assume GNULIB_FTS is 1.
31088         * lib/fts.c: Likewise.
31089         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31090
31091 2010-03-28  Bruno Haible  <bruno@clisp.org>
31092
31093         Fix definition of tests witness macro.
31094         * gnulib-tool (func_import): Fix definition of witness macro.
31095
31096 2010-03-28  Bruno Haible  <bruno@clisp.org>
31097
31098         Fix ioctl's protoype on glibc systems.
31099         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31100         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31101         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31102         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31103         signature. If not, arrange to replace the ioctl function.
31104         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31105         REPLACE_IOCTL.
31106         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31107         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31108         Reported by Ludovic Courtès <ludo@gnu.org>.
31109
31110 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31111
31112         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31113         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31114         made it so grep -r --include=GLOB* ... did not work.
31115
31116 2010-03-26  Jim Meyering  <meyering@redhat.com>
31117             Eric Blake  <eblake@redhat.com>
31118
31119         maint.mk: prohibit use of test's -o and -a operators
31120         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31121
31122 2010-03-28  Bruno Haible  <bruno@clisp.org>
31123
31124         Remove unused GNULIB_XYZ macro definitions.
31125         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31126         invocation.
31127
31128 2010-03-28  Bruno Haible  <bruno@clisp.org>
31129
31130         Mark privileged tests modules.
31131         * modules/idpriv-drop-tests (Status): New section.
31132         * modules/idpriv-droptemp-tests (Status): New section.
31133
31134 2010-03-28  Bruno Haible  <bruno@clisp.org>
31135
31136         Split C++ tests into separate tests modules.
31137         * modules/dirent-c++-tests: New file, extracted from
31138         modules/dirent-tests.
31139         * modules/dirent-tests: Depend on it.
31140         * modules/fcntl-h-c++-tests: New file, extracted from
31141         modules/fcntl-h-tests.
31142         * modules/fcntl-h-tests: Depend on it.
31143         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31144         * modules/glob-tests: Depend on it.
31145         * modules/iconv-h-c++-tests: New file, extracted from
31146         modules/iconv-h-tests.
31147         * modules/iconv-h-tests: Depend on it.
31148         * modules/langinfo-c++-tests: New file, extracted from
31149         modules/langinfo-tests.
31150         * modules/langinfo-tests: Depend on it.
31151         * modules/locale-c++-tests: New file, extracted from
31152         modules/locale-tests.
31153         * modules/locale-tests: Depend on it.
31154         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31155         * modules/math-tests: Depend on it.
31156         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31157         * modules/pty-tests: Depend on it.
31158         * modules/search-c++-tests: New file, extracted from
31159         modules/search-tests.
31160         * modules/search-tests: Depend on it.
31161         * modules/signal-c++-tests: New file, extracted from
31162         modules/signal-tests.
31163         * modules/signal-tests: Depend on it.
31164         * modules/spawn-c++-tests: New file, extracted from
31165         modules/spawn-tests.
31166         * modules/spawn-tests: Depend on it.
31167         * modules/stdio-c++-tests: New file, extracted from
31168         modules/stdio-tests.
31169         * modules/stdio-tests: Depend on it.
31170         * modules/stdlib-c++-tests: New file, extracted from
31171         modules/stdlib-tests.
31172         * modules/stdlib-tests: Depend on it.
31173         * modules/string-c++-tests: New file, extracted from
31174         modules/string-tests.
31175         * modules/string-tests: Depend on it.
31176         * modules/sys_ioctl-c++-tests: New file, extracted from
31177         modules/sys_ioctl-tests.
31178         * modules/sys_ioctl-tests: Depend on it.
31179         * modules/sys_select-c++-tests: New file, extracted from
31180         modules/sys_select-tests.
31181         * modules/sys_select-tests: Depend on it.
31182         * modules/sys_socket-c++-tests: New file, extracted from
31183         modules/sys_socket-tests.
31184         * modules/sys_socket-tests: Depend on it.
31185         * modules/sys_stat-c++-tests: New file, extracted from
31186         modules/sys_stat-tests.
31187         * modules/sys_stat-tests: Depend on it.
31188         * modules/sys_time-c++-tests: New file, extracted from
31189         modules/sys_time-tests.
31190         * modules/sys_time-tests: Depend on it.
31191         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31192         * modules/time-tests: Depend on it.
31193         * modules/unistd-c++-tests: New file, extracted from
31194         modules/unistd-tests.
31195         * modules/unistd-tests: Depend on it.
31196         * modules/wchar-c++-tests: New file, extracted from
31197         modules/wchar-tests.
31198         * modules/wchar-tests: Depend on it.
31199         * modules/wctype-c++-tests: New file, extracted from
31200         modules/wctype-tests.
31201         * modules/wctype-tests: Depend on it.
31202         Reported by Simon Josefsson.
31203
31204 2010-03-28  Bruno Haible  <bruno@clisp.org>
31205
31206         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31207         * gnulib-tool (func_exists_module): New function, extracted from
31208         func_verify_module.
31209         (func_verify_module): Use it.
31210         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31211         'foo' only if 'foo' exists.
31212         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31213         module.
31214
31215 2010-03-28  Bruno Haible  <bruno@clisp.org>
31216
31217         gnulib-tool: Add support for special categories of tests.
31218         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31219         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31220         (func_usage): Document them.
31221         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31222         inc_unportable_tests, inc_all_tests): New variables.
31223         (func_acceptable): Consider these variables.
31224         (func_modules_transitive_closure): Make it work when the 'Status' field
31225         consists of multiple words.
31226         (func_import): Store and restore the values of inc_cxx_tests,
31227         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31228         inc_all_tests in gnulib-comp.m4.
31229         (func_create_testdir): Set inc_all_tests to true.
31230         * doc/gnulib.texi (Extra tests modules): New section.
31231         Suggested by Jim Meyering.
31232
31233 2010-03-28  Bruno Haible  <bruno@clisp.org>
31234
31235         ansi-c++-opt: Allow turning off the C++ build by default.
31236         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31237         gl_CXX_CHOICE_DEFAULT_NO is defined.
31238         Requested by Eric Blake.
31239
31240 2010-03-28  Bruno Haible  <bruno@clisp.org>
31241
31242         unistd: Avoid #define replacements in C++ mode.
31243         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31244         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31245         setsockopt, shutdown, select): In C++, attach a warning to the function
31246         if possible, rather than #defining the symbol to a dysfunctional alias.
31247         Reported by John W. Eaton <jwe@gnu.org>.
31248
31249 2010-03-28  Bruno Haible  <bruno@clisp.org>
31250
31251         Fix link errors on mingw.
31252         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31253         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31254         $(LIBSOCKET).
31255         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31256         $(LIBSOCKET).
31257
31258 2010-03-28  Bruno Haible  <bruno@clisp.org>
31259             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31260
31261         lib-ignore: Determine different options for different compilers.
31262         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31263         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31264         Add comments.
31265         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31266         * NEWS: Mention the change.
31267
31268 2010-03-27  Bruno Haible  <bruno@clisp.org>
31269
31270         Remove unused GNULIB_XYZ macro definitions.
31271         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31272         * modules/fseek (configure.ac): Likewise.
31273         * modules/ioctl (configure.ac): Likewise.
31274         * modules/open (configure.ac): Likewise.
31275         * modules/stdlib-safer (configure.ac): Likewise.
31276
31277 2010-03-27  Bruno Haible  <bruno@clisp.org>
31278
31279         Add a remark about certain modules.
31280         * modules/malloc (Comment): New section.
31281         * modules/realloc (Comment): Likewise.
31282         * modules/sigpipe (Comment): Likewise.
31283
31284 2010-03-27  Bruno Haible  <bruno@clisp.org>
31285
31286         Resolve conflict between the two kinds of module indicators.
31287         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31288         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31289         * modules/canonicalize (configure.ac): Invoke
31290         gl_MODULE_INDICATOR_FOR_TESTS.
31291         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31292         GNULIB_XYZ.
31293         * tests/test-dirent-c++.cc: Likewise.
31294         * tests/test-dirent-safer.c: Likewise.
31295         * tests/test-dup2.c: Likewise.
31296         * tests/test-fchdir.c: Likewise.
31297         * tests/test-fcntl-h-c++.cc: Likewise.
31298         * tests/test-getopt.c: Likewise.
31299         * tests/test-getopt.h: Likewise.
31300         * tests/test-langinfo-c++.cc: Likewise.
31301         * tests/test-locale-c++.cc: Likewise.
31302         * tests/test-math-c++.cc: Likewise.
31303         * tests/test-pty-c++.cc: Likewise.
31304         * tests/test-search-c++.cc: Likewise.
31305         * tests/test-signal-c++.cc: Likewise.
31306         * tests/test-spawn-c++.cc: Likewise.
31307         * tests/test-stdio-c++.cc: Likewise.
31308         * tests/test-stdlib-c++.cc: Likewise.
31309         * tests/test-string-c++.cc: Likewise.
31310         * tests/test-sys_ioctl-c++.cc: Likewise.
31311         * tests/test-sys_select-c++.cc: Likewise.
31312         * tests/test-sys_socket-c++.cc: Likewise.
31313         * tests/test-sys_stat-c++.cc: Likewise.
31314         * tests/test-sys_time-c++.cc: Likewise.
31315         * tests/test-time-c++.cc: Likewise.
31316         * tests/test-unistd-c++.cc: Likewise.
31317         * tests/test-wchar-c++.cc: Likewise.
31318         * tests/uninorm/test-u8-nfc.c: Likewise.
31319         * tests/uninorm/test-u8-nfd.c: Likewise.
31320         * tests/uninorm/test-u8-nfkc.c: Likewise.
31321         * tests/uninorm/test-u8-nfkd.c: Likewise.
31322         * tests/uninorm/test-u16-nfc.c: Likewise.
31323         * tests/uninorm/test-u16-nfd.c: Likewise.
31324         * tests/uninorm/test-u16-nfkc.c: Likewise.
31325         * tests/uninorm/test-u16-nfkd.c: Likewise.
31326         * tests/uninorm/test-u32-nfc.c: Likewise.
31327         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31328         * tests/uninorm/test-u32-nfd.c: Likewise.
31329         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31330         * tests/uninorm/test-u32-nfkc.c: Likewise.
31331         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31332         * tests/uninorm/test-u32-nfkd.c: Likewise.
31333         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31334         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31335
31336 2010-03-27  Bruno Haible  <bruno@clisp.org>
31337
31338         Distinguish two kinds of module indicators.
31339         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31340         gl_MODULE_INDICATOR.
31341         (gl_MODULE_INDICATOR): New macro.
31342         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31343         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31344         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31345         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31346         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31347         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31348         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31349         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31350         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31351         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31352         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31353         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31355         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31356         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31357         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31358         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31359         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31360         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31361         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31362         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31363         * modules/cloexec (configure.ac): Likewise.
31364         * modules/getopt-gnu (configure.ac): Likewise.
31365         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31366         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31367         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31368         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31369
31370 2010-03-27  Bruno Haible  <bruno@clisp.org>
31371
31372         New module description field 'Comment'.
31373         * gnulib-tool: New option --extract-comment.
31374         (func_usage): Document it.
31375         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31376         (func_get_comment): New function.
31377         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31378
31379 2010-03-27  Bruno Haible  <bruno@clisp.org>
31380
31381         Addendum to 2010-02-07 commit.
31382         * gnulib-tool (func_usage): Document --extract-applicability option.
31383
31384 2010-03-27  Bruno Haible  <bruno@clisp.org>
31385
31386         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31387         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31388         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31389         rather than link errors.
31390
31391 2010-03-27  Bruno Haible  <bruno@clisp.org>
31392
31393         Avoid side effects from tests-related modules on the compilation of lib.
31394         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31395         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31396         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31397         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31398         macro.
31399         (func_import): Define a witness macro. Assign it a value that depends
31400         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31401         tests-related modules.
31402         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31403         Reported by Jim Meyering.
31404
31405 2010-03-27  Bruno Haible  <bruno@clisp.org>
31406
31407         Factorize common .m4 code.
31408         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31409         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31410         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31411         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31412         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31413         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31414         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31415         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31416         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31417         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31418         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31419         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31420         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31421         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31422         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31423         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31424         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31425         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31427         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31428         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31429         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31430         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31431         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31432         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31433         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31434         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31435         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31436         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31437         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31438         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31439         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31440
31441 2010-03-27  Bruno Haible  <bruno@clisp.org>
31442
31443         Fix a compilation error on Cygwin with g++ >= 4.3.
31444         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31445         if it is undefined or if we alias it to chmod.
31446         (lstat): Don't warn about the use of this function if it is undefined
31447         or if we alias it to stat.
31448         Reported by Simon Josefsson.
31449
31450 2010-03-27  Bruno Haible  <bruno@clisp.org>
31451
31452         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31453         * modules/getlogin (configure.ac): Update.
31454
31455         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31456         * modules/getlogin_r (configure.ac): Update.
31457
31458         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31459         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31460         * modules/inet_ntop (configure.ac): Update.
31461
31462         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31463         * modules/inet_pton (configure.ac): Update.
31464
31465         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31466         * modules/mbslen (configure.ac): Update.
31467
31468         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31469         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31470         * modules/forkpty (configure.ac): Update.
31471         * modules/openpty (configure.ac): Update.
31472
31473 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31474
31475         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31476         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31477
31478 2010-03-25  Eric Blake  <eblake@redhat.com>
31479
31480         maint: use pragma consistently across replacement headers
31481         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31482         * lib/dirent.in.h (system_header): Likewise.
31483         * lib/errno.in.h (system_header): Likewise.
31484         * lib/float.in.h (system_header): Likewise.
31485         * lib/getopt.in.h (system_header): Likewise.
31486         * lib/iconv.in.h (system_header): Likewise.
31487         * lib/inttypes.in.h (system_header): Likewise.
31488         * lib/langinfo.in.h (system_header): Likewise.
31489         * lib/locale.in.h (system_header): Likewise.
31490         * lib/math.in.h (system_header): Likewise.
31491         * lib/netdb.in.h (system_header): Likewise.
31492         * lib/netinet_in.in.h (system_header): Likewise.
31493         * lib/pty.in.h (system_header): Likewise.
31494         * lib/sched.in.h (system_header): Likewise.
31495         * lib/se-selinux.in.h (system_header): Likewise.
31496         * lib/search.in.h (system_header): Likewise.
31497         * lib/spawn.in.h (system_header): Likewise.
31498         * lib/stdarg.in.h (system_header): Likewise.
31499         * lib/stdint.in.h (system_header): Likewise.
31500         * lib/string.in.h (system_header): Likewise.
31501         * lib/strings.in.h (system_header): Likewise.
31502         * lib/sys_file.in.h (system_header): Likewise.
31503         * lib/sys_ioctl.in.h (system_header): Likewise.
31504         * lib/sys_socket.in.h (system_header): Likewise.
31505         * lib/sys_times.in.h (system_header): Likewise.
31506         * lib/sys_utsname.in.h (system_header): Likewise.
31507         * lib/sys_wait.in.h (system_header): Likewise.
31508         * lib/sysexits.in.h (system_header): Likewise.
31509         * lib/unistd.in.h (system_header): Likewise.
31510         * lib/wctype.in.h (system_header): Likewise.
31511
31512         arpa/inet: fix mingw compilation warning
31513         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31514         Reported by Matthew Bolte.
31515
31516 2010-03-25  Bruno Haible  <bruno@clisp.org>
31517
31518         Avoid collision between gnulib wrapper and libintl wrapper.
31519         * lib/printf.c (printf): Don't define if a printf wrapper is already
31520         defined in intl/printf.c.
31521         Reported by Michel Boaventura <michel@michelboaventura.com>.
31522
31523 2010-03-25  Bruno Haible  <bruno@clisp.org>
31524
31525         Use ANSI C.
31526         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31527
31528 2010-03-25  Bruno Haible  <bruno@clisp.org>
31529
31530         Minor formatting changes.
31531         * lib/acosl.c: Insert space before function argument list.
31532         * lib/argz.c: Likewise.
31533         * lib/asinl.c: Likewise.
31534         * lib/expl.c: Likewise.
31535         * lib/gen-uni-tables.c: Likewise.
31536         * lib/gettext.h: Likewise.
31537         * lib/glthread/lock.h: Likewise.
31538         * lib/tanl.c: Likewise.
31539         * lib/uniname/uniname.c: Likewise.
31540         * tests/test-idpriv-drop.c: Likewise.
31541         * tests/test-idpriv-droptemp.c: Likewise.
31542         * tests/test-lock.c: Likewise.
31543         * tests/test-tls.c: Likewise.
31544         * lib/argp-help.c: Insert space before function-like macro argument
31545         list.
31546         * lib/memcmp.c: Likewise.
31547         * tests/test-base64.c: Likewise.
31548         * lib/localename.c: Insert space before sizeof's argument list.
31549         * lib/safe-alloc.h: Likewise.
31550         * lib/file-set.h: Insert space before macro argument list.
31551         * tests/test-argp.c: Likewise.
31552         * lib/argp-namefrob.h: Insert space before function parameter list.
31553         * lib/getaddrinfo.c: Likewise.
31554         * lib/netdb.in.h: Likewise.
31555         * lib/parse-duration.h: Likewise.
31556         * lib/parse-duration.c: Likewise.
31557         * lib/poll.c: Likewise.
31558         * lib/select.c: Likewise.
31559         * lib/trim.h: Likewise.
31560         * tests/test-usleep.c: Likewise.
31561         * lib/ldexpl.c: Insert space before function parameter list and before
31562         function argument list.
31563         * lib/logl.c: Likewise.
31564         * lib/sqrtl.c: Likewise.
31565         * lib/trim.c: Likewise.
31566         * lib/cosl.c: Use GNU style indentation. Insert space before function
31567         argument list.
31568         * lib/sinl.c: Likewise.
31569         * lib/tsearch.c: Insert space after 'for'.
31570         Reported by Jim Meyering.
31571
31572 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31573
31574         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31575         config header before grepping, as it's not present before
31576         autoreconf/configure are run.  Reported by Simon Josefsson.
31577
31578 2010-03-23  Bruno Haible  <bruno@clisp.org>
31579
31580         pt_chown: Make it work with automake < 1.11.
31581         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31582         Reported by Simon Josefsson.
31583
31584 2010-03-23  Bruno Haible  <bruno@clisp.org>
31585
31586         pt_chown: Don't depend on GPLed modules.
31587         * lib/pt_chown.c: Don't include idpriv.h.
31588         (main): Don't drop privileges.
31589         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31590         Reported by Simon Josefsson.
31591
31592 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31593
31594         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31595         suggestions from karl@freefriends.org (Karl Berry).
31596
31597 2010-03-22  Eric Blake  <eblake@redhat.com>
31598
31599         gethostname: further tweaks
31600         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31601         are overriding gethostname.
31602         Suggested by Bruno Haible.
31603
31604 2010-03-21  Bruno Haible  <bruno@clisp.org>
31605
31606         Fix comments.
31607         * lib/forkpty.c (rpl_forkpty): Fix comment.
31608         * lib/openpty.c (rpl_openpty): Likewise.
31609         Reported by Eric Blake.
31610
31611 2010-03-22  Eric Blake  <eblake@redhat.com>
31612
31613         gethostname: fix build on mingw
31614         * lib/unistd.in.h (includes): Work around fact that mingw
31615         <winsock2.h> re-includes <unistd.h>, by avoiding any
31616         redeclarations if we are being included by <winsock2.h>.
31617         Reported by Matthias Bolte.
31618
31619 2010-03-21  Bruno Haible  <bruno@clisp.org>
31620
31621         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31622         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31623         modifications.
31624         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31625         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31626         provide the replacement.
31627         * modules/forkpty (Depends-on): Add openpty, login_tty.
31628         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31629         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31630         * doc/glibc-functions/forkpty.texi: More supported platforms.
31631         * config/srclist.txt: Add forkpty.c (commented).
31632
31633 2010-03-21  Bruno Haible  <bruno@clisp.org>
31634
31635         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31636         (Makefile.am): Verify that PTY_LIB is defined.
31637
31638         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31639
31640 2010-03-21  Bruno Haible  <bruno@clisp.org>
31641
31642         Tests for module 'login_tty'.
31643         * modules/login_tty-tests: New file.
31644         * tests/test-login_tty.c: New file.
31645
31646         New module 'login_tty'.
31647         * lib/login_tty.c: New file.
31648         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31649         * modules/login_tty: New file.
31650         * doc/glibc-functions/login_tty.texi: Mention the new module.
31651
31652 2010-03-21  Bruno Haible  <bruno@clisp.org>
31653
31654         login_tty: Documentation.
31655         * doc/glibc-functions/login_tty.texi: New file.
31656         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31657
31658 2010-03-21  Bruno Haible  <bruno@clisp.org>
31659
31660         pty: Consistent macro naming.
31661         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31662         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31663         * modules/pty (configure.ac): Update.
31664
31665 2010-03-21  Bruno Haible  <bruno@clisp.org>
31666
31667         Tests for openpty: Make stricter.
31668         * tests/test-openpty.c (main): Add test of canonical processing and
31669         erase.
31670         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31671
31672         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31673         * lib/openpty.c (openpty): New replacement function.
31674         * lib/pty.in.h: Include <termios.h>.
31675         (openpty): Update declaration. Add comments.
31676         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31677         is not declared, arrange to provide the replacement. Check for _getpty
31678         and posix_openpt.
31679         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31680         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31681         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31682         * modules/pty-tests (test_pty_c___LDADD): New variable.
31683         * doc/glibc-functions/openpty.texi: More supported platforms.
31684
31685 2010-03-21  Bruno Haible  <bruno@clisp.org>
31686
31687         setenv: Tweaks.
31688         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31689         the test program.
31690         * doc/posix-functions/setenv.texi: Update platforms list.
31691
31692 2010-03-21  Bruno Haible  <bruno@clisp.org>
31693
31694         New module 'unlockpt'.
31695         * lib/unlockpt.c: New file, from glibc with modifications.
31696         * m4/unlockpt.m4: New file.
31697         * modules/unlockpt: New file.
31698         * lib/stdlib.in.h (unlockpt): New declaration.
31699         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31700         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31701         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31702         HAVE_UNLOCKPT.
31703         * doc/posix-functions/unlockpt.texi: Mention the new module.
31704         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31705         * config/srclist.txt: Add unlockpt.c (commented).
31706
31707 2010-03-21  Jim Meyering  <meyering@redhat.com>
31708
31709         maint.mk: prohibit inclusion of "intprops.h" without use
31710         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31711
31712 2010-03-21  Bruno Haible  <bruno@clisp.org>
31713
31714         New module 'grantpt'.
31715         * lib/grantpt.c: New file, from glibc with modifications.
31716         * m4/grantpt.m4: New file.
31717         * modules/grantpt: New file.
31718         * lib/stdlib.in.h (grantpt): New declaration.
31719         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31720         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31721         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31722         HAVE_GRANTPT.
31723         * doc/posix-functions/grantpt.texi: Mention the new module.
31724         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31725         * config/srclist.txt: Add grantpt.c (commented).
31726
31727 2010-03-21  Bruno Haible  <bruno@clisp.org>
31728
31729         New module 'pt_chown'.
31730         * lib/pt_chown.c: New file, from glibc with modifications.
31731         * lib/pty-private.h: New file, from glibc with modifications.
31732         * modules/pt_chown: New file.
31733         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31734
31735 2010-03-21  Bruno Haible  <bruno@clisp.org>
31736
31737         Tests for module 'ptsname'.
31738         * modules/ptsname-tests: New file.
31739         * tests/test-ptsname.c: New file.
31740
31741         New module 'ptsname'.
31742         * lib/ptsname.c: New file, from glibc with modifications.
31743         * m4/ptsname.m4: New file.
31744         * modules/ptsname: New file.
31745         * lib/stdlib.in.h (ptsname): New declaration.
31746         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31747         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31748         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31749         HAVE_PTSNAME.
31750         * doc/posix-functions/ptsname.texi: Mention the new module.
31751         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31752         * config/srclist.txt: Add ptsname.c (commented).
31753
31754 2010-03-21  Bruno Haible  <bruno@clisp.org>
31755
31756         Tests for module 'ttyname_r'.
31757         * modules/ttyname_r-tests: New file.
31758         * tests/test-ttyname_r.c: New file.
31759
31760         New module 'ttyname_r'.
31761         * lib/ttyname_r.c: New file.
31762         * m4/ttyname_r.m4: New file.
31763         * modules/ttyname_r: New file.
31764         * lib/unistd.in.h (ttyname_r): New declaration.
31765         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31766         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31767         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31768         HAVE_TTYNAME_R.
31769         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31770         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31771
31772 2010-03-20  Bruno Haible  <bruno@clisp.org>
31773
31774         signal: Undefine macro definitions in C++ mode.
31775         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31776         sigfillset): Undefine macro definitions from the system header in C++
31777         mode.
31778         Reported by John W. Eaton <jwe@gnu.org>.
31779
31780 2010-03-20  Bruno Haible  <bruno@clisp.org>
31781
31782         Ensure no #include statements inside extern "C" { ... }.
31783         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31784         contain #include statements.
31785         * lib/time.in.h: Likewise.
31786
31787 2010-03-20  Bruno Haible  <bruno@clisp.org>
31788
31789         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31790         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31791         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31792         Reported by John W. Eaton <jwe@gnu.org>.
31793
31794 2010-03-20  Bruno Haible  <bruno@clisp.org>
31795
31796         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31797         Reported by Jim Meyering.
31798
31799 2010-03-20  Bruno Haible  <bruno@clisp.org>
31800
31801         pipe: Set errno upon failure.
31802         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31803         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31804         errno value in error message.
31805
31806 2010-03-20  Bruno Haible  <bruno@clisp.org>
31807             Jim Meyering  <meyering@redhat.com>
31808
31809         lchown: Avoid "unused variable" warning.
31810         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31811
31812 2010-03-20  Bruno Haible  <bruno@clisp.org>
31813
31814         Work around unlink() bug on MacOS X 10.5.6.
31815         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31816         attempting to unlink a parent directory.
31817         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31818         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31819         activate for the replacement function.
31820         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31821
31822 2010-03-20  Bruno Haible  <bruno@clisp.org>
31823
31824         Fix link errors on Solaris 8.
31825         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31826         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31827
31828 2010-03-19  Jim Meyering  <meyering@redhat.com>
31829
31830         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31831         The _LIBC implementation of build_range_exp correctly honors the
31832         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31833         However, the non-_LIBC implementation would ignore that syntax-bit
31834         flag and return REG_ERANGE unconditionally.
31835         This change makes it honor that flag.
31836         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31837         Make two pointer parameters "const".
31838         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31839         (parse_bracket_exp): Update caller.
31840
31841         regex.m4: correct the reversed range endpoint ([b-a]) test
31842         * m4/regex.m4: When requiring that [b-a] evoke failure,
31843         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31844         test pass once again for x86-based systems.
31845
31846 2010-03-19  Bruno Haible  <bruno@clisp.org>
31847
31848         scandir: Fix link error on Solaris 8.
31849         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31850         macros.
31851
31852 2010-03-19  Bruno Haible  <bruno@clisp.org>
31853
31854         getusershell: Fix documentation.
31855         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31856         module.
31857         * doc/glibc-functions/setusershell.texi: Likewise.
31858
31859         getusershell: Provide declaration, missing on Solaris 9.
31860         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31861         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31862         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31863         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31865         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31866         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31867         HAVE_GETUSERSHELL.
31868         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31869
31870 2010-03-19  Bruno Haible  <bruno@clisp.org>
31871
31872         wctype: Provide iswblank function.
31873         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31874         exists and is fine.
31875         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31876         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31877         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31878         * doc/posix-functions/iswblank.texi: Update.
31879
31880 2010-03-19  Bruno Haible  <bruno@clisp.org>
31881
31882         Tests of module 'pty' in C++ mode.
31883         * modules/pty-tests: New file.
31884         * tests/test-pty-c++.cc: New file.
31885         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31886
31887 2010-03-19  Eric Blake  <eblake@redhat.com>
31888
31889         logb: fix documentation
31890         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31891         1.5 declaration bug.
31892
31893         forkpty, openpty: prefer glibc's const-safe prototype
31894         * lib/forkpty.c (rpl_forkpty): New file.
31895         * lib/openpty.c (rpl_openpty): Likewise.
31896         * modules/forkpty (Files): Distribute it.
31897         * modules/openpty (Files): Likewise.
31898         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31899         check...
31900         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31901         replacement for for non-const BSD signature.
31902         * modules/pty (Makefile.am): Substitute witnesses.
31903         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31904         * tests/test-forkpty.c: Update signature check.
31905         * tests/test-openpty.c: Likewise.
31906         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31907         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31908
31909         forkpty, openpty: split functions into new modules
31910         * modules/pty (Makefile.am): Substitute new witnesses.
31911         (Libraries): Move library detection...
31912         * modules/forkpty: ...into new module.
31913         * modules/openpty: Another new module.
31914         * modules/pty-tests: Rename and split...
31915         * modules/forkpty-tests: ...to this...
31916         * modules/openpty-tests: ...and this.
31917         * tests/test-pty.c: Rename and split...
31918         * tests/test-forkpty.c: ...to this...
31919         * tests/test-openpty.c: ...and this.
31920         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31921         (gl_PTY): Split library searching...
31922         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31923         (gl_FORKPTY, gl_OPENPTY): New macros.
31924         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31925         * NEWS: Mention the split.
31926         * MODULES.html.sh (Misc): Document the modules.
31927         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31928         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31929
31930         pty: improve replacement header
31931         * lib/pty.in.h: New file.
31932         * modules/pty (Files): Ship it.
31933         (Makefile.am): Always build replacement.
31934         * m4/pty.m4: Rename...
31935         * m4/pty_h.m4: ...to this.
31936         (gl_PTY): Modernize setting of witness macros; update check of
31937         forkpty to take proper advantage of cache.
31938         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31939
31940         getopt: avoid compiler warning
31941         * lib/getopt.c (attribute_hidden): Remove unused macro.
31942
31943 2010-03-18  Bruno Haible  <bruno@clisp.org>
31944
31945         Fix link errors on Solaris 8.
31946         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31947         * modules/search-tests (test_search_c___LDADD): Likewise.
31948         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31949         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31950         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31951         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31952         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31953         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31954         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31955
31956 2010-03-18  Bruno Haible  <bruno@clisp.org>
31957
31958         Fix bug introduced on 2010-03-14.
31959         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31960         (gl_SPAWN_H): Require it.
31961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31962         Reported by Simon Josefsson.
31963
31964 2010-03-18  Bruno Haible  <bruno@clisp.org>
31965
31966         Fix typo introduced on 2009-12-31.
31967         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31968         posix_spawn_file_actions_adddup2.
31969
31970 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31971         and Eric Blake  <eblake@redhat.com>
31972
31973         test-vc-list-files-git: make more robust
31974         * tests/test-vc-list-files-git.sh: Unset problematic environment
31975         variables.  Chain commands together.
31976
31977 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31978
31979         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31980         `AC_CHECK_DECL' invocation.
31981
31982 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31983
31984         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31985         appears before executable statements. Suggested by Petr Sumbera
31986         <Petr.Sumbera@Sun.COM>.
31987
31988 2010-03-14  Bruno Haible  <bruno@clisp.org>
31989
31990         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31991         portability problems. Instead use a simpler test.
31992         (main): Check that invalid arguments are rejected only on Linux.
31993
31994 2010-03-14  Bruno Haible  <bruno@clisp.org>
31995
31996         Fix bug introduced on 2009-12-31.
31997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31998         gl_PREREQ_SYS_H_WINSOCK2 always.
31999         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32000         SYS_SOCKET_H variable.
32001         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32002         Update comments.
32003         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32004         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32005         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32006         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32007         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32008
32009 2010-03-14  Bruno Haible  <bruno@clisp.org>
32010
32011         Fix values returned by sinl, cosl.
32012         * lib/trigl.h: Add specification comments.
32013         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32014         that combines the values from the precomputed table with the values of
32015         the Chebyshev polynomials.
32016
32017 2010-03-14  Bruno Haible  <bruno@clisp.org>
32018
32019         Fix compilation error when modules 'posix_spawn[p]' are not used.
32020         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32022
32023 2010-03-14  Bruno Haible  <bruno@clisp.org>
32024
32025         Fix compilation error on mingw when module 'time_r' is not used.
32026         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32027         is 1.
32028         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32029         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32030         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32031         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32032
32033 2010-03-14  Bruno Haible  <bruno@clisp.org>
32034
32035         Fix compilation error with Sun C.
32036         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32037         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32038         instead of GCC specific ULONG_LONG_MAX.
32039         * lib/xstrtoll.c: Likewise.
32040         * lib/xstrtoull.c: Likewise.
32041
32042 2010-03-13  Bruno Haible  <bruno@clisp.org>
32043
32044         Allow the user to disable C++ code and tests.
32045         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32046         (gl_PROG_ANSI_CXX): Require it.
32047
32048 2010-03-13  Bruno Haible  <bruno@clisp.org>
32049
32050         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32051         cases.
32052
32053 2010-03-13  Bruno Haible  <bruno@clisp.org>
32054
32055         Test that gnulib does not break the standard C++ headers.
32056         * tests/test-locale-c++2.cc: New file.
32057         * modules/locale-tests (Files): Add it.
32058         (Makefile.am): Compile it for test-locale-c++.
32059         * tests/test-math-c++2.cc: New file.
32060         * modules/math-tests (Files): Add it.
32061         (Makefile.am): Compile it for test-math-c++.
32062         * tests/test-signal-c++2.cc: New file.
32063         * modules/signal-tests (Files): Add it.
32064         (Makefile.am): Compile it for test-signal-c++.
32065         * tests/test-stdio-c++2.cc: New file.
32066         * modules/stdio-tests (Files): Add it.
32067         (Makefile.am): Compile it for test-stdio-c++.
32068         * tests/test-stdlib-c++2.cc: New file.
32069         * modules/stdlib-tests (Files): Add it.
32070         (Makefile.am): Compile it for test-stdlib-c++.
32071         * tests/test-string-c++2.cc: New file.
32072         * modules/string-tests (Files): Add it.
32073         (Makefile.am): Compile it for test-string-c++.
32074         * tests/test-time-c++2.cc: New file.
32075         * modules/time-tests (Files): Add it.
32076         (Makefile.am): Compile it for test-time-c++.
32077         Reported by John W. Eaton <jwe@gnu.org>.
32078
32079 2010-03-13  Bruno Haible  <bruno@clisp.org>
32080
32081         * gnulib-tool (func_usage): Clarify which options are available for
32082         --create-testdir and --create-megatestdir.
32083
32084 2010-03-13  Bruno Haible  <bruno@clisp.org>
32085
32086         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32087         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32088         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32089         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32090         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32091         when appropriate.
32092         Reported by Jim Meyering.
32093
32094 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32095
32096         * gnulib-tool (func_import): Explain origin of code.
32097
32098 2010-03-12  Bruno Haible  <bruno@clisp.org>
32099
32100         Fix problem with automake's definition of CXXLINK.
32101         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32102         Reported by Simon Josefsson and Ludovic Courtès.
32103
32104 2010-03-12  Bruno Haible  <bruno@clisp.org>
32105
32106         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32107         stable releases.
32108
32109 2010-03-11  Bruno Haible  <bruno@clisp.org>
32110
32111         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32112         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32113         whether the system provides one variant or multiple variants of the
32114         function.
32115         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32116         C++ compilers.
32117         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32118         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32119         Reported by Jim Meyering.
32120
32121 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32122
32123         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32124
32125 2010-03-08  Bruno Haible  <bruno@clisp.org>
32126
32127         gnulib-tool: Add support for --libtool in --create-testdir.
32128         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32129         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32130
32131 2010-03-08  Eric Blake  <eblake@redhat.com>
32132
32133         gnulib-tool.texi: mention possibility of git submodule
32134         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32135         submodules.
32136         * doc/.gitignore: Ignore another generated file.
32137
32138 2010-03-08  Karl Berry  <karl@gnu.org>
32139
32140         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32141         of committing gnulib files while skipping others.
32142
32143 2010-03-07  Bruno Haible  <bruno@clisp.org>
32144
32145         Tests of module 'wctype' in C++ mode.
32146         * tests/test-wctype-c++.cc: New file.
32147         * modules/wctype-tests (Files): Add it and tests/signature.h.
32148         (Depends-on): Add ansi-c++-opt.
32149         (Makefile.am): Arrange to compile and run test-wctype-c++.
32150
32151         Tests of module 'wchar' in C++ mode.
32152         * tests/test-wchar-c++.cc: New file.
32153         * modules/wchar-tests (Files): Add it and tests/signature.h.
32154         (Depends-on): Add ansi-c++-opt.
32155         (Makefile.am): Arrange to compile and run test-wchar-c++.
32156         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32157         gl_MODULE_INDICATOR.
32158
32159         Tests of module 'unistd' in C++ mode.
32160         * tests/test-unistd-c++.cc: New file.
32161         * modules/unistd-tests (Files): Add it and tests/signature.h.
32162         (Depends-on): Add ansi-c++-opt.
32163         (Makefile.am): Arrange to compile and run test-unistd-c++.
32164         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32165         gl_MODULE_INDICATOR.
32166
32167         Tests of module 'time' in C++ mode.
32168         * tests/test-time-c++.cc: New file.
32169         * modules/time-tests (Files): Add it and tests/signature.h.
32170         (Depends-on): Add ansi-c++-opt.
32171         (Makefile.am): Arrange to compile and run test-time-c++.
32172         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32173
32174         Tests of module 'sys_time' in C++ mode.
32175         * tests/test-sys_time-c++.cc: New file.
32176         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32177         (Depends-on): Add ansi-c++-opt.
32178         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32179         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32180         gl_MODULE_INDICATOR.
32181
32182         Tests of module 'sys_stat' in C++ mode.
32183         * tests/test-sys_stat-c++.cc: New file.
32184         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32185         (Depends-on): Add ansi-c++-opt.
32186         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32187         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32188         gl_MODULE_INDICATOR.
32189
32190         Tests of module 'sys_socket' in C++ mode.
32191         * tests/test-sys_socket-c++.cc: New file.
32192         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32193         (Depends-on): Add ansi-c++-opt.
32194         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32195         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32196         gl_MODULE_INDICATOR.
32197
32198         Tests of module 'sys_select' in C++ mode.
32199         * tests/test-sys_select-c++.cc: New file.
32200         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32201         (Depends-on): Add ansi-c++-opt.
32202         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32203         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32204         gl_MODULE_INDICATOR.
32205
32206         Tests of module 'sys_ioctl' in C++ mode.
32207         * tests/test-sys_ioctl-c++.cc: New file.
32208         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32209         (Depends-on): Add ansi-c++-opt.
32210         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32211         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32212         gl_MODULE_INDICATOR.
32213
32214         Tests of module 'string' in C++ mode.
32215         * tests/test-string-c++.cc: New file.
32216         * modules/string-tests (Files): Add it and tests/signature.h.
32217         (Depends-on): Add ansi-c++-opt.
32218         (Makefile.am): Arrange to compile and run test-string-c++.
32219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32220         gl_MODULE_INDICATOR.
32221
32222         Tests of module 'stdlib' in C++ mode.
32223         * tests/test-stdlib-c++.cc: New file.
32224         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32225         (Depends-on): Add ansi-c++-opt.
32226         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32227         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32228         gl_MODULE_INDICATOR.
32229
32230         Tests of module 'stdio' in C++ mode.
32231         * tests/test-stdio-c++.cc: New file.
32232         * modules/stdio-tests (Files): Add it and tests/signature.h.
32233         (Depends-on): Add ansi-c++-opt.
32234         (Makefile.am): Arrange to compile and run test-stdio-c++.
32235         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32236         gl_MODULE_INDICATOR.
32237
32238         Tests of module 'spawn' in C++ mode.
32239         * tests/test-spawn-c++.cc: New file.
32240         * modules/spawn-tests (Files): Add it and tests/signature.h.
32241         (Depends-on): Add ansi-c++-opt.
32242         (Makefile.am): Arrange to compile and run test-spawn-c++.
32243         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32244         gl_MODULE_INDICATOR.
32245
32246         Tests of module 'signal' in C++ mode.
32247         * tests/test-signal-c++.cc: New file.
32248         * modules/signal-tests (Files): Add it and tests/signature.h.
32249         (Depends-on): Add ansi-c++-opt.
32250         (Makefile.am): Arrange to compile and run test-signal-c++.
32251         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32252         gl_MODULE_INDICATOR.
32253
32254         Tests of module 'search' in C++ mode.
32255         * tests/test-search-c++.cc: New file.
32256         * modules/search-tests (Files): Add it and tests/signature.h.
32257         (Depends-on): Add ansi-c++-opt.
32258         (Makefile.am): Arrange to compile and run test-search-c++.
32259         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32260         gl_MODULE_INDICATOR.
32261
32262         Tests of module 'math' in C++ mode.
32263         * tests/test-math-c++.cc: New file.
32264         * modules/math-tests (Files): Add it and tests/signature.h.
32265         (Depends-on): Add ansi-c++-opt.
32266         (Makefile.am): Arrange to compile and run test-math-c++.
32267         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32268
32269         Tests of module 'locale' in C++ mode.
32270         * tests/test-locale-c++.cc: New file.
32271         * modules/locale-tests (Files): Add it and tests/signature.h.
32272         (Depends-on): Add ansi-c++-opt.
32273         (Makefile.am): Arrange to compile and run test-locale-c++.
32274         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32275         gl_MODULE_INDICATOR.
32276
32277         Tests of module 'langinfo' in C++ mode.
32278         * tests/test-langinfo-c++.cc: New file.
32279         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32280         (Depends-on): Add ansi-c++-opt.
32281         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32282         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32283         gl_MODULE_INDICATOR.
32284
32285         Tests of module 'iconv-h' in C++ mode.
32286         * tests/test-iconv-h-c++.cc: New file.
32287         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32288         (Depends-on): Add ansi-c++-opt.
32289         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32290
32291         Tests of module 'glob' in C++ mode.
32292         * tests/test-glob-c++.cc: New file.
32293         * modules/glob-tests (Files): Add it.
32294         (Depends-on): Add ansi-c++-opt.
32295         (Makefile.am): Arrange to compile and run test-glob-c++.
32296
32297         Tests of module 'fcntl-h' in C++ mode.
32298         * tests/test-fcntl-h-c++.cc: New file.
32299         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32300         (Depends-on): Add ansi-c++-opt.
32301         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32302         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32303         gl_MODULE_INDICATOR.
32304
32305         Tests of module 'dirent' in C++ mode.
32306         * tests/test-dirent-c++.cc: New file.
32307         * modules/dirent-tests (Files): Add it and tests/signature.h.
32308         (Depends-on): Add ansi-c++-opt.
32309         (Makefile.am): Arrange to compile and run test-dirent-c++.
32310         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32311         gl_MODULE_INDICATOR.
32312
32313         New module 'ansi-c++-opt'.
32314         * modules/ansi-c++-opt: New file.
32315         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32316
32317         Document C++ namespace mode.
32318         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32319
32320         wctype: Avoid #define replacements in C++ mode.
32321         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32322         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32323         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32324         In C++, define a namespaced alias symbol.
32325         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32326         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32327         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32328         rule.
32329
32330         wchar: Avoid #define replacements in C++ mode.
32331         * lib/wchar.in.h: Include c++defs.h.
32332         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32333         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32334         symbol.
32335         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32336         * modules/wchar (Depends-on): Add c++defs.
32337         (Makefile.am): Update wchar.h rule.
32338
32339         unistd: Avoid #define replacements in C++ mode.
32340         * lib/unistd.in.h: Include c++defs.h.
32341         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32342         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32343         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32344         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32345         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32346         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32347         symbol.
32348         (environ): Update.
32349         * modules/unistd (Depends-on): Add c++defs.
32350         (Makefile.am): Update unistd.h rule.
32351
32352         time: Avoid #define replacements in C++ mode.
32353         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32354         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32355         define a namespaced alias symbol.
32356         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32357         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32358         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32359         * modules/time (Depends-on): Add c++defs, warn-on-use.
32360         (Makefile.am): Update time.h rule.
32361         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32362         * modules/nanosleep (configure.ac): Likewise.
32363         * modules/strptime (configure.ac): Likewise.
32364         * modules/timegm (configure.ac): Likewise.
32365
32366         sys_time: Avoid #define replacements in C++ mode.
32367         * lib/sys_time.in.h: Include c++defs.h.
32368         (gettimeofday): In C++, define a namespaced alias symbol.
32369         * modules/sys_time (Depends-on): Add c++defs.
32370         (Makefile.am): Update sys/time.h rule.
32371
32372         sys_stat: Avoid #define replacements in C++ mode.
32373         * lib/sys_stat.in.h: Include c++defs.h.
32374         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32375         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32376         namespaced alias symbol.
32377         In C++, define a namespaced alias symbol.
32378         * modules/sys_stat (Depends-on): Add c++defs.
32379         (Makefile.am): Update sys/stat.h rule.
32380
32381         sys_socket: Avoid #define replacements in C++ mode.
32382         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32383         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32384         definitions also when the system has a <sys/socket.h>.
32385         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32386         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32387         In C++, define a namespaced alias symbol.
32388         * modules/sys_socket (Depends-on): Add c++defs.
32389         (Makefile.am): Update sys/socket.h rule.
32390
32391         sys_select: Avoid #define replacements in C++ mode.
32392         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32393         definitions also when the system has a <sys/select.h>.
32394         (select): In C++, define a namespaced alias symbol.
32395         * modules/sys_select (Depends-on): Add c++defs.
32396         (Makefile.am): Update sys/select.h rule.
32397
32398         sys_ioctl: Avoid #define replacements in C++ mode.
32399         * lib/sys_ioctl.in.h: Include c++defs.h.
32400         (ioctl): In C++, define a namespaced alias symbol.
32401         * modules/sys_ioctl (Depends-on): Add c++defs.
32402         (Makefile.am): Update sys/ioctl.h rule.
32403
32404         string: Avoid #define replacements in C++ mode.
32405         * lib/string.in.h: Include c++defs.h.
32406         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32407         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32408         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32409         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32410         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32411         * modules/string (Depends-on): Add c++defs.
32412         (Makefile.am): Update string.h rule.
32413
32414         stdlib: Avoid #define replacements in C++ mode.
32415         * lib/stdlib.in.h: Include c++defs.h.
32416         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32417         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32418         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32419         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32420         symbol.
32421         * modules/stdlib (Depends-on): Add c++defs.
32422         (Makefile.am): Update stdlib.h rule.
32423
32424         stdio: Avoid #define replacements in C++ mode.
32425         * lib/stdio.in.h: Include c++defs.h.
32426         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32427         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32428         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32429         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32430         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32431         namespaced alias symbol.
32432         * modules/stdio (Depends-on): Add c++defs.
32433         (Makefile.am): Update stdio.h rule.
32434
32435         spawn: Avoid #define replacements in C++ mode.
32436         * lib/spawn.in.h: Include c++defs.h.
32437         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32438         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32439         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32440         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32441         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32442         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32443         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32444         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32445         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32446         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32447         In C++, define a namespaced alias symbol.
32448         * modules/spawn (Depends-on): Add c++defs.
32449         (Makefile.am): Update spawn.h rule.
32450
32451         signal: Avoid #define replacements in C++ mode.
32452         * lib/signal.in.h: Include c++defs.h.
32453         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32454         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32455         namespaced alias symbol.
32456         * modules/signal (Depends-on): Add c++defs.
32457         (Makefile.am): Update signal.h rule.
32458
32459         search: Avoid #define replacements in C++ mode.
32460         * lib/search.in.h: Include c++defs.h.
32461         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32462         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32463         symbol.
32464         * modules/search (Depends-on): Add c++defs.
32465         (Makefile.am): Update search.h rule.
32466
32467         math: Avoid #define replacements in C++ mode.
32468         * lib/math.in.h: Include c++defs.h.
32469         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32470         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32471         trunc, truncl): In C++, define a namespaced alias symbol.
32472         * modules/math (Depends-on): Add c++defs.
32473         (Makefile.am): Update math.h rule.
32474
32475         locale: Avoid #define replacements in C++ mode.
32476         * lib/locale.in.h: Include c++defs.h.
32477         (duplocale): In C++, define a namespaced alias symbol.
32478         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32479         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32480         * modules/locale (Depends-on): Add c++defs.
32481         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32482
32483         langinfo: Avoid #define replacements in C++ mode.
32484         * lib/langinfo.in.h: Include c++defs.h.
32485         (nl_langinfo): In C++, define a namespaced alias symbol.
32486         * modules/langinfo (Depends-on): Add c++defs.
32487         (Makefile.am): Update langinfo.h rule.
32488
32489         iconv-h: Avoid #define replacements in C++ mode.
32490         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32491         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32492         symbol.
32493         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32494         whenever iconv is present.
32495         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32496         (Makefile.am): Update iconv.h rule.
32497
32498         glob: Avoid #define replacements in C++ mode.
32499         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32500         (_gl_glob_errfunc_fn): New type.
32501         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32502         symbol.
32503         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32504         (Makefile.am): Update glob.h rule.
32505
32506         fcntl-h: Avoid #define replacements in C++ mode.
32507         * lib/fcntl.in.h: Include c++defs.h.
32508         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32509         * modules/fcntl-h (Depends-on): Add c++defs.
32510         (Makefile.am): Update fcntl.h rule.
32511
32512         dirent: Avoid #define replacements in C++ mode.
32513         * lib/dirent.in.h: Include c++defs.h.
32514         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32515         namespaced alias symbol.
32516         (dirfd): Update declaration.
32517         * modules/dirent (Depends-on): Add c++defs.
32518         (Makefile.am): Update dirent.h rule.
32519
32520         ctype: Make it usable in C++ code.
32521         * lib/ctype.in.h: Include c++defs.h.
32522         (isblank): Declare as extern "C".
32523         * modules/ctype (Depends-on): Add c++defs.
32524         (Makefile.am): Update ctype.h rule.
32525
32526         New module 'c++defs'.
32527         * modules/c++defs: New file.
32528         * build-aux/c++defs.h: New file.
32529         Reported by John W. Eaton <jwe@gnu.org>.
32530
32531 2010-03-07  Bruno Haible  <bruno@clisp.org>
32532
32533         logb: Provide missing declaration for Cygwin.
32534         * lib/math.in.h (logb): New declaration.
32535         * m4/logb.m4: New file.
32536         * modules/logb (Files): Add m4/logb.m4.
32537         (Depends-on): Add math.
32538         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32539         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32541         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32542         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32543
32544 2010-03-07  Bruno Haible  <bruno@clisp.org>
32545
32546         Fix test-cond link error.
32547         * tests/test-cond.c: Include <stdio.h>.
32548
32549 2010-03-07  Bruno Haible  <bruno@clisp.org>
32550
32551         Fix test-dirent-safer link error.
32552         * modules/dirent-safer-tests (Makefile.am): Define
32553         test_dirent_safer_LDADD.
32554
32555 2010-03-07  Bruno Haible  <bruno@clisp.org>
32556
32557         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32558         among default module list.
32559
32560 2010-03-07  Bruno Haible  <bruno@clisp.org>
32561
32562         Fix link error on platforms with GNU libiconv.
32563         * modules/unistr/u8-strcoll-tests (Makefile): Define
32564         test_u8_strcoll_LDADD.
32565         * modules/unistr/u16-strcoll-tests (Makefile): Define
32566         test_u16_strcoll_LDADD.
32567         * modules/unistr/u32-strcoll-tests (Makefile): Define
32568         test_u32_strcoll_LDADD.
32569
32570 2010-03-07  Bruno Haible  <bruno@clisp.org>
32571
32572         Use POSIX declarations for socket functions.
32573         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32574         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32575         rpl_sendto): Change declaration to match POSIX.
32576         * lib/connect.c (rpl_connect): Likewise.
32577         * lib/accept.c (rpl_accept): Likewise.
32578         * lib/bind.c (rpl_bind): Likewise.
32579         * lib/getpeername.c (rpl_getpeername): Likewise.
32580         * lib/getsockname.c (rpl_getsockname): Likewise.
32581         * lib/recv.c (rpl_recv): Likewise.
32582         * lib/send.c (rpl_send): Likewise.
32583         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32584         * lib/sendto.c (rpl_sendto): Likewise.
32585
32586 2010-03-06  Bruno Haible  <bruno@clisp.org>
32587
32588         Clarify access, euidaccess, faccessat.
32589         * doc/posix-functions/faccessat.texi: Mention security problem under
32590         "Other problems", not "Portability problems".
32591         * doc/posix-functions/access.texi: Likewise. Mention a related security
32592         problem.
32593         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32594         * lib/euidaccess.c: Add comments about platforms.
32595         * lib/unistd.in.h (access, euidaccess): Add warnings.
32596
32597 2010-03-07  Bruno Haible  <bruno@clisp.org>
32598
32599         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32600         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32601         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32602         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32603         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32604         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32605         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32606         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32607         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32608         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32609         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32610         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32611         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32612         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32613         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32614         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32615         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32616         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32617         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32618         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32619         Likewise.
32620         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32621         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32622         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32623         Likewise.
32624         * tests/test-spawn.c (main): Make it work when
32625         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32626
32627 2010-03-07  Bruno Haible  <bruno@clisp.org>
32628
32629         Fix incorrect Makefile.am generation in German locale.
32630         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32631         Execute sed command with character range in C locale.
32632
32633 2010-03-06  Bruno Haible  <bruno@clisp.org>
32634
32635         Tests for module 'iconv-h'.
32636         * modules/iconv-h-tests: New file.
32637         * tests/test-iconv-h.c: New file.
32638
32639         New module 'iconv-h'.
32640         * modules/iconv-h: New file.
32641         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32642         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32643         (configure.ac): Remove gl_ICONV_H.
32644         (Makefile.am): Remove rule for iconv.h.
32645
32646 2010-03-06  Bruno Haible  <bruno@clisp.org>
32647
32648         More consistent naming of *.m4 files.
32649         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32650         * modules/wctype (Files): Update.
32651
32652         More consistent naming of *.m4 files.
32653         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32654         * modules/wchar (Files): Update.
32655
32656 2010-03-06  Jim Meyering  <meyering@redhat.com>
32657
32658         euidaccess: relax license to LGPLv2+
32659         * modules/euidaccess (License): Relax to LGPLv2+.
32660
32661 2010-03-06  Bruno Haible  <bruno@clisp.org>
32662
32663         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32664         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32665         (Makefile.am): Augment lib_SOURCES instead.
32666
32667 2010-03-04  Jim Meyering  <meyering@redhat.com>
32668
32669         utime: remove obsolete module
32670         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32671         unnecessary for years, and has been marked as obsolete for 10 months.
32672         * modules/utime: Remove file.
32673         * lib/utime.c: Remove file.
32674         * m4/utime.m4: Remove file.
32675         * m4/utimes-null.m4: Remove file.
32676         * doc/posix-functions/utime.texi (utime): Remove reference to
32677         the module.  Move the sole "fixed by gnulib" item into the
32678         "problems not fixed by Gnulib" list.
32679         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32680
32681 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32682
32683         * modules/exit (License): Relax license to LGPLv2+.
32684         (Status): Mark as obsolete.
32685         * NEWS: Mention deprecated 'exit' module.
32686         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32687         of now obsolete 'exit'.
32688
32689 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32690
32691         fts-lgpl: remove unused module
32692         * modules/fts-lgpl: Remove.
32693         * MODULES.html.sh (func_all_modules): Adjust.
32694         * check-module (find_included_lib_files): Adjust.
32695         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32696
32697 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32698
32699         copy-acl: enhance Solaris ACL error handling
32700         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32701         * lib/set-mode-acl.c (qset_acl): Likewise.
32702
32703 2010-03-02  Bruno Haible  <bruno@clisp.org>
32704
32705         spawn: Don't override the system defined values on FreeBSD 8.
32706         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32707         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32708         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32709         if HAVE_POSIX_SPAWN is 1.
32710         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32711
32712 2010-03-01  Bruno Haible  <bruno@clisp.org>
32713
32714         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32715         regarding Automake.
32716
32717 2010-02-25  Bruno Haible  <bruno@clisp.org>
32718
32719         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32720         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32721         setting, not afterwards.
32722         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32723
32724 2010-02-24  Eric Blake  <eblake@redhat.com>
32725
32726         bootstrap, git-version-gen: use timestamp
32727         * build-aux/git-version-gen (scriptversion): Force UTC.
32728         * build-aux/bootstrap (scriptversion): New variable.
32729
32730         bootstrap: allow older git
32731         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32732         older than 1.6.4.  Requested by the libvirt project.
32733
32734 2010-02-23  Eric Blake  <eblake@redhat.com>
32735
32736         warn-on-use: work with old autoconf
32737         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32738         AS_VAR semantics of autoconf 2.60.
32739         Reported by Bruno Haible.
32740
32741         bootstrap: improve some comments
32742         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32743         clarification comments.
32744
32745         gettimeofday: provide correct function
32746         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32747         when replacement is declared, otherwise provide gettimeofday.
32748         Reported by Michael Goffioul.
32749
32750 2010-02-23  Jim Meyering  <meyering@redhat.com>
32751
32752         lib-ignore: relax license to "unlimited", not LGPLv2+
32753         * modules/lib-ignore (License): Relax to "unlimited".
32754
32755 2010-02-23  Jim Meyering  <meyering@redhat.com>
32756
32757         lib-ignore: relax license to LGPLv2+
32758         * modules/lib-ignore (License): Relax to LGPLv2+.
32759
32760 2010-02-22  Eric Blake  <eblake@redhat.com>
32761
32762         lseek: avoid bash 3.2 broken pipe bug
32763         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32764         warning from bash 3.2.
32765         Reported by Ben Pfaff, with analysis from Bruno Haible.
32766
32767         bootstrap: support non-FSF copyright holder
32768         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32769         bootstrap.conf override of COPYRIGHT_HOLDER.
32770         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32771
32772         bootstrap: interoperate with gettext 0.14.1
32773         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32774
32775         bootstrap: allow for alternate submodule location
32776         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32777         hardcoding submodule location.
32778         (gnulib_mk): Allow direct use of Makefile.am.
32779
32780         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32781         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32782         rather than reconfiguring where the submodule points.
32783
32784         gettimeofday: restore support for platforms that lack function
32785         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32786         replacement if function is missing.
32787         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32788         * modules/sys_time (Makefile.am): Substitute it.
32789         * lib/sys_time.in.h (gettimeofday): Check it.
32790         Reported by Michael Goffioul.
32791
32792 2010-02-21  Bruno Haible  <bruno@clisp.org>
32793
32794         * lib/stdio.in.h (obstack_printf): Fix typo.
32795
32796 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32797
32798         vc-list-files: use bzr ls's -R option
32799         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32800         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32801
32802 2010-02-21  Jim Meyering  <meyering@redhat.com>
32803
32804         init.sh: fix EXEEXT shims to work also for names like test-prog
32805         * tests/init.sh: Re-exec a better shell, when needed.
32806         If the current shell lacks support for posix $(...), an init.sh-using
32807         test will now try to find a shell that supports that.  If EXEEXT is
32808         nonempty, we also require support for hyphen-in-alias-name and shell
32809         substitutions like ${var#glob}.  Failure to find such a shell results
32810         in a skipped test.
32811
32812 2010-02-21  Bruno Haible  <bruno@clisp.org>
32813
32814         Really work around around "broken pipe" error message from bash 3.2.
32815         * gnulib-tool (func_reset_sigpipe): Remove function.
32816         (echo): In bash 3.2, define to a function that uses printf.
32817         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32818
32819 2010-02-20  Bruno Haible  <bruno@clisp.org>
32820
32821         Restore support for automake 1.9.6 with autoconf 2.61.
32822         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32823         Reported by James Youngman <jay@gnu.org>.
32824
32825 2010-02-20  Bruno Haible  <bruno@clisp.org>
32826
32827         Improve *printf warning condition.
32828         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32829         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32830         and the function is overridden due to SIGPIPE emulation.
32831
32832 2010-02-20  Bruno Haible  <bruno@clisp.org>
32833
32834         * lib/stdio.in.h: Tweak comments.
32835
32836 2010-02-19  Bruno Haible  <bruno@clisp.org>
32837
32838         Make it easier to find modules. New gnulib-tool option '--find'.
32839         * gnulib-tool: New option --find.
32840         (func_usage): Document it.
32841         (func_sanitize_modulelist): New function, extracted from
32842         func_all_modules.
32843         (func_all_modules): Invoke it.
32844         * doc/gnulib-tool.texi (Which modules?): New node.
32845
32846 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32847
32848         * lib/sys_select.in.h: Provide select replacement even if
32849         sys/select.h exists on a system, for Interix.
32850
32851 2010-02-18  Jim Meyering  <meyering@redhat.com>
32852
32853         init.sh: don't use $(...) just yet
32854         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32855         to accommodate e.g., Solaris' /bin/sh.
32856
32857 2010-02-17  Bruno Haible  <bruno@clisp.org>
32858
32859         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32860         Reported by Ludovic Courtès <ludo@gnu.org>.
32861
32862 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32863
32864         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32865         linking with -lintl.
32866
32867 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32868
32869         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32870         if not provided by the system's netdb.h.  Reported by
32871         ludo@gnu.org (Ludovic Courtès).
32872
32873 2010-02-15  Jim Meyering  <meyering@redhat.com>
32874
32875         init.sh: improve portability and efficiency
32876         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32877         "dummy" in a for loop.
32878         Use '!', not '^' to select the complement of a character set used
32879         in a "case" statement.
32880         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32881         Suggestions from Eric Blake.
32882
32883         init.sh: automatically accommodate programs with the .exe suffix
32884         Automatically arrange for an invocation of "prog" to execute the
32885         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32886         may use the simpler "prog", yet still work when built on a system
32887         that requires specifying the added suffix.
32888         Do this by constructing a function named "prog" that invokes
32889         "prog.exe" for each .exe file in selected directories.
32890         * tests/init.sh (find_exe_basenames_): New function.
32891         (create_exe_shim_functions_): New function.
32892         (path_prepend_): Use it.
32893
32894         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32895         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32896         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32897
32898 2010-02-14  Jim Meyering  <meyering@redhat.com>
32899
32900         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32901         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32902         (sc_prohibit_hash_pjw_without_use): New rule.
32903
32904         maint.mk: allow the default upload destination dir to be overridden
32905         * top/maint.mk (upload_dest_dir_): Define with a default that
32906         preserves the status quo.
32907         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32908         Reported by Peter Simons.
32909
32910         maint.mk: prohibit inclusion of "hash.h" without_use
32911         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32912
32913 2010-02-10  Jim Meyering  <meyering@redhat.com>
32914
32915         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32916         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32917
32918 2010-02-09  Eric Blake  <ebb9@byu.net>
32919         and Bruno Haible  <bruno@clisp.org>
32920
32921         obstack-printf-posix: ensure declaration
32922         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32923         extracted from gl_FUNC_OBSTACK_PRINTF.
32924         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32925         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32926         Likewise.
32927         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32928         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32929         0.
32930
32931 2010-02-08  Bruno Haible  <bruno@clisp.org>
32932
32933         gnulib-tool: Fix typo in 2010-02-07 commit.
32934         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32935         Reported by Eric Blake.
32936
32937 2010-02-07  Bruno Haible  <bruno@clisp.org>
32938
32939         gnulib-tool: Fix up caching patches.
32940         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32941         option --no-cache. Use associative arrays when supported by the shell.
32942         (sed_comments): New variable.
32943         (modcache): Renamed from do_cache.
32944         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32945         abbreviate unnecessarily.
32946         (have_associative): New variable.
32947         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32948         way also for ksh and zsh.
32949         (func_init_sed_convert_to_cache_statements): New function, extracted
32950         from func_cache_lookup_module. Add support for associative arrays.
32951         Don't set the c_MODULE_cached variable here. Ignore all lines before
32952         the first field header. Remove only the final newline, not all trailing
32953         newlines. Support empty fields correctly. Limit the use of 'eval' to
32954         assignments.
32955         (func_get_description, func_get_status, func_get_notice,
32956         func_get_applicability, func_get_filelist, func_get_dependencies,
32957         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32958         func_get_automake_snippet, func_get_include_directive,
32959         func_get_link_directive, func_get_license, func_get_maintainer):
32960         Update documentation. List the unoptimized code first. Add support for
32961         associative arrays. Limit the use of 'eval' to assignments.
32962         (func_get_applicability): Undo stylistic pessimisations.
32963         (func_get_automake_snippet, func_get_include_directive): Reduce code
32964         duplication.
32965         (func_modules_transitive_closure, func_modules_add_dummy,
32966         func_modules_notice, func_modules_to_filelist, func_add_file,
32967         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32968         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32969         func_create_testdir, func_create_megatestdir): Update documentation.
32970
32971 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32972
32973         * gnulib-tool (func_cache_lookup_module): Store the module name
32974         belonging to the cache variable; error out if two different
32975         module names map to the same cache variable name.
32976
32977 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32978
32979         gnulib-tool: Make caching optional.
32980         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32981         Update matching short versions of --no-changelog.
32982         (func_usage): Update.
32983         (sed_extract_cache_prog): Renamed from ...
32984         (sed_extract_prog): ... this; revert to old extraction script.
32985         (func_get_description, func_get_status)
32986         (func_get_notice, func_get_applicability, func_get_filelist)
32987         (func_get_dependencies, func_get_autoconf_early_snippet)
32988         (func_get_autoconf_snippet, func_get_automake_snippet)
32989         (func_get_include_directive, func_get_link_directive)
32990         (func_get_license, func_get_maintainer): If $do_cache is false,
32991         use old, non-caching extraction scripts.
32992         Suggestion by Bruno Haible.
32993
32994 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32995
32996         gnulib-tool: cache module metainformation.
32997         * gnulib-tool (sed_extract_prog): Match newline before each
32998         header, and rewrite header to a shell variable suffix.
32999         (func_cache_var, func_cache_lookup_module): New functions,
33000         to turn a module name into a cache variable prefix, and to
33001         look up and cache module metainformation.
33002         (func_get_description, func_get_status)
33003         (func_get_notice, func_get_applicability, func_get_filelist)
33004         (func_get_dependencies, func_get_autoconf_early_snippet)
33005         (func_get_autoconf_snippet, func_get_automake_snippet)
33006         (func_get_include_directive, func_get_link_directive)
33007         (func_get_license, func_get_maintainer): Use
33008         func_cache_lookup_module.
33009
33010 2010-02-07  Bruno Haible  <bruno@clisp.org>
33011
33012         fnctl: Fix missing dependency.
33013         * modules/fcntl (Depends-on): Add getdtablesize.
33014         Reported by John W. Eaton <jwe@gnu.org>.
33015
33016 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33017
33018         Argp: fix recognition of short alias options.
33019
33020         * lib/argp-parse.c (convert_options): Fix improper use of
33021         `|' between character values.
33022         * tests/test-argp.c (group1_option): New alias option
33023         --read (-r).
33024         (group1_parser): Special handling for 'r'.
33025         (test15): New test case.
33026         (test_fun): Add test15.
33027         * tests/test-argp-2.sh: Update expected --help and --usage
33028         outputs.
33029
33030 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33031
33032         * tests/test-argp.c: Fix indentation.
33033
33034 2010-02-04  Eric Blake  <ebb9@byu.net>
33035
33036         gettimeofday: expose type of second argument
33037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33038         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33039         * tests/test-gettimeofday.c: Use it to silence warning.
33040         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33041         the issue.
33042
33043 2010-02-03  Jim Meyering  <meyering@redhat.com>
33044
33045         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33046         * lib/regcomp.c (TYPE_SIGNED): Define.
33047         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33048
33049         regcomp.c: avoid a new -Wshadow warning
33050         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33051
33052 2010-02-01  Jim Meyering  <meyering@redhat.com>
33053
33054         removing useless parentheses in cpp #define directives
33055         For motivation, see commit c0221df4, "define STREQ(a,b)
33056         consistently, removing useless parentheses"
33057         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33058         * lib/mountlist.c (MNT_IGNORE): Likewise.
33059         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33060
33061 2010-02-01  Eric Blake  <ebb9@byu.net>
33062
33063         sys_time: use link-warning
33064         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33065         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33066         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33067         * modules/sys_time (Depends-on): Add warn-on-use.
33068         (Makefile.am): Always build replacement.
33069         (configure.ac): Update substitutions.
33070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33071         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33072         bother with SYS_TIME_H.
33073         * modules/gettimeofday (configure.ac): Declare indicator.
33074         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33075         in use.
33076
33077         closein-tests: silence compiler warning
33078         * tests/test-closein.c (main): Ignore fread result.
33079         * modules/closein-tests (Depends-on): Add ignore-value.
33080
33081         tests: silence warning about system return
33082         * tests/test-areadlink-with-size.c (main): Ignore system result.
33083         * tests/test-areadlink.c (main): Likewise.
33084         * tests/test-areadlinkat-with-size.c (main): Likewise.
33085         * tests/test-areadlinkat.c (main): Likewise.
33086         * tests/test-canonicalize-lgpl.c (main): Likewise.
33087         * tests/test-canonicalize.c (main): Likewise.
33088         * tests/test-chown.c (main): Likewise.
33089         * tests/test-fchownat.c (main): Likewise.
33090         * tests/test-fdutimensat.c (main): Likewise.
33091         * tests/test-fstatat.c (main): Likewise.
33092         * tests/test-futimens.c (main): Likewise.
33093         * tests/test-lchown.c (main): Likewise.
33094         * tests/test-link.c (main): Likewise.
33095         * tests/test-linkat.c (main): Likewise.
33096         * tests/test-lstat.c (main): Likewise.
33097         * tests/test-mkdir.c (main): Likewise.
33098         * tests/test-mkdirat.c (main): Likewise.
33099         * tests/test-mkfifo.c (main): Likewise.
33100         * tests/test-mkfifoat.c (main): Likewise.
33101         * tests/test-mknod.c (main): Likewise.
33102         * tests/test-readlink.c (main): Likewise.
33103         * tests/test-remove.c (main): Likewise.
33104         * tests/test-rename.c (main): Likewise.
33105         * tests/test-renameat.c (main): Likewise.
33106         * tests/test-rmdir.c (main): Likewise.
33107         * tests/test-symlink.c (main): Likewise.
33108         * tests/test-symlinkat.c (main): Likewise.
33109         * tests/test-unlink.c (main): Likewise.
33110         * tests/test-unlinkat.c (main): Likewise.
33111         * tests/test-utimens.c (main): Likewise.
33112         * tests/test-utimensat.c (main): Likewise.
33113         * modules/areadlink-tests (Depends-on): Add ignore-value.
33114         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33115         * modules/areadlinkat-tests (Depends-on): Likewise.
33116         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33117         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33118         * modules/canonicalize-tests (Depends-on): Likewise.
33119         * modules/chown-tests (Depends-on): Likewise.
33120         * modules/fdutimensat-tests (Depends-on): Likewise.
33121         * modules/futimens-tests (Depends-on): Likewise.
33122         * modules/lchown-tests (Depends-on): Likewise.
33123         * modules/link-tests (Depends-on): Likewise.
33124         * modules/linkat-tests (Depends-on): Likewise.
33125         * modules/lstat-tests (Depends-on): Likewise.
33126         * modules/mkdir-tests (Depends-on): Likewise.
33127         * modules/mkfifo-tests (Depends-on): Likewise.
33128         * modules/mkfifoat-tests (Depends-on): Likewise.
33129         * modules/mknod-tests (Depends-on): Likewise.
33130         * modules/openat-tests (Depends-on): Likewise.
33131         * modules/readlink-tests (Depends-on): Likewise.
33132         * modules/remove-tests (Depends-on): Likewise.
33133         * modules/rename-tests (Depends-on): Likewise.
33134         * modules/renameat-tests (Depends-on): Likewise.
33135         * modules/rmdir-tests (Depends-on): Likewise.
33136         * modules/symlink-tests (Depends-on): Likewise.
33137         * modules/symlinkat-tests (Depends-on): Likewise.
33138         * modules/unlink-tests (Depends-on): Likewise.
33139         * modules/utimens-tests (Depends-on): Likewise.
33140         * modules/utimensat-tests (Depends-on): Likewise.
33141
33142 2010-01-31  Bruno Haible  <bruno@clisp.org>
33143
33144         Perform the same test for many <math.h> functions.
33145         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33146         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33147         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33148         of gl_MATHFUNC.
33149         * modules/acos (configure.ac): Likewise.
33150         * modules/asin (configure.ac): Likewise.
33151         * modules/atan (configure.ac): Likewise.
33152         * modules/atan2 (configure.ac): Likewise.
33153         * modules/cbrt (configure.ac): Likewise.
33154         * modules/copysign (configure.ac): Likewise.
33155         * modules/cos (configure.ac): Likewise.
33156         * modules/cosh (configure.ac): Likewise.
33157         * modules/erf (configure.ac): Likewise.
33158         * modules/erfc (configure.ac): Likewise.
33159         * modules/exp (configure.ac): Likewise.
33160         * modules/fmod (configure.ac): Likewise.
33161         * modules/hypot (configure.ac): Likewise.
33162         * modules/j0 (configure.ac): Likewise.
33163         * modules/j1 (configure.ac): Likewise.
33164         * modules/jn (configure.ac): Likewise.
33165         * modules/lgamma (configure.ac): Likewise.
33166         * modules/log (configure.ac): Likewise.
33167         * modules/log10 (configure.ac): Likewise.
33168         * modules/log1p (configure.ac): Likewise.
33169         * modules/pow (configure.ac): Likewise.
33170         * modules/remainder (configure.ac): Likewise.
33171         * modules/sin (configure.ac): Likewise.
33172         * modules/sinh (configure.ac): Likewise.
33173         * modules/tan (configure.ac): Likewise.
33174         * modules/tanh (configure.ac): Likewise.
33175         * modules/y0 (configure.ac): Likewise.
33176         * modules/y1 (configure.ac): Likewise.
33177         * modules/yn (configure.ac): Likewise.
33178         Suggested by Paolo Bonzini.
33179
33180 2010-01-31  Bruno Haible  <bruno@clisp.org>
33181
33182         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33183
33184 2010-01-31  Bruno Haible  <bruno@clisp.org>
33185
33186         Work around getdelim() bug on FreeBSD 8.0.
33187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33188         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33189         not work.
33190         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33191         is 1.
33192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33193         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33194         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33195         a non-zero size.
33196         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33197
33198 2010-01-31  Bruno Haible  <bruno@clisp.org>
33199
33200         Work around getline() bug on FreeBSD 8.0.
33201         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33202         and a non-zero size.
33203         * tests/test-getline.c (main): Likewise.
33204         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33205         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33206
33207 2010-01-28  Eric Blake  <ebb9@byu.net>
33208
33209         regex: fix build failure
33210         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33211         platforms.
33212
33213 2010-01-28  Jim Meyering  <meyering@redhat.com>
33214
33215         regex: do not ignore memory allocation failure
33216         * lib/regex_internal.c (create_cd_newstate): Detect
33217         re_node_set_init_copy failure.   Extracted from glibc commit
33218         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33219
33220         regex: sync more white-space changes from libc
33221         * lib/regex_internal.c: White-space only changes.
33222         * lib/regexec.c: Likewise.
33223
33224         regex: add many uses of __attribute_warn_unused_result__
33225         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33226         * lib/regexec.c: Likewise.
33227         Extracted from a messy glibc commit.
33228
33229         regcomp.c: spelling and merge-artifact from glibc
33230         * lib/regcomp.c: Merge remainder of glibc's
33231         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33232
33233         regcomp.c: sync white-space changes from glibc
33234         * lib/regcomp.c: Merge to accommodate white space
33235         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33236
33237         regcomp.c: do not ignore internal return values
33238         * lib/regcomp.c: Do not ignore internal return values.
33239         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33240         but without its white-space changes and spelling fixes.
33241
33242         regex_internal.h: define __attribute_warn_unused_result__
33243         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33244
33245         maint: add a syntax-check rule to check for vulnerable Makefile.in
33246         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33247
33248 2010-01-27  Jim Meyering  <meyering@redhat.com>
33249
33250         ncftpput-ftp: clean up spaces
33251         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33252         Remove trailing blanks.
33253
33254 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33255
33256         * build-aux/git-version-gen: Fix copyright statement.
33257         * build-aux/gnupload: Likewise.
33258         * tests/test-arcfour.c: Likewise.
33259         * tests/test-arctwo.c: Likewise.
33260         * tests/test-count-one-bits.c: Likewise.
33261         * tests/test-crc.c: Likewise.
33262         * tests/test-des.c: Likewise.
33263         * tests/test-gc-arcfour.c: Likewise.
33264         * tests/test-gc-arctwo.c: Likewise.
33265         * tests/test-gc-des.c: Likewise.
33266         * tests/test-gc-hmac-md5.c: Likewise.
33267         * tests/test-gc-hmac-sha1.c: Likewise.
33268         * tests/test-gc-md2.c: Likewise.
33269         * tests/test-gc-md4.c: Likewise.
33270         * tests/test-gc-md5.c: Likewise.
33271         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33272         * tests/test-gc-rijndael.c: Likewise.
33273         * tests/test-gc-sha1.c: Likewise.
33274         * tests/test-gc.c: Likewise.
33275         * tests/test-gethostname.c: Likewise.
33276         * tests/test-gettimeofday.c: Likewise.
33277         * tests/test-hash.c: Likewise.
33278         * tests/test-hmac-md5.c: Likewise.
33279         * tests/test-hmac-sha1.c: Likewise.
33280         * tests/test-md2.c: Likewise.
33281         * tests/test-md4.c: Likewise.
33282         * tests/test-md5.c: Likewise.
33283         * tests/test-memchr.c: Likewise.
33284         * tests/test-memchr2.c: Likewise.
33285         * tests/test-memcmp.c: Likewise.
33286         * tests/test-memmem.c: Likewise.
33287         * tests/test-memrchr.c: Likewise.
33288         * tests/test-rawmemchr.c: Likewise.
33289         * tests/test-read-file.c: Likewise.
33290         * tests/test-rijndael.c: Likewise.
33291         * tests/test-sockets.c: Likewise.
33292         * tests/test-strchrnul.c: Likewise.
33293         * tests/test-strstr.c: Likewise.
33294         * tests/test-strtod.c: Likewise.
33295         * build-aux/ncftpput-ftp: Likewise.
33296
33297 2010-01-26  Eric Blake  <ebb9@byu.net>
33298
33299         ignore-value: update recommended header name
33300         * modules/ignore-value (Include): Only use <> for headers that
33301         exist in glibc.
33302
33303 2010-01-26  Jim Meyering  <meyering@redhat.com>
33304
33305         test-userspec.c: avoid compiler warnings
33306         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33307         and "initialization discards qualifiers..." warnings.
33308         Put the first "uid" in its own scope, and make char* members "const".
33309
33310 2010-01-25  Bruno Haible  <bruno@clisp.org>
33311
33312         gnulib-tool: Make warning diagnostics consistent.
33313         * gnulib-tool (func_warning): New function.
33314         Use it everywhere where gnulib-tool produces output to stderr and it is
33315         not a fatal error.
33316
33317 2010-01-25  Bruno Haible  <bruno@clisp.org>
33318
33319         Fix test dependencies.
33320         * modules/xstrtol-tests (Depends-on): Add inttypes.
33321         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33322
33323 2010-01-25 Pádraig Brady <P@draigBrady.com>
33324
33325         syntax-check: detect incorrect boolean macro values in config.h
33326         * modules/maintainer-makefile (configure.ac): Parameterize the location
33327         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33328         The logic is from Eric Blake and the location indicated by Jim Meyering.
33329         Note the more natural CONFIG_HEADER name is prohibited by automake
33330         for backwards compatibility reasons.
33331         * top/maint.mk (sc_Wundef_boolean): New rule.
33332
33333 2010-01-25  Jim Meyering  <meyering@redhat.com>
33334
33335         bootstrap: detect MacOS 10.6's shasum, too
33336         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33337         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33338
33339 2010-01-23  Jim Meyering  <meyering@redhat.com>
33340
33341         xstrtoll: new module
33342         * modules/xstrtoll: New file.
33343         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33344         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33345         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33346         ./configure fails if you use this module and lack "long long".
33347         * modules/xstrtoll-tests: New module.
33348         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33349         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33350         new init.sh-based test framework.
33351
33352 2010-01-24  Bruno Haible  <bruno@clisp.org>
33353
33354         Tests for module 'yn'.
33355         * modules/yn-tests: New file.
33356         * tests/test-yn.c: New file.
33357
33358         Tests for module 'y1'.
33359         * modules/y1-tests: New file.
33360         * tests/test-y1.c: New file.
33361
33362         Tests for module 'y0'.
33363         * modules/y0-tests: New file.
33364         * tests/test-y0.c: New file.
33365
33366         Tests for module 'tanh'.
33367         * modules/tanh-tests: New file.
33368         * tests/test-tanh.c: New file.
33369
33370         Tests for module 'tan'.
33371         * modules/tan-tests: New file.
33372         * tests/test-tan.c: New file.
33373
33374         Tests for module 'sqrt'.
33375         * modules/sqrt-tests: New file.
33376         * tests/test-sqrt.c: New file.
33377
33378         Tests for module 'sinh'.
33379         * modules/sinh-tests: New file.
33380         * tests/test-sinh.c: New file.
33381
33382         Tests for module 'sin'.
33383         * modules/sin-tests: New file.
33384         * tests/test-sin.c: New file.
33385
33386         Tests for module 'rint'.
33387         * modules/rint-tests: New file.
33388         * tests/test-rint.c: New file.
33389
33390         Tests for module 'remainder'.
33391         * modules/remainder-tests: New file.
33392         * tests/test-remainder.c: New file.
33393
33394         Tests for module 'pow'.
33395         * modules/pow-tests: New file.
33396         * tests/test-pow.c: New file.
33397
33398         Tests for module 'nextafter'.
33399         * modules/nextafter-tests: New file.
33400         * tests/test-nextafter.c: New file.
33401
33402         Tests for module 'modf'.
33403         * modules/modf-tests: New file.
33404         * tests/test-modf.c: New file.
33405
33406         Tests for module 'logb'.
33407         * modules/logb-tests: New file.
33408         * tests/test-logb.c: New file.
33409
33410         Tests for module 'log1p'.
33411         * modules/log1p-tests: New file.
33412         * tests/test-log1p.c: New file.
33413
33414         Tests for module 'log10'.
33415         * modules/log10-tests: New file.
33416         * tests/test-log10.c: New file.
33417
33418         Tests for module 'log'.
33419         * modules/log-tests: New file.
33420         * tests/test-log.c: New file.
33421
33422         Tests for module 'lgamma'.
33423         * modules/lgamma-tests: New file.
33424         * tests/test-lgamma.c: New file.
33425
33426         Tests for module 'ldexp'.
33427         * modules/ldexp-tests: New file.
33428         * tests/test-ldexp.c: New file.
33429
33430         Tests for module 'jn'.
33431         * modules/jn-tests: New file.
33432         * tests/test-jn.c: New file.
33433
33434         Tests for module 'j1'.
33435         * modules/j1-tests: New file.
33436         * tests/test-j1.c: New file.
33437
33438         Tests for module 'j0'.
33439         * modules/j0-tests: New file.
33440         * tests/test-j0.c: New file.
33441
33442         Tests for module 'hypot'.
33443         * modules/hypot-tests: New file.
33444         * tests/test-hypot.c: New file.
33445
33446         Tests for module 'fmod'.
33447         * modules/fmod-tests: New file.
33448         * tests/test-fmod.c: New file.
33449
33450         Tests for module 'fabs'.
33451         * modules/fabs-tests: New file.
33452         * tests/test-fabs.c: New file.
33453
33454         Tests for module 'exp'.
33455         * modules/exp-tests: New file.
33456         * tests/test-exp.c: New file.
33457
33458         Tests for module 'erfc'.
33459         * modules/erfc-tests: New file.
33460         * tests/test-erfc.c: New file.
33461
33462         Tests for module 'erf'.
33463         * modules/erf-tests: New file.
33464         * tests/test-erf.c: New file.
33465
33466         Tests for module 'cosh'.
33467         * modules/cosh-tests: New file.
33468         * tests/test-cosh.c: New file.
33469
33470         Tests for module 'cos'.
33471         * modules/cos-tests: New file.
33472         * tests/test-cos.c: New file.
33473
33474         Tests for module 'copysign'.
33475         * modules/copysign-tests: New file.
33476         * tests/test-copysign.c: New file.
33477
33478         Tests for module 'cbrt'.
33479         * modules/cbrt-tests: New file.
33480         * tests/test-cbrt.c: New file.
33481
33482         Tests for module 'atan2'.
33483         * modules/atan2-tests: New file.
33484         * tests/test-atan2.c: New file.
33485
33486         Tests for module 'atan'.
33487         * modules/atan-tests: New file.
33488         * tests/test-atan.c: New file.
33489
33490         Tests for module 'asin'.
33491         * modules/asin-tests: New file.
33492         * tests/test-asin.c: New file.
33493
33494         Tests for module 'acos'.
33495         * modules/acos-tests: New file.
33496         * tests/test-acos.c: New file.
33497
33498 2010-01-24  Bruno Haible  <bruno@clisp.org>
33499
33500         Fix tests for common <math.h> functions.
33501         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33502         code snippet that references the function pointer, rather than merely
33503         calling the function. Substitute the FUNC_LIBM variable.
33504         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33505         * modules/acos (configure.ac): Likewise.
33506         * modules/asin (configure.ac): Likewise.
33507         * modules/atan (configure.ac): Likewise.
33508         * modules/atan2 (configure.ac): Likewise.
33509         * modules/cbrt (configure.ac): Likewise.
33510         * modules/copysign (configure.ac): Likewise.
33511         * modules/cos (configure.ac): Likewise.
33512         * modules/cosh (configure.ac): Likewise.
33513         * modules/erf (configure.ac): Likewise.
33514         * modules/erfc (configure.ac): Likewise.
33515         * modules/exp (configure.ac): Likewise.
33516         * modules/fabs (configure.ac): Likewise.
33517         * modules/fmod (configure.ac): Likewise.
33518         * modules/hypot (configure.ac): Likewise.
33519         * modules/j0 (configure.ac): Likewise.
33520         * modules/j1 (configure.ac): Likewise.
33521         * modules/jn (configure.ac): Likewise.
33522         * modules/ldexp (configure.ac): Likewise.
33523         * modules/lgamma (configure.ac): Likewise.
33524         * modules/log (configure.ac): Likewise.
33525         * modules/log10 (configure.ac): Likewise.
33526         * modules/log1p (configure.ac): Likewise.
33527         * modules/logb (configure.ac): Likewise.
33528         * modules/modf (configure.ac): Likewise.
33529         * modules/nextafter (configure.ac): Likewise.
33530         * modules/pow (configure.ac): Likewise.
33531         * modules/remainder (configure.ac): Likewise.
33532         * modules/rint (configure.ac): Likewise.
33533         * modules/sin (configure.ac): Likewise.
33534         * modules/sinh (configure.ac): Likewise.
33535         * modules/tan (configure.ac): Likewise.
33536         * modules/tanh (configure.ac): Likewise.
33537         * modules/y0 (configure.ac): Likewise.
33538         * modules/y1 (configure.ac): Likewise.
33539         * modules/yn (configure.ac): Likewise.
33540
33541 2010-01-24  Bruno Haible  <bruno@clisp.org>
33542
33543         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33544         * tests/test-acosl.c (x): New variable.
33545         (main): Store argument in x and fetch it from x.
33546         * tests/test-asinl.c (x): New variable.
33547         (main): Store argument in x and fetch it from x.
33548         * tests/test-atanl.c (x): New variable.
33549         (main): Store argument in x and fetch it from x.
33550         * tests/test-cosl.c (x): New variable.
33551         (main): Store argument in x and fetch it from x.
33552         * tests/test-expl.c (x): New variable.
33553         (main): Store argument in x and fetch it from x.
33554         * tests/test-logl.c (x): New variable.
33555         (main): Store argument in x and fetch it from x.
33556         * tests/test-sinl.c (x): New variable.
33557         (main): Store argument in x and fetch it from x.
33558         * tests/test-sqrtl.c (x): New variable.
33559         (main): Store argument in x and fetch it from x.
33560         * tests/test-tanl.c (x): New variable.
33561         (main): Store argument in x and fetch it from x.
33562
33563 2010-01-24  Bruno Haible  <bruno@clisp.org>
33564
33565         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33566         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33567         assignments to the initial TESTS_ENVIRONMENT.
33568         * doc/gnulib.texi (Unit test modules): Document it.
33569         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33570         TESTS_ENVIRONMENT.
33571         * modules/btowc-tests (Makefile.am): Likewise.
33572         * modules/c-stack-tests (Makefile.am): Likewise.
33573         * modules/c-strcase-tests (Makefile.am): Likewise.
33574         * modules/copy-file-tests (Makefile.am): Likewise.
33575         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33576         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33577         * modules/mbrtowc-tests (Makefile.am): Likewise.
33578         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33579         * modules/mbscasestr-tests (Makefile.am): Likewise.
33580         * modules/mbschr-tests (Makefile.am): Likewise.
33581         * modules/mbscspn-tests (Makefile.am): Likewise.
33582         * modules/mbsinit-tests (Makefile.am): Likewise.
33583         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33584         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33585         * modules/mbspbrk-tests (Makefile.am): Likewise.
33586         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33587         * modules/mbsrchr-tests (Makefile.am): Likewise.
33588         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33589         * modules/mbsspn-tests (Makefile.am): Likewise.
33590         * modules/mbsstr-tests (Makefile.am): Likewise.
33591         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33592         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33593         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33594         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33595         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33596         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33597         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33598         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33599         * modules/wcrtomb-tests (Makefile.am): Likewise.
33600         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33601         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33602         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33603         assignments from TESTS_ENVIRONMENT.
33604         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33605         augmentation.
33606         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33607         * modules/atexit-tests (Makefile.am): Likewise.
33608         * modules/binary-io-tests (Makefile.am): Likewise.
33609         * modules/closein-tests (Makefile.am): Likewise.
33610         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33611         * modules/exclude-tests (Makefile.am): Likewise.
33612         * modules/fflush-tests (Makefile.am): Likewise.
33613         * modules/fpending-tests (Makefile.am): Likewise.
33614         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33615         * modules/freadahead-tests (Makefile.am): Likewise.
33616         * modules/freadptr-tests (Makefile.am): Likewise.
33617         * modules/freadseek-tests (Makefile.am): Likewise.
33618         * modules/fseek-tests (Makefile.am): Likewise.
33619         * modules/fseeko-tests (Makefile.am): Likewise.
33620         * modules/ftell-tests (Makefile.am): Likewise.
33621         * modules/ftello-tests (Makefile.am): Likewise.
33622         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33623         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33624         * modules/lseek-tests (Makefile.am): Likewise.
33625         * modules/parse-duration-tests (Makefile.am): Likewise.
33626         * modules/perror-tests (Makefile.am): Likewise.
33627         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33628         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33629         * modules/pipe-tests (Makefile.am): Likewise.
33630         * modules/pread-tests (Makefile.am): Likewise.
33631         * modules/printf-posix-tests (Makefile.am): Likewise.
33632         * modules/select-tests (Makefile.am): Likewise.
33633         * modules/sigpipe-tests (Makefile.am): Likewise.
33634         * modules/tsearch-tests (Makefile.am): Likewise.
33635         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33636         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33637         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33638         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33639         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33640         * modules/version-etc-tests (Makefile.am): Likewise.
33641         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33642         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33643         * modules/xalloc-die-tests (Makefile.am): Likewise.
33644         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33645         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33646         * modules/xstrtol-tests (Makefile.am): Likewise.
33647         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33648         * modules/yesno-tests (Makefile.am): Likewise.
33649         Suggested by Jim Meyering.
33650
33651 2010-01-24  Bruno Haible  <bruno@clisp.org>
33652
33653         More documentation.
33654         * doc/gnulib.texi (Writing modules): New chapter.
33655         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33656         the new chapter.
33657
33658 2010-01-24  Jim Meyering  <meyering@redhat.com>
33659
33660         maint.mk: do not prepend "./" after filtering
33661         * top/maint.mk (_prepend_srcdir_prefix): New variable
33662         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33663         "./" when $(srcdir) is ".".
33664
33665         define STREQ(a,b) consistently, removing useless parentheses
33666         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33667         since the only risk is that "a" or "b" contains an unparenthesized
33668         comma, but if either did that, STREQ would have 3 or more arguments.
33669         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33670         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33671         * lib/hash-triple.c (STREQ): Likewise.
33672         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33673         * lib/getugroups.c (STREQ): Likewise.
33674
33675 2010-01-23  Jim Meyering  <meyering@redhat.com>
33676
33677         maint.mk: fix syntax-check in a non-srcdir build directory
33678         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33679         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33680
33681 2010-01-22  Jim Meyering  <meyering@redhat.com>
33682
33683         userspec: add unit tests
33684         * tests/test-userspec.c: New file.
33685         * modules/userspec-tests: Likewise.
33686
33687 2010-01-21  Jim Meyering  <meyering@redhat.com>
33688
33689         maint.mk: handle source file names containing "." robustly
33690         * top/maint.mk (_dot_escaped_srcdir): Define.
33691         (VC_LIST): Use it in LHS of sed substitution.
33692
33693 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33694
33695         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33696         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33697         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33698         from a non-srcdir build.
33699
33700 2010-01-20  Eric Blake  <ebb9@byu.net>
33701
33702         warn-on-use: use instead of link-warning
33703         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33704         * modules/unistd (Depends-on, Makefile.am): Likewise.
33705         * modules/arpa_inet (Depends-on): Replace link-warning with
33706         warn-on-use.
33707         (Makefile.am): Update rules accordingly.
33708         * modules/ctype (Depends-on, Makefile.am): Likewise.
33709         * modules/dirent (Depends-on, Makefile.am): Likewise.
33710         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33711         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33712         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33713         * modules/locale (Depends-on, Makefile.am): Likewise.
33714         * modules/math (Depends-on, Makefile.am): Likewise.
33715         * modules/search (Depends-on, Makefile.am): Likewise.
33716         * modules/signal (Depends-on, Makefile.am): Likewise.
33717         * modules/spawn (Depends-on, Makefile.am): Likewise.
33718         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33719         * modules/string (Depends-on, Makefile.am): Likewise.
33720         * modules/strings (Depends-on, Makefile.am): Likewise.
33721         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33722         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33723         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33724         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33725         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33726         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33727         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33728         * modules/wchar (Depends-on, Makefile.am): Likewise.
33729         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33730         should be poisoned.
33731         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33732         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33733         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33734         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33735         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33736         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33737         * m4/math_h.m4 (gl_MATH_H): Likewise.
33738         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33739         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33740         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33741         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33742         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33743         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33744         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33745         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33746         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33747         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33748         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33749         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33750         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33751         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33752         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33753         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33754         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33755         GL_LINK_WARNING.
33756         * lib/ctype.in.h: Likewise.
33757         * lib/dirent.in.h: Likewise.
33758         * lib/fcntl.in.h: Likewise.
33759         * lib/inttypes.in.h: Likewise.
33760         * lib/langinfo.in.h: Likewise.
33761         * lib/locale.in.h: Likewise.
33762         * lib/math.in.h: Likewise.
33763         * lib/search.in.h: Likewise.
33764         * lib/signal.in.h: Likewise.
33765         * lib/spawn.in.h: Likewise.
33766         * lib/stdio.in.h: Likewise.
33767         * lib/stdlib.in.h: Likewise.
33768         * lib/string.in.h: Likewise.
33769         * lib/strings.in.h: Likewise.
33770         * lib/sys_file.in.h: Likewise.
33771         * lib/sys_ioctl.in.h: Likewise.
33772         * lib/sys_select.in.h: Likewise.
33773         * lib/sys_socket.in.h: Likewise.
33774         * lib/sys_stat.in.h: Likewise.
33775         * lib/sys_times.in.h: Likewise.
33776         * lib/sys_utsname.in.h: Likewise.
33777         * lib/unistd.in.h: Likewise.
33778         * lib/wchar.in.h: Likewise.
33779
33780 2010-01-20  Bruno Haible  <bruno@clisp.org>
33781
33782         Avoid duplicate -lm.
33783         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33784         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33785         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33786         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33787         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33788         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33789         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33790         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33791         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33792         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33793         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33794         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33795         Reported by Paolo Bonzini.
33796
33797 2010-01-19  Bruno Haible  <bruno@clisp.org>
33798
33799         langinfo, nl_langinfo: Relicense under LGPLv2+.
33800         * modules/langinfo (License): Change to LGPLv2+.
33801         * modules/nl_langinfo (License): Likewise.
33802         Patch by David Lutterkort <lutter@redhat.com>.
33803
33804 2010-01-19  Bruno Haible  <bruno@clisp.org>
33805
33806         Avoid compilation error with cc on OSF/1 5.1.
33807         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33808         statement, not before.
33809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33810
33811 2010-01-18  Bruno Haible  <bruno@clisp.org>
33812
33813         Avoid a link error due to the __printf__ symbol.
33814         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33815         and 2.6.x.
33816         (__format__, __printf__): Remove definitions.
33817         * lib/argp-fmtstream.h: Likewise.
33818         * lib/argp.h: Likewise.
33819         * lib/error.h: Likewise.
33820         * lib/vasnprintf.h: Likewise.
33821         * lib/xprintf.h: Likewise.
33822         * lib/xvasprintf.h: Likewise.
33823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33824
33825 2010-01-18  Bruno Haible  <bruno@clisp.org>
33826
33827         Tests for module 'tanl'.
33828         * modules/tanl-tests: New file.
33829         * tests/test-tanl.c: New file.
33830
33831         Tests for module 'sqrtl'.
33832         * modules/sqrtl-tests: New file.
33833         * tests/test-sqrtl.c: New file.
33834
33835         Tests for module 'sinl'.
33836         * modules/sinl-tests: New file.
33837         * tests/test-sinl.c: New file.
33838
33839         Tests for module 'logl'.
33840         * modules/logl-tests: New file.
33841         * tests/test-logl.c: New file.
33842
33843         Tests for module 'expl'.
33844         * modules/expl-tests: New file.
33845         * tests/test-expl.c: New file.
33846
33847         Tests for module 'cosl'.
33848         * modules/cosl-tests: New file.
33849         * tests/test-cosl.c: New file.
33850
33851         Tests for module 'atanl'.
33852         * modules/atanl-tests: New file.
33853         * tests/test-atanl.c: New file.
33854
33855         Tests for module 'asinl'.
33856         * modules/asinl-tests: New file.
33857         * tests/test-asinl.c: New file.
33858
33859         Tests for module 'acosl'.
33860         * modules/acosl-tests: New file.
33861         * tests/test-acosl.c: New file.
33862
33863         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33864         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33865         tanl): Use the standard gnulib idiom.
33866         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33867         * lib/sinl.c: Likewise.
33868         * lib/tanl.c: Don't include trigl.c.
33869         (kernel_tanl): Make static.
33870         * lib/sincosl.c: Include trigl.h first.
33871         * lib/trigl.c: Likewise.
33872         * m4/acosl.m4: New file.
33873         * m4/asinl.m4: New file.
33874         * m4/atanl.m4: New file.
33875         * m4/cosl.m4: New file.
33876         * m4/expl.m4: New file.
33877         * m4/logl.m4: New file.
33878         * m4/sinl.m4: New file.
33879         * m4/sqrtl.m4: New file.
33880         * m4/tanl.m4: New file.
33881         * m4/mathl.m4: Remove file.
33882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33883         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33884         Don't initialize GNULIB_MATHL.
33885         * modules/acosl: New file.
33886         * modules/asinl: New file.
33887         * modules/atanl: New file.
33888         * modules/cosl: New file.
33889         * modules/expl: New file.
33890         * modules/logl: New file.
33891         * modules/sinl: New file.
33892         * modules/sqrtl: New file.
33893         * modules/tanl: New file.
33894         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33895         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33896         substitute GNULIB_MATHL.
33897         * modules/mathl: Rewritten.
33898         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33899         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33900         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33901         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33902         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33903         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33904         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33905         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33906         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33907
33908 2010-01-18  Bruno Haible  <bruno@clisp.org>
33909
33910         sqrt: Make gl_FUNC_SQRT requirable.
33911         * m4/sqrt.m4: New file.
33912         * modules/sqrt (Files): Add it.
33913         (configure.ac): Invoke gl_FUNC_SQRT.
33914
33915 2010-01-18  Bruno Haible  <bruno@clisp.org>
33916
33917         New modules for common <math.h> functions.
33918         * m4/mathfunc.m4: New file.
33919         * modules/acos: New file.
33920         * modules/asin: New file.
33921         * modules/atan: New file.
33922         * modules/atan2: New file.
33923         * modules/cbrt: New file.
33924         * modules/copysign: New file.
33925         * modules/cos: New file.
33926         * modules/cosh: New file.
33927         * modules/erf: New file.
33928         * modules/erfc: New file.
33929         * modules/exp: New file.
33930         * modules/fabs: New file.
33931         * modules/fmod: New file.
33932         * modules/hypot: New file.
33933         * modules/j0: New file.
33934         * modules/j1: New file.
33935         * modules/jn: New file.
33936         * modules/ldexp: New file.
33937         * modules/lgamma: New file.
33938         * modules/log: New file.
33939         * modules/log10: New file.
33940         * modules/log1p: New file.
33941         * modules/logb: New file.
33942         * modules/modf: New file.
33943         * modules/nextafter: New file.
33944         * modules/pow: New file.
33945         * modules/remainder: New file.
33946         * modules/rint: New file.
33947         * modules/sin: New file.
33948         * modules/sinh: New file.
33949         * modules/sqrt: New file.
33950         * modules/tan: New file.
33951         * modules/tanh: New file.
33952         * modules/y0: New file.
33953         * modules/y1: New file.
33954         * modules/yn: New file.
33955         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33956         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33957         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33958         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33959         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33960         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33961         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33962         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33963         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33964         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33965         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33966         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33967         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33968         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33969         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33970         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33971         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33972         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33973         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33974         * doc/posix-functions/log.texi: Mention the 'log' module.
33975         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33976         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33977         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33978         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33979         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33980         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33981         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33982         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33983         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33984         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33985         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33986         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33987         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33988         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33989         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33990         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33991
33992 2010-01-18  Jim Meyering  <meyering@redhat.com>
33993
33994         ignore-value: relax license to LGPLv2+
33995         * modules/ignore-value (License): Relax to LGPLv2+.
33996
33997         getdate: don't leak when TZ contains two or more '"'s
33998         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33999         double quote in TZ after the first one.
34000
34001         readtokens: do not leak internal token_lengths buffer
34002         * lib/readtokens.c (readtokens): Free the local, lengths,
34003         when the supplied "token_lengths" parameter is NULL.
34004
34005 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34006
34007         Fix a couple of missing LIBTHREAD link failures on AIX.
34008         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34009         $(LIBTHREAD).
34010         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34011
34012         Link test-poll against INET_PTON_LIB.
34013         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34014         for inet_pton on Solaris 10.
34015
34016 2010-01-17  Bruno Haible  <bruno@clisp.org>
34017
34018         unistdio/*-sprintf: Fix typo in module description.
34019         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34020         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34021         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34022         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34023         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34024         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34025         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34027
34028 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34029
34030         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34031         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34032         variables in shell case patterns, for AIX and HP-UX ksh.
34033
34034         Split large sed scripts, for HP-UX sed.
34035         * modules/stdio: Split sed scripts around 50 sed commands,
34036         to avoid HP-UX limit of 99 commands, in the near future.
34037         * modules/string: Likewise.
34038         * modules/unistd: Likewise.
34039
34040         gnulib-tool: avoid writing in the current directory.
34041         * gnulib-tool (func_emit_lib_Makefile_am)
34042         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34043         not in the current directory, so concurrent gnulib-tool
34044         instances do not interfere.
34045
34046 2010-01-16  Jim Meyering  <meyering@redhat.com>
34047
34048         doc: update users.txt
34049         * users.txt: Add grep.
34050         (diffutils, gzip): Update URLs.
34051
34052 2010-01-12  Bruno Haible  <bruno@clisp.org>
34053
34054         posix_spawn: Avoid test failure on Cygwin.
34055         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34056         characters.
34057         Reported by Simon Josefsson.
34058
34059 2010-01-12  Bruno Haible  <bruno@clisp.org>
34060
34061         * tests/test-cond.c (main): When skipping the test, show the reason.
34062
34063 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34064
34065         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34066
34067 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34068
34069         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34070         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34071
34072 2010-01-12  Eric Blake  <ebb9@byu.net>
34073
34074         build: guarantee AS_VAR_IF
34075         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34076         (gl_AS_VAR_IF): Move...
34077         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34078         Reported by Simon Josefsson.
34079
34080 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34081
34082         * lib/stdio.in.h: Fix typo.
34083
34084 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34085
34086         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34087         libgpg-error.
34088
34089 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34090
34091         * tests/test-xalloc-die.sh: Use $EXEEXT.
34092
34093 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34094             Bruno Haible  <bruno@clisp.org>
34095
34096         getlogin, getlogin_r: Avoid test failure.
34097         * tests/test-getlogin.c: Include <stdio.h>.
34098         (main): Skip the test when the function fails because stdin is not a
34099         tty.
34100         * tests/test-getlogin_r.c: Include <stdio.h>.
34101         (main): Skip the test when the function fails because stdin is not a
34102         tty.
34103
34104 2010-01-11  Eric Blake  <ebb9@byu.net>
34105
34106         tests: avoid more large file warnings
34107         * tests/test-fflush.c: Avoid warning about ftell use.
34108         * tests/test-fseek.c: Avoid warning about fseek use.
34109
34110 2010-01-10  Bruno Haible  <bruno@clisp.org>
34111
34112         nproc: Work better on Linux when /proc and /sys are not mounted.
34113         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34114         as lower bound when, on glibc/Linux systems,
34115         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34116         Suggested by Pádraig Brady <P@draigbrady.com>.
34117         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34118
34119         nproc: Refactor.
34120         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34121         extracted from num_processors.
34122         (num_processors): Call it.
34123
34124 2010-01-11  Jim Meyering  <meyering@redhat.com>
34125
34126         utimecmp: avoid new warning from upcoming gcc-4.5.0
34127         * lib/utimecmp.c (BILLION): Define using #define rather than an
34128         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34129
34130 2010-01-11  Eric Blake  <ebb9@byu.net>
34131
34132         math: add portability warnings for classification macros
34133         * modules/math (Depends-on): Add warn-on-use.
34134         (Makefile.am): Provide new substitutions.
34135         * m4/math_h.m4 (gl_MATH_H): Require inline.
34136         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34137         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34138         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34139         implement warnings.
34140
34141         unistd: warn on use of environ without module
34142         * modules/unistd (Depends-on): Add warn-on-use.
34143         (Makefile.am): Provide new substitutions.
34144         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34145         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34146
34147         stdio: warn on suspicious uses
34148         * modules/stdio (Depends-on): Add warn-on-use.
34149         (Makefile.am): Provide new substitutions.
34150         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34151         fseeko.
34152         * lib/stdio.in.h (gets): Always warn on use.
34153         (fseek, ftell): Adjust when warnings are issued, and honor
34154         _GL_NO_LARGE_FILES as a way to silence the warning.
34155         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34156         any warning about large file offsets.
34157         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34158         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34159         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34160         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34161         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34162         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34163         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34164         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34165
34166         warn-on-use: new module
34167         * modules/warn-on-use: New file.
34168         * build-aux/warn-on-use.h: Likewise.
34169         * m4/warn-on-use.m4: Likewise.
34170         * MODULES.html.sh (Support for building): Mention it.
34171
34172 2010-01-10  Bruno Haible  <bruno@clisp.org>
34173
34174         Tests for module 'unistr/u32-strdup'.
34175         * modules/unistr/u32-strdup-tests: New file.
34176         * tests/unistr/test-u32-strdup.c: New file.
34177
34178         Tests for module 'unistr/u16-strdup'.
34179         * modules/unistr/u16-strdup-tests: New file.
34180         * tests/unistr/test-u16-strdup.c: New file.
34181
34182         Tests for module 'unistr/u8-strdup'.
34183         * modules/unistr/u8-strdup-tests: New file.
34184         * tests/unistr/test-u8-strdup.c: New file.
34185         * tests/unistr/test-strdup.h: New file.
34186
34187         Tests for module 'unistr/u32-strncmp'.
34188         * modules/unistr/u32-strncmp-tests: New file.
34189         * tests/unistr/test-u32-strncmp.c: New file.
34190
34191         Tests for module 'unistr/u16-strncmp'.
34192         * modules/unistr/u16-strncmp-tests: New file.
34193         * tests/unistr/test-u16-strncmp.c: New file.
34194
34195         Tests for module 'unistr/u8-strncmp'.
34196         * modules/unistr/u8-strncmp-tests: New file.
34197         * tests/unistr/test-u8-strncmp.c: New file.
34198         * tests/unistr/test-strncmp.h: New file.
34199
34200         Tests for module 'unistr/u32-strcoll'.
34201         * modules/unistr/u32-strcoll-tests: New file.
34202         * tests/unistr/test-u32-strcoll.c: New file.
34203
34204         Tests for module 'unistr/u16-strcoll'.
34205         * modules/unistr/u16-strcoll-tests: New file.
34206         * tests/unistr/test-u16-strcoll.c: New file.
34207
34208         Tests for module 'unistr/u8-strcoll'.
34209         * modules/unistr/u8-strcoll-tests: New file.
34210         * tests/unistr/test-u8-strcoll.c: New file.
34211
34212         Tests for module 'unistr/u32-strcmp'.
34213         * modules/unistr/u32-strcmp-tests: New file.
34214         * tests/unistr/test-u32-strcmp.c: New file.
34215         * tests/unistr/test-u32-strcmp.h: New file.
34216
34217         Tests for module 'unistr/u16-strcmp'.
34218         * modules/unistr/u16-strcmp-tests: New file.
34219         * tests/unistr/test-u16-strcmp.c: New file.
34220         * tests/unistr/test-u16-strcmp.h: New file.
34221
34222         Tests for module 'unistr/u8-strcmp'.
34223         * modules/unistr/u8-strcmp-tests: New file.
34224         * tests/unistr/test-u8-strcmp.c: New file.
34225         * tests/unistr/test-u8-strcmp.h: New file.
34226         * tests/unistr/test-strcmp.h: New file.
34227
34228         Tests for module 'unistr/u32-strncat'.
34229         * modules/unistr/u32-strncat-tests: New file.
34230         * tests/unistr/test-u32-strncat.c: New file.
34231
34232         Tests for module 'unistr/u16-strncat'.
34233         * modules/unistr/u16-strncat-tests: New file.
34234         * tests/unistr/test-u16-strncat.c: New file.
34235
34236         Tests for module 'unistr/u8-strncat'.
34237         * modules/unistr/u8-strncat-tests: New file.
34238         * tests/unistr/test-u8-strncat.c: New file.
34239         * tests/unistr/test-strncat.h: New file.
34240
34241         Tests for module 'unistr/u32-strcat'.
34242         * modules/unistr/u32-strcat-tests: New file.
34243         * tests/unistr/test-u32-strcat.c: New file.
34244
34245         Tests for module 'unistr/u16-strcat'.
34246         * modules/unistr/u16-strcat-tests: New file.
34247         * tests/unistr/test-u16-strcat.c: New file.
34248
34249         Tests for module 'unistr/u8-strcat'.
34250         * modules/unistr/u8-strcat-tests: New file.
34251         * tests/unistr/test-u8-strcat.c: New file.
34252         * tests/unistr/test-strcat.h: New file.
34253
34254         Tests for module 'unistr/u32-stpncpy'.
34255         * modules/unistr/u32-stpncpy-tests: New file.
34256         * tests/unistr/test-u32-stpncpy.c: New file.
34257
34258         Tests for module 'unistr/u16-stpncpy'.
34259         * modules/unistr/u16-stpncpy-tests: New file.
34260         * tests/unistr/test-u16-stpncpy.c: New file.
34261
34262         Tests for module 'unistr/u8-stpncpy'.
34263         * modules/unistr/u8-stpncpy-tests: New file.
34264         * tests/unistr/test-u8-stpncpy.c: New file.
34265         * tests/unistr/test-stpncpy.h: New file.
34266
34267         Tests for module 'unistr/u32-strncpy'.
34268         * modules/unistr/u32-strncpy-tests: New file.
34269         * tests/unistr/test-u32-strncpy.c: New file.
34270
34271         Tests for module 'unistr/u16-strncpy'.
34272         * modules/unistr/u16-strncpy-tests: New file.
34273         * tests/unistr/test-u16-strncpy.c: New file.
34274
34275         Tests for module 'unistr/u8-strncpy'.
34276         * modules/unistr/u8-strncpy-tests: New file.
34277         * tests/unistr/test-u8-strncpy.c: New file.
34278         * tests/unistr/test-strncpy.h: New file.
34279
34280         Tests for module 'unistr/u32-stpcpy'.
34281         * modules/unistr/u32-stpcpy-tests: New file.
34282         * tests/unistr/test-u32-stpcpy.c: New file.
34283
34284         Tests for module 'unistr/u16-stpcpy'.
34285         * modules/unistr/u16-stpcpy-tests: New file.
34286         * tests/unistr/test-u16-stpcpy.c: New file.
34287
34288         Tests for module 'unistr/u8-stpcpy'.
34289         * modules/unistr/u8-stpcpy-tests: New file.
34290         * tests/unistr/test-u8-stpcpy.c: New file.
34291         * tests/unistr/test-stpcpy.h: New file.
34292
34293         Tests for module 'unistr/u32-strcpy'.
34294         * modules/unistr/u32-strcpy-tests: New file.
34295         * tests/unistr/test-u32-strcpy.c: New file.
34296
34297         Tests for module 'unistr/u16-strcpy'.
34298         * modules/unistr/u16-strcpy-tests: New file.
34299         * tests/unistr/test-u16-strcpy.c: New file.
34300
34301         Tests for module 'unistr/u8-strcpy'.
34302         * modules/unistr/u8-strcpy-tests: New file.
34303         * tests/unistr/test-u8-strcpy.c: New file.
34304         * tests/unistr/test-strcpy.h: New file.
34305
34306         Tests for module 'unistr/u32-strnlen'.
34307         * modules/unistr/u32-strnlen-tests: New file.
34308         * tests/unistr/test-u32-strnlen.c: New file.
34309
34310         Tests for module 'unistr/u16-strnlen'.
34311         * modules/unistr/u16-strnlen-tests: New file.
34312         * tests/unistr/test-u16-strnlen.c: New file.
34313
34314         Tests for module 'unistr/u8-strnlen'.
34315         * modules/unistr/u8-strnlen-tests: New file.
34316         * tests/unistr/test-u8-strnlen.c: New file.
34317         * tests/unistr/test-strnlen.h: New file.
34318
34319         Tests for module 'unistr/u32-strlen'.
34320         * modules/unistr/u32-strlen-tests: New file.
34321         * tests/unistr/test-u32-strlen.c: New file.
34322
34323         Tests for module 'unistr/u16-strlen'.
34324         * modules/unistr/u16-strlen-tests: New file.
34325         * tests/unistr/test-u16-strlen.c: New file.
34326
34327         Tests for module 'unistr/u8-strlen'.
34328         * modules/unistr/u8-strlen-tests: New file.
34329         * tests/unistr/test-u8-strlen.c: New file.
34330
34331         Tests for module 'unistr/u32-prev'.
34332         * modules/unistr/u32-prev-tests: New file.
34333         * tests/unistr/test-u32-prev.c: New file.
34334
34335         Tests for module 'unistr/u16-prev'.
34336         * modules/unistr/u16-prev-tests: New file.
34337         * tests/unistr/test-u16-prev.c: New file.
34338
34339         Tests for module 'unistr/u8-prev'.
34340         * modules/unistr/u8-prev-tests: New file.
34341         * tests/unistr/test-u8-prev.c: New file.
34342
34343         Tests for module 'unistr/u32-next'.
34344         * modules/unistr/u32-next-tests: New file.
34345         * tests/unistr/test-u32-next.c: New file.
34346
34347         Tests for module 'unistr/u16-next'.
34348         * modules/unistr/u16-next-tests: New file.
34349         * tests/unistr/test-u16-next.c: New file.
34350
34351         Tests for module 'unistr/u8-next'.
34352         * modules/unistr/u8-next-tests: New file.
34353         * tests/unistr/test-u8-next.c: New file.
34354
34355         Tests for module 'unistr/u32-strmbtouc'.
34356         * modules/unistr/u32-strmbtouc-tests: New file.
34357         * tests/unistr/test-u32-strmbtouc.c: New file.
34358
34359         Tests for module 'unistr/u16-strmbtouc'.
34360         * modules/unistr/u16-strmbtouc-tests: New file.
34361         * tests/unistr/test-u16-strmbtouc.c: New file.
34362
34363         Tests for module 'unistr/u8-strmbtouc'.
34364         * modules/unistr/u8-strmbtouc-tests: New file.
34365         * tests/unistr/test-u8-strmbtouc.c: New file.
34366
34367         Tests for module 'unistr/u32-strmblen'.
34368         * modules/unistr/u32-strmblen-tests: New file.
34369         * tests/unistr/test-u32-strmblen.c: New file.
34370
34371         Tests for module 'unistr/u16-strmblen'.
34372         * modules/unistr/u16-strmblen-tests: New file.
34373         * tests/unistr/test-u16-strmblen.c: New file.
34374
34375         Tests for module 'unistr/u8-strmblen'.
34376         * modules/unistr/u8-strmblen-tests: New file.
34377         * tests/unistr/test-u8-strmblen.c: New file.
34378
34379         Tests for module 'unistr/u32-cpy-alloc'.
34380         * modules/unistr/u32-cpy-alloc-tests: New file.
34381         * tests/unistr/test-u32-cpy-alloc.c: New file.
34382
34383         Tests for module 'unistr/u16-cpy-alloc'.
34384         * modules/unistr/u16-cpy-alloc-tests: New file.
34385         * tests/unistr/test-u16-cpy-alloc.c: New file.
34386
34387         Tests for module 'unistr/u8-cpy-alloc'.
34388         * modules/unistr/u8-cpy-alloc-tests: New file.
34389         * tests/unistr/test-u8-cpy-alloc.c: New file.
34390         * tests/unistr/test-cpy-alloc.h: New file.
34391
34392         Tests for module 'unistr/u32-mbsnlen'.
34393         * modules/unistr/u32-mbsnlen-tests: New file.
34394         * tests/unistr/test-u32-mbsnlen.c: New file.
34395
34396         Tests for module 'unistr/u16-mbsnlen'.
34397         * modules/unistr/u16-mbsnlen-tests: New file.
34398         * tests/unistr/test-u16-mbsnlen.c: New file.
34399
34400         Tests for module 'unistr/u8-mbsnlen'.
34401         * modules/unistr/u8-mbsnlen-tests: New file.
34402         * tests/unistr/test-u8-mbsnlen.c: New file.
34403
34404         Tests for module 'unistr/u32-chr'.
34405         * modules/unistr/u32-chr-tests: New file.
34406         * tests/unistr/test-u32-chr.c: New file.
34407
34408         Tests for module 'unistr/u16-chr'.
34409         * modules/unistr/u16-chr-tests: New file.
34410         * tests/unistr/test-u16-chr.c: New file.
34411
34412         Tests for module 'unistr/u8-chr'.
34413         * modules/unistr/u8-chr-tests: New file.
34414         * tests/unistr/test-u8-chr.c: New file.
34415         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34416
34417         Tests for module 'unistr/u32-cmp2'.
34418         * modules/unistr/u32-cmp2-tests: New file.
34419         * tests/unistr/test-u32-cmp2.c: New file.
34420
34421         Tests for module 'unistr/u16-cmp2'.
34422         * modules/unistr/u16-cmp2-tests: New file.
34423         * tests/unistr/test-u16-cmp2.c: New file.
34424
34425         Tests for module 'unistr/u8-cmp2'.
34426         * modules/unistr/u8-cmp2-tests: New file.
34427         * tests/unistr/test-u8-cmp2.c: New file.
34428         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34429
34430         Tests for module 'unistr/u32-cmp'.
34431         * modules/unistr/u32-cmp-tests: New file.
34432         * tests/unistr/test-u32-cmp.c: New file.
34433
34434         Tests for module 'unistr/u16-cmp'.
34435         * modules/unistr/u16-cmp-tests: New file.
34436         * tests/unistr/test-u16-cmp.c: New file.
34437
34438         Tests for module 'unistr/u8-cmp'.
34439         * modules/unistr/u8-cmp-tests: New file.
34440         * tests/unistr/test-u8-cmp.c: New file.
34441         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34442
34443         Tests for module 'unistr/u32-set'.
34444         * modules/unistr/u32-set-tests: New file.
34445         * tests/unistr/test-u32-set.c: New file.
34446
34447         Tests for module 'unistr/u16-set'.
34448         * modules/unistr/u16-set-tests: New file.
34449         * tests/unistr/test-u16-set.c: New file.
34450
34451         Tests for module 'unistr/u8-set'.
34452         * modules/unistr/u8-set-tests: New file.
34453         * tests/unistr/test-u8-set.c: New file.
34454         * tests/unistr/test-set.h: New file.
34455
34456         Tests for module 'unistr/u32-move'.
34457         * modules/unistr/u32-move-tests: New file.
34458         * tests/unistr/test-u32-move.c: New file.
34459
34460         Tests for module 'unistr/u16-move'.
34461         * modules/unistr/u16-move-tests: New file.
34462         * tests/unistr/test-u16-move.c: New file.
34463
34464         Tests for module 'unistr/u8-move'.
34465         * modules/unistr/u8-move-tests: New file.
34466         * tests/unistr/test-u8-move.c: New file.
34467         * tests/unistr/test-move.h: New file.
34468
34469         Tests for module 'unistr/u32-cpy'.
34470         * modules/unistr/u32-cpy-tests: New file.
34471         * tests/unistr/test-u32-cpy.c: New file.
34472
34473         Tests for module 'unistr/u16-cpy'.
34474         * modules/unistr/u16-cpy-tests: New file.
34475         * tests/unistr/test-u16-cpy.c: New file.
34476
34477         Tests for module 'unistr/u8-cpy'.
34478         * modules/unistr/u8-cpy-tests: New file.
34479         * tests/unistr/test-u8-cpy.c: New file.
34480         * tests/unistr/test-cpy.h: New file.
34481
34482 2010-01-09  Bruno Haible  <bruno@clisp.org>
34483
34484         Tests for module 'unistr/u32-uctomb'.
34485         * modules/unistr/u32-uctomb-tests: New file.
34486         * tests/unistr/test-u32-uctomb.c: New file.
34487
34488         Tests for module 'unistr/u16-uctomb'.
34489         * modules/unistr/u16-uctomb-tests: New file.
34490         * tests/unistr/test-u16-uctomb.c: New file.
34491
34492         Tests for module 'unistr/u8-uctomb'.
34493         * modules/unistr/u8-uctomb-tests: New file.
34494         * tests/unistr/test-u8-uctomb.c: New file.
34495
34496         Tests for module 'unistr/u32-mbtoucr'.
34497         * modules/unistr/u32-mbtoucr-tests: New file.
34498         * tests/unistr/test-u32-mbtoucr.c: New file.
34499
34500         Tests for module 'unistr/u16-mbtoucr'.
34501         * modules/unistr/u16-mbtoucr-tests: New file.
34502         * tests/unistr/test-u16-mbtoucr.c: New file.
34503
34504         Tests for module 'unistr/u8-mbtoucr'.
34505         * modules/unistr/u8-mbtoucr-tests: New file.
34506         * tests/unistr/test-u8-mbtoucr.c: New file.
34507
34508         Tests for module 'unistr/u32-mbtouc'.
34509         * modules/unistr/u32-mbtouc-tests: New file.
34510         * tests/unistr/test-u32-mbtouc.c: New file.
34511
34512         Tests for module 'unistr/u16-mbtouc'.
34513         * modules/unistr/u16-mbtouc-tests: New file.
34514         * tests/unistr/test-u16-mbtouc.c: New file.
34515
34516         Tests for module 'unistr/u8-mbtouc'.
34517         * modules/unistr/u8-mbtouc-tests: New file.
34518         * tests/unistr/test-u8-mbtouc.c: New file.
34519
34520         Tests for module 'unistr/u32-mbtouc-unsafe'.
34521         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34522         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34523         * tests/unistr/test-u32-mbtouc.h: New file.
34524
34525         Tests for module 'unistr/u16-mbtouc-unsafe'.
34526         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34527         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34528         * tests/unistr/test-u16-mbtouc.h: New file.
34529
34530         Tests for module 'unistr/u8-mbtouc-unsafe'.
34531         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34532         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34533         * tests/unistr/test-u8-mbtouc.h: New file.
34534
34535         Tests for module 'unistr/u32-mblen'.
34536         * modules/unistr/u32-mblen-tests: New file.
34537         * tests/unistr/test-u32-mblen.c: New file.
34538
34539         Tests for module 'unistr/u16-mblen'.
34540         * modules/unistr/u16-mblen-tests: New file.
34541         * tests/unistr/test-u16-mblen.c: New file.
34542
34543         Tests for module 'unistr/u8-mblen'.
34544         * modules/unistr/u8-mblen-tests: New file.
34545         * tests/unistr/test-u8-mblen.c: New file.
34546
34547         Tests for module 'unistr/u32-to-u16'.
34548         * modules/unistr/u32-to-u16-tests: New file.
34549         * tests/unistr/test-u32-to-u16.c: New file.
34550
34551         Tests for module 'unistr/u32-to-u8'.
34552         * modules/unistr/u32-to-u8-tests: New file.
34553         * tests/unistr/test-u32-to-u8.c: New file.
34554
34555         Tests for module 'unistr/u16-to-u32'.
34556         * modules/unistr/u16-to-u32-tests: New file.
34557         * tests/unistr/test-u16-to-u32.c: New file.
34558
34559         Tests for module 'unistr/u16-to-u8'.
34560         * modules/unistr/u16-to-u8-tests: New file.
34561         * tests/unistr/test-u16-to-u8.c: New file.
34562
34563         Tests for module 'unistr/u8-to-u32'.
34564         * modules/unistr/u8-to-u32-tests: New file.
34565         * tests/unistr/test-u8-to-u32.c: New file.
34566
34567         Tests for module 'unistr/u8-to-u16'.
34568         * modules/unistr/u8-to-u16-tests: New file.
34569         * tests/unistr/test-u8-to-u16.c: New file.
34570
34571         Tests for module 'unistr/u32-check'.
34572         * modules/unistr/u32-check-tests: New file.
34573         * tests/unistr/test-u32-check.c: New file.
34574
34575         Tests for module 'unistr/u16-check'.
34576         * modules/unistr/u16-check-tests: New file.
34577         * tests/unistr/test-u16-check.c: New file.
34578
34579         Tests for module 'unistr/u8-check'.
34580         * modules/unistr/u8-check-tests: New file.
34581         * tests/unistr/test-u8-check.c: New file.
34582
34583         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34584         (category_equals): New function.
34585         (main): Add more tests.
34586         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34587
34588         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34589
34590 2010-01-10  Bruno Haible  <bruno@clisp.org>
34591
34592         unistr/u*-strcoll: Try harder to distinguish different strings.
34593         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34594         compare s1 and s2 to see if they are different.
34595
34596 2010-01-10  Bruno Haible  <bruno@clisp.org>
34597
34598         unistr/u*-stpncpy: Fix the return value.
34599         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34600         description of the return value consistent with stpncpy in glibc.
34601         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34602         written non-NUL unit.
34603
34604 2010-01-10  Bruno Haible  <bruno@clisp.org>
34605
34606         unistr/u*-next: Add missing dependencies.
34607         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34608         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34609         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34610
34611 2010-01-10  Bruno Haible  <bruno@clisp.org>
34612
34613         unistr/u8-mbsnlen: Fix return value for incomplete character.
34614         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34615         u8_mblen.
34616         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34617         Remove unistr/u8-mblen.
34618         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34619         u16_mblen.
34620         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34621         Remove unistr/u16-mblen.
34622
34623 2010-01-10  Bruno Haible  <bruno@clisp.org>
34624
34625         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34626         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34627         Reported by Brian Gough <bjg@gnu.org> and
34628         Chris Clayton <chris2553@googlemail.com> via
34629         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34630
34631 2010-01-09  Bruno Haible  <bruno@clisp.org>
34632
34633         unistr/u16-to-u32: Reject invalid input.
34634         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34635         u16_mbtouc.
34636         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34637         Remove unistr/u16-mbtouc.
34638
34639         unistr/u16-to-u8: Reject invalid input.
34640         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34641         u16_mbtouc.
34642         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34643         Remove unistr/u16-mbtouc.
34644
34645         unistr/u8-to-u32: Reject invalid input.
34646         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34647         u8_mbtouc.
34648         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34649         Remove unistr/u8-mbtouc.
34650
34651         unistr/u8-to-u16: Reject invalid input.
34652         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34653         u8_mbtouc.
34654         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34655         Remove unistr/u8-mbtouc.
34656
34657 2010-01-09  Bruno Haible  <bruno@clisp.org>
34658
34659         Tests for module 'getlogin'.
34660         * modules/getlogin-tests: New file.
34661         * tests/test-getlogin.c: New file.
34662
34663         New module 'getlogin'.
34664         * lib/unistd.in.h (getlogin): New declaration.
34665         * lib/getlogin.c: New file.
34666         * m4/getlogin.m4: New file.
34667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34668         HAVE_GETLOGIN.
34669         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34670         HAVE_GETLOGIN.
34671         * modules/getlogin: New file.
34672         * doc/posix-functions/getlogin.texi: Mention the new module.
34673         Reported by John W. Eaton <jwe@gnu.org>.
34674
34675 2010-01-09  Bruno Haible  <bruno@clisp.org>
34676
34677         getlogin_r: Support for native Windows.
34678         * lib/getlogin_r.c: Include <windows.h>
34679         (getlogin_r): Implement for native Windows.
34680         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34681         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34682         via John W. Eaton <jwe@gnu.org>.
34683
34684 2010-01-09  Bruno Haible  <bruno@clisp.org>
34685
34686         getlogin_r: Small fixes.
34687         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34688         succeeds.
34689         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34690         before testing whether getlogin_r is declared. No need to set
34691         HAVE_DECL_GETLOGIN_R to 1.
34692         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34693
34694 2010-01-09  Bruno Haible  <bruno@clisp.org>
34695
34696         * lib/unistd.in.h (getlogin_r): Add comment.
34697
34698 2010-01-09  Bruno Haible  <bruno@clisp.org>
34699
34700         Tests for module 'getlogin_r'.
34701         * modules/getlogin_r-tests: New file.
34702         * tests/test-getlogin_r.c: New file.
34703
34704 2010-01-09  Jim Meyering  <meyering@redhat.com>
34705
34706         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34707         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34708         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34709
34710 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34711
34712         * lib/dup2.c (rpl_dup2): Improve comment.
34713
34714 2010-01-08  Eric Blake  <ebb9@byu.net>
34715
34716         maint.mk: allow packages to add makefile @@ exceptions
34717         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34718         (sc_makefile_check): Rename...
34719         (sc_makefile_at_at_check): ...to this, and use hook.
34720
34721         dup2: work around mingw bug
34722         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34723         Reported by Simon Josefsson.
34724
34725 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34726
34727         glob: Fix C++ compilation.
34728         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34729         C++.
34730
34731 2010-01-07  Bruno Haible  <bruno@clisp.org>
34732
34733         Fix indentation of wctype.in.h, broken since 2007-01-06.
34734         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34735
34736 2010-01-07  Bruno Haible  <bruno@clisp.org>
34737
34738         mbslen: Avoid collision with system function.
34739         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34740         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34741         * m4/mbslen.m4: New file.
34742         * modules/mbslen (Files): Add it.
34743         (configure.ac): Invoke gl_MBSLEN.
34744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34745         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34746         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34747         via Ian Beckwith <ianb@erislabs.net>.
34748
34749 2010-01-07  Bruno Haible  <bruno@clisp.org>
34750
34751         dirent: Document the last fix.
34752         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34753
34754 2010-01-07  Bruno Haible  <bruno@clisp.org>
34755
34756         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34757         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34758         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34759         va_list are defined.
34760         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34761         Reported by Eric Blake.
34762
34763 2010-01-07  Bruno Haible  <bruno@clisp.org>
34764
34765         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34766         * modules/xlist (Depends-on): Add 'list',
34767         * modules/xoset (Depends-on): Add 'oset'.
34768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34769
34770 2010-01-07  Bruno Haible  <bruno@clisp.org>
34771
34772         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34773         * doc/posix-functions/strncasecmp.texi: Likewise.
34774
34775 2010-01-07  Bruno Haible  <bruno@clisp.org>
34776
34777         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34778
34779 2010-01-07  John W. Eaton  <jwe@octave.org>
34780
34781         wctype: allow C++ use
34782         * lib/wctype.in.h: Add extern "C" block for C++.
34783
34784 2010-01-06  Eric Blake  <ebb9@byu.net>
34785
34786         maint.mk: detect incorrect GFDL usage
34787         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34788
34789 2010-01-06  Jim Meyering  <meyering@redhat.com>
34790         and Eric Blake  <ebb9@byu.net>
34791
34792         maint.mk: ignore multi-line copyright in NEWS
34793         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34794
34795 2010-01-06  Eric Blake  <ebb9@byu.net>
34796
34797         select: add missing dependency
34798         * modules/select-tests (Depends-on): Move sockets dependency...
34799         * modules/select (Depends-on): ...here.
34800         Reported by Ian Beckwith.
34801
34802         doc: regenerate INSTALL
34803         * doc/INSTALL: Reflect recent autoconf update.
34804         * doc/INSTALL.ISO: Likewise.
34805         * doc/INSTALL.UTF-8: Likewise.
34806
34807         pread: fix compilation on glibc
34808         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34809         Reported by Ralf Wildenhues.
34810
34811         dirent: fix test failure
34812         * lib/dirent.in.h (includes): Guarantee ino_t.
34813         Reported by Ralf Wildenhues.
34814
34815 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34816
34817         linkat, renameat: avoid bad free
34818         * lib/at-func2.c (at_func2): Fix typo.
34819         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34820
34821 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34822
34823         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34824         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34825         to avoid failure of symlink test later.
34826
34827 2010-01-06  Eric Blake  <ebb9@byu.net>
34828
34829         stdio, unistd: guarantee ssize_t
34830         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34831         2008 are exposed when needed.
34832         * lib/stdio.in.h (includes): Likewise.
34833         Reported by Ralf Wildenhues.
34834
34835 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34836
34837         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34838         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34839         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34840
34841 2010-01-06  Jim Meyering  <meyering@redhat.com>
34842
34843         readtokens: this module *does* require xalloc.h
34844         It uses only functions that were omitted by the old syntax-check rule.
34845         * lib/readtokens.c: Include "xalloc.h" once again.
34846         * modules/readtokens (Depends-on): Add xalloc.
34847         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34848
34849 2010-01-05  Eric Blake  <ebb9@byu.net>
34850
34851         maint: support 'make announcement' from a VPATH build
34852         * top/maint.mk (announcement): Look for correct NEWS file.
34853
34854 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34855
34856         utimens (fdutimens): ignore a negative FD, per contract
34857         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34858         when we have a valid file descriptor.  Otherwise, using a brand
34859         new glibc (with just-patched futimens that now fails with EBADF)
34860         would cause this function to fail with ENOSYS.
34861         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34862         See also http://bugzilla.redhat.com/552320.
34863
34864 2010-01-05  Eric Blake  <ebb9@byu.net>
34865
34866         strcase: document what it provides
34867         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34868         gnulib module.
34869         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34870         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34871
34872 2010-01-05  Jim Meyering  <meyering@redhat.com>
34873
34874         maint: remove useless inclusions of "xalloc.h"
34875         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34876         * lib/readtokens.c: Likewise.
34877         * lib/same.c: Likewise.
34878         * modules/getloadavg (Depends-on): Remove xalloc.
34879         * modules/readtokens: Likewise.
34880         * modules/same: Likewise.
34881
34882         maint.mk: include 4 more function names in alloca.h-checking regexp
34883         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34884         regexp.  Before, we would give a false-positive (saying alloca.h
34885         is included unnecessarily) when the only uses involved omitted symbols.
34886
34887         xalloc.h: use consistent formatting
34888         * lib/xalloc.h: Move declarations to start in the first column.
34889
34890 2010-01-05  Eric Blake  <ebb9@byu.net>
34891
34892         mkdir: avoid xalloc
34893         * lib/mkdir.c (includes): Drop unused header.
34894         Reported by John W. Eaton.
34895
34896 2010-01-04  Jim Meyering  <meyering@redhat.com>
34897
34898         nl_langinfo: avoid configure-time syntax error
34899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34900         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34901         the empty string.  Don't let that provoke a shell syntax error.
34902
34903         regcomp, regexec, fnmatch: avoid array bounds read error
34904         * lib/regcomp.c (build_equiv_class): From glibc:
34905         Use only the low 24 bits of a findidx return value as an index
34906         into the weights array.  Patch by Ulrich Drepper:
34907         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34908         * lib/regexec.c (check_node_accept_bytes): Likewise.
34909         * lib/fnmatch_loop.c (FCT): Likewise.
34910
34911         regcomp: skip collseq lookup when there are no rules
34912         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34913         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34914
34915         regcomp: recognize ill-formed { } expressions
34916         * lib/regcomp.c (parse_dup_op): From glibc:
34917         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34918
34919         regcomp: fix typo in comment
34920         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34921         s/satisfy/satisfies/.
34922
34923         regcomp: sync from glibc: remove dead store
34924         * lib/regcomp.c (duplicate_node_closure): Remove useless
34925         search_duplicated_node call and dead store.
34926
34927         regcomp: sync from glibc; always use nl_langinfo
34928         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34929         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34930         * modules/regex (Depends-on): Add nl_langinfo.
34931
34932 2010-01-04  Eric Blake  <ebb9@byu.net>
34933
34934         fdopendir: fix configure test
34935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34936
34937 2010-01-01  Bruno Haible  <bruno@clisp.org>
34938
34939         wchar: Remove unused configure check.
34940         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34941
34942 2010-01-01  Eric Blake  <ebb9@byu.net>
34943
34944         headers: make check of system header explicit
34945         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34946         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34947         ourselves.
34948         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34949         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34950         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34951         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34952         internals.
34953         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34954         missing.
34955         Suggested by Bruno Haible.
34956
34957 2010-01-01  Jim Meyering  <meyering@redhat.com>
34958
34959         ChangeLog: tweak to eliminate unnecessary copyright line
34960         * ChangeLog: Remove a copyright line that was mistakenly updated
34961         by today's update-copyright run.  Reported by Eric Blake.
34962
34963         test-update-copyright: don't let envvar setting cause test failure
34964         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34965
34966 2010-01-01  Bruno Haible  <bruno@clisp.org>
34967
34968         localename: Avoid gcc warning.
34969         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34970         function if it is not used.
34971
34972 2010-01-01  Jim Meyering  <meyering@redhat.com>
34973
34974         update nearly all FSF copyright year lists to include 2010
34975         Use the same procedure as for 2009, outlined in
34976         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34977
34978         version-etc: set COPYRIGHT_YEAR to 2010
34979         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34980
34981 2009-12-31  Eric Blake  <ebb9@byu.net>
34982
34983         doc: correct availability of cygwin 1.5.x getopt
34984         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34985         variables.
34986         * doc/posix-functions/opterr.texi (opterr): Likewise.
34987         * doc/posix-functions/optind.texi (optind): Likewise.
34988         * doc/posix-functions/optopt.texi (optopt): Likewise.
34989         * doc/posix-functions/tzname.texi (tzname): Likewise.
34990
34991         openat: update maintainer
34992         * modules/openat (Maintainer): Add myself.
34993
34994         utimens: avoid shadowing warning
34995         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34996         buffers into one, to avoid shadowing, as well as avoiding a
34997         redundant stat.
34998         Reported by Jim Meyering.
34999
35000         test-dup2: avoid compiler warning
35001         * tests/test-dup2.c (is_inheritable): Only define if used.
35002
35003 2010-01-01  Bruno Haible  <bruno@clisp.org>
35004
35005         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35006         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35007         defined, use wctomb instead of wcrtomb.
35008
35009 2010-01-01  Bruno Haible  <bruno@clisp.org>
35010
35011         iconv: Reject native Solaris iconv.
35012         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35013         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35014
35015 2009-12-31  Bruno Haible  <bruno@clisp.org>
35016
35017         * tests/test-signal.c (main): Remove test of 'SIG'.
35018
35019 2009-12-31  Bruno Haible  <bruno@clisp.org>
35020
35021         spawn: Fix incomplete fix.
35022         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35023         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35024         warnings for GNULIB_POSIXCHECK again.
35025         Reported by Eric Blake.
35026
35027 2009-12-31  Bruno Haible  <bruno@clisp.org>
35028
35029         Avoid namespace pollution on glibc systems.
35030         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35031         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35032         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35033         glibc systems.
35034
35035 2009-12-31  Bruno Haible  <bruno@clisp.org>
35036
35037         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35038         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35039         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35040         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35041         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35042         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35043         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35044
35045 2009-12-31  Bruno Haible  <bruno@clisp.org>
35046
35047         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35048         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35049         afterwards.
35050
35051 2009-12-31  Bruno Haible  <bruno@clisp.org>
35052
35053         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35054         SYS_UTSNAME_H.
35055
35056 2009-12-31  Bruno Haible  <bruno@clisp.org>
35057
35058         spawn: Fix misapplied patch.
35059         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35060         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35061         warnings for GNULIB_POSIXCHECK.
35062
35063 2009-12-31  Bruno Haible  <bruno@clisp.org>
35064
35065         times: Update after sys_times changed.
35066         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35067         * modules/times (Files): Add it.
35068         (configure.ac): Invoke gl_FUNC_TIMES.
35069
35070 2009-12-31  Bruno Haible  <bruno@clisp.org>
35071
35072         Use AC_C_INLINE where necessary.
35073         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35074         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35076         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35077         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35078         * m4/mbiter.m4 (gl_MBITER): Likewise.
35079         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35080         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35081         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35082         * modules/u64 (configure.ac): Likewise.
35083
35084 2009-12-31  Bruno Haible  <bruno@clisp.org>
35085
35086         Use AC_C_INLINE instead of module 'inline' where possible.
35087         * modules/inline (Description): Clarify purpose.
35088         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35089         * modules/count-one-bits (Depends-on): Remove inline.
35090         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35091         * modules/openat (Depends-on): Remove inline.
35092         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35093         instead of depending on module 'inline'.
35094         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35095         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35096         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35097         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35098         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35099         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35100         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35101         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35102         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35103         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35104         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35105         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35106         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35107         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35108         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35109         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35110         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35111         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35112         Likewise.
35113         * modules/unictype/property-ascii-hex-digit (Depends-on,
35114         configure.ac): Likewise.
35115         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35116         configure.ac): Likewise.
35117         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35118         configure.ac): Likewise.
35119         * modules/unictype/property-bidi-block-separator (Depends-on,
35120         configure.ac): Likewise.
35121         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35122         configure.ac): Likewise.
35123         * modules/unictype/property-bidi-common-separator (Depends-on,
35124         configure.ac): Likewise.
35125         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35126         Likewise.
35127         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35128         configure.ac): Likewise.
35129         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35130         configure.ac): Likewise.
35131         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35132         configure.ac): Likewise.
35133         * modules/unictype/property-bidi-european-digit (Depends-on,
35134         configure.ac): Likewise.
35135         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35136         configure.ac): Likewise.
35137         * modules/unictype/property-bidi-left-to-right (Depends-on,
35138         configure.ac): Likewise.
35139         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35140         configure.ac): Likewise.
35141         * modules/unictype/property-bidi-other-neutral (Depends-on,
35142         configure.ac): Likewise.
35143         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35144         Likewise.
35145         * modules/unictype/property-bidi-segment-separator (Depends-on,
35146         configure.ac): Likewise.
35147         * modules/unictype/property-bidi-whitespace (Depends-on,
35148         configure.ac): Likewise.
35149         * modules/unictype/property-combining (Depends-on, configure.ac):
35150         Likewise.
35151         * modules/unictype/property-composite (Depends-on, configure.ac):
35152         Likewise.
35153         * modules/unictype/property-currency-symbol (Depends-on,
35154         configure.ac): Likewise.
35155         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35156         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35157         Likewise.
35158         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35159         configure.ac): Likewise.
35160         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35161         Likewise.
35162         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35163         Likewise.
35164         * modules/unictype/property-extender (Depends-on, configure.ac):
35165         Likewise.
35166         * modules/unictype/property-format-control (Depends-on, configure.ac):
35167         Likewise.
35168         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35169         Likewise.
35170         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35171         Likewise.
35172         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35173         Likewise.
35174         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35175         Likewise.
35176         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35177         Likewise.
35178         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35179         Likewise.
35180         * modules/unictype/property-id-start (Depends-on, configure.ac):
35181         Likewise.
35182         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35183         Likewise.
35184         * modules/unictype/property-ids-binary-operator (Depends-on,
35185         configure.ac): Likewise.
35186         * modules/unictype/property-ids-trinary-operator (Depends-on,
35187         configure.ac): Likewise.
35188         * modules/unictype/property-ignorable-control (Depends-on,
35189         configure.ac): Likewise.
35190         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35191         Likewise.
35192         * modules/unictype/property-join-control (Depends-on, configure.ac):
35193         Likewise.
35194         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35195         Likewise.
35196         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35197         Likewise.
35198         * modules/unictype/property-logical-order-exception (Depends-on,
35199         configure.ac): Likewise.
35200         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35201         Likewise.
35202         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35203         * modules/unictype/property-non-break (Depends-on, configure.ac):
35204         Likewise.
35205         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35206         Likewise.
35207         * modules/unictype/property-numeric (Depends-on, configure.ac):
35208         Likewise.
35209         * modules/unictype/property-other-alphabetic (Depends-on,
35210         configure.ac): Likewise.
35211         * modules/unictype/property-other-default-ignorable-code-point
35212         (Depends-on, configure.ac): Likewise.
35213         * modules/unictype/property-other-grapheme-extend (Depends-on,
35214         configure.ac): Likewise.
35215         * modules/unictype/property-other-id-continue (Depends-on,
35216         configure.ac): Likewise.
35217         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35218         Likewise.
35219         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35220         Likewise.
35221         * modules/unictype/property-other-math (Depends-on, configure.ac):
35222         Likewise.
35223         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35224         Likewise.
35225         * modules/unictype/property-paired-punctuation (Depends-on,
35226         configure.ac): Likewise.
35227         * modules/unictype/property-paragraph-separator (Depends-on,
35228         configure.ac): Likewise.
35229         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35230         Likewise.
35231         * modules/unictype/property-pattern-white-space (Depends-on,
35232         configure.ac): Likewise.
35233         * modules/unictype/property-private-use (Depends-on, configure.ac):
35234         Likewise.
35235         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35236         Likewise.
35237         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35238         Likewise.
35239         * modules/unictype/property-radical (Depends-on, configure.ac):
35240         Likewise.
35241         * modules/unictype/property-sentence-terminal (Depends-on,
35242         configure.ac): Likewise.
35243         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35244         Likewise.
35245         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35246         * modules/unictype/property-terminal-punctuation (Depends-on,
35247         configure.ac): Likewise.
35248         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35249         Likewise.
35250         * modules/unictype/property-unassigned-code-value (Depends-on,
35251         configure.ac): Likewise.
35252         * modules/unictype/property-unified-ideograph (Depends-on,
35253         configure.ac): Likewise.
35254         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35255         Likewise.
35256         * modules/unictype/property-variation-selector (Depends-on,
35257         configure.ac): Likewise.
35258         * modules/unictype/property-white-space (Depends-on, configure.ac):
35259         Likewise.
35260         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35261         Likewise.
35262         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35263         Likewise.
35264         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35265         Likewise.
35266         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35267         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35268         Likewise.
35269
35270 2009-12-31  Bruno Haible  <bruno@clisp.org>
35271
35272         Remove unnecessary AC_C_INLINE invocation.
35273         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35274         since 2009-08-21.
35275
35276 2009-12-31  Jim Meyering  <meyering@redhat.com>
35277
35278         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35279         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35280         With this change, we can all remove the gpg_key_ID = ... definition
35281         from our respective cfg.mk files.
35282
35283         maint.mk: create announcement template in ~/, not in /tmp
35284         * top/maint.mk (emit_upload_commands): Adjust.
35285         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35286         Remove temporary file, .ci-msg.
35287
35288 2009-12-31  Eric Blake  <ebb9@byu.net>
35289
35290         link-warning: always build headers with link warnings
35291         * modules/arpa_inet (Makefile.am): Always build replacement
35292         header.
35293         * modules/ctype (Makefile.am): Likewise.
35294         * modules/dirent (Makefile.am): Likewise.
35295         * modules/inttypes (Makefile.am): Likewise.
35296         * modules/langinfo (Makefile.am): Likewise.
35297         * modules/locale (Makefile.am): Likewise.
35298         * modules/spawn (Makefile.am): Likewise.
35299         * modules/sys_file (Makefile.am): Likewise.
35300         * modules/sys_ioctl (Makefile.am): Likewise.
35301         * modules/sys_select (Makefile.am): Likewise.
35302         * modules/sys_socket (Makefile.am): Likewise.
35303         * modules/sys_times (Makefile.am): Likewise.
35304         * modules/sys_utsname (Makefile.am): Likewise.
35305         * modules/sys_wait (Makefile.am): Likewise.
35306         * modules/wchar (Makefile.am): Likewise.
35307         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35308         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35309         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35310         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35311         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35312         Likewise.
35313         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35314         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35315         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35316         Likewise.
35317         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35318         Likewise.
35319         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35320         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35321         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35322         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35323         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35325         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35326         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35327         (gl_WCHAR_H_DEFAULTS): Likewise.
35328
35329 2009-12-31  Eric Blake  <ebb9@byu.net>
35330
35331         signal, spawn: use link warnings
35332         * lib/signal.in.h (sigset_t): Make unconditional.
35333         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35334         (sigpending, sigprocmask, sigaction): Add link warnings.
35335         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35336         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35337         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35338         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35339         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35340         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35341         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35342         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35343         (posix_spawn_file_actions_destroy)
35344         (posix_spawn_file_actions_addopen)
35345         (posix_spawn_file_actions_addclose)
35346         (posix_spawn_file_actions_adddup2): Likewise.
35347         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35348         * tests/test-signal.c (main): Enhance test.
35349
35350         spawn: improve wrapper support
35351         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35352         (gl_SPAWN_H_DEFAULTS): New defaults.
35353         * modules/spawn (Makefile.am): Substitute them.
35354         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35355         Only declare if missing or broken.
35356
35357         sys_times, sys_utsname: use include_next
35358         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35359         header.
35360         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35361         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35362         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35363         * modules/sys_times (Depends-on): Add include_next.
35364         (Makefile.am): Substitute additional values.
35365         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35366         * lib/sys_times.in.h (includes): Include native header, if
35367         available.
35368         * lib/sys_utsname.in.h (includes): Likewise.
35369         * tests/test-sys_times.c (main): Enhance test.
35370
35371         fdutimensat: revert prior patch
35372         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35373         utimens.h.
35374         Reported by Bruno Haible.
35375
35376 2009-12-30  Eric Blake  <ebb9@byu.net>
35377
35378         sys_wait: drop link-warning dependency
35379         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35380         link-warning efforts.
35381         * lib/sys_wait.in.h: Likewise.
35382
35383         fdutimensat: remove bogus dependency
35384         * modules/fdutimensat (Depends-on): Drop inline.
35385
35386         unistd: fix typo
35387         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35388
35389 2009-12-30  Bruno Haible  <bruno@clisp.org>
35390
35391         Fix compilation error with Solaris cc.
35392         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35393         * lib/unicase/u16-is-invariant.c: Likewise.
35394         * lib/unicase/u32-is-invariant.c: Likewise.
35395         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35396
35397 2009-12-30  Bruno Haible  <bruno@clisp.org>
35398
35399         Fix test crash.
35400         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35401         locales.
35402         Reported by Simon Josefsson <simon@josefsson.org>.
35403
35404 2009-12-30  Bruno Haible  <bruno@clisp.org>
35405
35406         Fix compilation error on most platforms.
35407         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35408         Reported by Simon Josefsson <simon@josefsson.org>
35409         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35410
35411 2009-12-30  Eric Blake  <ebb9@byu.net>
35412
35413         futimens, utimensat: work around ntfs-3g bug
35414         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35415         a ctime bug is present, and expand workaround to cover ntfs-3g.
35416         * lib/utimens.c (fdutimens, lutimens): Likewise.
35417         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35418         (validate_timespec): Adjust return value.
35419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35420         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35421         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35422
35423 2009-12-29  Eric Blake  <ebb9@byu.net>
35424
35425         link-warning: make usage consistent
35426         * modules/ctype (Depends-on): Add link-warning.
35427         (Makefile.am): Update rules accordingly.
35428         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35429         * modules/locale (Depends-on, Makefile.am): Likewise.
35430         * modules/sys_file (Makefile.am): Likewise.
35431         * modules/getopt-posix (Makefile.am): Delete unused link warning
35432         efforts.
35433         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35434         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35435         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35436         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35437
35438         stdio: remove unused variables
35439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35440         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35441         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35442
35443         tests: test more substitute headers
35444         * modules/ctype-tests: New file.
35445         * modules/dirent-tests: Likewise.
35446         * modules/spawn-tests: Likewise.
35447         * modules/sys_file-tests: Likewise.
35448         * modules/sys_ioctl-tests: Likewise.
35449         * modules/sys_wait-tests: Likewise.
35450         * tests/test-ctype.c: Likewise.
35451         * tests/test-dirent.c: Likewise.
35452         * tests/test-spawn.c: Likewise.
35453         * tests/test-sys_file.c: Likewise.
35454         * tests/test-sys_ioctl.c: Likewise.
35455         * tests/test-sys_wait.c: Likewise.
35456         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35457         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35458         whether or not flock is in use.
35459
35460         tests: remove License section from module
35461         * modules/arpa_inet-tests: Remove unneeded section.
35462         * modules/byteswap-tests: Likewise.
35463         * modules/ceilf-tests: Likewise.
35464         * modules/ceill-tests: Likewise.
35465         * modules/crypto/des-tests: Likewise.
35466         * modules/crypto/gc-arcfour-tests: Likewise.
35467         * modules/crypto/gc-arctwo-tests: Likewise.
35468         * modules/crypto/gc-des-tests: Likewise.
35469         * modules/crypto/gc-hmac-md5-tests: Likewise.
35470         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35471         * modules/crypto/gc-md2-tests: Likewise.
35472         * modules/crypto/gc-md4-tests: Likewise.
35473         * modules/crypto/gc-md5-tests: Likewise.
35474         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35475         * modules/crypto/gc-rijndael-tests: Likewise.
35476         * modules/crypto/gc-sha1-tests: Likewise.
35477         * modules/crypto/gc-tests: Likewise.
35478         * modules/crypto/md2-tests: Likewise.
35479         * modules/crypto/md4-tests: Likewise.
35480         * modules/fcntl-h-tests: Likewise.
35481         * modules/floorf-tests: Likewise.
35482         * modules/floorl-tests: Likewise.
35483         * modules/frexp-nolibm-tests: Likewise.
35484         * modules/frexp-tests: Likewise.
35485         * modules/frexpl-nolibm-tests: Likewise.
35486         * modules/frexpl-tests: Likewise.
35487         * modules/getaddrinfo-tests: Likewise.
35488         * modules/inttypes-tests: Likewise.
35489         * modules/isfinite-tests: Likewise.
35490         * modules/isinf-tests: Likewise.
35491         * modules/ldexpl-tests: Likewise.
35492         * modules/locale-tests: Likewise.
35493         * modules/math-tests: Likewise.
35494         * modules/netdb-tests: Likewise.
35495         * modules/netinet_in-tests: Likewise.
35496         * modules/printf-frexp-tests: Likewise.
35497         * modules/printf-frexpl-tests: Likewise.
35498         * modules/priv-set-tests: Likewise.
35499         * modules/random_r-tests: Likewise.
35500         * modules/round-tests: Likewise.
35501         * modules/roundf-tests: Likewise.
35502         * modules/roundl-tests: Likewise.
35503         * modules/search-tests: Likewise.
35504         * modules/select-tests: Likewise.
35505         * modules/signal-tests: Likewise.
35506         * modules/stdbool-tests: Likewise.
35507         * modules/stddef-tests: Likewise.
35508         * modules/stdint-tests: Likewise.
35509         * modules/stdio-tests: Likewise.
35510         * modules/stdlib-tests: Likewise.
35511         * modules/string-tests: Likewise.
35512         * modules/strings-tests: Likewise.
35513         * modules/sys_select-tests: Likewise.
35514         * modules/sys_socket-tests: Likewise.
35515         * modules/sys_stat-tests: Likewise.
35516         * modules/sys_time-tests: Likewise.
35517         * modules/sys_utsname-tests: Likewise.
35518         * modules/sysexits-tests: Likewise.
35519         * modules/time-tests: Likewise.
35520         * modules/trunc-tests: Likewise.
35521         * modules/truncf-tests: Likewise.
35522         * modules/truncl-tests: Likewise.
35523         * modules/tsearch-tests: Likewise.
35524         * modules/unistd-tests: Likewise.
35525         * modules/wchar-tests: Likewise.
35526         * modules/wctype-tests: Likewise.
35527
35528         tests: fix license on several tests
35529         * tests/test-des.c: Update to GPLv3+.
35530         * tests/test-flock.c: Likewise.
35531         * tests/test-fsync.c: Likewise.
35532         * tests/test-futimens.h: Likewise.
35533         * tests/test-gc-arcfour.c: Likewise.
35534         * tests/test-gc-arctwo.c: Likewise.
35535         * tests/test-gc-des.c: Likewise.
35536         * tests/test-gc-hmac-md5.c: Likewise.
35537         * tests/test-gc-hmac-sha1.c: Likewise.
35538         * tests/test-gc-md2.c: Likewise.
35539         * tests/test-gc-md4.c: Likewise.
35540         * tests/test-gc-md5.c: Likewise.
35541         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35542         * tests/test-gc-rijndael.c: Likewise.
35543         * tests/test-gc-sha1.c: Likewise.
35544         * tests/test-gc.c: Likewise.
35545         * tests/test-getcwd.c: Likewise.
35546         * tests/test-link.c: Likewise.
35547         * tests/test-link.h: Likewise.
35548         * tests/test-lutimens.h: Likewise.
35549         * tests/test-md2.c: Likewise.
35550         * tests/test-md4.c: Likewise.
35551         * tests/test-mkdir.h: Likewise.
35552         * tests/test-rename.c: Likewise.
35553         * tests/test-rename.h: Likewise.
35554         * tests/test-safe-alloc.c: Likewise.
35555         * tests/test-utimens-common.h: Likewise.
35556         * tests/test-utimens.h: Likewise.
35557
35558         maint: sync license texts
35559         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35560         * doc/gpl-3.0.texi: Revert copyright year update.
35561         * doc/lgpl-3.0.texi: Likewise.
35562
35563 2009-12-29  Jim Meyering  <meyering@redhat.com>
35564
35565         update nearly all FSF copyright year lists to include 2009
35566         The files named by the following are exempted:
35567             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35568               test -f "$dst" && { echo "$dst"; continue; }
35569               test -d "$dst" || continue
35570               echo "$dst"/$(basename "$src")
35571             done > exempt
35572             git ls-files tests/unictype >> exempt
35573         In the remaining files, convert to all-interval notation if
35574         - there is already at least one year interval like 2000-2003
35575         - the file is maintained by me
35576         - the file is in lib/uni*/, where that style already prevails
35577         Otherwise, use update-copyright's default.
35578
35579 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35580         and Eric Blake  <ebb9@byu.net>
35581
35582         tests: don't require debug system() to pass
35583         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35584         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35585         * tests/test-unlink.h (test_unlink_func): Likewise.
35586         * tests/test-fstatat.c (main): ...into callers.
35587         * tests/test-lstat.c (main): Likewise.
35588         * tests/test-rmdir.c (main): Likewise.
35589         * tests/test-unlink.c (main): Likewise.
35590         * tests/test-unlinkat.c (main): Likewise.
35591         * tests/test-areadlink-with-size.c (main): Don't require a
35592         debug-only system call to pass, aiding cross-testing to mingw.
35593         * tests/test-areadlink.c (main): Likewise.
35594         * tests/test-areadlinkat-with-size.c (main): Likewise.
35595         * tests/test-areadlinkat.c (main): Likewise.
35596         * tests/test-canonicalize-lgpl.c (main): Likewise.
35597         * tests/test-canonicalize.c (main): Likewise.
35598         * tests/test-chown.c (main): Likewise.
35599         * tests/test-fchownat.c (main): Likewise.
35600         * tests/test-lchown.c (main): Likewise.
35601         * tests/test-fdutimensat.c (main): Likewise.
35602         * tests/test-futimens.c (main): Likewise.
35603         * tests/test-link.c (main): Likewise.
35604         * tests/test-linkat.c (main): Likewise.
35605         * tests/test-mkdir.c (main): Likewise.
35606         * tests/test-mkdirat.c (main): Likewise.
35607         * tests/test-mkfifo.c (main): Likewise.
35608         * tests/test-mkfifoat.c (main): Likewise.
35609         * tests/test-mknod.c (main): Likewise.
35610         * tests/test-readlink.c (main): Likewise.
35611         * tests/test-remove.c (main): Likewise.
35612         * tests/test-rename.c (main): Likewise.
35613         * tests/test-renameat.c (main): Likewise.
35614         * tests/test-symlink.c (main): Likewise.
35615         * tests/test-symlinkat.c (main): Likewise.
35616         * tests/test-utimens.c (main): Likewise.
35617         * tests/test-utimensat.c (main): Likewise.
35618
35619 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35620
35621         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35622         on $(UNUSED_PARAMETER_H) to avoid build failure.
35623
35624 2009-12-28  Jim Meyering  <meyering@redhat.com>
35625
35626         update-copyright: you may specify a max. line length other than 72
35627         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35628
35629         maint: use consistent FSF copyright line syntax
35630         * lib/posixtm.c: Add missing comma in FSF copyright line.
35631         * lib/posixtm.h: Likewise.
35632         * lib/getugroups.c: Add missing ", Inc.".
35633
35634         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35635         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35636         FSF copyright line.  Remove trailing blanks.
35637
35638 2009-12-28  Eric Blake  <ebb9@byu.net>
35639
35640         test-dup2: reduce dependencies
35641         * modules/cloexec (Configure.ac): Set witness.
35642         * modules/dup2-tests (Depends-on): Drop cloexec.
35643         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35644         not present.
35645         Suggested by Bruno Haible.
35646
35647 2009-12-26  Bruno Haible  <bruno@clisp.org>
35648
35649         Remove an unneeded dependency.
35650         * modules/fseterr (Depends-on): Remove dup2.
35651
35652 2009-12-26  Eric Blake  <ebb9@byu.net>
35653
35654         tests: use macros.h in more places
35655         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35656         (ASSERT_STREAM): Provide default of stderr.
35657         * tests/test-dirent-safer.c: Include macros.h, using alternate
35658         stream for assertions.
35659         * tests/test-dup-safer.c: Likewise.
35660         * tests/test-freopen-safer.c: Likewise.
35661         * tests/test-getopt.c: Likewise.
35662         * tests/test-openat-safer.c: Likewise.
35663         * tests/test-pipe.c: Likewise.
35664         * tests/test-popen-safer.c: Likewise.
35665         * modules/dirent-safer-tests (Files): Include macros.h.
35666         * modules/unistd-safer-tests (Files): Likewise.
35667         * modules/freopen-safer-tests (Files): Likewise.
35668         * modules/getopt-posix-tests (Files): Likewise.
35669         * modules/openat-safer-tests (Files): Likewise.
35670         * modules/pipe-tests (Files): Likewise.
35671
35672 2009-12-26  Bruno Haible  <bruno@clisp.org>
35673
35674         javacomp: Portability fix.
35675         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35676         that it also works on Solaris.
35677
35678 2009-12-26  Bruno Haible  <bruno@clisp.org>
35679
35680         localename: Fix storage allocation of gl_locale_name_thread's result.
35681         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35682         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35683         all platforms that have 'uselocale'.
35684         (gl_locale_name_thread_unsafe): New function, extracted from
35685         gl_locale_name_thread.
35686         (gl_locale_name_thread): Call struniq on all platforms that have
35687         'uselocale'.
35688         * tests/test-localename.c (test_locale_name_thread): Check that the
35689         resulting strings are permanently allocated.
35690         * modules/localename-tests (Depends-on): Add strdup.
35691
35692 2009-12-26  Bruno Haible  <bruno@clisp.org>
35693
35694         * tests/test-localename.c (categories): Fill in the strings.
35695
35696 2009-12-26  Jim Meyering  <meyering@redhat.com>
35697
35698         isdir: complete the removal of m4/isdir.m4
35699         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35700
35701         isdir: clean up, since at least grep still uses it
35702         * lib/isdir.c: Include "isdir.h".
35703         (S_ISDIR): Remove now-unneeded definition.
35704         * modules/isdir (Files): Add lib/isdir.h.
35705         * lib/isdir.h: New file, with declaration.
35706         * m4/isdir.m4: Remove file -- unneeded.
35707
35708 2009-12-25  Bruno Haible  <bruno@clisp.org>
35709
35710         selinux-h: Make generated .h files standalone.
35711         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35712         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35713         * lib/se-selinux.in.h: Likewise.
35714         * modules/selinux-h (Depends-on): Add unused-parameter.
35715         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35716         selinux/selinux.h and selinux/context.h.
35717         Suggested by Eric Blake.
35718
35719 2009-12-25  Bruno Haible  <bruno@clisp.org>
35720
35721         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35722         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35723         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35724         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35725         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35726
35727 2009-12-24  Bruno Haible  <bruno@clisp.org>
35728
35729         openat: Fix warning.
35730         * lib/openat-proc.c: Include <unistd.h>.
35731
35732 2009-12-24  Bruno Haible  <bruno@clisp.org>
35733
35734         New module 'unused-parameter'.
35735         * build-aux/unused-parameter.h: New file, extracted from earlier
35736         gnulib-common.m4.
35737         * modules/unused-parameter: New file.
35738         * lib/unistr.h: Include unused-parameter.h.
35739         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35740         _GL_UNUSED.
35741         * modules/unistr/base (Depends-on): Add unused-parameter.
35742
35743 2009-12-24  Bruno Haible  <bruno@clisp.org>
35744
35745         Add missing dependencies to 'extensions' module.
35746         * m4/extensions.m4: Add comment.
35747         * modules/accept4 (Depends-on): Add extensions.
35748         * modules/dup3 (Depends-on): Likewise.
35749         * modules/fcntl (Depends-on): Likewise.
35750         * modules/futimens (Depends-on): Likewise.
35751         * modules/mknod (Depends-on): Likewise.
35752         * modules/pipe2 (Depends-on): Likewise.
35753         * modules/stat-time (Depends-on): Likewise.
35754         * modules/strcasestr-simple (Depends-on): Likewise.
35755         * modules/strsignal (Depends-on): Likewise.
35756         * modules/utimensat (Depends-on): Likewise.
35757         * modules/localcharset (Depends-on): Likewise. Needed because of
35758         gl_FCNTL_O_FLAGS.
35759         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35760         AC_TYPE_MBSTATE_T.
35761         * modules/wcsnrtombs (Depends-on): Likewise.
35762         * modules/wcsrtombs (Depends-on): Likewise.
35763
35764 2009-12-24  Bruno Haible  <bruno@clisp.org>
35765
35766         binary-io: Avoid gcc warning due to SET_BINARY.
35767         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35768         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35769
35770 2009-12-24  Bruno Haible  <bruno@clisp.org>
35771
35772         Avoid future namespace pollution on glibc systems.
35773         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35774         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35775         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35776         glibc systems.
35777
35778 2009-12-24  Bruno Haible  <bruno@clisp.org>
35779
35780         Refactor common macros used in tests.
35781         * tests/macros.h: New file.
35782         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35783         and/or <stdlib.h>, if appropriate.
35784         (ASSERT, SIZEOF): Remove macros.
35785         * tests/test-areadlink-with-size.c: Likewise.
35786         * tests/test-areadlinkat.c: Likewise.
35787         * tests/test-areadlinkat-with-size.c: Likewise.
35788         * tests/test-argmatch.c: Likewise.
35789         * tests/test-argv-iter.c: Likewise.
35790         * tests/test-array-mergesort.c: Likewise.
35791         * tests/test-array_list.c: Likewise.
35792         * tests/test-array_oset.c: Likewise.
35793         * tests/test-avltree_list.c: Likewise.
35794         * tests/test-avltree_oset.c: Likewise.
35795         * tests/test-avltreehash_list.c: Likewise.
35796         * tests/test-base64.c: Likewise.
35797         * tests/test-binary-io.c: Likewise.
35798         * tests/test-bitrotate.c: Likewise.
35799         * tests/test-btowc.c: Likewise.
35800         * tests/test-byteswap.c: Likewise.
35801         * tests/test-c-ctype.c: Likewise.
35802         * tests/test-c-stack.c: Likewise.
35803         * tests/test-c-strcasecmp.c: Likewise.
35804         * tests/test-c-strcasestr.c: Likewise.
35805         * tests/test-c-strncasecmp.c: Likewise.
35806         * tests/test-c-strstr.c: Likewise.
35807         * tests/test-canonicalize-lgpl.c: Likewise.
35808         * tests/test-canonicalize.c: Likewise.
35809         * tests/test-carray_list.c: Likewise.
35810         * tests/test-ceilf1.c: Likewise.
35811         * tests/test-ceilf2.c: Likewise.
35812         * tests/test-ceill.c: Likewise.
35813         * tests/test-chown.c: Likewise.
35814         * tests/test-cloexec.c: Likewise.
35815         * tests/test-copy-acl.c: Likewise.
35816         * tests/test-copy-file.c: Likewise.
35817         * tests/test-count-one-bits.c: Likewise.
35818         * tests/test-dprintf-posix.c: Likewise.
35819         * tests/test-dup2.c: Likewise.
35820         * tests/test-dup3.c: Likewise.
35821         * tests/test-duplocale.c: Likewise.
35822         * tests/test-fbufmode.c: Likewise.
35823         * tests/test-fchdir.c: Likewise.
35824         * tests/test-fchownat.c: Likewise.
35825         * tests/test-fcntl-safer.c: Likewise.
35826         * tests/test-fcntl.c: Likewise.
35827         * tests/test-fdopendir.c: Likewise.
35828         * tests/test-fdutimensat.c: Likewise.
35829         * tests/test-fflush2.c: Likewise.
35830         * tests/test-file-has-acl.c: Likewise.
35831         * tests/test-filevercmp.c: Likewise.
35832         * tests/test-flock.c: Likewise.
35833         * tests/test-floorf1.c: Likewise.
35834         * tests/test-floorf2.c: Likewise.
35835         * tests/test-floorl.c: Likewise.
35836         * tests/test-fnmatch.c: Likewise.
35837         * tests/test-fopen.h: Likewise.
35838         * tests/test-fpending.c: Likewise.
35839         * tests/test-fprintf-posix.c: Likewise.
35840         * tests/test-fpurge.c: Likewise.
35841         * tests/test-freadable.c: Likewise.
35842         * tests/test-freadahead.c: Likewise.
35843         * tests/test-freading.c: Likewise.
35844         * tests/test-freadptr.c: Likewise.
35845         * tests/test-freadptr2.c: Likewise.
35846         * tests/test-freadseek.c: Likewise.
35847         * tests/test-freopen.c: Likewise.
35848         * tests/test-frexp.c: Likewise.
35849         * tests/test-frexpl.c: Likewise.
35850         * tests/test-fseek.c: Likewise.
35851         * tests/test-fseeko.c: Likewise.
35852         * tests/test-fstatat.c: Likewise.
35853         * tests/test-fstrcmp.c: Likewise.
35854         * tests/test-fsync.c: Likewise.
35855         * tests/test-ftell.c: Likewise.
35856         * tests/test-ftello.c: Likewise.
35857         * tests/test-func.c: Likewise.
35858         * tests/test-futimens.c: Likewise.
35859         * tests/test-fwritable.c: Likewise.
35860         * tests/test-fwriting.c: Likewise.
35861         * tests/test-getcwd.c: Likewise.
35862         * tests/test-getdate.c: Likewise.
35863         * tests/test-getdelim.c: Likewise.
35864         * tests/test-getdtablesize.c: Likewise.
35865         * tests/test-getgroups.c: Likewise.
35866         * tests/test-getline.c: Likewise.
35867         * tests/test-getndelim2.c: Likewise.
35868         * tests/test-glob.c: Likewise.
35869         * tests/test-hash.c: Likewise.
35870         * tests/test-i-ring.c: Likewise.
35871         * tests/test-iconv-utf.c: Likewise.
35872         * tests/test-iconv.c: Likewise.
35873         * tests/test-idpriv-drop.c: Likewise.
35874         * tests/test-idpriv-droptemp.c: Likewise.
35875         * tests/test-inet_ntop.c: Likewise.
35876         * tests/test-inet_pton.c: Likewise.
35877         * tests/test-isblank.c: Likewise.
35878         * tests/test-isfinite.c: Likewise.
35879         * tests/test-isinf.c: Likewise.
35880         * tests/test-isnan.c: Likewise.
35881         * tests/test-isnand.h: Likewise.
35882         * tests/test-isnanf.h: Likewise.
35883         * tests/test-isnanl.h: Likewise.
35884         * tests/test-lchown.c: Likewise.
35885         * tests/test-ldexpl.c: Likewise.
35886         * tests/test-link.c: Likewise.
35887         * tests/test-linkat.c: Likewise.
35888         * tests/test-linked_list.c: Likewise.
35889         * tests/test-linkedhash_list.c: Likewise.
35890         * tests/test-localename.c: Likewise.
35891         * tests/test-lseek.c: Likewise.
35892         * tests/test-lstat.c: Likewise.
35893         * tests/test-mbmemcasecmp.c: Likewise.
35894         * tests/test-mbmemcasecoll.c: Likewise.
35895         * tests/test-mbrtowc.c: Likewise.
35896         * tests/test-mbscasecmp.c: Likewise.
35897         * tests/test-mbscasestr1.c: Likewise.
35898         * tests/test-mbscasestr2.c: Likewise.
35899         * tests/test-mbscasestr3.c: Likewise.
35900         * tests/test-mbscasestr4.c: Likewise.
35901         * tests/test-mbschr.c: Likewise.
35902         * tests/test-mbscspn.c: Likewise.
35903         * tests/test-mbsinit.c: Likewise.
35904         * tests/test-mbsncasecmp.c: Likewise.
35905         * tests/test-mbsnrtowcs.c: Likewise.
35906         * tests/test-mbspbrk.c: Likewise.
35907         * tests/test-mbspcasecmp.c: Likewise.
35908         * tests/test-mbsrchr.c: Likewise.
35909         * tests/test-mbsrtowcs.c: Likewise.
35910         * tests/test-mbsspn.c: Likewise.
35911         * tests/test-mbsstr1.c: Likewise.
35912         * tests/test-mbsstr2.c: Likewise.
35913         * tests/test-mbsstr3.c: Likewise.
35914         * tests/test-memchr.c: Likewise.
35915         * tests/test-memchr2.c: Likewise.
35916         * tests/test-memcmp.c: Likewise.
35917         * tests/test-memmem.c: Likewise.
35918         * tests/test-memrchr.c: Likewise.
35919         * tests/test-mkdir.c: Likewise.
35920         * tests/test-mkdirat.c: Likewise.
35921         * tests/test-mkfifo.c: Likewise.
35922         * tests/test-mkfifoat.c: Likewise.
35923         * tests/test-mknod.c: Likewise.
35924         * tests/test-nanosleep.c: Likewise.
35925         * tests/test-nl_langinfo.c: Likewise.
35926         * tests/test-obstack-printf.c: Likewise.
35927         * tests/test-open.c: Likewise.
35928         * tests/test-openat.c: Likewise.
35929         * tests/test-pipe-filter-gi1.c: Likewise.
35930         * tests/test-pipe-filter-gi2-main.c: Likewise.
35931         * tests/test-pipe-filter-ii1.c: Likewise.
35932         * tests/test-pipe-filter-ii2-main.c: Likewise.
35933         * tests/test-pipe2.c: Likewise.
35934         * tests/test-popen.h: Likewise.
35935         * tests/test-posixtm.c: Likewise.
35936         * tests/test-pread.c: Likewise.
35937         * tests/test-printf-frexp.c: Likewise.
35938         * tests/test-printf-frexpl.c: Likewise.
35939         * tests/test-printf-posix.c: Likewise.
35940         * tests/test-priv-set.c: Likewise.
35941         * tests/test-quotearg.c: Likewise.
35942         * tests/test-random_r.c: Likewise.
35943         * tests/test-rawmemchr.c: Likewise.
35944         * tests/test-rbtree_list.c: Likewise.
35945         * tests/test-rbtree_oset.c: Likewise.
35946         * tests/test-rbtreehash_list.c: Likewise.
35947         * tests/test-readlink.c: Likewise.
35948         * tests/test-remove.c: Likewise.
35949         * tests/test-rename.c: Likewise.
35950         * tests/test-renameat.c: Likewise.
35951         * tests/test-rmdir.c: Likewise.
35952         * tests/test-round1.c: Likewise.
35953         * tests/test-roundf1.c: Likewise.
35954         * tests/test-roundl.c: Likewise.
35955         * tests/test-safe-alloc.c: Likewise.
35956         * tests/test-sameacls.c: Likewise.
35957         * tests/test-set-mode-acl.c: Likewise.
35958         * tests/test-setenv.c: Likewise.
35959         * tests/test-sigaction.c: Likewise.
35960         * tests/test-signbit.c: Likewise.
35961         * tests/test-sleep.c: Likewise.
35962         * tests/test-snprintf-posix.c: Likewise.
35963         * tests/test-snprintf.c: Likewise.
35964         * tests/test-sprintf-posix.c: Likewise.
35965         * tests/test-stat-time.c: Likewise.
35966         * tests/test-stat.c: Likewise.
35967         * tests/test-strcasestr.c: Likewise.
35968         * tests/test-strchrnul.c: Likewise.
35969         * tests/test-strerror.c: Likewise.
35970         * tests/test-striconv.c: Likewise.
35971         * tests/test-striconveh.c: Likewise.
35972         * tests/test-striconveha.c: Likewise.
35973         * tests/test-strsignal.c: Likewise.
35974         * tests/test-strstr.c: Likewise.
35975         * tests/test-strtod.c: Likewise.
35976         * tests/test-strverscmp.c: Likewise.
35977         * tests/test-symlink.c: Likewise.
35978         * tests/test-symlinkat.c: Likewise.
35979         * tests/test-trunc1.c: Likewise.
35980         * tests/test-trunc2.c: Likewise.
35981         * tests/test-truncf1.c: Likewise.
35982         * tests/test-truncf2.c: Likewise.
35983         * tests/test-truncl.c: Likewise.
35984         * tests/test-uname.c: Likewise.
35985         * tests/test-unlink.c: Likewise.
35986         * tests/test-unlinkat.c: Likewise.
35987         * tests/test-unsetenv.c: Likewise.
35988         * tests/test-usleep.c: Likewise.
35989         * tests/test-utimens.c: Likewise.
35990         * tests/test-utimensat.c: Likewise.
35991         * tests/test-vasnprintf-posix.c: Likewise.
35992         * tests/test-vasnprintf-posix2.c: Likewise.
35993         * tests/test-vasnprintf.c: Likewise.
35994         * tests/test-vasprintf-posix.c: Likewise.
35995         * tests/test-vasprintf.c: Likewise.
35996         * tests/test-vdprintf-posix.c: Likewise.
35997         * tests/test-vfprintf-posix.c: Likewise.
35998         * tests/test-vprintf-posix.c: Likewise.
35999         * tests/test-vsnprintf-posix.c: Likewise.
36000         * tests/test-vsnprintf.c: Likewise.
36001         * tests/test-vsprintf-posix.c: Likewise.
36002         * tests/test-wcrtomb.c: Likewise.
36003         * tests/test-wcsnrtombs.c: Likewise.
36004         * tests/test-wcsrtombs.c: Likewise.
36005         * tests/test-wctype.c: Likewise.
36006         * tests/test-wcwidth.c: Likewise.
36007         * tests/test-xfprintf-posix.c: Likewise.
36008         * tests/test-xmemdup0.c: Likewise.
36009         * tests/test-xprintf-posix.c: Likewise.
36010         * tests/test-xvasprintf.c: Likewise.
36011         * tests/unicase/test-locale-language.c: Likewise.
36012         * tests/unicase/test-mapping-part1.h: Likewise.
36013         * tests/unicase/test-predicate-part1.h: Likewise.
36014         * tests/unicase/test-u8-casecmp.c: Likewise.
36015         * tests/unicase/test-u8-casecoll.c: Likewise.
36016         * tests/unicase/test-u8-casefold.c: Likewise.
36017         * tests/unicase/test-u8-is-cased.c: Likewise.
36018         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36019         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36020         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36021         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36022         * tests/unicase/test-u8-tolower.c: Likewise.
36023         * tests/unicase/test-u8-totitle.c: Likewise.
36024         * tests/unicase/test-u8-toupper.c: Likewise.
36025         * tests/unicase/test-u16-casecmp.c: Likewise.
36026         * tests/unicase/test-u16-casecoll.c: Likewise.
36027         * tests/unicase/test-u16-casefold.c: Likewise.
36028         * tests/unicase/test-u16-is-cased.c: Likewise.
36029         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36030         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36031         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36032         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36033         * tests/unicase/test-u16-tolower.c: Likewise.
36034         * tests/unicase/test-u16-totitle.c: Likewise.
36035         * tests/unicase/test-u16-toupper.c: Likewise.
36036         * tests/unicase/test-u32-casecmp.c: Likewise.
36037         * tests/unicase/test-u32-casecoll.c: Likewise.
36038         * tests/unicase/test-u32-casefold.c: Likewise.
36039         * tests/unicase/test-u32-is-cased.c: Likewise.
36040         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36041         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36042         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36043         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36044         * tests/unicase/test-u32-tolower.c: Likewise.
36045         * tests/unicase/test-u32-totitle.c: Likewise.
36046         * tests/unicase/test-u32-toupper.c: Likewise.
36047         * tests/unicase/test-ulc-casecmp.c: Likewise.
36048         * tests/unicase/test-ulc-casecoll.c: Likewise.
36049         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36050         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36051         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36052         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36053         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36054         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36055         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36056         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36057         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36058         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36059         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36060         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36061         * tests/unictype/test-bidi_byname.c: Likewise.
36062         * tests/unictype/test-bidi_name.c: Likewise.
36063         * tests/unictype/test-bidi_of.c: Likewise.
36064         * tests/unictype/test-bidi_test.c: Likewise.
36065         * tests/unictype/test-block_list.c: Likewise.
36066         * tests/unictype/test-block_of.c: Likewise.
36067         * tests/unictype/test-block_test.c: Likewise.
36068         * tests/unictype/test-categ_and.c: Likewise.
36069         * tests/unictype/test-categ_and_not.c: Likewise.
36070         * tests/unictype/test-categ_byname.c: Likewise.
36071         * tests/unictype/test-categ_name.c: Likewise.
36072         * tests/unictype/test-categ_none.c: Likewise.
36073         * tests/unictype/test-categ_of.c: Likewise.
36074         * tests/unictype/test-categ_or.c: Likewise.
36075         * tests/unictype/test-categ_test_withtable.c: Likewise.
36076         * tests/unictype/test-combining.c: Likewise.
36077         * tests/unictype/test-decdigit.c: Likewise.
36078         * tests/unictype/test-digit.c: Likewise.
36079         * tests/unictype/test-mirror.c: Likewise.
36080         * tests/unictype/test-numeric.c: Likewise.
36081         * tests/unictype/test-pr_byname.c: Likewise.
36082         * tests/unictype/test-pr_test.c: Likewise.
36083         * tests/unictype/test-predicate-part1.h: Likewise.
36084         * tests/unictype/test-scripts.c: Likewise.
36085         * tests/unictype/test-sy_c_ident.c: Likewise.
36086         * tests/unictype/test-sy_java_ident.c: Likewise.
36087         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36088         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36089         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36090         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36091         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36092         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36093         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36094         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36095         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36096         * tests/uninorm/test-compat-decomposition.c: Likewise.
36097         * tests/uninorm/test-composition.c: Likewise.
36098         * tests/uninorm/test-decomposing-form.c: Likewise.
36099         * tests/uninorm/test-decomposition.c: Likewise.
36100         * tests/uninorm/test-u8-nfc.c: Likewise.
36101         * tests/uninorm/test-u8-nfd.c: Likewise.
36102         * tests/uninorm/test-u8-nfkc.c: Likewise.
36103         * tests/uninorm/test-u8-nfkd.c: Likewise.
36104         * tests/uninorm/test-u8-normcmp.c: Likewise.
36105         * tests/uninorm/test-u8-normcoll.c: Likewise.
36106         * tests/uninorm/test-u16-nfc.c: Likewise.
36107         * tests/uninorm/test-u16-nfd.c: Likewise.
36108         * tests/uninorm/test-u16-nfkc.c: Likewise.
36109         * tests/uninorm/test-u16-nfkd.c: Likewise.
36110         * tests/uninorm/test-u16-normcmp.c: Likewise.
36111         * tests/uninorm/test-u16-normcoll.c: Likewise.
36112         * tests/uninorm/test-u32-nfc.c: Likewise.
36113         * tests/uninorm/test-u32-nfd.c: Likewise.
36114         * tests/uninorm/test-u32-nfkc.c: Likewise.
36115         * tests/uninorm/test-u32-nfkd.c: Likewise.
36116         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36117         * tests/uninorm/test-u32-normcmp.c: Likewise.
36118         * tests/uninorm/test-u32-normcoll.c: Likewise.
36119         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36120         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36121         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36122         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36123         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36124         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36125         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36126         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36127         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36128         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36129         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36130         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36131         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36132         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36133         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36134         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36135         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36136         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36137         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36138         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36139         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36140         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36141         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36142         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36143         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36144         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36145         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36146         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36147         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36148         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36149         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36150         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36151         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36152         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36153         * tests/uniwidth/test-u8-width.c: Likewise.
36154         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36155         * tests/uniwidth/test-u16-width.c: Likewise.
36156         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36157         * tests/uniwidth/test-u32-width.c: Likewise.
36158         * tests/uniwidth/test-uc_width.c: Likewise.
36159         * tests/uniwidth/test-uc_width2.c: Likewise.
36160         * modules/acl-tests (Files): Add tests/macros.h.
36161         * modules/areadlink-tests (Files): Likewise.
36162         * modules/areadlink-with-size-tests (Files): Likewise.
36163         * modules/areadlinkat-tests (Files): Likewise.
36164         * modules/areadlinkat-with-size-tests (Files): Likewise.
36165         * modules/argmatch-tests (Files): Likewise.
36166         * modules/argv-iter-tests (Files): Likewise.
36167         * modules/array-list-tests (Files): Likewise.
36168         * modules/array-mergesort-tests (Files): Likewise.
36169         * modules/array-oset-tests (Files): Likewise.
36170         * modules/avltree-list-tests (Files): Likewise.
36171         * modules/avltree-oset-tests (Files): Likewise.
36172         * modules/avltreehash-list-tests (Files): Likewise.
36173         * modules/base64-tests (Files): Likewise.
36174         * modules/binary-io-tests (Files): Likewise.
36175         * modules/bitrotate-tests (Files): Likewise.
36176         * modules/btowc-tests (Files): Likewise.
36177         * modules/byteswap-tests (Files): Likewise.
36178         * modules/c-ctype-tests (Files): Likewise.
36179         * modules/c-stack-tests (Files): Likewise.
36180         * modules/c-strcase-tests (Files): Likewise.
36181         * modules/c-strcasestr-tests (Files): Likewise.
36182         * modules/c-strstr-tests (Files): Likewise.
36183         * modules/canonicalize-lgpl-tests (Files): Likewise.
36184         * modules/canonicalize-tests (Files): Likewise.
36185         * modules/carray-list-tests (Files): Likewise.
36186         * modules/ceilf-tests (Files): Likewise.
36187         * modules/ceill-tests (Files): Likewise.
36188         * modules/chown-tests (Files): Likewise.
36189         * modules/cloexec-tests (Files): Likewise.
36190         * modules/copy-file-tests (Files): Likewise.
36191         * modules/count-one-bits-tests (Files): Likewise.
36192         * modules/dprintf-posix-tests (Files): Likewise.
36193         * modules/dup2-tests (Files): Likewise.
36194         * modules/dup3-tests (Files): Likewise.
36195         * modules/duplocale-tests (Files): Likewise.
36196         * modules/fbufmode-tests (Files): Likewise.
36197         * modules/fchdir-tests (Files): Likewise.
36198         * modules/fcntl-safer-tests (Files): Likewise.
36199         * modules/fcntl-tests (Files): Likewise.
36200         * modules/fdopendir-tests (Files): Likewise.
36201         * modules/fdutimensat-tests (Files): Likewise.
36202         * modules/fflush-tests (Files): Likewise.
36203         * modules/filevercmp-tests (Files): Likewise.
36204         * modules/flock-tests (Files): Likewise.
36205         * modules/floorf-tests (Files): Likewise.
36206         * modules/floorl-tests (Files): Likewise.
36207         * modules/fnmatch-tests (Files): Likewise.
36208         * modules/fopen-safer-tests (Files): Likewise.
36209         * modules/fopen-tests (Files): Likewise.
36210         * modules/fpending-tests (Files): Likewise.
36211         * modules/fprintf-posix-tests (Files): Likewise.
36212         * modules/fpurge-tests (Files): Likewise.
36213         * modules/freadable-tests (Files): Likewise.
36214         * modules/freadahead-tests (Files): Likewise.
36215         * modules/freading-tests (Files): Likewise.
36216         * modules/freadptr-tests (Files): Likewise.
36217         * modules/freadseek-tests (Files): Likewise.
36218         * modules/freopen-tests (Files): Likewise.
36219         * modules/frexp-nolibm-tests (Files): Likewise.
36220         * modules/frexp-tests (Files): Likewise.
36221         * modules/frexpl-nolibm-tests (Files): Likewise.
36222         * modules/frexpl-tests (Files): Likewise.
36223         * modules/fseek-tests (Files): Likewise.
36224         * modules/fseeko-tests (Files): Likewise.
36225         * modules/fstrcmp-tests (Files): Likewise.
36226         * modules/fsync-tests (Files): Likewise.
36227         * modules/ftell-tests (Files): Likewise.
36228         * modules/ftello-tests (Files): Likewise.
36229         * modules/func-tests (Files): Likewise.
36230         * modules/futimens-tests (Files): Likewise.
36231         * modules/fwritable-tests (Files): Likewise.
36232         * modules/fwriting-tests (Files): Likewise.
36233         * modules/getcwd-tests (Files): Likewise.
36234         * modules/getdate-tests (Files): Likewise.
36235         * modules/getdelim-tests (Files): Likewise.
36236         * modules/getdtablesize-tests (Files): Likewise.
36237         * modules/getgroups-tests (Files): Likewise.
36238         * modules/getline-tests (Files): Likewise.
36239         * modules/getndelim2-tests (Files): Likewise.
36240         * modules/glob-tests (Files): Likewise.
36241         * modules/hash-tests (Files): Likewise.
36242         * modules/i-ring-tests (Files): Likewise.
36243         * modules/iconv-tests (Files): Likewise.
36244         * modules/iconv_open-utf-tests (Files): Likewise.
36245         * modules/idpriv-drop-tests (Files): Likewise.
36246         * modules/idpriv-droptemp-tests (Files): Likewise.
36247         * modules/inet_ntop-tests (Files): Likewise.
36248         * modules/inet_pton-tests (Files): Likewise.
36249         * modules/isblank-tests (Files): Likewise.
36250         * modules/isfinite-tests (Files): Likewise.
36251         * modules/isinf-tests (Files): Likewise.
36252         * modules/isnan-tests (Files): Likewise.
36253         * modules/isnand-nolibm-tests (Files): Likewise.
36254         * modules/isnand-tests (Files): Likewise.
36255         * modules/isnanf-nolibm-tests (Files): Likewise.
36256         * modules/isnanf-tests (Files): Likewise.
36257         * modules/isnanl-nolibm-tests (Files): Likewise.
36258         * modules/isnanl-tests (Files): Likewise.
36259         * modules/lchown-tests (Files): Likewise.
36260         * modules/ldexpl-tests (Files): Likewise.
36261         * modules/link-tests (Files): Likewise.
36262         * modules/linkat-tests (Files): Likewise.
36263         * modules/linked-list-tests (Files): Likewise.
36264         * modules/linkedhash-list-tests (Files): Likewise.
36265         * modules/localename-tests (Files): Likewise.
36266         * modules/lseek-tests (Files): Likewise.
36267         * modules/lstat-tests (Files): Likewise.
36268         * modules/mbmemcasecmp-tests (Files): Likewise.
36269         * modules/mbmemcasecoll-tests (Files): Likewise.
36270         * modules/mbrtowc-tests (Files): Likewise.
36271         * modules/mbscasecmp-tests (Files): Likewise.
36272         * modules/mbscasestr-tests (Files): Likewise.
36273         * modules/mbschr-tests (Files): Likewise.
36274         * modules/mbscspn-tests (Files): Likewise.
36275         * modules/mbsinit-tests (Files): Likewise.
36276         * modules/mbsncasecmp-tests (Files): Likewise.
36277         * modules/mbsnrtowcs-tests (Files): Likewise.
36278         * modules/mbspbrk-tests (Files): Likewise.
36279         * modules/mbspcasecmp-tests (Files): Likewise.
36280         * modules/mbsrchr-tests (Files): Likewise.
36281         * modules/mbsrtowcs-tests (Files): Likewise.
36282         * modules/mbsspn-tests (Files): Likewise.
36283         * modules/mbsstr-tests (Files): Likewise.
36284         * modules/memchr-tests (Files): Likewise.
36285         * modules/memchr2-tests (Files): Likewise.
36286         * modules/memcmp-tests (Files): Likewise.
36287         * modules/memmem-tests (Files): Likewise.
36288         * modules/memrchr-tests (Files): Likewise.
36289         * modules/mkdir-tests (Files): Likewise.
36290         * modules/mkfifo-tests (Files): Likewise.
36291         * modules/mkfifoat-tests (Files): Likewise.
36292         * modules/mknod-tests (Files): Likewise.
36293         * modules/nanosleep-tests (Files): Likewise.
36294         * modules/nl_langinfo-tests (Files): Likewise.
36295         * modules/obstack-printf-tests (Files): Likewise.
36296         * modules/open-tests (Files): Likewise.
36297         * modules/openat-tests (Files): Likewise.
36298         * modules/pipe-filter-gi-tests (Files): Likewise.
36299         * modules/pipe-filter-ii-tests (Files): Likewise.
36300         * modules/pipe2-tests (Files): Likewise.
36301         * modules/popen-safer-tests (Files): Likewise.
36302         * modules/popen-tests (Files): Likewise.
36303         * modules/posixtm-tests (Files): Likewise.
36304         * modules/pread-tests (Files): Likewise.
36305         * modules/printf-frexp-tests (Files): Likewise.
36306         * modules/printf-frexpl-tests (Files): Likewise.
36307         * modules/printf-posix-tests (Files): Likewise.
36308         * modules/priv-set-tests (Files): Likewise.
36309         * modules/quotearg-tests (Files): Likewise.
36310         * modules/random_r-tests (Files): Likewise.
36311         * modules/rawmemchr-tests (Files): Likewise.
36312         * modules/rbtree-list-tests (Files): Likewise.
36313         * modules/rbtree-oset-tests (Files): Likewise.
36314         * modules/rbtreehash-list-tests (Files): Likewise.
36315         * modules/readlink-tests (Files): Likewise.
36316         * modules/remove-tests (Files): Likewise.
36317         * modules/rename-tests (Files): Likewise.
36318         * modules/renameat-tests (Files): Likewise.
36319         * modules/rmdir-tests (Files): Likewise.
36320         * modules/round-tests (Files): Likewise.
36321         * modules/roundf-tests (Files): Likewise.
36322         * modules/roundl-tests (Files): Likewise.
36323         * modules/safe-alloc-tests (Files): Likewise.
36324         * modules/setenv-tests (Files): Likewise.
36325         * modules/sigaction-tests (Files): Likewise.
36326         * modules/signbit-tests (Files): Likewise.
36327         * modules/sleep-tests (Files): Likewise.
36328         * modules/snprintf-posix-tests (Files): Likewise.
36329         * modules/snprintf-tests (Files): Likewise.
36330         * modules/sprintf-posix-tests (Files): Likewise.
36331         * modules/stat-tests (Files): Likewise.
36332         * modules/stat-time-tests (Files): Likewise.
36333         * modules/strcasestr-tests (Files): Likewise.
36334         * modules/strchrnul-tests (Files): Likewise.
36335         * modules/strerror-tests (Files): Likewise.
36336         * modules/striconv-tests (Files): Likewise.
36337         * modules/striconveh-tests (Files): Likewise.
36338         * modules/striconveha-tests (Files): Likewise.
36339         * modules/strsignal-tests (Files): Likewise.
36340         * modules/strstr-tests (Files): Likewise.
36341         * modules/strtod-tests (Files): Likewise.
36342         * modules/strverscmp-tests (Files): Likewise.
36343         * modules/symlink-tests (Files): Likewise.
36344         * modules/symlinkat-tests (Files): Likewise.
36345         * modules/trunc-tests (Files): Likewise.
36346         * modules/truncf-tests (Files): Likewise.
36347         * modules/truncl-tests (Files): Likewise.
36348         * modules/uname-tests (Files): Likewise.
36349         * modules/unicase/cased-tests (Files): Likewise.
36350         * modules/unicase/ignorable-tests (Files): Likewise.
36351         * modules/unicase/locale-language-tests (Files): Likewise.
36352         * modules/unicase/tolower-tests (Files): Likewise.
36353         * modules/unicase/totitle-tests (Files): Likewise.
36354         * modules/unicase/toupper-tests (Files): Likewise.
36355         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36356         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36357         * modules/unicase/u8-casefold-tests (Files): Likewise.
36358         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36359         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36360         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36361         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36362         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36363         * modules/unicase/u8-tolower-tests (Files): Likewise.
36364         * modules/unicase/u8-totitle-tests (Files): Likewise.
36365         * modules/unicase/u8-toupper-tests (Files): Likewise.
36366         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36367         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36368         * modules/unicase/u16-casefold-tests (Files): Likewise.
36369         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36370         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36371         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36372         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36373         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36374         * modules/unicase/u16-tolower-tests (Files): Likewise.
36375         * modules/unicase/u16-totitle-tests (Files): Likewise.
36376         * modules/unicase/u16-toupper-tests (Files): Likewise.
36377         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36378         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36379         * modules/unicase/u32-casefold-tests (Files): Likewise.
36380         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36381         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36382         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36383         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36384         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36385         * modules/unicase/u32-tolower-tests (Files): Likewise.
36386         * modules/unicase/u32-totitle-tests (Files): Likewise.
36387         * modules/unicase/u32-toupper-tests (Files): Likewise.
36388         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36389         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36390         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36391         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36392         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36393         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36394         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36395         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36396         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36397         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36398         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36399         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36400         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36401         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36402         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36403         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36404         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36405         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36406         * modules/unictype/block-list-tests (Files): Likewise.
36407         * modules/unictype/block-of-tests (Files): Likewise.
36408         * modules/unictype/block-test-tests (Files): Likewise.
36409         * modules/unictype/category-C-tests (Files): Likewise.
36410         * modules/unictype/category-Cc-tests (Files): Likewise.
36411         * modules/unictype/category-Cf-tests (Files): Likewise.
36412         * modules/unictype/category-Cn-tests (Files): Likewise.
36413         * modules/unictype/category-Co-tests (Files): Likewise.
36414         * modules/unictype/category-Cs-tests (Files): Likewise.
36415         * modules/unictype/category-L-tests (Files): Likewise.
36416         * modules/unictype/category-Ll-tests (Files): Likewise.
36417         * modules/unictype/category-Lm-tests (Files): Likewise.
36418         * modules/unictype/category-Lo-tests (Files): Likewise.
36419         * modules/unictype/category-Lt-tests (Files): Likewise.
36420         * modules/unictype/category-Lu-tests (Files): Likewise.
36421         * modules/unictype/category-M-tests (Files): Likewise.
36422         * modules/unictype/category-Mc-tests (Files): Likewise.
36423         * modules/unictype/category-Me-tests (Files): Likewise.
36424         * modules/unictype/category-Mn-tests (Files): Likewise.
36425         * modules/unictype/category-N-tests (Files): Likewise.
36426         * modules/unictype/category-Nd-tests (Files): Likewise.
36427         * modules/unictype/category-Nl-tests (Files): Likewise.
36428         * modules/unictype/category-No-tests (Files): Likewise.
36429         * modules/unictype/category-P-tests (Files): Likewise.
36430         * modules/unictype/category-Pc-tests (Files): Likewise.
36431         * modules/unictype/category-Pd-tests (Files): Likewise.
36432         * modules/unictype/category-Pe-tests (Files): Likewise.
36433         * modules/unictype/category-Pf-tests (Files): Likewise.
36434         * modules/unictype/category-Pi-tests (Files): Likewise.
36435         * modules/unictype/category-Po-tests (Files): Likewise.
36436         * modules/unictype/category-Ps-tests (Files): Likewise.
36437         * modules/unictype/category-S-tests (Files): Likewise.
36438         * modules/unictype/category-Sc-tests (Files): Likewise.
36439         * modules/unictype/category-Sk-tests (Files): Likewise.
36440         * modules/unictype/category-Sm-tests (Files): Likewise.
36441         * modules/unictype/category-So-tests (Files): Likewise.
36442         * modules/unictype/category-Z-tests (Files): Likewise.
36443         * modules/unictype/category-Zl-tests (Files): Likewise.
36444         * modules/unictype/category-Zp-tests (Files): Likewise.
36445         * modules/unictype/category-Zs-tests (Files): Likewise.
36446         * modules/unictype/category-and-not-tests (Files): Likewise.
36447         * modules/unictype/category-and-tests (Files): Likewise.
36448         * modules/unictype/category-byname-tests (Files): Likewise.
36449         * modules/unictype/category-name-tests (Files): Likewise.
36450         * modules/unictype/category-none-tests (Files): Likewise.
36451         * modules/unictype/category-of-tests (Files): Likewise.
36452         * modules/unictype/category-or-tests (Files): Likewise.
36453         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36454         * modules/unictype/combining-class-tests (Files): Likewise.
36455         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36456         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36457         * modules/unictype/ctype-blank-tests (Files): Likewise.
36458         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36459         * modules/unictype/ctype-digit-tests (Files): Likewise.
36460         * modules/unictype/ctype-graph-tests (Files): Likewise.
36461         * modules/unictype/ctype-lower-tests (Files): Likewise.
36462         * modules/unictype/ctype-print-tests (Files): Likewise.
36463         * modules/unictype/ctype-punct-tests (Files): Likewise.
36464         * modules/unictype/ctype-space-tests (Files): Likewise.
36465         * modules/unictype/ctype-upper-tests (Files): Likewise.
36466         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36467         * modules/unictype/decimal-digit-tests (Files): Likewise.
36468         * modules/unictype/digit-tests (Files): Likewise.
36469         * modules/unictype/mirror-tests (Files): Likewise.
36470         * modules/unictype/numeric-tests (Files): Likewise.
36471         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36472         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36473         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36474         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36475         Likewise.
36476         * modules/unictype/property-bidi-block-separator-tests (Files):
36477         Likewise.
36478         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36479         Likewise.
36480         * modules/unictype/property-bidi-common-separator-tests (Files):
36481         Likewise.
36482         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36483         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36484         Likewise.
36485         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36486         Likewise.
36487         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36488         Likewise.
36489         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36490         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36491         Likewise.
36492         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36493         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36494         Likewise.
36495         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36496         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36497         * modules/unictype/property-bidi-segment-separator-tests (Files):
36498         Likewise.
36499         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36500         * modules/unictype/property-byname-tests (Files): Likewise.
36501         * modules/unictype/property-combining-tests (Files): Likewise.
36502         * modules/unictype/property-composite-tests (Files): Likewise.
36503         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36504         * modules/unictype/property-dash-tests (Files): Likewise.
36505         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36506         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36507         Likewise.
36508         * modules/unictype/property-deprecated-tests (Files): Likewise.
36509         * modules/unictype/property-diacritic-tests (Files): Likewise.
36510         * modules/unictype/property-extender-tests (Files): Likewise.
36511         * modules/unictype/property-format-control-tests (Files): Likewise.
36512         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36513         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36514         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36515         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36516         * modules/unictype/property-hyphen-tests (Files): Likewise.
36517         * modules/unictype/property-id-continue-tests (Files): Likewise.
36518         * modules/unictype/property-id-start-tests (Files): Likewise.
36519         * modules/unictype/property-ideographic-tests (Files): Likewise.
36520         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36521         * modules/unictype/property-ids-trinary-operator-tests (Files):
36522         Likewise.
36523         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36524         * modules/unictype/property-iso-control-tests (Files): Likewise.
36525         * modules/unictype/property-join-control-tests (Files): Likewise.
36526         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36527         * modules/unictype/property-line-separator-tests (Files): Likewise.
36528         * modules/unictype/property-logical-order-exception-tests (Files):
36529         Likewise.
36530         * modules/unictype/property-lowercase-tests (Files): Likewise.
36531         * modules/unictype/property-math-tests (Files): Likewise.
36532         * modules/unictype/property-non-break-tests (Files): Likewise.
36533         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36534         * modules/unictype/property-numeric-tests (Files): Likewise.
36535         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36536         * modules/unictype/property-other-default-ignorable-code-point-tests
36537         (Files): Likewise.
36538         * modules/unictype/property-other-grapheme-extend-tests (Files):
36539         Likewise.
36540         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36541         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36542         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36543         * modules/unictype/property-other-math-tests (Files): Likewise.
36544         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36545         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36546         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36547         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36548         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36549         * modules/unictype/property-private-use-tests (Files): Likewise.
36550         * modules/unictype/property-punctuation-tests (Files): Likewise.
36551         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36552         * modules/unictype/property-radical-tests (Files): Likewise.
36553         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36554         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36555         * modules/unictype/property-space-tests (Files): Likewise.
36556         * modules/unictype/property-terminal-punctuation-tests (Files):
36557         Likewise.
36558         * modules/unictype/property-test-tests (Files): Likewise.
36559         * modules/unictype/property-titlecase-tests (Files): Likewise.
36560         * modules/unictype/property-unassigned-code-value-tests (Files):
36561         Likewise.
36562         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36563         * modules/unictype/property-uppercase-tests (Files): Likewise.
36564         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36565         * modules/unictype/property-white-space-tests (Files): Likewise.
36566         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36567         * modules/unictype/property-xid-start-tests (Files): Likewise.
36568         * modules/unictype/property-zero-width-tests (Files): Likewise.
36569         * modules/unictype/scripts-tests (Files): Likewise.
36570         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36571         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36572         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36573         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36574         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36575         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36576         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36577         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36578         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36579         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36580         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36581         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36582         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36583         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36584         * modules/uninorm/composition-tests (Files): Likewise.
36585         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36586         * modules/uninorm/decomposition-tests (Files): Likewise.
36587         * modules/uninorm/filter-tests (Files): Likewise.
36588         * modules/uninorm/nfc-tests (Files): Likewise.
36589         * modules/uninorm/nfd-tests (Files): Likewise.
36590         * modules/uninorm/nfkc-tests (Files): Likewise.
36591         * modules/uninorm/nfkd-tests (Files): Likewise.
36592         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36593         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36594         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36595         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36596         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36597         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36598         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36599         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36600         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36601         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36602         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36603         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36604         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36605         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36606         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36607         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36608         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36609         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36610         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36611         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36612         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36613         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36614         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36615         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36616         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36617         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36618         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36619         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36620         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36621         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36622         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36623         * modules/uniwidth/u8-width-tests (Files): Likewise.
36624         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36625         * modules/uniwidth/u16-width-tests (Files): Likewise.
36626         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36627         * modules/uniwidth/u32-width-tests (Files): Likewise.
36628         * modules/uniwidth/width-tests (Files): Likewise.
36629         * modules/unlink-tests (Files): Likewise.
36630         * modules/unsetenv-tests (Files): Likewise.
36631         * modules/usleep-tests (Files): Likewise.
36632         * modules/utimens-tests (Files): Likewise.
36633         * modules/utimensat-tests (Files): Likewise.
36634         * modules/vasnprintf-posix-tests (Files): Likewise.
36635         * modules/vasnprintf-tests (Files): Likewise.
36636         * modules/vasprintf-posix-tests (Files): Likewise.
36637         * modules/vasprintf-tests (Files): Likewise.
36638         * modules/vdprintf-posix-tests (Files): Likewise.
36639         * modules/vfprintf-posix-tests (Files): Likewise.
36640         * modules/vprintf-posix-tests (Files): Likewise.
36641         * modules/vsnprintf-posix-tests (Files): Likewise.
36642         * modules/vsnprintf-tests (Files): Likewise.
36643         * modules/vsprintf-posix-tests (Files): Likewise.
36644         * modules/wcrtomb-tests (Files): Likewise.
36645         * modules/wcsnrtombs-tests (Files): Likewise.
36646         * modules/wcsrtombs-tests (Files): Likewise.
36647         * modules/wctype-tests (Files): Likewise.
36648         * modules/wcwidth-tests (Files): Likewise.
36649         * modules/xmemdup0-tests (Files): Likewise.
36650         * modules/xprintf-posix-tests (Files): Likewise.
36651         * modules/xvasprintf-tests (Files): Likewise.
36652
36653 2009-12-24  Eric Blake  <ebb9@byu.net>
36654
36655         test-nanosleep: fix typo
36656         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36657         patch.
36658         Reported by Bruno Haible.
36659
36660 2009-12-24  Bruno Haible  <bruno@clisp.org>
36661
36662         Reduce namespace pollution on glibc systems.
36663         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36664         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36665         systems.
36666         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36667         <getopt.h> on glibc systems.
36668         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36669         systems.
36670         * lib/fcntl.c: Include <unistd.h> here instead.
36671
36672 2009-12-24  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36675
36676 2009-12-24  Eric Blake  <ebb9@byu.net>
36677
36678         tests: add signature checks
36679         * tests/signature.h (SIGNATURE_CHECK): New file.
36680         * modules/atexit-tests (Files): Use it.
36681         * modules/btowc-tests (Files): Likewise.
36682         * modules/canonicalize-lgpl-tests (Files): Likewise.
36683         * modules/ceilf-tests (Files): Likewise.
36684         * modules/ceill-tests (Files): Likewise.
36685         * modules/chown-tests (Files): Likewise.
36686         * modules/dprintf-posix-tests (Files): Likewise.
36687         * modules/dup2-tests (Files): Likewise.
36688         * modules/dup3-tests (Files): Likewise.
36689         * modules/duplocale-tests (Files): Likewise.
36690         * modules/fchdir-tests (Files): Likewise.
36691         * modules/fcntl-tests (Files): Likewise.
36692         * modules/fdopendir-tests (Files): Likewise.
36693         * modules/fflush-tests (Files): Likewise.
36694         * modules/flock-tests (Files): Likewise.
36695         * modules/floorf-tests (Files): Likewise.
36696         * modules/floorl-tests (Files): Likewise.
36697         * modules/fnmatch-tests (Files): Likewise.
36698         * modules/fopen-tests (Files): Likewise.
36699         * modules/fprintf-posix-tests (Files): Likewise.
36700         * modules/freopen-tests (Files): Likewise.
36701         * modules/frexp-nolibm-tests (Files): Likewise.
36702         * modules/frexp-tests (Files): Likewise.
36703         * modules/frexpl-nolibm-tests (Files): Likewise.
36704         * modules/frexpl-tests (Files): Likewise.
36705         * modules/fseek-tests (Files): Likewise.
36706         * modules/fseeko-tests (Files): Likewise.
36707         * modules/fsync-tests (Files): Likewise.
36708         * modules/ftell-tests (Files): Likewise.
36709         * modules/ftello-tests (Files): Likewise.
36710         * modules/futimens-tests (Files): Likewise.
36711         * modules/getaddrinfo-tests (Files): Likewise.
36712         * modules/getcwd-tests (Files): Likewise.
36713         * modules/getdelim-tests (Files): Likewise.
36714         * modules/getdtablesize-tests (Files): Likewise.
36715         * modules/getgroups-tests (Files): Likewise.
36716         * modules/gethostname-tests (Files): Likewise.
36717         * modules/getline-tests (Files): Likewise.
36718         * modules/getopt-posix-tests (Files): Likewise.
36719         * modules/gettimeofday-tests (Files): Likewise.
36720         * modules/glob-tests (Files): Likewise.
36721         * modules/iconv-tests (Files): Likewise.
36722         * modules/inet_ntop-tests (Files): Likewise.
36723         * modules/inet_pton-tests (Files): Likewise.
36724         * modules/isblank-tests (Files): Likewise.
36725         * modules/lchown-tests (Files): Likewise.
36726         * modules/ldexpl-tests (Files): Likewise.
36727         * modules/link-tests (Files): Likewise.
36728         * modules/linkat-tests (Files): Likewise.
36729         * modules/lseek-tests (Files): Likewise.
36730         * modules/lstat-tests (Files): Likewise.
36731         * modules/mbrtowc-tests (Files): Likewise.
36732         * modules/mbsinit-tests (Files): Likewise.
36733         * modules/mbsnrtowcs-tests (Files): Likewise.
36734         * modules/mbsrtowcs-tests (Files): Likewise.
36735         * modules/memchr-tests (Files): Likewise.
36736         * modules/memcmp-tests (Files): Likewise.
36737         * modules/memmem-tests (Files): Likewise.
36738         * modules/memrchr-tests (Files): Likewise.
36739         * modules/mkdir-tests (Files): Likewise.
36740         * modules/mkfifo-tests (Files): Likewise.
36741         * modules/mkfifoat-tests (Files): Likewise.
36742         * modules/mknod-tests (Files): Likewise.
36743         * modules/nanosleep-tests (Files): Likewise.
36744         * modules/nl_langinfo-tests (Files): Likewise.
36745         * modules/obstack-printf-tests (Files): Likewise.
36746         * modules/open-tests (Files): Likewise.
36747         * modules/openat-tests (Files): Likewise.
36748         * modules/perror-tests (Files): Likewise.
36749         * modules/pipe2-tests (Files): Likewise.
36750         * modules/poll-tests (Files): Likewise.
36751         * modules/popen-tests (Files): Likewise.
36752         * modules/posix_spawn-tests (Files): Likewise.
36753         * modules/posix_spawnp-tests (Files): Likewise.
36754         * modules/pread-tests (Files): Likewise.
36755         * modules/printf-posix-tests (Files): Likewise.
36756         * modules/pty-tests (Files): Likewise.
36757         * modules/random_r-tests (Files): Likewise.
36758         * modules/rawmemchr-tests (Files): Likewise.
36759         * modules/readlink-tests (Files): Likewise.
36760         * modules/remove-tests (Files): Likewise.
36761         * modules/rename-tests (Files): Likewise.
36762         * modules/renameat-tests (Files): Likewise.
36763         * modules/rmdir-tests (Files): Likewise.
36764         * modules/round-tests (Files): Likewise.
36765         * modules/roundf-tests (Files): Likewise.
36766         * modules/roundl-tests (Files): Likewise.
36767         * modules/select-tests (Files): Likewise.
36768         * modules/setenv-tests (Files): Likewise.
36769         * modules/sigaction-tests (Files): Likewise.
36770         * modules/sleep-tests (Files): Likewise.
36771         * modules/snprintf-posix-tests (Files): Likewise.
36772         * modules/snprintf-tests (Files): Likewise.
36773         * modules/sprintf-posix-tests (Files): Likewise.
36774         * modules/stat-tests (Files): Likewise.
36775         * modules/strcasestr-tests (Files): Likewise.
36776         * modules/strchrnul-tests (Files): Likewise.
36777         * modules/strerror-tests (Files): Likewise.
36778         * modules/strsignal-tests (Files): Likewise.
36779         * modules/strstr-tests (Files): Likewise.
36780         * modules/strtod-tests (Files): Likewise.
36781         * modules/strverscmp-tests (Files): Likewise.
36782         * modules/symlink-tests (Files): Likewise.
36783         * modules/symlinkat-tests (Files): Likewise.
36784         * modules/times-tests (Files): Likewise.
36785         * modules/trunc-tests (Files): Likewise.
36786         * modules/truncf-tests (Files): Likewise.
36787         * modules/truncl-tests (Files): Likewise.
36788         * modules/tsearch-tests (Files): Likewise.
36789         * modules/uname-tests (Files): Likewise.
36790         * modules/unlink-tests (Files): Likewise.
36791         * modules/unsetenv-tests (Files): Likewise.
36792         * modules/usleep-tests (Files): Likewise.
36793         * modules/utimensat-tests (Files): Likewise.
36794         * modules/vasprintf-tests (Files): Likewise.
36795         * modules/vdprintf-posix-tests (Files): Likewise.
36796         * modules/vfprintf-posix-tests (Files): Likewise.
36797         * modules/vprintf-posix-tests (Files): Likewise.
36798         * modules/vsnprintf-posix-tests (Files): Likewise.
36799         * modules/vsnprintf-tests (Files): Likewise.
36800         * modules/vsprintf-posix-tests (Files): Likewise.
36801         * modules/wcrtomb-tests (Files): Likewise.
36802         * modules/wcsnrtombs-tests (Files): Likewise.
36803         * modules/wcsrtombs-tests (Files): Likewise.
36804         * modules/wcwidth-tests (Files): Likewise.
36805         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36806         * tests/test-isinf.c (isinf): Likewise.
36807         * tests/test-isnan.c (isnan): Likewise.
36808         * tests/test-signbit.c (signbit): Likewise.
36809         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36810         declaration, either as macro or with correct signature.
36811         (select): Ensure function under test is declared with correct
36812         signature in correct header.
36813         * tests/test-atexit.c (atexit): Likewise.
36814         * tests/test-btowc.c (btowc): Likewise.
36815         * tests/test-canonicalize-lgpl.c (realpath)
36816         (canonicalize_file_name): Likewise.
36817         * tests/test-ceilf1.c (ceilf): Likewise.
36818         * tests/test-ceill.c (ceill): Likewise.
36819         * tests/test-chown.c (chown): Likewise.
36820         * tests/test-dprintf-posix.c (dprintf): Likewise.
36821         * tests/test-dup2.c (dup2): Likewise.
36822         * tests/test-dup3.c (dup3): Likewise.
36823         * tests/test-duplocale.c (duplocale): Likewise.
36824         * tests/test-fchdir.c (fchdir): Likewise.
36825         * tests/test-fchownat.c (fchownat): Likewise.
36826         * tests/test-fcntl.c (fcntl): Likewise.
36827         * tests/test-fdopendir.c (fdopendir): Likewise.
36828         * tests/test-fflush.c (fflush): Likewise.
36829         * tests/test-flock.c (flock): Likewise.
36830         * tests/test-floorf1.c (floorf): Likewise.
36831         * tests/test-floorl.c (floorl): Likewise.
36832         * tests/test-fnmatch.c (fnmatch): Likewise.
36833         * tests/test-fopen.c (fopen): Likewise.
36834         * tests/test-fprintf-posix.c (fprintf): Likewise.
36835         * tests/test-freopen.c (freopen): Likewise.
36836         * tests/test-frexp.c (frexp): Likewise.
36837         * tests/test-frexpl.c (frexpl): Likewise.
36838         * tests/test-fseek.c (fseek): Likewise.
36839         * tests/test-fseeko.c (fseeko): Likewise.
36840         * tests/test-fstatat.c (fstatat): Likewise.
36841         * tests/test-fsync.c (fsync): Likewise.
36842         * tests/test-ftell.c (ftell): Likewise.
36843         * tests/test-ftello.c (ftello): Likewise.
36844         * tests/test-futimens.c (futimens): Likewise.
36845         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36846         (gai_strerror): Likewise.
36847         * tests/test-getcwd.c (getcwd): Likewise.
36848         * tests/test-getdelim.c (getdelim): Likewise.
36849         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36850         * tests/test-getgroups.c (getgroups): Likewise.
36851         * tests/test-gethostname.c (gethostname): Likewise.
36852         * tests/test-getline.c (getline): Likewise.
36853         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36854         Likewise.
36855         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36856         * tests/test-glob.c (glob, globfree): Likewise.
36857         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36858         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36859         * tests/test-inet_pton.c (inet_pton): Likewise.
36860         * tests/test-isblank.c (isblank): Likewise.
36861         * tests/test-lchown.c (lchown): Likewise.
36862         * tests/test-ldexpl.c (ldexpl): Likewise.
36863         * tests/test-link.c (link): Likewise.
36864         * tests/test-linkat.c (linkat): Likewise.
36865         * tests/test-lseek.c (lseek): Likewise.
36866         * tests/test-lstat.c (lstat): Likewise.
36867         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36868         * tests/test-mbsinit.c (mbsinit): Likewise.
36869         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36870         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36871         * tests/test-memchr.c (memchr): Likewise.
36872         * tests/test-memcmp.c (memcmp): Likewise.
36873         * tests/test-memmem.c (memmem): Likewise.
36874         * tests/test-memrchr.c (memrchr): Likewise.
36875         * tests/test-mkdir.c (mkdir): Likewise.
36876         * tests/test-mkdirat.c (mkdirat): Likewise.
36877         * tests/test-mkfifo.c (mkfifo): Likewise.
36878         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36879         * tests/test-mknod.c (mknod): Likewise.
36880         * tests/test-nanosleep.c (nanosleep): Likewise.
36881         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36882         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36883         Likewise.
36884         * tests/test-open.c (open): Likewise.
36885         * tests/test-openat.c (openat): Likewise.
36886         * tests/test-perror.c (perror): Likewise.
36887         * tests/test-pipe2.c (pipe2): Likewise.
36888         * tests/test-poll.c (poll): Likewise.
36889         * tests/test-popen.c (popen, pclose): Likewise.
36890         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36891         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36892         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36893         (posix_spawn_file_actions_destroy)
36894         (posix_spawn_file_actions_addclose)
36895         (posix_spawn_file_actions_addopen)
36896         (posix_spawn_file_actions_adddup2): Likewise.
36897         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36898         * tests/test-pread.c (pread): Likewise.
36899         * tests/test-printf-posix.c (printf): Likewise.
36900         * tests/test-pty.c (openpty, forkpty): Likewise.
36901         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36902         (random_r): Likewise.
36903         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36904         * tests/test-readlink.c (readlink): Likewise.
36905         * tests/test-remove.c (remove): Likewise.
36906         * tests/test-rename.c (rename): Likewise.
36907         * tests/test-renameat.c (renameat): Likewise.
36908         * tests/test-rmdir.c (rmdir): Likewise.
36909         * tests/test-round1.c (round): Likewise.
36910         * tests/test-roundf1.c (roundf): Likewise.
36911         * tests/test-roundl.c (roundl): Likewise.
36912         * tests/test-setenv.c (setenv): Likewise.
36913         * tests/test-sigaction.c (sigaction): Likewise.
36914         * tests/test-sleep.c (sleep): Likewise.
36915         * tests/test-snprintf.c (snprintf): Likewise.
36916         * tests/test-sprintf-posix.c (sprintf): Likewise.
36917         * tests/test-stat.c (stat): Likewise.
36918         * tests/test-stpncpy.c (stpncpy): Likewise.
36919         * tests/test-strcasestr.c (strcasestr): Likewise.
36920         * tests/test-strchrnul.c (strchrnul): Likewise.
36921         * tests/test-strerror.c (strerror): Likewise.
36922         * tests/test-strsignal.c (strsignal): Likewise.
36923         * tests/test-strstr.c (strstr): Likewise.
36924         * tests/test-strtod.c (strtod): Likewise.
36925         * tests/test-strverscmp.c (strverscmp): Likewise.
36926         * tests/test-symlink.c (symlink): Likewise.
36927         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36928         * tests/test-times.c (times): Likewise.
36929         * tests/test-trunc1.c (trunc): Likewise.
36930         * tests/test-truncf1.c (truncf): Likewise.
36931         * tests/test-truncl.c (truncl): Likewise.
36932         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36933         Likewise.
36934         * tests/test-uname.c (uname): Likewise.
36935         * tests/test-unlink.c (unlink): Likewise.
36936         * tests/test-unlinkat.c (unlinkat): Likewise.
36937         * tests/test-unsetenv.c (unsetenv): Likewise.
36938         * tests/test-usleep.c (usleep): Likewise.
36939         * tests/test-utimensat.c (utimensat): Likewise.
36940         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36941         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36942         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36943         * tests/test-vprintf-posix.c (vprintf): Likewise.
36944         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36945         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36946         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36947         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36948         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36949         * tests/test-wcwidth.c (wcwidth): Likewise.
36950
36951         build: pull in conditional headers during GNULIB_POSIXCHECK
36952         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36953         definitions from any conditionally-included headers.
36954         * lib/stdlib.in.h (includes): Likewise.
36955         * lib/unistd.in.h (includes): Likewise.
36956
36957 2009-12-24  Bruno Haible  <bruno@clisp.org>
36958
36959         * tests/test-argv-iter.c: Include header file being tested immediately
36960         after config.h.
36961         * tests/test-base64.c: Likewise.
36962         * tests/test-flock.c: Likewise.
36963         * tests/test-fsync.c: Likewise.
36964         * tests/test-getdate.c: Likewise.
36965         * tests/test-getndelim2.c: Likewise.
36966         * tests/test-isfinite.c: Likewise.
36967         * tests/test-isinf.c: Likewise.
36968         * tests/test-strerror.c: Likewise.
36969         * tests/test-strsignal.c: Likewise.
36970
36971 2009-12-23  Eric Blake  <ebb9@byu.net>
36972
36973         unistd: work around cygwin bug
36974         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36975         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36976         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36977
36978 2009-12-23  Bruno Haible  <bruno@clisp.org>
36979
36980         localename: More tests.
36981         * tests/test-localename.c (SIZEOF): New macro.
36982         (categories): New variable.
36983         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36984         test_locale_name_default): Add test w.r.t. thread locale.
36985         (test_locale_name_thread): New function.
36986         (main): Invoke it.
36987
36988         localename: Make aware of thread locale.
36989         * lib/localename.h (gl_locale_name_thread): New declaration.
36990         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36991         behaviour with respect to thread locale.
36992         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36993         <langinfo.h>, glthread/lock.h.
36994         (SIZE_BITS): New macro.
36995         (string_hash): New function.
36996         (struct hash_node): New type.
36997         (HASH_TABLE_SIZE): New macro.
36998         (struniq_hash_table, struniq_lock): New variables.
36999         (struniq): New function.
37000         (gl_locale_name_thread): New function.
37001         (gl_locale_name): Invoke it.
37002         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37003         * modules/localename (Depends-on): Add lock.
37004         Reported by Mike Gran <spk121@yahoo.com>.
37005
37006 2009-12-23  Eric Blake  <ebb9@byu.net>
37007
37008         va-args: new module
37009         * modules/va-args: New file.
37010         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37011         * MODULES.html.sh (Core language properties): Mention it.
37012
37013         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37014         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37015         named alias for __attribute__((__unused__)).
37016         * lib/chown.c: Update client.
37017         * lib/fchmodat.c: Likewise.
37018         * lib/fts.c: Likewise.
37019         * lib/getdate.y: Likewise.
37020         * lib/getgroups.c: Likewise.
37021         * lib/getopt.c: Likewise.
37022         * lib/getugroups.c: Likewise.
37023         * lib/mkdir.c: Likewise.
37024         * lib/mkfifo.c: Likewise.
37025         * lib/mkfifoat.c: Likewise.
37026         * lib/mknod.c: Likewise.
37027         * lib/mknodat.c: Likewise.
37028         * lib/readlink.c: Likewise.
37029         * lib/se-context.in.h: Likewise.
37030         * lib/se-selinux.in.h: Likewise.
37031         * lib/sockets.c: Likewise.
37032         * lib/symlink.c: Likewise.
37033         * lib/symlinkat.c: Likewise.
37034         * lib/unicodeio.c: Likewise.
37035         * lib/unistr.h: Likewise.
37036         * tests/test-areadlink.c: Likewise.
37037         * tests/test-areadlinkat.c: Likewise.
37038         * tests/test-filenamecat.c: Likewise.
37039         * tests/test-fseeko.c: Likewise.
37040         * tests/test-ftello.c: Likewise.
37041         * tests/test-getdate.c: Likewise.
37042         * tests/test-getgroups.c: Likewise.
37043         * tests/test-gethostname.c: Likewise.
37044         * tests/test-quotearg.c: Likewise.
37045         * tests/test-version-etc.c: Likewise.
37046         * tests/test-xalloc-die.c: Likewise.
37047         * tests/test-xfprintf-posix.c: Likewise.
37048         * tests/test-xprintf-posix.c: Likewise.
37049         * tests/test-xvasprintf.c: Likewise.
37050
37051         tests: avoid compiler warnings
37052         * tests/test-fcntl.c (main): Delete unused parameters.
37053         * tests/test-freopen-safer.c (main): Likewise.
37054         * tests/test-xalloc-die.c (main): Mark unused parameters.
37055         * tests/test-fseeko.c (main): Likewise.
37056         * tests/test-ftello.c (main): Likewise.
37057         * tests/test-nanosleep.c (main): Avoid declaration warning.
37058         * tests/test-sleep.c (main): Likewise.
37059         * tests/test-unsetenv.c (main): Silence warning about string
37060         literal.
37061         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37062
37063 2009-12-23  Bruno Haible  <bruno@clisp.org>
37064
37065         * tests/test-localename.c (test_locale_name): New function, extracted
37066         from main. Also test mixed situations.
37067         (test_locale_name_posix, test_locale_name_environ,
37068         test_locale_name_default): New functions.
37069         (main): Invoke them all.
37070         * modules/localename-tests (configure.ac): Test for newlocale.
37071
37072 2009-12-23  Bruno Haible  <bruno@clisp.org>
37073
37074         unistd: Ensure getcwd gets declared before being overridden.
37075         * lib/unistd.in.h: Conditionally include <io.h>.
37076
37077 2009-12-22  Bruno Haible  <bruno@clisp.org>
37078
37079         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37080         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37081         (gl_WCHAR_H): Invoke it.
37082         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37083         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37084         Reported by Karl Berry <karl@freefriends.org>.
37085
37086 2009-12-22  Eric Blake  <ebb9@byu.net>
37087
37088         math, unistd: avoid redundant includes
37089         * lib/math.in.h (isnan): No need to re-include <math.h>.
37090         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37091
37092         getsubopt: work around cygwin bug
37093         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37094         avoid conflicting with system getsubopt.
37095         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37096         bug.
37097
37098         getopt: synchronize from glibc
37099         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37100         parameter order.  Adjust all callers.
37101         (_getopt_internal_r, main): Adjust quoting in error messages.
37102         Drop considerations for outdated POSIX 1003.2 error message.
37103         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37104         callers.
37105         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37106
37107         test-getopt: test stderr behavior
37108         * modules/getopt-posix-tests (Depends-on): Add dup2.
37109         * tests/test-getopt.c (ASSERT): Avoid stderr.
37110         (main): Move stderr to a temporary file.
37111         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37112         Instead, add parameter to inform caller if output occurred.
37113         (test_getopt): Adjust all existing tests to expect silence, and
37114         add new tests of leading ":".
37115         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37116         glibc shortcomings with leading "-:" or "+:" in optstring.
37117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37118         Likewise.
37119         * doc/posix-functions/getopt.texi (getopt): Likewise.
37120
37121         test-getopt: enhance test
37122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37123         supports optind=0.
37124         * tests/test-getopt.c (OPTIND_MIN): Move...
37125         * tests/test-getopt.h (OPTIND_MIN): ...here.
37126         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37127         Require that optind=0 works, since modern BSD supports it in
37128         addition to optreset, and since coreutils expects it.
37129         (test_getopt_long_only): New test.
37130         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37131         glibc shortcomings with 'W;', and enforcement of optind=0.
37132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37133         Likewise.
37134
37135 2009-12-21  Bruno Haible  <bruno@clisp.org>
37136
37137         localename: Improvements for MacOS X and Cygwin.
37138         * lib/localename.h (gl_locale_name_environ): New declaration.
37139         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37140         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37141         (gl_locale_name_posix): Invoke it.
37142         (gl_locale_name_default): Add comments. Use Windows native API also on
37143         Cygwin.
37144
37145 2009-12-21  Bruno Haible  <bruno@clisp.org>
37146
37147         Update list of Win32 locale ids.
37148         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37149         (LANG_SAMI): Renamed from LANG_SAAMI.
37150         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37151         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37152         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37153         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37154         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37155         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37156         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37157         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37158         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37159         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37160         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37161         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37162         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37163         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37164         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37165         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37166         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37167         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37168         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37169         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37170         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37171         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37172         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37173         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37174         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37175         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37176         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37177         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37178         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37179         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37180         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37181         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37182         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37183         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37184         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37185         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37186         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37187         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37188         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37189         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37190         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37191         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37192         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37193         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37194         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37195         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37196         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37197         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37198         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37199         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37200         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37201         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37202         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37203         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37204         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37205         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37206         Add more languages and countries for Sami, Sorbian. Add more countries
37207         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37208         for Pashto. Change country for Syriac, Tswana.
37209
37210 2009-12-21  Eric Blake  <ebb9@byu.net>
37211
37212         test-utimens: avoid spurious failure
37213         * tests/test-chown.h (nap): Factor...
37214         * tests/nap.h: ...into new file.
37215         * tests/test-lchown.h (nap): Avoid duplication.
37216         * tests/test-utimens-common.h (nap): Use shared implementation,
37217         necessary on file systems with 1-second resolution.
37218         * modules/chown-tests (Files): Include new file.
37219         * modules/fdutimensat-tests (Files): Likewise.
37220         * modules/futimens-tests (Files): Likewise.
37221         * modules/lchown-tests (Files): Likewise.
37222         * modules/openat-tests (Files): Likewise.
37223         * modules/utimens-tests (Files): Likewise.
37224         * modules/utimensat-tests (Files): Likewise.
37225
37226 2009-12-19  Eric Blake  <ebb9@byu.net>
37227
37228         futimens, utimensat: work around Linux bug
37229         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37230         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37231         * lib/utimensat.c (rpl_utimensat): Work around it.
37232         * lib/futimens.c (rpl_futimens): Adjust comment.
37233
37234         utimens: work around Linux ctime bug
37235         * lib/utimens.c (detect_ctime_bug): New helper function.
37236         (update_timespec): Differentiate between workaround needed for
37237         this bug vs. what is needed for systems that lack utimensat.
37238         (fdutimens, lutimens): Work around bug.
37239
37240         utimens: check for ctime update
37241         * tests/test-utimens-common.h (check_ctime): Define.
37242         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37243         * tests/test-futimens.h (test_futimens): Likewise.
37244         * tests/test-lutimens.h (test_lutimens): Likewise.
37245         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37246         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37247
37248 2009-12-19  Bruno Haible  <bruno@clisp.org>
37249
37250         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37251         * tests/test-dprintf-posix2.sh: New file.
37252         * tests/test-dprintf-posix2.c: New file.
37253         * modules/dprintf-posix-tests (Files): Add them.
37254         (configure.ac): Check for getrlimit and setrlimit.
37255         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37256
37257 2009-12-19  Bruno Haible  <bruno@clisp.org>
37258
37259         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37260         * tests/test-fprintf-posix3.sh: New file.
37261         * tests/test-fprintf-posix3.c: New file.
37262         * modules/fprintf-posix-tests (Files): Add them.
37263         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37264
37265 2009-12-19  Eric Blake  <ebb9@byu.net>
37266
37267         dirfd: fix prototype
37268         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37269         * lib/dirfd.c (dirfd): Likewise.
37270
37271         canonicalize: reduce memory usage
37272         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37273         allocation to size.
37274         Reported by Solar Designer <solar@openwall.com>.
37275
37276 2009-12-19  Bruno Haible  <bruno@clisp.org>
37277
37278         New module attribute 'Applicability'.
37279         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37280         * gnulib-tool: New option --extract-applicability.
37281         (func_usage): Document it.
37282         (sed_extract_prog): Recognize it.
37283         (func_get_applicability): New function.
37284         (func_import): Generalize handling of 'link-warning' module.
37285         * modules/link-warning (Applicability): New section.
37286         * modules/arg-nonnull (Applicability): New section.
37287         Repoted by Simon Josefsson <simon@josefsson.org>.
37288
37289 2009-12-19  Bruno Haible  <bruno@clisp.org>
37290
37291         fflush: tweak
37292         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37293         * lib/fseeko.c (rpl_fseeko): Likewise.
37294
37295 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37296
37297         * lib/gl_list.h: Fix typo in comment.
37298
37299 2009-12-16  Eric Blake  <ebb9@byu.net>
37300
37301         fcntl: use to simplify other modules
37302         * modules/cloexec (Depends-on): Add fcntl.
37303         * modules/fchdir (Depends-on): Likewise.
37304         * modules/fd-safer-flag (Depends-on): Likewise.
37305         * modules/unistd-safer (Depends-on): Likewise.
37306         * modules/dup3 (configure.ac): Set module indicator.
37307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37308         missing.
37309         * lib/fchdir.c (_gl_register_dup): Fix comment.
37310         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37311         * lib/dup-safer.c (dup_safer): Likewise.
37312         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37313         * lib/dup3.c (dup3): Likewise.
37314         * tests/test-fchdir.c (main): Enhance test.
37315         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37316
37317         fcntl: port portions of fcntl to mingw
37318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37319         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37320         replacement for mingw.
37321         * modules/fcntl (Description): Update.
37322         (Depends-on): Add dup2.
37323         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37324         * modules/fcntl-h (Makefile.am): Substitute it.
37325         * lib/fcntl.in.h (fcntl): Update declaration.
37326         (F_DUPFD, F_GETFD): New macros, when needed.
37327         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37328         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37329         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37330         we now guarantee.
37331
37332         fcntl: work around cygwin bug in F_DUPFD
37333         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37334         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37335         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37336         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37337         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37338
37339         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37340         * modules/fcntl (Files): List new files.
37341         (configure.ac): Run a test.
37342         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37343         * lib/fcntl.c (rpl_fcntl): Likewise.
37344         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37345         (gl_FCNTL_H): Always replace fcntl.h.
37346         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37347         * lib/fcntl.in.h (fcntl): Declare replacement.
37348         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37349         needed, plus a witness.
37350         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37351         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37352         * tests/test-fcntl.c: New file.
37353         * modules/fcntl-tests: Likewise.
37354
37355         binary-io: avoid potential compilation warning
37356         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37357         directives.
37358
37359         fflush: avoid compilation error on NetBSD
37360         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37361         between off_t and fpos_t, since the latter is sometimes a struct.
37362         * lib/fseeko.c (rpl_fseeko): Likewise.
37363         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37364
37365 2009-12-15  Eric Blake  <ebb9@byu.net>
37366
37367         fcntl-h, stdio, sys_ioctl: fix declarations
37368         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37369         function must not take arguments.
37370         * lib/sys_ioctl.in.h (ioctl): Likewise.
37371         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37372         (open): Add a link warning.
37373
37374 2009-12-15  Jim Meyering  <meyering@redhat.com>
37375
37376         areadlink, areadlink-with-size: relax license to LGPLv2+
37377         * modules/areadlink (License): Relax to LGPLv2+.
37378         * modules/areadlink-with-size (License): Likewise.
37379
37380 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37381             Bruno Haible  <bruno@clisp.org>
37382
37383         *printf: Fix memory leak.
37384         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37385         * lib/vfprintf.c (vfprintf): Likewise.
37386         * lib/dprintf.c (dprintf): Likewise.
37387         * lib/vdprintf.c (vdprintf): Likewise.
37388
37389 2009-12-14  Eric Blake  <ebb9@byu.net>
37390
37391         accept4: adjust module dependencies
37392         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37393
37394         utimens: one more try at avoiding compiler warning
37395         * lib/utimens.c (lutimens): Lower scope of result.
37396
37397 2009-12-13  Bruno Haible  <bruno@clisp.org>
37398
37399         Move the malloc checking from module 'list' to new module 'xlist'.
37400         * modules/xlist: New file.
37401         * lib/gl_xlist.h: New file.
37402         * lib/gl_xlist.c: New file.
37403         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37404         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37405         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37406         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37407         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37408         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37409         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37410         gl_sortedlist_nx_add): New declarations.
37411         (struct gl_list_implementation): Rename and change methods accordingly.
37412         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37413         (gl_list_nx_create): Renamed from gl_list_create.
37414         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37415         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37416         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37417         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37418         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37419         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37420         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37421         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37422         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37423         gl_list_create_empty.
37424         (gl_list_nx_create): Renamed from gl_list_create.
37425         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37426         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37427         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37428         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37429         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37430         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37431         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37432         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37433         * lib/gl_array_list.c: Don't include xalloc.h.
37434         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37435         NULL upon out-of-memory.
37436         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37437         out-of-memory.
37438         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37439         Change return type to 'int'.
37440         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37441         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37442         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37443         upon out-of-memory.
37444         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37445         upon out-of-memory.
37446         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37447         upon out-of-memory.
37448         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37449         upon out-of-memory.
37450         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37451         out-of-memory.
37452         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37453         Update.
37454         (gl_array_list_implementation): Update.
37455         * lib/gl_carray_list.c: Don't include xalloc.h.
37456         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37457         Return NULL upon out-of-memory.
37458         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37459         out-of-memory.
37460         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37461         Change return type to 'int'.
37462         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37463         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37464         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37465         upon out-of-memory.
37466         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37467         upon out-of-memory.
37468         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37469         out-of-memory.
37470         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37471         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37472         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37473         Update.
37474         (gl_carray_list_implementation): Update.
37475         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37476         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37477         gl_linked_create_empty. Return NULL upon out-of-memory.
37478         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37479         out-of-memory.
37480         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37481         Change return type to 'int'. Return -1 upon out-of-memory.
37482         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37483         out-of-memory.
37484         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37485         upon out-of-memory.
37486         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37487         upon out-of-memory.
37488         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37489         NULL upon out-of-memory.
37490         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37491         upon out-of-memory.
37492         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37493         out-of-memory.
37494         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37495         Update.
37496         * lib/gl_linked_list.c: Don't include xalloc.h.
37497         (gl_linked_list_implementation): Update.
37498         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37499         (add_to_bucket): Change return type to 'int'.
37500         (gl_linkedhash_list_implementation): Update.
37501         * lib/gl_anytree_list1.h (free_subtree): New function.
37502         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37503         gl_tree_create_empty. Return NULL upon out-of-memory.
37504         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37505         Change return type to 'int'. Return -1 upon out-of-memory.
37506         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37507         out-of-memory.
37508         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37509         (gl_tree_remove_node): New function, moved here from
37510         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37511         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37512         Update.
37513         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37514         malloc, not xmalloc. Return NULL upon out-of-memory.
37515         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37516         out-of-memory.
37517         (gl_tree_remove_node_from_tree): New function, extracted from
37518         gl_tree_remove_node.
37519         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37520         upon out-of-memory.
37521         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37522         out-of-memory.
37523         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37524         upon out-of-memory.
37525         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37526         upon out-of-memory.
37527         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37528         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37529         not xmalloc. Return NULL upon out-of-memory.
37530         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37531         out-of-memory.
37532         (gl_tree_remove_node_from_tree): New function, extracted from
37533         gl_tree_remove_node.
37534         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37535         upon out-of-memory.
37536         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37537         out-of-memory.
37538         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37539         upon out-of-memory.
37540         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37541         upon out-of-memory.
37542         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37543         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37544         gl_anytree_list1.h before gl_anyavltree_list2.h.
37545         (gl_avltree_list_implementation): Update.
37546         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37547         gl_anytree_list1.h before gl_anyavltree_list2.h.
37548         (gl_rbtree_list_implementation): Update.
37549         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37550         Change return type to 'int'. Return -1 upon out-of-memory. Use
37551         __builtin_expect.
37552         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37553         (gl_avltreehash_list_implementation): Update.
37554         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37555         (gl_rbtreehash_list_implementation): Update.
37556         * modules/array-list (Depends-on): Remove xalloc.
37557         * modules/carray-list (Depends-on): Likewise.
37558         * modules/linked-list (Depends-on): Likewise.
37559         * modules/linkedhash-list (Depends-on): Likewise.
37560         * modules/avltree-list (Depends-on): Likewise.
37561         * modules/rbtree-list (Depends-on): Likewise.
37562         * modules/avltreehash-list (Depends-on): Likewise.
37563         * modules/rbtreehash-list (Depends-on): Likewise.
37564
37565         * modules/xsublist: New file.
37566         * lib/gl_xsublist.h: New file.
37567         * lib/gl_xsublist.c: New file.
37568         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37569         (gl_sublist_nx_create): New declaration.
37570         * lib/gl_sublist.c: Don't include xalloc.h.
37571         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37572         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37573         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37574         Change return type to 'int'. Return -1 upon out-of-memory.
37575         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37576         upon out-of-memory.
37577         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37578         NULL upon out-of-memory.
37579         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37580         upon out-of-memory.
37581         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37582         NULL upon out-of-memory.
37583         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37584         NULL upon out-of-memory.
37585         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37586         upon out-of-memory.
37587         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37588         (gl_sublist_list_implementation): Update.
37589         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37590         upon out-of-memory.
37591         * modules/sublist (Depends-on): Remove xalloc.
37592
37593         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37594         * tests/test-carray_list.c: Likewise.
37595         * tests/test-linked_list.c: Likewise.
37596         * tests/test-linkedhash_list.c: Likewise.
37597         * tests/test-avltree_list.c: Likewise.
37598         * tests/test-rbtree_list.c: Likewise.
37599         * tests/test-avltreehash_list.c: Likewise.
37600         * tests/test-rbtreehash_list.c: Likewise.
37601         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37602         * modules/carray-list-tests (Makefile.am): Likewise.
37603         * modules/linked-list-tests (Makefile.am): Likewise.
37604         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37605         * modules/avltree-list-tests (Makefile.am): Likewise.
37606         * modules/rbtree-list-tests (Makefile.am): Likewise.
37607         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37608         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37609
37610         * NEWS: Mention the changes.
37611
37612         * lib/clean-temp.c: Include gl_xlist.h.
37613         * modules/clean-temp (Depends-on): Add xlist.
37614
37615         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37616         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37617
37618         * tests/test-array_oset.c: Include gl_xlist.h.
37619         * modules/array-oset-tests (Depends-on): Add xlist.
37620
37621         Reported by José E. Marchesi <jemarch@gnu.org>.
37622
37623 2009-12-13  Bruno Haible  <bruno@clisp.org>
37624
37625         Move the malloc checking from module 'oset' to new module 'xoset'.
37626         * modules/xoset: New file.
37627         * lib/gl_xoset.h: New file.
37628         * lib/gl_xoset.c: New file.
37629         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37630         declarations.
37631         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37632         (struct gl_oset_implementation): Rename and change methods accordingly.
37633         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37634         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37635         'int'. Mark as __warn_unused_result__.
37636         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37637         gl_oset_create_empty.
37638         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37639         'int'.
37640         * lib/gl_array_oset.c: Don't include xalloc.h.
37641         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37642         malloc, not xmalloc.
37643         (grow): Change return type to 'int'. Don't call xalloc_die.
37644         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37645         to 'int'.
37646         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37647         'int'.
37648         (gl_array_oset_implementation): Update.
37649         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37650         gl_tree_create_empty.
37651         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37652         'int'.
37653         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37654         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37655         xmalloc.
37656         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37657         not xmalloc.
37658         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37659         xmalloc.
37660         (gl_avltree_oset_implementation): Update.
37661         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37662         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37663         xmalloc.
37664         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37665         not xmalloc.
37666         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37667         xmalloc.
37668         (gl_rbtree_oset_implementation): Update.
37669         * modules/array-oset (Depends-on): Remove xalloc.
37670         * modules/avltree-oset (Depends-on): Likewise.
37671         * modules/rbtree-oset (Depends-on): Likewise.
37672         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37673         * tests/test-avltree_oset.c: Likewise.
37674         * tests/test-rbtree_oset.c: Likewise.
37675         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37676         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37677         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37678         * NEWS: Mention the change.
37679
37680 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37681
37682         maint.mk: allow a project to override release-prep commands
37683         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37684         commands into a new rule.
37685         (release-prep): New rule.
37686         (release-prep-hook): New overridable variable.
37687
37688 2009-12-13  Bruno Haible  <bruno@clisp.org>
37689
37690         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37691
37692 2009-12-13  Jim Meyering  <meyering@redhat.com>
37693
37694         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37695         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37696
37697 2009-12-12  Bruno Haible  <bruno@clisp.org>
37698
37699         duplocale: Tweak.
37700         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37701
37702 2009-12-12  Karl Berry  <karl@gnu.org>
37703
37704         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37705
37706 2009-12-12  Bruno Haible  <bruno@clisp.org>
37707
37708         * m4/po.m4: Undo incorrect untabification.
37709
37710 2009-12-12  Bruno Haible  <bruno@clisp.org>
37711
37712         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37713         * modules/c-strtod (Depends-on): Add locale.
37714         * modules/c-strtold (Depends-on): Likewise.
37715
37716 2009-12-12  Bruno Haible  <bruno@clisp.org>
37717
37718         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37719
37720 2009-12-11  Eric Blake  <ebb9@byu.net>
37721
37722         setenv: relax requirement in light of POSIX ruling
37723         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37724         not NULL.
37725         * tests/test-setenv.c (main): Relax test.
37726         * tests/test-unsetenv.c (main): Likewise.
37727         * doc/posix-functions/setenv.texi (setenv): Document this.
37728         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37729
37730 2009-12-11  Bruno Haible  <bruno@clisp.org>
37731
37732         New module 'fd-safer-flag'.
37733         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37734         * lib/dup-safer.c (dup_safer_flag): Remove function.
37735         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37736         * lib/fd-safer.c (fd_safer_flag): Remove function.
37737         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37738         * modules/cloexec (configure.ac): Drop indicator macro.
37739         * modules/fd-safer-flag: New file.
37740         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37741         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37742         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37743
37744 2009-12-11  Bruno Haible  <bruno@clisp.org>
37745
37746         Tests for module 'nl_langinfo'.
37747         * modules/nl_langinfo-tests: New file.
37748         * tests/test-nl_langinfo.sh: New file.
37749         * tests/test-nl_langinfo.c: New file.
37750
37751         New module 'nl_langinfo'.
37752         * lib/nl_langinfo.c: New file.
37753         * m4/nl_langinfo.m4: New file.
37754         * modules/nl_langinfo: New file.
37755         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37756
37757 2009-12-11  Bruno Haible  <bruno@clisp.org>
37758
37759         Tests for module 'langinfo'.
37760         * modules/langinfo-tests: New file.
37761         * tests/test-langinfo.c: New file.
37762
37763         New module 'langinfo'.
37764         * lib/langinfo.in.h: New file.
37765         * m4/langinfo_h.m4: New file.
37766         * modules/langinfo: New file.
37767         * doc/posix-headers/langinfo.texi: Mention the new module.
37768
37769 2009-12-11  Bruno Haible  <bruno@clisp.org>
37770
37771         * lib/config.charset: Untabify.
37772
37773 2009-12-11  Bruno Haible  <bruno@clisp.org>
37774
37775         * modules/unistd-safer (configure.ac): Drop indicator macro.
37776
37777 2009-12-11  Bruno Haible  <bruno@clisp.org>
37778
37779         Move pipe2-safer code to its own file.
37780         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37781         * lib/pipe-safer.c (pipe2_safer): Remove function.
37782         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37783         (Makefile.am): Add it to lib_SOURCES.
37784
37785 2009-12-10  Bruno Haible  <bruno@clisp.org>
37786
37787         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37788
37789 2009-12-10  Bruno Haible  <bruno@clisp.org>
37790
37791         Declare which arguments expect non-NULL values, for GCC and clang.
37792         * build-aux/arg-nonnull.h: New file.
37793         * modules/arg-nonnull: New file.
37794         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37795         (inet_ntop, inet_pton): Use it.
37796         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37797         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37798         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37799         (open, openat): Use it.
37800         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37801         (fnmatch): Use it.
37802         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37803         (getopt, getopt_long, getopt_long_only): Use it.
37804         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37805         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37806         Use it.
37807         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37808         (iconv_open): Use it.
37809         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37810         (strtoimax, strtoumax): Use it.
37811         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37812         (duplocale): Use it.
37813         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37814         (frexp, frexpl): Use it.
37815         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37816         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37817         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37818         (tsearch, tfind, tdelete, twalk): Use it.
37819         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37820         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37821         sigpending): Use it.
37822         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37823         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37824         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37825         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37826         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37827         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37828         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37829         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37830         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37831         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37832         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37833         Use it.
37834         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37835         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37836         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37837         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37838         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37839         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37840         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37841         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37842         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37843         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37844         strtoull, unsetenv): Use it.
37845         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37846         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37847         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37848         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37849         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37850         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37851         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37852         (strcasecmp, strncasecmp): Use it.
37853         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37854         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37855         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37856         rpl_setsockopt): Use it.
37857         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37858         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37859         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37860         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37861         (gettimeofday): Use it.
37862         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37863         (times): Use it.
37864         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37865         (uname): Use it.
37866         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37867         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37868         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37869         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37870         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37871         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37872         unlinkat, write): Use it.
37873         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37874         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37875         * lib/argv-iter.h: Include arg-nonnull.h.
37876         (_ATTRIBUTE_NONNULL_): Remove macro.
37877         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37878         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37879         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37880         optimization.
37881         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37882         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37883         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37884         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37885         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37886         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37887         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37888         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37889         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37890         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37891         * modules/dirent (Depends-on): Add arg-nonnull.
37892         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37893         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37894         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37895         * modules/fnmatch (Depends-on): Add arg-nonnull.
37896         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37897         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37898         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37899         * modules/glob (Depends-on): Add arg-nonnull.
37900         (Makefile.am): Insert arg-nonnull.h into glob.h.
37901         * modules/iconv_open (Depends-on): Add arg-nonnull.
37902         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37903         * modules/inttypes (Depends-on): Add arg-nonnull.
37904         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37905         * modules/locale (Depends-on): Add arg-nonnull.
37906         (Makefile.am): Insert arg-nonnull.h into locale.h.
37907         * modules/math (Depends-on): Add arg-nonnull.
37908         (Makefile.am): Insert arg-nonnull.h into math.h.
37909         * modules/netdb (Depends-on): Add arg-nonnull.
37910         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37911         * modules/search (Depends-on): Add arg-nonnull.
37912         (Makefile.am): Insert arg-nonnull.h into search.h.
37913         * modules/signal (Depends-on): Add arg-nonnull.
37914         (Makefile.am): Insert arg-nonnull.h into signal.h.
37915         * modules/spawn (Depends-on): Add arg-nonnull.
37916         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37917         * modules/stdio (Depends-on): Add arg-nonnull.
37918         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37919         * modules/stdlib (Depends-on): Add arg-nonnull.
37920         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37921         * modules/string (Depends-on): Add arg-nonnull.
37922         (Makefile.am): Insert arg-nonnull.h into string.h.
37923         * modules/strings (Depends-on): Add arg-nonnull.
37924         (Makefile.am): Insert arg-nonnull.h into strings.h.
37925         * modules/sys_socket (Depends-on): Add arg-nonnull.
37926         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37927         * modules/sys_stat (Depends-on): Add arg-nonnull.
37928         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37929         * modules/sys_time (Depends-on): Add arg-nonnull.
37930         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37931         * modules/sys_times (Depends-on): Add arg-nonnull.
37932         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37933         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37934         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37935         * modules/time (Depends-on): Add arg-nonnull.
37936         (Makefile.am): Insert arg-nonnull.h into time.h.
37937         * modules/unistd (Depends-on): Add arg-nonnull.
37938         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37939         * modules/wchar (Depends-on): Add arg-nonnull.
37940         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37941         * modules/argv-iter (Depends-on): Add arg-nonnull.
37942         * tests/test-canonicalize.c (null_ptr): New function.
37943         (main): Use it.
37944         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37945         (main): Use it.
37946         * tests/test-memmem.c (null_ptr): New function.
37947         (main): Use it.
37948         Reported by Jim Meyering.
37949
37950 2009-12-10  Bruno Haible  <bruno@clisp.org>
37951
37952         Use spaces for indentation, not tabs.
37953         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37954         * m4/*.m4: Untabify.
37955         * build-aux/*.h: Untabify.
37956         * tests/**/*.[hc]: Untabify.
37957         * README: New section "Indent with spaces, not TABs", based on
37958         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37959         * NEWS: Mention the change.
37960
37961 2009-12-10  Bruno Haible  <bruno@clisp.org>
37962
37963         pty test: Fix link error.
37964         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37965         test_pty_LDADD.
37966
37967 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37968
37969         * modules/pty: New file.
37970         * modules/pty-tests: New file.
37971         * m4/pty.m4: New file.
37972         * tests/test-pty.c: New file.
37973         * doc/glibc-headers/pty.texi: Modified.
37974         * doc/glibc-functions/forkpty.texi: Modified.
37975         * doc/glibc-functions/openpty.texi: Modified.
37976
37977 2009-12-10  Bruno Haible  <bruno@clisp.org>
37978
37979         Avoid syntax error in C++ mode.
37980         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37981
37982 2009-12-10  Bruno Haible  <bruno@clisp.org>
37983
37984         Use sed with option -e.
37985         * gnulib-tool (func_version, func_emit_copyright_notice,
37986         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37987         option -e to sed.
37988         * modules/link-warning (Makefile.am): Likewise.
37989
37990 2009-12-10  Jim Meyering  <meyering@redhat.com>
37991
37992         mgetgroups: do not write bytes beyond end of malloc'd buffer
37993         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37994         username, we call getgroups with a one-element-shorter buffer,
37995         but still told it the length was original, max_n_groups.
37996
37997 2009-12-09  Eric Blake  <ebb9@byu.net>
37998
37999         cloexec: relax license
38000         * modules/cloexec (Maintainer): Add myself.
38001         (License): Use LGPL, not GPL.
38002
38003         link-warning: optimize generation
38004         * modules/link-warning (Makefile.am): Reduce process usage.
38005
38006 2009-12-09  Bruno Haible  <bruno@clisp.org>
38007
38008         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38009         workaround was added on 2009-11-17.
38010
38011 2009-12-09  Jim Meyering  <meyering@redhat.com>
38012             Bruno Haible  <bruno@clisp.org>
38013
38014         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38015         * modules/link-warning (Makefile.am): Make the comment-removing sed
38016         command more robust in the face of bootstrap-prepended comment lines.
38017
38018 2009-12-09  Bruno Haible  <bruno@clisp.org>
38019
38020         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38021         most one group.
38022
38023 2009-12-09  Simon Josefsson <simon@josefsson.org>
38024             Bruno Haible  <bruno@clisp.org>
38025
38026         * build-aux/link-warning.h: Add copyright notice.
38027         * modules/link-warning (Makefile.am): Generate link-warning.h from
38028         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38029         * NEWS: Mention change in link-warning module.
38030         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38031         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38032         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38033         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38034         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38035         * modules/math (Makefile.am): Add dependency to math.h.
38036         * modules/search (Makefile.am): Add dependency to search.h.
38037         * modules/signal (Makefile.am): Add dependency to signal.h.
38038         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38039         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38040         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38041         * modules/string (Makefile.am): Add dependency to string.h.
38042         * modules/strings (Makefile.am): Add dependency to strings.h.
38043         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38044         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38045         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38046         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38047         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38048         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38049         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38050         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38051         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38052
38053 2009-12-09  Bruno Haible  <bruno@clisp.org>
38054
38055         fchdir: Optimize away rpl_fstat when possible.
38056         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38057         REPLACE_OPEN_DIRECTORY.
38058         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38059
38060 2009-12-09  Bruno Haible  <bruno@clisp.org>
38061
38062         * lib/fchdir.c: Update comment.
38063
38064 2009-12-09  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38067
38068 2009-12-08  Eric Blake  <ebb9@byu.net>
38069
38070         fchdir: avoid memory leak on re-registration.
38071         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38072
38073 2009-12-08  Jim Meyering  <meyering@redhat.com>
38074
38075         init.sh: avoid Solaris 10 /bin/sh portability problem
38076         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38077         sourced script:
38078           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38079           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38080           bar
38081         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38082         and two tests used that idiom.
38083         * tests/init.sh: Update suggested usage comments.
38084         (path_prepend_): New function, to be used in place
38085         of the --src-path=DIR option.
38086         (setup_): Move PATH-prepending code into path_prepend_.
38087         * tests/test-pread.sh: Adapt to new usage.
38088         * tests/test-xalloc-die.sh: Likewise.
38089
38090 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38091
38092         * doc/gnulib.texi (Glibc pty.h): Add.
38093         * doc/glibc-functions/forkpty.texi: Add.
38094         * doc/glibc-functions/openpty.texi: Add.
38095         Suggested by Bruno Haible.
38096
38097 2009-12-08  Eric Blake  <ebb9@byu.net>
38098
38099         fchdir: fix logic bugs
38100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38101         * tests/test-fchdir.c (main): Enhance test.
38102         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38103         is in use.
38104
38105         dup2: fix logic bugs
38106         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38107         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38108         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38109         exists.
38110         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38111
38112 2009-12-07  Eric Blake  <ebb9@byu.net>
38113
38114         unlink: fix m4 detection
38115         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38116
38117         unistd-safer: add unit test
38118         * modules/unistd-safer-tests: New file.
38119         * tests/test-dup-safer.c: Likewise.
38120         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38121         * tests/test-dup2.c (setmode): Likewise.
38122         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38123
38124         cloexec: preserve text vs. binary across dup_cloexec
38125         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38126         mode.
38127         * modules/dup2-tests (Depends-on): Add binary-io.
38128         * modules/cloexec-tests (Depends-on): Likewise.
38129         * tests/test-dup2.c (setmode, is_mode): New helpers.
38130         (main): Add tests that translation mode is preserved.
38131         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38132         Reported by Bruno Haible.
38133
38134         mgetgroups: reduce duplicate listings
38135         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38136         resulting array.
38137         * tests/test-chown.h (test_chown): Simplify client.
38138         * tests/test-lchown.h (test_lchown): Likewise.
38139
38140 2009-12-06  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38143         value.
38144
38145 2009-12-06  Bruno Haible  <bruno@clisp.org>
38146
38147         * lib/progname.c: Include stdio.h, stdlib.h.
38148         (set_program_name): Reject a NULL argument.
38149
38150 2009-12-05  Eric Blake  <ebb9@byu.net>
38151
38152         pipe2-safer: new module
38153         * modules/pipe2-safer: New file.
38154         * lib/unistd-safer.h (pipe2_safer): New prototype.
38155         * lib/unistd--.h (pipe2): New wrapper.
38156         * lib/pipe-safer.c (pipe2_safer): New function.
38157         * modules/pipe (Depends-on): Add pipe2-safer.
38158         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38159
38160         stdlib-safer: preserve cloexec flag for mkostemp[s]
38161         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38162         fd_safer_flag.
38163
38164         unistd-safer: allow preservation of cloexec status via flag
38165         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38166         prototypes.
38167         * lib/dup-safer.c (dup_safer_flag): New function.
38168         * lib/fd-safer.c (fd_safer_flag): Likewise.
38169         * modules/cloexec (configure.ac): Set witness.
38170
38171         test-dup2: enhance test
38172         * modules/dup2-tests (Depends-on): Add cloexec.
38173         * tests/test-dup2.c (main): Enhance test.
38174
38175         cloexec: add dup_cloexec
38176         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38177         header and comments.
38178         * lib/cloexec.c (set_cloexec_flag): Add comments.
38179         (dup_cloexec): New function, with mingw implementation borrowed
38180         from...
38181         * lib/w32spawn.h (dup_noinherit): ...here.
38182         * modules/execute (Depends-on): Add cloexec.
38183         * modules/pipe (Depends-on): Likewise.
38184         * modules/cloexec (Depends-on): Add dup2.
38185         * modules/cloexec-tests (Files): New file.
38186         * tests/test-cloexec.c: Likewise.
38187
38188         test-xalloc-die: fix test for mingw
38189         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38190         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38191         directory and .exe suffix off argv[0] output.
38192
38193         test-fseeko: fix test for mingw
38194         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38195         than undefining fseek, so test will pass on mingw.
38196
38197 2009-12-05  Bruno Haible  <bruno@clisp.org>
38198
38199         * lib/progname.h (set_program_name): Clarify specification.
38200         * lib/progname.c (set_program_name): Likewise.
38201         Reported by Jim Meyering.
38202
38203 2009-12-05  Jim Meyering  <meyering@redhat.com>
38204
38205         maint.mk: backslash-escape parens in default regexp
38206         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38207         backslash-escape the literal parentheses.
38208
38209         maint.mk: news-date-check: use grep -E
38210         * top/maint.mk (today): Define a Make variable, not a...
38211         (news-date-check): ...shell variable.
38212         (news-date-regexp): Use the Make variable.
38213         Use grep's -E option.  Change the failing diagnostic to mention
38214         the variable, $(news-date-regexp).
38215
38216 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38217
38218         maintainer-makefile: allow customization of NEWS entry format
38219         * top/maint.mk (news-date-regexp): New overridable variable.
38220         (news-date-check): Use it.
38221
38222 2009-12-04  Eric Blake  <ebb9@byu.net>
38223
38224         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38225         * lib/mgetgroups.h (xgetgroups): New prototype.
38226         * lib/mgetgroups.c (xgetgroups): New wrapper.
38227         (mgetgroups): Handle ENOSYS.
38228         * modules/mgetgroups (Depends-on): Add realloc.
38229         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38230
38231         mgetgroups: avoid argument promotion issues with -1
38232         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38233         for invalid gid_t.
38234         * tests/test-chown.h (getegid, test_chown): Likewise.
38235         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38236
38237 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38238
38239         exclude: Fix header file problems.
38240         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38241
38242 2009-12-01  Jim Meyering  <meyering@redhat.com>
38243
38244         fts: fts_open: do not let an empty string cause immediate failure
38245         This is required in support of GNU rm, for which the command
38246         "rm A '' B" must process and remove both A and B, in spite of
38247         the empty string argument.
38248         * lib/fts.c (fts_open): Do not let the presence of an empty string
38249         cause fts_open to fail immediately.  Most fts-using tools must be
38250         able to process all arguments, in order, and can be expected to
38251         diagnose such arguments themselves.
38252
38253 2009-11-30  Eric Blake  <ebb9@byu.net>
38254
38255         utimens: fix compilation error
38256         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38257         Declare variable at right scope.
38258
38259 2009-11-29  Jim Meyering  <meyering@redhat.com>
38260
38261         bootstrap: handle perl-5.11's changed --version output
38262         * build-aux/bootstrap (get_version): Handle perl separately,
38263         since perl-5.11's --version output is different.
38264
38265 2009-11-28  Jim Meyering  <meyering@redhat.com>
38266
38267         userspec: depend on the inttostr module, too
38268         * modules/userspec (Depends-on): Add inttostr.
38269
38270         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38271         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38272         number of MAXUID when it evaluates to (uid_t) -1.
38273         Likewise for group ID.  Reported by Matt McCutchen in
38274         <http://savannah.gnu.org/bugs/?28113>
38275
38276         userspec: reformat to use spaces, not TABs
38277         * lib/userspec.c: Expand TABs to spaces.
38278         Add Emacs' "indent-tabs-mode: nil" hint.
38279
38280 2009-11-27  Eric Blake  <ebb9@byu.net>
38281
38282         getopt-gnu: flush out another BSD bug
38283         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38284         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38285         flush out BSD bug.
38286         * tests/test-getopt.h (test_getopt): End lists with NULL.
38287         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38288         (test_getopt_long_posix): Enhance test.
38289         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38290         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38291         getopt-gnu.
38292         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38293         Likewise.
38294
38295 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38296
38297         * modules/idpriv-droptemp-tests (Notice): Fix text.
38298
38299 2009-11-27  Jim Meyering  <meyering@redhat.com>
38300
38301         test-xalloc-die: avoid spurious failure due to libtool argv difference
38302         In a libtool-enabled project, this test would fail due to a difference
38303         in the emitted program name, e.g.,
38304         -test-xalloc-die: memory exhausted
38305         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38306         Use program to avoid that.
38307         * modules/xalloc-die-tests (Depends-on): Add progname.
38308         * tests/test-xalloc-die.c: Include progname.h".
38309         (program_name): Remove decl.
38310         (main): Call set_program_name.
38311         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38312
38313 2009-11-26  Richard Jones  <rjones@redhat.com>
38314
38315         w32sock: leave win32 error in place.
38316         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38317
38318 2009-11-26  Eric Blake  <ebb9@byu.net>
38319
38320         init.sh: suggest to use skip_ and fail_ functions in comments
38321         * tests/init.sh: Add a sentence.
38322
38323 2009-11-25  Bruno Haible  <bruno@clisp.org>
38324
38325         init.sh: add documentation in comments
38326         * tests/init.sh: Add some developer and user documentation.
38327
38328 2009-11-26  Jim Meyering  <meyering@redhat.com>
38329
38330         init.sh: accommodate even those who specify bogus srcdir manually
38331         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38332         configure-time tests to be sanitized, so that there is no need to
38333         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38334         (with no double quotes) suffices.  However, since tests may be
38335         invoked manually, and since you may explicitly set srcdir to the
38336         name of a directory containing spaces, do quote its uses here.
38337         * tests/test-pread.sh: Likewise.
38338         Suggested by Bruno Haible.
38339
38340         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38341         * tests/test-pread.sh: Write no data into the pipe, because
38342         test-pread actually reads none.  This avoids a diagnostic,
38343         "bash: echo: write error: Broken pipe", that arises in the unusual
38344         event something is ignoring SIGPIPE, and might be interpreted
38345         as some sort of failure.  Reported by Bruno Haible.
38346
38347 2009-11-25  Jim Meyering  <meyering@redhat.com>
38348
38349         test-pread: cover failure with ESPIPE and EINVAL
38350         * tests/test-pread.c (main): Test for failure, too.
38351         * tests/test-pread.sh: Invoke with stdin on a pipe.
38352         Suggested by Eric Blake.
38353
38354         pread: improvement and fix
38355         * modules/pread (Depends-on): Depend on lseek, for portability to
38356         e.g., mingw.  Suggested by Eric Blake.
38357         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38358
38359         unistd.in.h: correct declaration of pread
38360         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38361         Reported by Richard W.M. Jones.
38362
38363         test-pread.sh: distribute the test script
38364         * modules/pread-tests (Files): Include test-pread.sh.
38365
38366         test-pread.sh: clean up
38367         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38368         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38369         That is unnecessary, since it's always ".".
38370         Suggestion from Eric Blake.
38371
38372         test-pread.sh: make executable
38373         * tests/test-pread.sh: Set executable bit.
38374         Reported by Eric Blake.
38375
38376         correct typo in test-pread.sh
38377         * tests/test-pread.sh: Add #! line.
38378
38379         test pread
38380         * tests/test-pread.c: New file.
38381         * tests/test-pread.sh: Likewise.
38382         * modules/pread-tests: Likewise.
38383
38384         pread: new module
38385         * modules/pread: New file.
38386         * lib/unistd.in.h (pread): Define/declare.
38387         * lib/pread.c (pread): New file.
38388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38389         * modules/unistd (Makefile.am): Substitute witnesses.
38390         * doc/posix-functions/pread.texi (pread): Update.
38391         * MODULES.html.sh: Add pread.
38392
38393 2009-11-25  Jim Meyering  <meyering@redhat.com>
38394
38395         tests/init.sh: new file to be used via most *.sh tests
38396         * tests/init.sh: New file.
38397
38398 2009-11-25  Eric Blake  <ebb9@byu.net>
38399
38400         utimens: work around older Linux failure with symlinks
38401         * lib/utimens.c (lutimensat_works_really): New variable.
38402         (fdutimens, lutimens): Use it to manage kernels that support
38403         nanosecond times on files, but not on symlinks.
38404         Reported by OndÅ™ej Vašík.
38405
38406         utimes: fix configure grammar
38407         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38408
38409 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38410
38411         regex: Fix fastmap for multibyte character ranges.
38412         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38413         characters when a multibyte character range is included.
38414
38415 2009-11-22  Andy Wingo  <wingo@pobox.com>
38416
38417         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38418         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38419
38420 2009-11-24  Bruno Haible  <bruno@clisp.org>
38421
38422         doc: Most *_l functions exist in MacOS X 10.5.
38423         * doc/posix-functions/duplocale.texi: Update platforms list.
38424         * doc/posix-functions/freelocale.texi: Likewise.
38425         * doc/posix-functions/newlocale.texi: Likewise.
38426         * doc/posix-functions/uselocale.texi: Likewise.
38427         * doc/posix-functions/isalnum_l.texi: Likewise.
38428         * doc/posix-functions/isalpha_l.texi: Likewise.
38429         * doc/posix-functions/isblank_l.texi: Likewise.
38430         * doc/posix-functions/iscntrl_l.texi: Likewise.
38431         * doc/posix-functions/isdigit_l.texi: Likewise.
38432         * doc/posix-functions/isgraph_l.texi: Likewise.
38433         * doc/posix-functions/islower_l.texi: Likewise.
38434         * doc/posix-functions/isprint_l.texi: Likewise.
38435         * doc/posix-functions/ispunct_l.texi: Likewise.
38436         * doc/posix-functions/isspace_l.texi: Likewise.
38437         * doc/posix-functions/isupper_l.texi: Likewise.
38438         * doc/posix-functions/iswalnum_l.texi: Likewise.
38439         * doc/posix-functions/iswalpha_l.texi: Likewise.
38440         * doc/posix-functions/iswblank_l.texi: Likewise.
38441         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38442         * doc/posix-functions/iswctype_l.texi: Likewise.
38443         * doc/posix-functions/iswdigit_l.texi: Likewise.
38444         * doc/posix-functions/iswgraph_l.texi: Likewise.
38445         * doc/posix-functions/iswlower_l.texi: Likewise.
38446         * doc/posix-functions/iswprint_l.texi: Likewise.
38447         * doc/posix-functions/iswpunct_l.texi: Likewise.
38448         * doc/posix-functions/iswspace_l.texi: Likewise.
38449         * doc/posix-functions/iswupper_l.texi: Likewise.
38450         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38451         * doc/posix-functions/isxdigit_l.texi: Likewise.
38452         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38453         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38454         * doc/posix-functions/strcoll_l.texi: Likewise.
38455         * doc/posix-functions/strfmon_l.texi: Likewise.
38456         * doc/posix-functions/strftime_l.texi: Likewise.
38457         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38458         * doc/posix-functions/strxfrm_l.texi: Likewise.
38459         * doc/posix-functions/tolower_l.texi: Likewise.
38460         * doc/posix-functions/toupper_l.texi: Likewise.
38461         * doc/posix-functions/towctrans_l.texi: Likewise.
38462         * doc/posix-functions/towlower_l.texi: Likewise.
38463         * doc/posix-functions/towupper_l.texi: Likewise.
38464         * doc/posix-functions/wcscoll_l.texi: Likewise.
38465         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38466         * doc/posix-functions/wctrans_l.texi: Likewise.
38467         * doc/posix-functions/wctype_l.texi: Likewise.
38468         * doc/glibc-functions/strptime_l.texi: Likewise.
38469         * doc/glibc-functions/strtod_l.texi: Likewise.
38470         * doc/glibc-functions/strtof_l.texi: Likewise.
38471         * doc/glibc-functions/strtol_l.texi: Likewise.
38472         * doc/glibc-functions/strtold_l.texi: Likewise.
38473         * doc/glibc-functions/strtoll_l.texi: Likewise.
38474         * doc/glibc-functions/strtoul_l.texi: Likewise.
38475         * doc/glibc-functions/strtoull_l.texi: Likewise.
38476         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38477         * doc/glibc-functions/wcstod_l.texi: Likewise.
38478         * doc/glibc-functions/wcstof_l.texi: Likewise.
38479         * doc/glibc-functions/wcstol_l.texi: Likewise.
38480         * doc/glibc-functions/wcstold_l.texi: Likewise.
38481         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38482         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38483         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38484
38485 2009-11-24  Bruno Haible  <bruno@clisp.org>
38486
38487         duplocale: Fix logic bug.
38488         * lib/duplocale.c: Don't include <langinfo.h>.
38489         (_NL_LOCALE_NAME): Remove macro.
38490         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38491         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38492
38493 2009-11-23  Jim Meyering  <meyering@redhat.com>
38494
38495         test-update-copyright: don't hard-code /usr/bin/perl
38496         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38497         perl to print the current year.  Gilles Espinasse reported that
38498         the replaced use of perl was hard-coded as /usr/bin/perl.
38499
38500 2009-11-23  Bruno Haible  <bruno@clisp.org>
38501
38502         duplocale: Add support for glibc 2.3.x.
38503         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38504
38505 2009-11-22  Bruno Haible  <bruno@clisp.org>
38506
38507         vasnprintf: Tiny optimization.
38508         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38509         MacOS X.
38510
38511 2009-11-22  Bruno Haible  <bruno@clisp.org>
38512
38513         Tests for module 'duplocale'.
38514         * modules/duplocale-tests: New file.
38515         * tests/test-duplocale.c: New file.
38516
38517         New module 'duplocale'.
38518         * m4/duplocale.m4: New file.
38519         * lib/locale.in.h (duplocale): New declaration.
38520         * lib/duplocale.c: New file.
38521         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38522         gl_LOCALE_H_DEFAULTS): New macros.
38523         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38524         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38525         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38526         REPLACE_DUPLOCALE.
38527         * modules/duplocale: New file.
38528         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38529
38530 2009-11-22  Bruno Haible  <bruno@clisp.org>
38531
38532         * modules/locale-tests (configure.ac): Test for newlocale function.
38533         * tests/test-locale.c: When the system has extended locale functions,
38534         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38535
38536         locale: Make locale_t available when possible.
38537         * lib/locale.in.h: Include <xlocale.h> when it exists.
38538         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38539         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38540         * modules/locale (Depends-on): Add extensions.
38541         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38542         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38543
38544 2009-11-22  Bruno Haible  <bruno@clisp.org>
38545
38546         Add comments.
38547         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38548         invocation.
38549         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38550         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38551         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38552
38553 2009-11-22  Bruno Haible  <bruno@clisp.org>
38554
38555         error: account for the possibility of freopen (stdout).
38556         * lib/error.c: Include <unistd.h>.
38557         (flush_stdout): New function, extracted from error and error_at_line.
38558         Determine stdout's fd dynamically.
38559         (error, error_at_line): Invoke flush_stdout.
38560         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38561         * modules/error (Depends-on): Add unistd.
38562
38563 2009-11-22  Bruno Haible  <bruno@clisp.org>
38564
38565         diffseq: Add comment.
38566         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38567
38568 2009-11-22  Jim Meyering  <meyering@redhat.com>
38569
38570         c-stack: avoid defining an unused static function
38571         * lib/c-stack.c (find_stack_direction): Do not define this function
38572         when it will not be used.
38573
38574         diffseq: avoid spurious gcc warnings
38575         * lib/diffseq.h (IF_LINT2): Define.
38576         (compareseq): Use it to initialize two members of "part".
38577         This avoids two used-uninitialized warnings.
38578
38579 2009-11-21  Jim Meyering  <meyering@redhat.com>
38580
38581         c-stack: avoid "ignoring return value of `write'" warning
38582         * lib/c-stack.c: Include "ignore-value.h".
38583         (die): Explicitly ignore each write return value.
38584         * modules/c-stack (Depends-on): Add ignore-value.
38585
38586 2009-11-21  Bruno Haible  <bruno@clisp.org>
38587
38588         diffseq: reduce scope of variable 'best'.
38589         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38590         variable, earlier used for two different purposes.
38591
38592 2009-11-21  Jim Meyering  <meyering@redhat.com>
38593
38594         diffseq: remove useless assignment to "best"
38595         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38596         assignment.  At that point "best" is already guaranteed to be zero.
38597
38598 2009-11-20  Eric Blake  <ebb9@byu.net>
38599
38600         build: mention ftp redirector in release announcements
38601         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38602         values that used to come from cfg.mk; mention FTP redirect URL.
38603         * build-aux/announce-gen: Mention the mirror list.
38604         Suggested by Karl Berry.
38605
38606         nanosleep: improve port to mingw
38607         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38609         LIB_NANOSLEEP, but only when needed.
38610         * modules/select (Link): Document LIBSOCKET.
38611         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38612         enough.
38613
38614         nanosleep: work around cygwin bug
38615         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38616         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38617         bug.
38618         (getnow): Delete, not needed.
38619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38620         LIB_CLOCK_GETTIME.
38621         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38622         clock-time, gettime.
38623         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38624         bug.
38625         * modules/nanosleep-tests: New test.
38626         * tests/test-nanosleep.c: New file.
38627
38628         sleep: work around cygwin bug
38629         * lib/sleep.c (rpl_sleep): Work around the bug.
38630         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38631         (gl_PREREQ_SLEEP): Delete unused macro.
38632         * modules/sleep (Depends-on): Add verify.
38633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38634         * modules/unistd (Makefile.am): Substitute witness.
38635         * lib/unistd.in.h (sleep): Update prototype.
38636         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38637         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38638         * modules/sleep-tests (Depends-on): Check for alarm.
38639
38640 2009-11-20  Jim Meyering  <meyering@redhat.com>
38641
38642         maint.mk: improve sc_prohibit_magic_number_exit
38643         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38644         so it does not match uses like System.exit(1).
38645         Add comments showing how to correct all offenders.
38646
38647 2009-11-19  Eric Blake  <ebb9@byu.net>
38648
38649         xalloc-die-tests: add missing library
38650         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38651
38652         test-xvasprintf: silence compiler warnings
38653         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38654         empty string from gcc.
38655
38656 2009-11-19  Jim Meyering  <meyering@redhat.com>
38657
38658         xfreopen: new module, from coreutils
38659         * modules/xfreopen: New module.
38660         * lib/xfreopen.c: New file.
38661         * lib/xfreopen.h: New file.
38662         * MODULES.html.sh (File stream based Input/Output"): Add it.
38663
38664 2009-11-19  Eric Blake  <ebb9@byu.net>
38665
38666         manywarnings: depend on warnings
38667         * modules/manywarnings (Depends-on): Add warnings.
38668
38669         build: avoid compiler warnings
38670         * lib/select.c (rpl_select): Delete unused variable.
38671         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38672
38673 2009-11-18  Eric Blake  <ebb9@byu.net>
38674
38675         tests: avoid false negative with --with-packager
38676         * tests/test-version-etc.sh: Discard packager information.
38677         * tests/test-argp-version-etc-1.sh: Likewise.
38678         Reported by Mike Frysinger.
38679
38680         utimens: fix regression on Solaris
38681         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38682         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38683         can only change fd timestamps via futimesat.  Instead, use an
38684         additional witness macro to avoid BSD bug.
38685         Reported by Jim Meyering.
38686
38687 2009-11-17  Eric Blake  <ebb9@byu.net>
38688
38689         usleep: use it to simplify tests
38690         * modules/stat-time-tests (Depends-on): Add usleep.
38691         (configure.ac): Drop usleep check.
38692         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38693         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38694         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38695         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38696         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38697         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38698         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38699         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38700         Likewise.
38701         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38702         * tests/test-lchown.h (nap): Likewise.
38703         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38704         * tests/test-stat-time.c (nap): Likewise.
38705         * tests/test-utimens-common.h (nap): Update comments.
38706
38707         usleep: new module
38708         * modules/usleep: New file.
38709         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38710         * lib/usleep.c (usleep): Likewise.
38711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38712         * modules/unistd (Makefile.am): Substitute witnesses.
38713         * lib/unistd.in.h (usleep): Add declaration.
38714         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38715         * MODULES.html.sh (Date and time): Likewise.
38716         * modules/usleep-tests (Depends-on): New test.
38717         * tests/test-usleep.c: New file.
38718
38719         chown: work around OpenBSD bug
38720         * lib/chown.c (rpl_chown): Work around the bug.
38721         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38722         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38724         * modules/chown (Depends-on): Add stdbool.
38725         * modules/lchown (Depends-on): Likewise.
38726         * doc/posix-functions/chown.texi (chown): Document the bug.
38727         * doc/posix-functions/lchown.texi (lchown): Likewise.
38728         * tests/test-lchown.h (test_chown): Relax test.
38729
38730         mkstemp: avoid conflict with C++ keyword template
38731         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38732         * lib/mkostemp.c (mkostemp): Likewise.
38733         * lib/mkostemps.c (mkostemps): Likewise.
38734         * lib/mkstemp.c (mkstemp): Likewise.
38735         * lib/mkstemps.c (mkstemps): Likewise.
38736
38737         xalloc-die-tests: optimize
38738         * tests/test-xalloc-die.sh: Reduce number of processes.
38739
38740 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38741
38742         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38743         patch from ludo@gnu.org (Ludovic Courtès).
38744
38745 2009-11-17  Jim Meyering  <meyering@redhat.com>
38746
38747         version-etc: use proper license string
38748         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38749         * modules/version-etc-fsf: Likewise.
38750
38751 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38752
38753         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38754         printed to stdout.  Deal with EOL differences.
38755
38756 2009-11-17  Eric Blake  <ebb9@byu.net>
38757
38758         unsetenv: work around Solaris bug
38759         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38760         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38761         Reported by Jim Meyering.
38762
38763         vasnprintf: avoid compiler warnings
38764         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38765         variables.
38766         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38767
38768 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38769
38770         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38771         settings since xalloc-die is no longer the self test,
38772         xalloc-die.sh is.
38773
38774 2009-11-17  Jim Meyering  <meyering@redhat.com>
38775
38776         test-xalloc-die.sh: make the code agree with the commit log
38777         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38778         at the end, just in case you happen to have a test-xalloc-die
38779         program in some other PATH directory.
38780
38781         test-xalloc-die.sh: fix a portability bug
38782         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38783         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38784         Otherwise, argv[0] (as often seen in diagnostics) would be too
38785         system-dependent, sometimes with, and sometimes without the leading "./".
38786
38787         version-etc-fsf: relax license to LGPLv3+
38788         * modules/version-etc-fsf (License): Relax license.
38789
38790 2009-11-16  Eric Blake  <ebb9@byu.net>
38791
38792         xalloc-die-tests: avoid printing null pointer
38793         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38794         shell script.
38795         * tests/test-xalloc-die.c (program_name): Declare.
38796         * tests/test-xalloc-die.sh (tmpfiles): New file.
38797
38798         setenv, unsetenv: work around various bugs
38799         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38800         (setenv) [HAVE_SETENV]: Work around bugs.
38801         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38802         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38803         for bugs.
38804         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38805         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38807         * modules/stdlib (Makefile.am): Update substitutions.
38808         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38809         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38810         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38811         * modules/setenv-tests: New test.
38812         * modules/unsetenv-tests: Likewise.
38813         * tests/test-setenv.c: New file.
38814         * tests/test-unsetenv.c: Likewise.
38815
38816 2009-11-16  Jim Meyering  <meyering@redhat.com>
38817
38818         version-etc: relax license to LGPLv3+
38819         * modules/version-etc (License): Relax license.
38820
38821         better AC_REQUIRE expanded-before-required-warning avoidance
38822         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38823         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38824         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38825         which is no longer needed.
38826
38827 2009-11-16  Eric Blake  <ebb9@byu.net>
38828
38829         test-freading: clean up temporary file
38830         * tests/test-freading.c (main): Remove file on success, and use
38831         ASSERT more liberally.
38832         Reported by Jim Meyering.
38833
38834 2009-11-16  Jim Meyering  <meyering@redhat.com>
38835
38836         avoid new AC_REQUIRE expanded-before-required warnings
38837         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38838         merely using it.
38839         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38840         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38841
38842 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38843
38844         * tests/test-xalloc-die.c: New file.
38845         * modules/xalloc-die-tests: New file.
38846         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38847         XFAIL_TESTS so it can be appended by modules.
38848
38849 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38850
38851         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38852         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38853
38854 2009-11-14  Eric Blake  <ebb9@byu.net>
38855
38856         fnmatch: avoid compiler warning
38857         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38858         to silence compiler warning about mismatch signedness in ?:.
38859         Reported by Robert Millan.
38860
38861         intprops: add double-inclusion guard
38862         * lib/intprops.h: Allow idempotent includes.
38863         Suggested by Bruce Korb.
38864
38865         openat: detect Solaris fchownat bug
38866         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38867         penalizing glibc chownat when only lchownat is broken.
38868         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38869         trailing slash bugs.
38870         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38871         * modules/openat-tests (Files): Include more files.
38872         (Depends-on): Add mgetgroups, sleep, stat-time.
38873         (configure.ac): Add additional checks.
38874         (Makefile.am): Build new test.
38875         * tests/test-fchownat.c: New file.
38876
38877         lchown: detect Solaris and FreeBSD bug
38878         * lib/lchown.c (rpl_lchown): Work around bug.
38879         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38881         * modules/unistd (Makefile.am): Populate it.
38882         * lib/unistd.in.h (lchown): Update declaration.
38883         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38884         * modules/lchown-tests: New file.
38885         * tests/test-lchown.h (test_lchown): Likewise.
38886         * tests/test-lchown.c (main): Likewise.
38887
38888         chown: detect Solaris and FreeBSD bug
38889         * lib/chown.c (rpl_chown): Work around bug.
38890         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38891         (gl_PREREQ_CHOWN): Delete.
38892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38893         * modules/unistd (Makefile.am): Populate it.
38894         * lib/unistd.in.h (chown): Update declaration.
38895         * lib/lchown.c (chown): Update client.
38896         * modules/lchown (Depends-on): Add lstat.
38897         * doc/posix-functions/chown.texi (chown): Document the bug.
38898         * doc/posix-functions/getgroups.texi (getgroups): Document
38899         getgroups pitfall.
38900         * modules/chown-tests: New file.
38901         * tests/test-chown.h (test_chown): Likewise.
38902         * tests/test-chown.c (main): Likewise.
38903
38904 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38905
38906         gnulib-tool: correctly detect absence of m4 directories
38907         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38908
38909 2009-11-14  Jim Meyering  <meyering@redhat.com>
38910
38911         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38912         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38913
38914 2009-11-14  John W. Eaton  <jwe@gnu.org>
38915
38916         strftime.h: wrap funtion declaration in extern "C" block
38917         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38918
38919 2009-11-13  Eric Blake  <ebb9@byu.net>
38920
38921         getgroups: avoid compiler warning
38922         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38923
38924         getgroups: work around FreeBSD bug
38925         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38926         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38927         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38928         * tests/test-getgroups.c (main): Fix buffer overrun.
38929
38930         getgroups: avoid compilation failure
38931         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38932         * modules/getgroups (Depends-on): Add stdint.
38933
38934 2009-11-13  Jim Meyering  <meyering@redhat.com>
38935
38936         test-getgroups: avoid compilation failure
38937         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38938
38939 2009-11-13  Eric Blake  <ebb9@byu.net>
38940
38941         mgetgroups: new module, taken from coreutils
38942         * modules/mgetgroups: New file.
38943         * lib/mgetgroups.h: Likewise.
38944         * lib/mgetgroups.c (mgetgroups): Likewise.
38945         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38946         * MODULES.html.sh (Users and groups): Mention it.
38947
38948         getgroups: don't expose GETGROUPS_T to user
38949         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38950         an element at a time if GETGROUPS_T is wrong size.
38951         * lib/getugroups.h (getugroups): Change signature.
38952         * lib/unistd.in.h (getgroups): Likewise.
38953         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38954         signature needs fixing.
38955         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38956         AC_TYPE_GETGROUPS.
38957         * modules/group-member (Depends-on): Add getgroups.
38958         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38959         (group_member): Rely on getgroups replacement.
38960         * lib/getugroups.c (getugroups): Use gid_t.
38961         * tests/test-getgroups.c (main): Likewise.
38962         * NEWS: Mention the signature change.
38963         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38964         problem with signature.
38965         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38966         GETGROUPS_T is still useful for setgroups.
38967
38968         getgroups, getugroups: provide stubs for mingw
38969         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38970         * lib/getugroups.c (getugroups): Likewise.
38971         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38972         function.  Modernize replacement scheme.
38973         (gl_PREREQ_GETGROUPS): Delete.
38974         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38975         * modules/getgroups (configure.ac): Declare witness.
38976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38977         * modules/unistd (Depends-on): Substitute witness.
38978         * lib/unistd.in.h (getgroups): Declare replacement.
38979
38980         getgroups: avoid calling exit
38981         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38982         drop xalloc.
38983         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38984         dependencies.
38985         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38986         exiting, in the rare case of malloc failure.
38987
38988         getgroups: fix logic error
38989         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38990         has more than 20 groups.
38991         * modules/getgroups-tests: New test.
38992         * tests/test-getgroups.c: New file.
38993
38994 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38995
38996         * tests/test-base64.c: Improve.
38997
38998 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38999
39000         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39001         Blake <ebb9@byu.net>.
39002
39003 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39004
39005         * tests/test-xvasprintf.c: Add %s%s related checks.
39006
39007 2009-11-12  Eric Blake  <ebb9@byu.net>
39008
39009         version-etc: match standards.texi style
39010         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39011         and use <> only for URLs.
39012
39013 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39014
39015         fts: do not fail on a submount during traversal
39016         * lib/fts.c (fts_build): Read the stat info again after opening
39017         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39018         Original report at http://bugzilla.redhat.com/501848.
39019
39020 2009-11-12  Jim Meyering  <meyering@redhat.com>
39021
39022         bootstrap: sync from coreutils
39023         * build-aux/bootstrap (bootstrap_epilogue): New function.
39024         Use git_modules_config in one more place.  This make bootstrap's
39025         --gnulib-srcdir option more useful for testing.
39026
39027         bootstrap: generalize autoheader check
39028         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39029         AC_CONFIG_HEADERS.
39030
39031 2009-11-11  Eric Blake  <ebb9@byu.net>
39032
39033         mkfifoat: use new modules for Solaris and BSD bugs
39034         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39035         * lib/mkfifoat.c (mknodat): Split...
39036         * lib/mknodat.c (mknodat): ...into new file.
39037         * modules/mkfifoat (Files): Ship new file.
39038         (Depends-on): Add mkfifo, mknod.
39039         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39040         (Depends-on): Add symlink.
39041         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39042         redundant with test_mkfifo.h.
39043         (do_mkfifoat, do_mknodat): New helpers.
39044
39045         mknod: new module
39046         * modules/mknod: New file.
39047         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39048         * lib/mknod.c (mknod): Likewise.
39049         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39050         defaults.
39051         * modules/sys_stat (Makefile.am): Substitute them.
39052         * lib/sys_stat.in.h (mknod): Declare replacement.
39053         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39054         Document it.
39055         * doc/posix-functions/mknod.texi (mknod): Likewise.
39056         * modules/mknod-tests: New test.
39057         * tests/test-mknod.c: Likewise.
39058
39059         mkfifo: new module
39060         * modules/mkfifo: New file.
39061         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39062         * lib/mkfifo.c (mkfifo): Likewise.
39063         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39064         defaults.
39065         * modules/sys_stat (Makefile.am): Substitute them.
39066         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39067         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39068         Document it.
39069         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39070         * modules/mkfifo-tests: New test.
39071         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39072         from test-mkfifoat.c.
39073         * tests/test-mkfifo.c: New file.
39074
39075         readlink: detect FreeBSD bug
39076         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39077         slash on symlink.
39078         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39079         * tests/test-readlink.h (test_readlink): Enhance test.
39080
39081         symlink: detect FreeBSD bug
39082         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39083         slash on symlink.
39084         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39085         * tests/test-symlink.h (test_symlink): Enhance test.
39086
39087 2009-11-10  Eric Blake  <ebb9@byu.net>
39088
39089         link: detect FreeBSD bug
39090         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39091         symlink.
39092         * doc/posix-functions/link.texi (link): Document the bug.
39093         * tests/test-link.h (test_link): Enhance test.
39094         * tests/test-linkat.c (main): Update caller.
39095
39096         unlink, remove: detect FreeBSD bug
39097         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39098         slash on symlink.
39099         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39100         * doc/posix-functions/remove.texi (remove): Likewise.
39101         * tests/test-unlink.h (test_unlink): Enhance test.
39102         * tests/test-remove.c (main): Likewise.
39103
39104 2009-11-09  Eric Blake  <ebb9@byu.net>
39105
39106         rename: detect FreeBSD bug
39107         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39108         slash on symlink.
39109         * modules/renameat-tests (Depends-on): Add filenamecat.
39110         * tests/test-rename.h (test_rename): Allow one more errno.
39111         * tests/test-renameat.c (main): Likewise.
39112         * doc/posix-functions/rename.texi (rename): Document the bug.
39113
39114         open: detect FreeBSD bug
39115         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39116         symlink.
39117         * doc/posix-functions/open.texi (open): Document the bug.
39118         * doc/posix-functions/utimes.texi (utimes): Likewise.
39119         * tests/test-open.h (test_open): Add parameters, and test symlink
39120         handling.
39121         * tests/test-open.c (main): Adjust caller.
39122         * tests/test-fcntl-safer.c (main): Likewise.
39123         * modules/open-tests (Depends-on): Add stdbool, symlink.
39124         * modules/fcntl-safer-tests (Depends-on): Likewise.
39125         * tests/test-openat.c (main): Add test-open tests.
39126
39127         stat: detect FreeBSD bug
39128         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39129         symlink.
39130         * doc/posix-functions/stat.texi (stat): Document the bug.
39131         * tests/test-stat.h (test_stat_func): Add argument.
39132         * tests/test-stat.c (main): Adjust caller.
39133         * tests/test-fstatat.c (main): Likewise.
39134         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39135         Reported by Jim Meyering.
39136
39137 2009-11-09  James Youngman  <jay@gnu.org>
39138
39139         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39140         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39141
39142 2009-11-08  Jim Meyering  <meyering@redhat.com>
39143
39144         utimens: remove invalid futimesat call
39145         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39146         It used the file descriptor of the target file as the DIR_FD
39147         parameter and NULL as the file name.  That caused failure with
39148         errno == EFAULT on FreeBSD-8.0-rc2
39149
39150 2009-11-07  Eric Blake  <ebb9@byu.net>
39151
39152         fflush, freadseek: use fseeko, not fseek
39153         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39154         (clear_ungetc_buffer): Avoid potential problems on large files.
39155         * lib/freadseek.c (freadseek): Likewise.
39156         * modules/freadseek (Depends-on): Add fseeko.
39157         * modules/fseek (configure.ac): Set a witness.
39158         * tests/test-fflush.c (main): Use fseeko.
39159         * tests/test-fpurge.c (fseek): Disable link warning.
39160         * tests/test-freadable.c (fseek): Likewise.
39161         * tests/test-freading.c (fseek): Likewise.
39162         * tests/test-fseeko.c (fseek): Likewise.
39163         * tests/test-ftell.c (fseek): Likewise.
39164         * tests/test-ftello.c (fseek): Likewise.
39165         * tests/test-fwritable.c (fseek): Likewise.
39166         * tests/test-fwriting.c (fseek): Likewise.
39167
39168 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39169
39170         * modules/memchr (Depends-on): Drop getpagesize dependency.
39171
39172 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39173
39174         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39175         Reported by Ludovic Courtès.
39176         * build-aux/pmccabe2html: Improve example usage.
39177         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39178
39179 2009-11-06  Jim Meyering  <meyering@redhat.com>
39180
39181         do-release-commit-and-tag: New module.
39182         Automate the release-commit and tag process.
39183         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39184         * modules/do-release-commit-and-tag: New file.
39185         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39186
39187 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39188
39189         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39190         because test-select.c uses inet_pton.
39191
39192 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39193
39194         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39195         GETADDRINFO_LIB.  Bump serial number.
39196         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39197         Suggested by Eric Blake <ebb9@byu.net>.
39198
39199 2009-11-05  Eric Blake  <ebb9@byu.net>
39200
39201         strtod: detect darwin bug
39202         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39203         Reported by Leo Davis.
39204
39205         freopen-safer: new module
39206         * modules/freopen-safer: New module.
39207         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39208         * lib/freopen-safer.c (freopen_safer): New file.
39209         * lib/stdio-safer.h (freopen_safer): New declaration.
39210         * lib/stdio--.h (freopen): New override.
39211         * MODULES.html.sh (File stream based Input/Output): Mention it.
39212         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39213         freopen-safer module.
39214         * doc/posix-functions/stderr.texi (stderr): Likewise.
39215         * doc/posix-functions/stdin.texi (stdin): Likewise.
39216         * doc/posix-functions/stdout.texi (stdout): Likewise.
39217         * modules/freopen-safer-tests: New test.
39218         * tests/test-reopen-safer.c: New file.
39219
39220 2009-11-05  Jim Meyering  <meyering@redhat.com>
39221
39222         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39223         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39224
39225 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39226
39227         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39228
39229 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39230
39231         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39232
39233 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39234
39235         Fix link error.
39236         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39237         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39238
39239 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39240
39241         * tests/test-func.c: Also test value of __func__.
39242
39243 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39244
39245         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39246         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39247
39248 2009-11-05  Bruno Haible  <bruno@clisp.org>
39249
39250         Fix link error.
39251         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39252         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39253         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39254
39255 2009-11-05  Bruno Haible  <bruno@clisp.org>
39256
39257         Tests for module 'inet_pton'.
39258         * modules/inet_pton-tests: New file.
39259         * tests/test-inet_pton.c: New file.
39260
39261 2009-11-05  Bruno Haible  <bruno@clisp.org>
39262
39263         Tests for module 'inet_ntop'.
39264         * modules/inet_ntop-tests: New file.
39265         * tests/test-inet_ntop.c: New file.
39266
39267 2009-11-04  Eric Blake  <ebb9@byu.net>
39268
39269         stdlib-safer: wrap all mkstemp variants
39270         * modules/mkostemp (configure.ac): Set witness.
39271         * modules/mkostemps (configure.ac): Likewise.
39272         * modules/mkstemps (configure.ac): Likewise.
39273         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39274         (mkstemps_safer): Wrap more functions.
39275         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39276         wrapping.
39277         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39278         (mkstemps_safer): Implement the wrappers.
39279
39280         mkstemps, mkostemps: new modules
39281         * modules/mkostemps: New module.
39282         * modules/mkstemps: Likewise.
39283         * lib/mkostemps.c (mkostemps): New file.
39284         * lib/mkstemps.c (mkstemps): Likewise.
39285         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39286         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39287         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39288         * modules/stdlib (Makefile.am): Substitute them.
39289         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39290         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39291         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39292         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39293         * MODULES.html.sh (File system functions): Mention them.
39294
39295         tempname: resync from glibc
39296         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39297         same values for __GT_FILE as glibc.  Abort even when assertions
39298         are disabled.
39299         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39300         match its value otherwise.  Allow idempotent inclusion.
39301         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39302         * lib/mkostemp.c (mkostemp): Likewise.
39303         * lib/mkstemp.c (mkstemp): Likewise.
39304         * lib/tmpfile.c (tmpfile): Likewise.
39305         * NEWS: Document this.
39306
39307         utimens: fix use of futimens on older Linux
39308         * lib/utimens.c (fdutimens): Use updated, rather than original,
39309         timespec to avoid bug in older Linux kernel.
39310         Reported by Simon Josefsson.
39311
39312 2009-11-04  Bruno Haible  <bruno@clisp.org>
39313
39314         Make num_processors more flexible and consistent.
39315         * lib/nproc.h (enum nproc_query): New type.
39316         (num_processors): Add a 'query' argument.
39317         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39318         (num_processors): Add a 'query' argument. Test the value of the
39319         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39320         mingw, count the number of CPUs available for the current process.
39321         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39322         Check for sched_getaffinity and sched_getaffinity_np.
39323         * modules/nproc (Depends-on): Add c-ctype, extensions.
39324         * NEWS: Mention the change.
39325
39326 2009-11-03  Bruno Haible  <bruno@clisp.org>
39327
39328         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39329
39330 2009-11-03  Jim Meyering  <meyering@redhat.com>
39331
39332         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39333         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39334         if it is defined.
39335
39336 2009-11-02  Eric Blake  <ebb9@byu.net>
39337
39338         mktime, timegm: share common declaration
39339         * lib/mktime-internal.h: New file.
39340         * lib/mktime.c: Use it rather than open-coding a declaration.
39341         * lib/timegm.c: Likewise.
39342         * modules/mktime (Files): Ship it.
39343         * modules/timegm (Files): Likewise.
39344         Suggested by Bruno Haible.
39345
39346         test-update-copyright: update test to match script changes
39347         * tests/test-update-copyright.sh: Avoid hard-coding perl
39348         location.  Don't update *.bak created by earlier runs.
39349
39350 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39351             Simon Josefsson  <simon@josefsson.org>
39352             Bruno Haible  <bruno@clisp.org>
39353
39354         Fix link error on Solaris 8.
39355         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39356         also in libnsl. Define also INET_PTON_LIB.
39357         * modules/inet_pton (Link): New section.
39358
39359 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39360             Bruno Haible  <bruno@clisp.org>
39361
39362         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39363         * modules/inet_ntop (Link): New section.
39364         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39365
39366 2009-11-02  Eric Blake  <ebb9@byu.net>
39367
39368         maint: avoid compiler warnings in m4 macros
39369         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39370         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39371
39372 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39373
39374         * m4/pmccabe2html.m4: Remove file.
39375         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39376         function.  Change maintainer.
39377         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39378         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39379         Courtès).
39380
39381 2009-10-31  Eric Blake  <ebb9@byu.net>
39382
39383         fseeko: fix m4 regression
39384         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39385         regression from 2009-10-27.
39386         Reported by Ralf Wildenhues.
39387
39388 2009-10-31  Jim Meyering  <meyering@redhat.com>
39389
39390         inttostr: aesthetics and improved (compile-time) safety
39391         Define inttype_is_signed rather than inttype_is_unsigned,
39392         since the sole use is via "#if inttype_is_signed".
39393         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39394         inttype_is_unsigned.
39395         * lib/offtostr.c (inttype_is_signed): Likewise.
39396         * lib/uinttostr.c (inttype_is_signed): Likewise.
39397         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39398         * lib/inttostr.c (inttostr): Use verify to cross-check the
39399         inttype_is_signed value and the signedness of the actual type.
39400         * modules/inttostr (Depends-on): Add verify.
39401
39402 2009-10-30  Eric Blake  <ebb9@byu.net>
39403
39404         build: avoid compiler warnings
39405         * lib/fchmodat.c (lchmod): Mark unused variables.
39406         * lib/getopt.c (_getopt_initialize): Likewise.
39407         * lib/mktime.c (__mktime_internal): Provide prototype.
39408         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39409         older gcc that do not understand #pragma GCC diagnostic.
39410         * lib/uinttostr.c (inttype_is_unsigned): Define.
39411         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39412
39413 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39414
39415         stat: fix compilation on AIX
39416         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39417         only see struct stat64.
39418
39419 2009-10-30  Eric Blake  <ebb9@byu.net>
39420
39421         exclude: make more robust
39422         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39423         rather than masking a coding bug.
39424         Suggested by Bruno Haible.
39425
39426 2009-10-30  Jim Meyering  <meyering@redhat.com>
39427
39428         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39429         Rather than putting #!/usr/bin/perl on the first line,
39430         start with a variant of what's recommended by "man perlrun" that
39431         invokes the first "perl" program from your shell's search path.
39432         * build-aux/gitlog-to-changelog: Replace #!... as above.
39433         Add a "Local Variables" perl mode setting.
39434         Prompted by a patch from Ludovic Courtès.
39435         Improved by Eric Blake.
39436         * build-aux/useless-if-before-free: Likewise.
39437         * build-aux/announce-gen: Likewise.
39438         * build-aux/update-copyright: Likewise.
39439
39440 2009-10-29  Eric Blake  <ebb9@byu.net>
39441
39442         filenamecat-lgpl: adjust clients
39443         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39444         filenamecat.
39445         * modules/renameat (Depends-on): Likewise.
39446
39447         filenamecat: split into filenamecat-lgpl
39448         * modules/filenamecat-lgpl: New module.
39449         * modules/filenamecat (Files): Move library-safe files into
39450         filenamecat-lgpl.
39451         (Depends-on): Add filenamecat-lgpl.
39452         (configure.ac): Declare witness.
39453         * lib/filenamecat.h (file_name_concat): Only declare when using
39454         GPL module.
39455         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39456         Move...
39457         * lib/filenamecat-lgpl.c: ...into new file.
39458         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39459         (gl_FILE_NAME_CONCAT): Use it.
39460         * MODULES.html.sh (File system functions): Mention new module.
39461
39462         argp: avoid memory leak
39463         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39464         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39465         base_name, since the latter malloc()s and can call exit().
39466         Leak introduced 2006-07-03.
39467
39468         dirname-lgpl: adjust clients that don't need full dirname
39469         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39470         * modules/filenamecat (Depends-on): Likewise.
39471         * modules/linkat (Depends-on): Likewise.
39472         * modules/mkancesdirs (Depends-on): Likewise.
39473         * modules/mkdir (Depends-on): Likewise.
39474         * modules/openat (Depends-on): Likewise.
39475         * modules/savewd (Depends-on): Likewise.
39476         * modules/rename (Depends-on): Likewise.
39477         (License): Relax license.
39478         * modules/mkdir-tests (Depends-on): Drop progname.
39479         (Makefile.am): Delete unneeded LDADD.
39480         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39481
39482         dirname: split into dirname-lgpl
39483         * modules/dirname-lgpl: New module.
39484         * modules/dirname (Files): Move library-safe files into
39485         dirname-lgpl.
39486         (Depends-on): Add dirname-lgpl.
39487         (configure.ac): Declare witness.
39488         * modules/double-slash-root (License): Relax license.
39489         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39490         module.
39491         * lib/dirname.c (dir_len, mdir_name): Move...
39492         * lib/dirname-lgpl.c: ...into new file.
39493         * lib/basename.c (last_component, base_len): Move...
39494         * lib/basename-lgpl.c: ...into new file.
39495         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39496         (gl_DIRNAME): Use it.
39497         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39498         Mention new module.
39499         * modules/dirname-tests (Depends-on): Add progname.
39500         * tests/test-dirname.c (program_name): Delete.
39501
39502         mkdir: make safe for libraries
39503         * modules/mkdir (Depends-on): Drop xalloc.
39504         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39505         exit.
39506
39507         tests: avoid some compiler warnings
39508         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39509         literals.
39510         * tests/test-memchr.c (main): Avoid type mismatch.
39511         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39512         * tests/test-base64.c (main): Likewise.
39513         * tests/test-getdelim.c (main): Likewise.
39514         * tests/test-gethostname.c (main): Likewise.
39515         * tests/test-getline.c (main): Likewise.
39516         * tests/test-netinet_in.c (main): Likewise.
39517         * tests/test-select.c (open_server_socket, main): Likewise.
39518         * tests/test-select-stdin.c (main): Likewise.
39519         * tests/test-sockets.c (main): Likewise.
39520         * tests/test-strsignal.c (main): Likewise.
39521         * tests/test-sys_select.c (main): Likewise.
39522         * tests/test-sys_socket.c (main): Likewise.
39523         * tests/test-u64.c (main): Likewise.
39524         * tests/test-xfprintf-posix.c (main): Likewise.
39525         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39526
39527         sockets: avoid compiler warning
39528         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39529
39530         maint: detect usage(1) and other suspicious exits
39531         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39532
39533 2009-10-29  Jim Meyering  <meyering@redhat.com>
39534
39535         timespec: long-to-int truncation could make timespec_cmp malfunction
39536         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39537         a multiple of 2^32 nanoseconds as no difference.
39538
39539 2009-10-28  Jim Meyering  <meyering@redhat.com>
39540
39541         fprintftime: wrap macro code argument in "do {...} while(0)"
39542         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39543         cpy macro must be a statement that can be followed by a semicolon.
39544         Now that the else clause contains a comment and is hence longer
39545         than one line, I require curly braces.  That in turn requires
39546         that we wrap this code block in the standard do...while(0).
39547
39548         fprintftime: remove stray semicolon from previous change
39549         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39550
39551         fprintftime: avoid a warning about ignored fwrite return value
39552         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39553         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39554         that is unsafe.
39555         * modules/fprintftime (Depends-on): Add ignore-value.
39556
39557         exclude: avoid an unwarranted warning
39558         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39559
39560 2009-10-27  Eric Blake  <ebb9@byu.net>
39561
39562         fseek: avoid compilation failure when fflush is replaced
39563         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39564         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39565         module is in use.
39566         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39567         module is not in use; since REPLACE_FSEEK worked otherwise.
39568         (GNULIB_FTELLO): Likewise for ftell.
39569         Reported by Ian Beckwith and others.
39570
39571 2009-10-27  Bruno Haible  <bruno@clisp.org>
39572
39573         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39574         Reported by Jim Meyering.
39575
39576 2009-10-27  Jim Meyering  <jim@meyering.net>
39577             Bruno Haible  <bruno@clisp.org>
39578
39579         Avoid warning despite dropping the return value of fwrite.
39580         * lib/unicodeio.c: Include ignore-value.h.
39581         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39582         * modules/unicodeio (Depends-on): Add ignore-value.
39583
39584 2009-10-26  Eric Blake  <ebb9@byu.net>
39585
39586         areadlinkat: fix fallback path
39587         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39588         pointer and zero.
39589
39590 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39591
39592         Use a better IO block size for modern systems
39593         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39594         * lib/md2.c: Likewise.
39595         * lib/md4.c: Likewise.
39596         * lib/md5.c: Likewise.
39597         * lib/sha1.c: Likewise.
39598         * lib/sha256.c: Likewise.
39599         * lib/sha512.c: Likewise.
39600
39601 2009-10-22  Eric Blake  <ebb9@byu.net>
39602
39603         tests: avoid several compiler warnings
39604         * tests/test-getcwd.c (main): Avoid buffer underflow.
39605         * tests/test-getdate.c (main): String literals are not safe with
39606         putenv, so use setenv.  Declare unused argument.
39607         * modules/getdate-tests (Depends-on): Add setenv.
39608         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39609         problems with string literals in char *.
39610         * tests/test-hash.c (main): Avoid shadowing declaration.
39611         (insert_new): Treat string literals as char const *.
39612         * tests/test-getopt.h (test_getopt): Likewise.
39613         (getopt_loop): Alter types to minimize casting elsewhere.
39614         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39615         (test_getopt_long_posix): Likewise.
39616         (do_getopt_long): Add wrapper to minimize casting.
39617         * tests/test-atexit.c (clear_temp_file): Use void.
39618         * tests/test-areadlink-with-size.c (main): Declare unused
39619         arguments.
39620         * tests/test-areadlink.c (main): Likewise.
39621         * tests/test-areadlinkat-with-size.c (main): Likewise.
39622         * tests/test-areadlinkat.c (main): Likewise.
39623         * tests/test-canonicalize-lgpl.c (main): Likewise.
39624         * tests/test-canonicalize.c (main): Likewise.
39625         * tests/test-dirent-safer.c (main): Likewise.
39626         * tests/test-dirname.c (main): Likewise.
39627         * tests/test-dup2.c (main): Likewise.
39628         * tests/test-fchdir.c (main): Likewise.
39629         * tests/test-fcntl-h.c (main): Likewise.
39630         * tests/test-fcntl-safer.c (main): Likewise.
39631         * tests/test-fdopendir.c (main): Likewise.
39632         * tests/test-fdutimensat.c (main): Likewise.
39633         * tests/test-fflush.c (main): Likewise.
39634         * tests/test-filenamecat.c (main): Likewise.
39635         * tests/test-filevercmp.c (main): Likewise.
39636         * tests/test-fopen-safer.c (main): Likewise.
39637         * tests/test-fopen.c (main): Likewise.
39638         * tests/test-fpending.c (main): Likewise.
39639         * tests/test-fpurge.c (main): Likewise.
39640         * tests/test-freading.c (main): Likewise.
39641         * tests/test-fstatat.c (main): Likewise.
39642         * tests/test-fsync.c (main): Likewise.
39643         * tests/test-futimens.c (main): Likewise.
39644         * tests/test-getndelim2.c (main): Likewise.
39645         * tests/test-gettimeofday.c (main): Likewise.
39646         * tests/test-getopt.c (main): Likewise.
39647         * tests/test-i-ring.c (main): Likewise.
39648         * tests/test-inttypes.c (main): Likewise.
39649         * tests/test-link.c (main): Likewise.
39650         * tests/test-lstat.c (main): Likewise.
39651         * tests/test-math.c (main): Likewise.
39652         * tests/test-md5.c (main): Likewise.
39653         * tests/test-memchr2.c (main): Likewise.
39654         * tests/test-memrchr.c (main): Likewise.
39655         * tests/test-mkdir.c (main): Likewise.
39656         * tests/test-mkdirat.c (main): Likewise.
39657         * tests/test-mkfifoat.c (main): Likewise.
39658         * tests/test-open.c (main): Likewise.
39659         * tests/test-openat-safer.c (main): Likewise.
39660         * tests/test-openat.c (main): Likewise.
39661         * tests/test-quotearg.c (main): Likewise.
39662         * tests/test-rawmemchr.c (main): Likewise.
39663         * tests/test-readlink.c (main): Likewise.
39664         * tests/test-remove.c (main): Likewise.
39665         * tests/test-rename.c (main): Likewise.
39666         * tests/test-renameat.c (main): Likewise.
39667         * tests/test-rmdir.c (main): Likewise.
39668         * tests/test-sha1.c (main): Likewise.
39669         * tests/test-signal.c (main): Likewise.
39670         * tests/test-sigaction.c (main): Likewise.
39671         * tests/test-stat.c (main): Likewise.
39672         * tests/test-stat-time.c (main): Likewise.
39673         * tests/test-stddef.c (main): Likewise.
39674         * tests/test-stdint.c (main): Likewise.
39675         * tests/test-stdio.c (main): Likewise.
39676         * tests/test-stdlib.c (main): Likewise.
39677         * tests/test-strchrnul.c (main): Likewise.
39678         * tests/test-strerror.c (main): Likewise.
39679         * tests/test-string.c (main): Likewise.
39680         * tests/test-strtod.c (main): Likewise.
39681         * tests/test-strverscmp.c (main): Likewise.
39682         * tests/test-symlink.c (main): Likewise.
39683         * tests/test-symlinkat.c (main): Likewise.
39684         * tests/test-sys_stat.c (main): Likewise.
39685         * tests/test-sys_time.c (main): Likewise.
39686         * tests/test-time.c (main): Likewise.
39687         * tests/test-unistd.c (main): Likewise.
39688         * tests/test-unlink.c (main): Likewise.
39689         * tests/test-unlinkat.c (main): Likewise.
39690         * tests/test-utimens.c (main): Likewise.
39691         * tests/test-utimensat.c (main): Likewise.
39692         * tests/test-version-etc.c (main): Likewise.
39693         * tests/test-wchar.c (main): Likewise.
39694         * tests/test-wctype.c (main): Likewise.
39695         * tests/test-xprintf-posix.c (main): Likewise.
39696         * tests/test-posixtm.c (main): Likewise.
39697         (STREQ): Delete unused macro.
39698         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39699         shadowed variables.
39700         * tests/test-memchr.c (main): Likewise.
39701
39702 2009-10-21  Eric Blake  <ebb9@byu.net>
39703
39704         areadlinkat: avoid failure on older glibc
39705         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39706         rather than mis-comparing 0 against FUNC_RESULT of char*.
39707
39708 2009-10-21  Bruno Haible  <bruno@clisp.org>
39709
39710         * modules/stpncpy (License): Relicense under LGPLv2+.
39711         Reported by David Lutterkort <lutter@redhat.com>.
39712
39713 2009-10-20  Eric Blake  <ebb9@byu.net>
39714
39715         utimensat: work around Solaris 9 bug
39716         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39717         has trailing slash bugs.
39718         * tests/test-lutimens.h (test_lutimens): Enhance test.
39719         * tests/test-utimens.h (test_utimens): Likewise.
39720         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39721         * doc/posix-functions/utimes.texi (utimes): Likewise.
39722         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39723         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39724         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39725         * doc/posix-functions/futimens.texi (futimens): Likewise.
39726
39727         fdutimensat: new module
39728         * modules/fdutimensat: New file.
39729         * lib/fdutimensat.c (fdutimensat): Likewise.
39730         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39731         * MODULES.html.sh (File system functions): Mention module.
39732         * modules/fdutimensat-tests: New test.
39733         * tests/test-fdutimensat.c: Likewise.
39734
39735         doc: regenerate INSTALL
39736         * doc/INSTALL: Reflect recent autoconf update.
39737         * doc/INSTALL.ISO: Likewise.
39738         * doc/INSTALL.UTF-8: Likewise.
39739
39740 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39741
39742         acl: warn if ACL support is not detected
39743         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39744
39745 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39746
39747         * lib/nproc.h: Add extern "C" block for C++.
39748
39749 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39750             Bruno Haible  <bruno@clisp.org>
39751
39752         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39753         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39754         * doc/posix-functions/isalpha.texi: Likewise.
39755         * doc/posix-functions/isblank.texi: Likewise.
39756         * doc/posix-functions/iscntrl.texi: Likewise.
39757         * doc/posix-functions/isdigit.texi: Likewise.
39758         * doc/posix-functions/isgraph.texi: Likewise.
39759         * doc/posix-functions/islower.texi: Likewise.
39760         * doc/posix-functions/isprint.texi: Likewise.
39761         * doc/posix-functions/ispunct.texi: Likewise.
39762         * doc/posix-functions/isspace.texi: Likewise.
39763         * doc/posix-functions/isupper.texi: Likewise.
39764         * doc/posix-functions/isxdigit.texi: Likewise.
39765
39766 2009-10-18  Bruno Haible  <bruno@clisp.org>
39767
39768         Tests for module 'isblank'.
39769         * modules/isblank-tests: New file.
39770         * tests/test-isblank.c: New file.
39771
39772         New module 'isblank'.
39773         * lib/isblank.c: New file.
39774         * m4/isblank.m4: New file.
39775         * modules/isblank: New file.
39776         * doc/posix-functions/isblank.texi: Mention the new module.
39777
39778 2009-10-18  Bruno Haible  <bruno@clisp.org>
39779
39780         New module 'ctype'.
39781         * lib/ctype.in.h: New file.
39782         * m4/ctype.m4: New file.
39783         * modules/ctype: New file.
39784         * doc/posix-headers/ctype.texi: Mention the new module.
39785
39786 2009-10-18  Jim Meyering  <meyering@redhat.com>
39787
39788         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39789         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39790         right after its initialization, rather than farther down.
39791         Keeping these in close proximity makes it easier to ensure
39792         that each such variable is initialized.  E.g.,
39793
39794             LIB_CLOCK_GETTIME=
39795             AC_SUBST([LIB_CLOCK_GETTIME])
39796
39797         This change also increments these serial numbers.
39798         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39799         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39800         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39801
39802 2009-10-18  Bruno Haible  <bruno@clisp.org>
39803
39804         Don't let environment variables perturb build.
39805         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39806         (gl_PREREQ_GETHRXTIME): ... not here.
39807
39808 2009-10-18  Bruno Haible  <bruno@clisp.org>
39809
39810         Avoid symlink attack in localcharset module.
39811         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39812         (O_NOFOLLOW): Define fallback.
39813         (get_charset_aliases): Don't open the file if it is a symbolic link.
39814         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39815         gl_FCNTL_H.
39816         (gl_FCNTL_H): Require it.
39817         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39818         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39819         Reported by Fergal Glynn <fglynn@veracode.com>.
39820
39821 2009-10-18  Bruno Haible  <bruno@clisp.org>
39822
39823         Implement nproc for mingw.
39824         * lib/nproc.c: Include <windows.h>
39825         (num_processors): On native Windows platforms, try GetSystemInfo.
39826
39827 2009-10-18  Bruno Haible  <bruno@clisp.org>
39828
39829         Implement nproc for IRIX.
39830         * lib/nproc.c: Include <sys/sysmp.h>.
39831         (num_processors): On IRIX systems, try sysmp.
39832         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39833
39834 2009-10-18  Bruno Haible  <bruno@clisp.org>
39835
39836         Implement nproc for HP-UX.
39837         * lib/nproc.c: Include <sys/pstat.h>
39838         (num_processors): On HP-UX systems, try pstat_getdynamic.
39839         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39840         pstat_getdynamic.
39841
39842 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39843             Bruno Haible  <bruno@clisp.org>
39844
39845         Implement nproc for NetBSD, OpenBSD.
39846         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39847         (ARRAY_SIZE): New macro.
39848         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39849         * m4/nproc.m4: New file.
39850         * modules/nproc (Files): Add m4/nproc.m4.
39851         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39852         (Makefile.am): Instead, augment lib_SOURCES.
39853
39854 2009-10-18  Bruno Haible  <bruno@clisp.org>
39855
39856         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39857         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39858         sys/param.h.
39859
39860 2009-10-16  Eric Blake  <ebb9@byu.net>
39861
39862         utimensat: new module
39863         * modules/utimensat: New file.
39864         * lib/utimensat.c (utimensat): Likewise.
39865         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39866         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39867         so we can work around Linux bugs.
39868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39869         * modules/sys_stat (Makefile.am): Substitute them.
39870         * lib/sys_stat.in.h (utimensat): Declare it.
39871         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39872         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39873         * modules/utimensat-tests: New test.
39874         * tests/test-utimensat.c: Likewise.
39875
39876         utimens: let lutimens work on non-symlinks
39877         * lib/utimens.c (lutimens): Fall back to utimens rather than
39878         failing with ENOSYS, when file is not a symlink.
39879         (utimens): Reduce redirection.
39880         * tests/test-lutimens.h (test_lutimens): Update test to cover
39881         non-symlinks.
39882         * tests/test-utimens.h (test_utimens): Update test to cover
39883         symlinks.
39884         * tests/test-utimens.c (main): Update caller.
39885
39886         utimens: cache whether utimensat syscall works
39887         * lib/utimens.c (utimensat_works_really): New cache variable.
39888         (fdutimens, lutimens): Use it to avoid failing syscall.
39889
39890         test-stat-time, test-utimens: improve portability
39891         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39892         ext4 on alpha, and for cygwin.
39893         * tests/test-utimens-common.h: New file.
39894         (nap): Factor delays into single function.
39895         * tests/test-lutimens.h (test_lutimens): Use new header.
39896         * tests/test-futimens.h (test_futimens): Likewise.
39897         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39898         timestamps to occur from same machine, as was done previously for
39899         test_utimens.
39900         * modules/utimens-tests (Files): Ship new file.
39901         * modules/futimens-tests (Files): Likewise.
39902         Reported in part by Jim Meyering.
39903
39904         sys_stat: sort replacement declarations
39905         * lib/sys_stat.in.h: Sort declarations.
39906         * lib/futimens.c (futimens): Fix typo.
39907
39908 2009-10-15  Jim Meyering  <meyering@redhat.com>
39909
39910         don't let environment settings perturb build
39911         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39912         could cause a configure-time and/or build-time malfunction.
39913         Typically, a configure-time function-in-library test is performed
39914         via code like this:
39915
39916           LIB_VAR=
39917           AC_SUBST([LIB_VAR])
39918           prefix_saved_LIBS=$LIBS
39919             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39920                        [test "$ac_cv_search_FUNC" = "none required" ||
39921                         LIB_VAR=$ac_cv_search_FUNC])
39922           LIBS=$prefix_saved_LIBS
39923
39924         However, in each of the files affected by this change, the LIB_VAR=
39925         initialization was omitted.  Thus, when set in the environment, its
39926         value would propagate into generated Makefiles when FUNC is not found
39927         in LIB_NAME.
39928         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39929         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39931
39932 2009-10-14  Eric Blake  <ebb9@byu.net>
39933
39934         fchdir: avoid infinite recursion in mingw
39935         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39936         recursing.
39937
39938         test-stat-time: port to mingw
39939         * tests/test-stat-time.c (force_unlink): Return a value.
39940         (test_ctime) [W32]: Fix compilation error.
39941         (nap): Don't call usleep with too large an argument.  Use
39942         force_unlink.
39943         * doc/pastposix-functions/usleep.texi (usleep): Document the
39944         portability issue.
39945
39946 2009-10-13  Jim Meyering  <meyering@redhat.com>
39947
39948         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39949         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39950         * modules/pipe-filter-ii: Likewise.
39951         * modules/sys_socket-tests: Likewise.
39952         * modules/tsearch-tests: Likewise.
39953         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39954         (check): Depend on it.
39955
39956 2009-10-12  Eric Blake  <ebb9@byu.net>
39957
39958         utimens-tests: port to NFS file systems
39959         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39960         comparisons to avoid spurious failures from timestamp drift
39961         between NFS machines.
39962
39963 2009-10-12  Eric Blake  <ebb9@byu.net>
39964
39965         stat-time-tests: minor cleanups
39966         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39967         * tests/test-stat-time.c (nap): Separate assignment from call.
39968         Suggested by Paolo Bonzini and Bruno Haible.
39969
39970         sys_stat: guarantee struct timespec
39971         * lib/sys_stat.in.h (includes): Always include <time.h>
39972         * modules/sys_stat (Depends-on): Add time.
39973         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39974         mode_t permission values.
39975         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39976         get at subsecond timestamps.
39977
39978 2009-10-10  Eric Blake  <ebb9@byu.net>
39979
39980         futimens: new module
39981         * modules/futimens: New file.
39982         * lib/futimens.c (futimens): Likewise.
39983         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39984         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39985         we can work around Linux bugs.
39986         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39987         * modules/sys_stat (Makefile.am): Substitute them.
39988         * lib/sys_stat.in.h (futimens): Declare it.
39989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39990         * doc/posix-functions/futimens.texi (futimens): Likewise.
39991         * modules/futimens-tests: New test.
39992         * tests/test-futimens.c: Likewise.
39993
39994         utimens: introduce fdutimens
39995         * lib/utimens.h (fdutimens): New prototype.
39996         * lib/utimens.c (gl_futimens): Move guts...
39997         (fdutimens): ...to new interface.
39998         * tests/test-utimens.c (do_fdutimens): Use it.
39999
40000         utimens: add UTIME_NOW and UTIME_OMIT support
40001         * lib/utimens.c (validate_timespec, update_timespec): New helper
40002         functions.
40003         (gl_futimens, lutimens): Use them.
40004         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40005         stdbool, sys_stat.
40006         (Link): Mention resulting library dependency.
40007         * modules/utimecmp (Link): Likewise.
40008         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40009         (Makefile.am): Pick up library dependency.
40010         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40011         definition.
40012         * tests/test-sys_stat.c: Test the definitions.
40013         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40014         * NEWS: Document library dependency.
40015
40016         utimecmp: support symlink timestamps
40017         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40018         hashing when possible.  Use pathconf when available.
40019         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40020         * modules/utimecmp (Depends-on): Add lstat.
40021
40022         utimens: add lutimens interface
40023         * lib/utimens.c (lutimens): New function.
40024         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40025         * lib/utimens.h (lutimens): Declare new interface.
40026         * tests/test-utimens.c (main): Enhance test.
40027         * tests/test-lutimens.h (test_lutimens): New file.
40028         * modules/utimens-tests (Files): Distribute it.
40029         (Depends-on): Add symlink.
40030         (configure.ac): Check for usleep.
40031
40032         utimens: validate futimens usage
40033         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40034         fewer syscalls on failure later on.  Avoid compiler warning on
40035         mingw.
40036         * modules/utimens (Depends-on): Add dup2.
40037
40038         utimens: add test
40039         * modules/utimens-tests: New test.
40040         * tests/test-utimens.h: New file.
40041         * tests/test-futimens.h: Likewise.
40042         * tests/test-utimens.c: Likewise.
40043
40044         doc: mention timestamp portability issues
40045         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40046         instead.
40047         * doc/posix-functions/utime.texi (utime): Likewise.
40048         * doc/posix-functions/utimes.texi (utimes): Likewise.
40049         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40050         instead.
40051         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40052         module.
40053         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40054         Mention weakness with symlink timestamps.
40055         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40056         to utimensat/futimens instead.
40057         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40058
40059         test-dup2: enhance test
40060         * tests/test-dup2.c (main): Also check AT_FDCWD.
40061
40062         test-stat-time: avoid more spurious failures
40063         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40064         xfs; and avoid race if the two timestamps cross quantization edge.
40065
40066         relocatable: prefer 'file system' over 'filesystem'
40067         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40068         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40069         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40070         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40071         * lib/relocatable.c (compute_curr_prefix): Likewise.
40072
40073 2009-10-10  Jim Meyering  <meyering@redhat.com>
40074
40075         stat-time-tests: check for the usleep function
40076         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40077
40078 2009-10-10  Bruno Haible  <bruno@clisp.org>
40079
40080         * modules/xnanosleep: Put the Link section after the Include section.
40081
40082 2009-10-09  Eric Blake  <ebb9@byu.net>
40083
40084         dup2: work around FreeBSD 6.1 bug
40085         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40086         * doc/posix-functions/dup2.texi (dup2): Document it.
40087         Reported by Nelson H. F. Beebe and Jim Meyering.
40088
40089         test-stat-time: port to buggy NFS clients
40090         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40091         (test_ctime): Also skip test if mtime and ctime are skewed.
40092
40093         maint: prefer 'file system' over 'filesystem'
40094         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40095         * doc/posix-functions/lstat.texi (lstat): Likewise.
40096         * lib/file-has-acl.c (file_has_acl): Likewise.
40097         * lib/fwriteerror.c [TEST]: Likewise.
40098         * tests/test-areadlink.h (test_areadlink): Likewise.
40099         * tests/test-areadlinkat-with-size.c (main): Likewise.
40100         * tests/test-areadlinkat.c (main): Likewise.
40101         * tests/test-canonicalize-lgpl.c (main): Likewise.
40102         * tests/test-canonicalize.c (main): Likewise.
40103         * tests/test-fstatat.c (main): Likewise.
40104         * tests/test-linkat.c (main): Likewise.
40105         * tests/test-lstat.h (test_lstat_func): Likewise.
40106         * tests/test-mkdir.h (test_mkdir): Likewise.
40107         * tests/test-readlink.h (test_readlink): Likewise.
40108         * tests/test-remove.c (main): Likewise.
40109         * tests/test-rename.h (test_rename): Likewise.
40110         * tests/test-renameat.c (main): Likewise.
40111         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40112         * tests/test-symlink.h (test_symlink): Likewise.
40113         * tests/test-symlinkat.c (main): Likewise.
40114         * tests/test-unlink.h (test_unlink_func): Likewise.
40115         * tests/test-unlinkat.c (main): Likewise.
40116
40117         maint: make realtime library usage explicit
40118         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40119         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40120         * modules/settime (Link): Likewise.
40121         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40122
40123         test-stat-time: speed up execution
40124         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40125         warning on mingw.
40126         (nap): New helper function.
40127         (prepare_test): Use it to reduce sleep time.
40128         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40129         execution.
40130         * modules/stat-time-tests (configure.ac): Check for usleep.
40131
40132 2009-10-09  Jim Meyering  <meyering@redhat.com>
40133
40134         selinux-h: always use getfilecon wrappers
40135         * lib/getfilecon.c: New file.
40136         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40137         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40138         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40139         (fgetfilecon): Provide a stub.
40140         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40141         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40142         file unconditionally.
40143         When <selinux/selinux.h> is found, arrange to use wrappers.
40144         * modules/selinux-h (Files): Add getfilecon.c.
40145         (Makefile.am): Substitute include-next-related bits
40146         into the now-always-generated selinux/selinux.h file.
40147         * doc/glibc-functions/lgetfilecon.texi: New file.
40148         * doc/glibc-functions/fgetfilecon.texi: New file.
40149         * doc/glibc-functions/getfilecon.texi: New file.
40150         * doc/glibc-functions/getfilecon-desc.texi: New file.
40151         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40152         which to pull in the new files.
40153         * MODULES.html.sh (Misc): Add selinux-h.
40154
40155 2009-10-08  Jim Meyering  <meyering@redhat.com>
40156
40157         unistd: fix comment typo
40158         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40159
40160 2009-10-08  Eric Blake  <ebb9@byu.net>
40161
40162         areadlink: use SIZE_MAX consistently
40163         * modules/areadlink (Depends-on): Add stdint.
40164         * modules/areadlink-with-size (Depends-on): Likewise.
40165         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40166         gives NULL; drop sys/types, since unistd gives size_t; and add
40167         stdint for SIZE_MAX.
40168         (SIZE_MAX): Rely on headers.
40169         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40170         and add stdint.
40171         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40172         (SIZE_MAX): Likewise.
40173         (INITIAL_BUF_SIZE): Turn into enum.
40174         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40175
40176 2009-10-08  Jim Meyering  <meyering@redhat.com>
40177
40178         areadlinkat: avoid compilation failure
40179         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40180         Fix typo in comment.
40181
40182 2009-10-07  Eric Blake  <ebb9@byu.net>
40183
40184         areadlinkat-with-size: new module
40185         * modules/areadlinkat-with-size: New module.
40186         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40187         * lib/areadlink.h (areadlinkat): Declare it.
40188         * MODULES.html.sh (File system functions): Mention it.
40189         * modules/areadlinkat-with-size-tests: New test.
40190         * tests/test-areadlinkat-with-size.c: New file.
40191
40192         xreadlinkat: new module
40193         * modules/xreadlinkat: New module.
40194         * lib/xreadlinkat.c (xreadlinkat): New file.
40195         * lib/xreadlink.h (xreadlinkat): Declare it.
40196         * MODULES.html.sh (File system functions): Mention it.
40197
40198         areadlinkat: new module
40199         * lib/at-func.c (FUNC_FAIL): New define.
40200         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40201         * modules/areadlinkat: New module.
40202         * lib/linkat.c (areadlinkat): Move...
40203         * lib/areadlinkat.c (areadlinkat): ...to new file.
40204         * lib/areadlink.h (areadlinkat): Declare it.
40205         * modules/linkat (Depends-on): Add areadlinkat.
40206         * MODULES.html.sh (File system functions): Mention it.
40207         * modules/areadlinkat-tests: New test.
40208         * tests/test-areadlinkat.c: New file.
40209
40210         areadlink, areadlink-with-size: add tests
40211         * modules/areadlink-tests: New test.
40212         * modules/areadlink-with-size-tests: Likewise.
40213         * tests/test-areadlink.h: New file.
40214         * tests/test-areadlink.c: Likewise.
40215         * tests/test-areadlink-with-size.c: Likewise.
40216
40217         maint: minor cleanups
40218         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40219         _UNUSED_PARAMETER_ instead.
40220         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40221         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40222         * modules/linkat-tests (Files): Distribute test-link.h.
40223
40224         openat, utimens: whitespace cleanup
40225         * lib/openat.c: Prefer space throughout, rather than mix of 8
40226         spaces vs. tabs.
40227         * lib/at-func.c: Likewise.
40228         * lib/utimens.c: Likewise.
40229
40230         openat: avoid using wrong fd
40231         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40232         working directory chooses same fd.
40233         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40234
40235         mkdir, mkdirat: fix cygwin 1.5.x bug
40236         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40237         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40238         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40239         bug.
40240         (gl_PREREQ_MKDIR): Delete unused macro.
40241         * modules/mkdir (Files): Track file rename.
40242         (configure.ac): Update macro name.
40243         * modules/openat (Depends-on): Add mkdir.
40244         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40245
40246         mkdir, mkdirat: add tests
40247         * modules/mkdir-tests: New test.
40248         * tests/test-mkdir.h: New file.
40249         * tests/test-mkdir.c: Likewise.
40250         * tests/test-mkdirat.c: Likewise.
40251         * modules/openat-tests (Files): Add new files.
40252         (Makefile.am): Run new test.
40253
40254 2009-10-06  Eric Blake  <ebb9@byu.net>
40255
40256         doc: tweak *at function documentation
40257         * doc/posix-functions/faccessat.texi (faccessat): Mention
40258         known issue with replacement.
40259         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40260         * doc/posix-functions/linkat.texi (linkat): Likewise.
40261         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40262         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40263         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40264         * doc/posix-functions/renameat.texi (renameat): Likewise.
40265         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40266
40267         openat: fix GNU/Hurd bug in unlinkat
40268         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40269         broken.
40270         * doc/posix-functions/unlink.texi (unlink): Document this.
40271         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40272
40273         fdopendir: fix GNU/Hurd bug
40274         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40275         allowing non-directory fds.
40276         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40277         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40278         * modules/dirent (Makefile.am): Substitute it.
40279         * lib/dirent.in.h (fdopendir): Declare replacement.
40280         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40281         * tests/test-fdopendir.c (main): Test something other than
40282         /dev/null, since on Hurd that behaves like a directory.
40283
40284         test-symlink: port to GNU/Hurd
40285         * tests/test-symlink.h (test_symlink): Relax expected errno.
40286
40287         doc: tweak more cygwin information
40288         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40289         now compatible with glibc.
40290         * doc/posix-functions/getopt.texi (getopt): Likewise.
40291
40292         getopt-gnu: add another test
40293         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40294         guarantee behavior relied on by m4.
40295         * tests/test-getopt.c (main): Use it.
40296         * modules/getopt-posix-tests (Depends-on): Add setenv.
40297         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40298
40299         getopt: fix compilation on darwin
40300         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40301         include.
40302         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40303         Reported by Ludovic Courtès.
40304
40305 2009-10-06  Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/size_max (Description): Discourage its use.
40308         Reported by Simon Josefsson.
40309
40310 2009-10-06  Jim Meyering  <meyering@redhat.com>
40311
40312         linkat: avoid compilation failure
40313         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40314
40315 2009-10-05  Eric Blake  <ebb9@byu.net>
40316
40317         linkat: support Linux 2.6.17
40318         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40319         linkat on Linux, but allow cache variable override.
40320         * lib/linkat.c (rpl_linkat): Define override.
40321         * modules/linkat (Depends-on): Add symlinkat.
40322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40323         * modules/unistd (Makefile.am): Substitute it.
40324         * lib/unistd.in.h (linkat): Declare replacement.
40325         Reported by Pádraig Brady.
40326
40327         quotearg: port test to systems with C.UTF-8 locale
40328         * tests/test-quotearg.c (struct result_strings): Add another
40329         member, differentiating between C.ASCII and C.UTF-8 handling.
40330         (compare_strings): Add parameter.
40331         (main): Adjust all callers.
40332
40333         getopt: avoid clash with FreeBSD _getopt_internal
40334         * lib/getopt.in.h (_getopt_internal): Override the name.
40335         * lib/getopt_int.h (includes): Pick up any overrides.
40336         Reported by Reuben Thomas.
40337
40338         hash: allow C89 compilation
40339         * lib/hash.c (check_tuning): Move declaration before statement.
40340         Reported by Reuben Thomas.
40341
40342 2009-10-05  Karl Berry  <karl@gnu.org>
40343
40344         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40345
40346 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40347             Bruno Haible  <bruno@clisp.org>
40348
40349         * lib/uname.c (uname): Use a table-driven algorithm to compute
40350         Windows NT versions.
40351
40352 2009-10-04  Bruno Haible  <bruno@clisp.org>
40353
40354         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40355         program_invocation_short_name.
40356         * modules/progname (configure.ac): Test for presence of
40357         program_invocation_short_name.
40358         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40359
40360 2009-10-04  Bruno Haible  <bruno@clisp.org>
40361
40362         * lib/progname.c (set_program_name): Fix comment.
40363         Reported by Jim Meyering.
40364
40365 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40366             Bruno Haible  <bruno@clisp.org>
40367
40368         * lib/uname.c: Include <string.h>.
40369         (uname): Do only one call to GetVersionEx in the common case.
40370
40371 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40372             Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40375         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40376         (uname): Add support for Windows CE and various non-x86 CPU types.
40377
40378 2009-10-03  Bruno Haible  <bruno@clisp.org>
40379
40380         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40381         invocation to tests/configure.ac.
40382         Reported by Ian Beckwith <ianb@erislabs.net>.
40383
40384 2009-10-02  Eric Blake  <ebb9@byu.net>
40385
40386         fchdir: avoid compiler warning
40387         * lib/fchdir.c (canonicalize_file_name)
40388         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40389
40390         test-open: support mingw errno values
40391         * tests/test-open.h (test_open): Relax test.
40392         * tests/test-fopen.h (test_fopen): Likewise.
40393         * tests/test-openat-safer.c (main): Likewise.
40394
40395         open: fix opening directory on mingw
40396         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40397
40398         test-open: on GNU/Hurd, /dev/null is a directory
40399         * tests/test-fopen.h (main): Rename...
40400         (test_fopen): ...to this.  Use a guaranteed non-directory when
40401         confirming open behavior on trailing slash.
40402         * tests/test-openat-safer.c (main): Likewise.
40403         * tests/test-open.h (main): Likewise....
40404         (test_open): ...to this.
40405         * tests/test-fopen.c (main): Adjust caller.
40406         * tests/test-fopen-safer.c (main): Likewise.
40407         * tests/test-open.c (main): Likewise.
40408         * tests/test-fcntl-safer.c (main): Likewise.
40409         Reported by Samuel Thibault.
40410
40411         rename, fchdir: don't ignore chdir failure
40412         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40413         * lib/rename.c (rpl_rename) [W32]: Likewise.
40414         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40415         an empty destination directory if source cannot be renamed,
40416         although there is still possibility for failure.
40417         * doc/posix-functions/rename.texi (rename): Document the race.
40418         Reported by Jim Meyering.
40419
40420         maint: cleanup whitespace in recent commits
40421         * lib/rename.c (rpl_rename): Remove tabs.
40422         * tests/test-link.h (test_link): Likewise.
40423         * lib/fchdir.c (get_name): Likewise.
40424         Reported by Jim Meyering.
40425
40426 2009-10-02  Ben Pfaff  <blp@gnu.org>
40427
40428         relocatable-prog-wrapper: Add missing dependency on
40429         double-slash-root.
40430         * modules/relocatable-prog-wrapper: Add dependency.
40431         Reported by Ian Beckwith <ianb@erislabs.net>.
40432
40433 2009-10-02  Eric Blake  <ebb9@byu.net>
40434
40435         renameat: fix Solaris bugs
40436         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40437         needed fixing.
40438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40439         * modules/stdio (Makefile.am): Substitute it.
40440         * lib/stdio.in.h (renameat): Declare replacement.
40441         * lib/renameat.c (rpl_renameat): Implement fix.
40442
40443         renameat: new module
40444         * modules/renameat: New file.
40445         * lib/renameat.c (renameat): Likewise.
40446         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40448         * modules/stdio (Makefile.am): Substitute them.
40449         * lib/stdio.in.h (renameat): Declare it.
40450         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40451         * doc/posix-functions/renameat.texi (renameat): Likewise.
40452         * modules/renameat-tests: New test.
40453         * tests/test-renameat.c: Likewise.
40454
40455         rename: fix mingw bugs
40456         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40457         directory overwrite bugs.
40458
40459         rename: fix another cygwin 1.5 bug
40460         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40461         checks.
40462         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40463         unnecessary cygwin workarounds.  Also work around bug with moving
40464         full directory onto an empty one.
40465         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40466
40467         rename-dest-slash: merge into rename module
40468         * modules/rename-dest-slash (Status): Mark obsolete.
40469         (Depends-on): Add rename.
40470         (Files): Let rename do it all.
40471         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40472         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40473         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40474         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40475         * lib/rename.c (rpl_rename): Update comments.
40476
40477         rename: fix cygwin 1.5.x bugs
40478         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40479         * lib/rename.c (rpl_rename): Work around them.
40480         * modules/rename (Depends-on): Add same-inode.
40481
40482         rename: fix Solaris 10 bug
40483         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40484         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40485         was the only bug.
40486
40487         rename: fix Solaris 9 bug
40488         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40489         on non-directory.  Avoid calling exit.
40490         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40491         strdup.
40492         * modules/rename-tests (Depends-on): Drop lstat.
40493         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40494         (gl_PREREQ_RENAME): Delete unused macro.
40495
40496         rename-dest-slash: fix NetBSD bug
40497         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40498         links.
40499         * modules/rename-dest-slash (Depends-on): Add same-inode.
40500
40501         rename-tests: new test, exposes several platform bugs
40502         * modules/rename-tests: New file.
40503         * tests/test-rename.h: Likewise.
40504         * tests/test-rename.c: Likewise.
40505         * doc/posix-functions/rename.texi (rename): Improve documentation,
40506         including bugs that will eventually be fixed in gnulib.
40507
40508 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40509
40510         * lib/uname.c: Include <stdlib.h>
40511         (uname): Assume version info is available.
40512
40513 2009-10-02  Jim Meyering  <meyering@redhat.com>
40514
40515         gnu-web-doc-update: correct --help output
40516         * build-aux/gnu-web-doc-update: Make --help output relevant.
40517
40518         gnu-web-doc-update: add standard options
40519         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40520
40521         gnu-web-doc-update: New module.
40522         Use this script to automatically update the on-line web documentation
40523         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40524         * modules/gnu-web-doc-update: New file, from coreutils.
40525         * build-aux/gnu-web-doc-update: New script.
40526
40527 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40528
40529         link: LoadLibrary is not needed.
40530         * lib/link.c: Use GetModuleHandle.
40531
40532 2009-10-01  Eric Blake  <ebb9@byu.net>
40533
40534         getopt: bump serial number
40535         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40536         change.
40537
40538         tests: tighten link, rmdir, and remove tests
40539         * tests/test-link.h (includes): No need to use <config.h> here.
40540         Clean up if directory hard link was created, otherwise test for
40541         trailing '.'.
40542         * tests/test-linkat.c (main): Simplify.
40543         * tests/test-remove.c (main): Enhance test for trailing '.'.
40544         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40545
40546 2009-10-01  Jim Meyering  <meyering@redhat.com>
40547
40548         maint.mk: requiring "make major" was annoying, for a "minor" release.
40549         What is intended is "stable", to contrast with alpha and beta,
40550         so require "make stable", not "make major".
40551         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40552         (get_tool_versions): Likewise.
40553         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40554
40555 2009-09-30  Ben Pfaff  <blp@gnu.org>
40556
40557         Fix broken build of replacement for Windows tmpfile().
40558         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40559         flags argument added along with the 'mkostemp' module.
40560
40561 2009-09-28  Bruno Haible  <bruno@clisp.org>
40562
40563         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40564         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40565         to 'remove_elt'.
40566         (gl_list_remove): Update.
40567         * lib/gl_list.c (gl_list_remove): Update.
40568         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40569         to 'remove_elt'.
40570         (gl_oset_remove): Update.
40571         * lib/gl_list.c (gl_oset_remove): Update.
40572         Reported by Eric Blake.
40573
40574 2009-09-28  Eric Blake  <ebb9@byu.net>
40575
40576         doc: mention yet more cygwin 1.7 status
40577         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40578         cygwin.
40579         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40580         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40581
40582         argp: fix test failure
40583         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40584         that are not upper-case.  Pass correct range to tolower.
40585
40586 2009-09-27  Jim Meyering  <meyering@redhat.com>
40587
40588         test-yesno: work around sparc-dash here-document infelicity
40589         Without this change, the literal \177 byte in a here document
40590         would make dash 0.5.5.1-3 access uninitialized memory.
40591         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40592         Instead, use a marker, "@", and filter through tr to create the desired
40593         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40594
40595 2009-09-27  Bruno Haible  <bruno@clisp.org>
40596
40597         Disable untested support for new flavours of ACLs on AIX.
40598         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40599         progress.
40600         * lib/set-mode-acl.c (qset_acl): Likewise.
40601
40602 2008-12-07  Bruno Haible  <bruno@clisp.org>
40603
40604         Add support for new flavours of ACLs on AIX. (Untested.)
40605         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40606         (file_has_acl): Add support for newer AIX.
40607         * lib/set-mode-acl.c (qset_acl): Likewise.
40608         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40609         Rainer Tammer <tammer@tammer.net>.
40610
40611 2009-09-26  Eric Blake  <ebb9@byu.net>
40612
40613         argp: fix compilation of getopt
40614         * lib/getopt.in.h (includes): Use different guard than glibc.
40615         Reported by Sergey Poznyakoff.
40616
40617         doc: mention more cygwin 1.7 status
40618         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40619         bug.
40620         * doc/posix-functions/execl.texi (execl): Likewise.
40621         * doc/posix-functions/execle.texi (execle): Likewise.
40622         * doc/posix-functions/execlp.texi (execlp): Likewise.
40623         * doc/posix-functions/execv.texi (execv): Likewise.
40624         * doc/posix-functions/execve.texi (execve): Likewise.
40625         * doc/posix-functions/execvp.texi (execvp): Likewise.
40626         * doc/glibc-functions/canonicalize_file_name.texi
40627         (canonicalize_file_name): Cygwin 1.7 now provides this.
40628         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40629         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40630         on AT_SYMLINK_NOFOLLOW.
40631
40632 2009-09-24  Eric Blake  <ebb9@byu.net>
40633
40634         test-linkat: make test more robust
40635         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40636
40637         getopt: fix inclusion guards for cygwin
40638         * modules/getopt-posix (Depends-on): Add include-next.
40639         (Makefile.am): Substitute more items in replacement header.
40640         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40641         <getopt.h>.
40642         * lib/getopt.in.h (includes): Use split inclusion guard, and
40643         prefer <getopt.h> over include <unistd.h> when one is present.
40644         (option): Also override name of 'struct option'.
40645
40646         same-inode: revert prior change; it is not yet ready
40647         * NEWS: Undo mention of this change.
40648         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40649         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40650         * lib/cycle-check.c (cycle_check): Likewise.
40651         * lib/same.c (same_name): Likewise.
40652         * lib/at-func2.c (at_func2): Likewise.
40653
40654 2009-09-23  Eric Blake  <ebb9@byu.net>
40655
40656         linkat: new module
40657         * modules/linkat: New file.
40658         * lib/at-func2.c (at_func2): Likewise.
40659         * lib/linkat.c (linkat): Likewise.
40660         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40661         * lib/openat-priv.h (at_func2): Add declaration.
40662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40663         * modules/unistd (Makefile.am): Substitute them.
40664         * lib/unistd.in.h (linkat): Declare it.
40665         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40666         * doc/posix-functions/linkat.texi (linkat): Likewise.
40667         * doc/posix-functions/link.texi (link): Tweak wording.
40668         * tests/test-link.c (main): Move guts...
40669         * tests/test-link.h (test_link): ...into new file.
40670         * modules/linkat-tests: New test.
40671         * tests/test-linkat.c: Likewise.
40672         * modules/link-tests (Files): Ship new file.
40673         (Depends-on): Add stdbool.
40674
40675         dirname: add library-safe mdir_name
40676         * lib/dirname.h (mdir_name): New prototype.
40677         * lib/dirname.c (dir_name): Move guts...
40678         (mdir_name): ...to new function that avoids xalloc_die.
40679
40680         fchdir: another mingw fix
40681         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40682         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40683         on mingw (where it has not yet been ported), and make it optional
40684         elsewhere.
40685         (_gl_register_fd): Use it.
40686
40687         same-inode: make SAME_INODE tri-state, to port to mingw
40688         * NEWS: Mention this change.
40689         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40690         st_ino always being 0.
40691         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40692         * lib/cycle-check.c (cycle_check): Likewise.
40693         * lib/same.c (same_name): Likewise.
40694
40695         lstat: avoid mingw compilation error
40696         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40697         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40698         lstat ourselves.
40699         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40700         was adequate.
40701         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40702         the checks for lstat.
40703         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40704
40705         link: fix test failure on Solaris 9
40706         * lib/link.c (rpl_link): Don't assume link will catch bogus
40707         trailing slash on source.
40708
40709         test-symlinkat: enhance test
40710         * tests/test-readlink.c (main): Move guts...
40711         * tests/test-readlink.h (test_readlink): ...into new file.
40712         * tests/test-symlink.c (main): Move guts...
40713         * tests/test-symlink.h (test_symlink): ...into new file.
40714         * tests/test-symlinkat.c (main): Use new files for further
40715         coverage.
40716         (do_symlink, do_readlink): New helper functions.
40717         * modules/symlink-tests (Files): Ship new file.
40718         (Depends-on): Add stdbool.
40719         * modules/readlink-tests (Files): Ship new file.
40720         (Depends-on): Add stdbool.
40721         * modules/symlinkat-tests (Files): Use new files.
40722
40723 2009-09-23  Eric Blake  <ebb9@byu.net>
40724
40725         readlink: document portability issue with symlink length
40726         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40727         systems have bogus st_size on symlinks, and mention the
40728         areadlink-with-size module.
40729         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40730         * doc/posix-functions/readlink.texi (readlink): Mention the
40731         areadlink module, and ERANGE failure.
40732         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40733         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40734
40735         readlink: fix Solaris 9 bug with trailing slash
40736         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40737         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40738         * doc/posix-functions/readlink.texi (readlink): Document this.
40739         * modules/readlink-tests: New test.
40740         * tests/test-readlink.c: Likewise.
40741
40742         readlink: fix cygwin 1.5.x bug with return type
40743         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40744         * lib/unistd.in.h (readlink): Use ssize_t.
40745         * lib/readlink.c (readlink): Likewise.
40746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40747         * modules/unistd (Makefile.am): Substitute it.
40748         * lib/unistd.in.h (readlink): Declare replacement.
40749         * doc/posix-functions/readlink.texi (readlink): Document this.
40750
40751         symlink: use throughout gnulib
40752         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40753         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40754         symlink is not used.
40755         * modules/symlinkat (Depends-on): Add symlink.
40756         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40757         * modules/canonicalize-tests (Depends-on): Likewise.
40758         * modules/lstat-tests (Depends-on): Likewise.
40759         * modules/openat-tests (Depends-on): Likewise.
40760         * modules/remove-tests (Depends-on): Likewise.
40761         * modules/rmdir-tests (Depends-on): Likewise.
40762         * modules/unlink-tests (Depends-on): Likewise.
40763         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40764         * tests/test-canonicalize.c (symlink): Likewise.
40765         * tests/test-fstatat.c (symlink): Likewise.
40766         * tests/test-lstat.c (symlink): Likewise.
40767         * tests/test-remove.c (symlink): Likewise.
40768         * tests/test-rmdir.c (symlink): Likewise.
40769         * tests/test-unlink.c (symlink): Likewise.
40770         * tests/test-unlinkat.c (symlink): Likewise.
40771
40772         symlink: new module, for Solaris 9 bug
40773         * modules/symlink: New file.
40774         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40775         * lib/symlink.c: Likewise.
40776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40777         * modules/unistd (Makefile.am): Substitute them.
40778         * lib/unistd.in.h (symlink): Declare replacement.
40779         * MODULES.html.sh (File system functions): Mention it.
40780         * doc/posix-functions/symlink.texi (symlink): Likewise.
40781         * modules/symlink-tests: New test.
40782         * tests/test-symlink.c: Likewise.
40783
40784 2009-09-23  Bruno Haible  <bruno@clisp.org>
40785
40786         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40787         when needed.
40788         Test case: gnulib-tool --import --with-tests atexit inttypes.
40789         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40790
40791 2009-09-23  Bruno Haible  <bruno@clisp.org>
40792
40793         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40794         subcommand, not in a subshell.
40795
40796 2009-09-22  Eric Blake  <ebb9@byu.net>
40797
40798         unistd: sort replacement declarations
40799         * lib/unistd.in.h: Sort declarations.
40800
40801         open, openat: minor optimization
40802         * lib/open.c (open): If open succeeded, len is non-zero.
40803         * lib/openat.c (rpl_openat): Likewise.
40804
40805         link-follow: ensure correct result
40806         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40807         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40808         distinguish between possible failures.
40809
40810 2009-09-21  Eric Blake  <ebb9@byu.net>
40811
40812         fts: avoid compiler warning
40813         * lib/fts.c (dirent_inode_sort_may_be_useful)
40814         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40815
40816 2009-09-19  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/progreloc.c (canonicalize_file_name): New declaration.
40819
40820 2009-09-19  Eric Blake  <ebb9@byu.net>
40821
40822         link: fix quoting
40823         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40824
40825         openat: fix openat bugs on Solaris 9
40826         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40827         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40828         * modules/openat (Depends-on): Add open.
40829         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40830         * modules/fcntl-h (Makefile.am): Substitute it.
40831         * lib/fcntl.in.h (openat): Declare replacement.
40832         * doc/posix-functions/openat.texi (openat): Document this.
40833
40834         openat: move fstatat and unlinkat into correct files
40835         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40836         compiled.
40837         * lib/openat.c (fstatat, unlinkat): Move...
40838         * lib/fstatat.c (fstatat): ...into correct files.
40839         * lib/unlinkat.c (unlinkat): Likewise.
40840
40841         openat: fix unlinkat bugs on Solaris 9
40842         * lib/unlinkat.c (unlinkat): New file.
40843         * modules/openat (Depends-on): Add unlink.
40844         (Files): Distribute it.
40845         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40846         trailing slash behavior is broken.
40847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40848         * modules/unistd (Makefile.am): Substitute it.
40849         * lib/unistd.in.h (unlinkat): Declare replacement.
40850         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40851
40852         openat: fix fstatat bugs on Solaris 9
40853         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40854         stat.
40855         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40856
40857         test-unlinkat: enhance test, to expose Solaris 9 bug
40858         * tests/test-unlink.c (main): Factor guts...
40859         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40860         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40861         * tests/test-rmdir.c (main): Adjust caller.
40862         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40863         (unlinker): New helper function.
40864         (rmdirat): Enhance check.
40865         * modules/rmdir-tests (Depends-on): Add stdbool.
40866         * modules/unlink-tests (Depends-on): Likewise.
40867         (Files): Add test-unlink.h.
40868         * modules/openat-tests (Files): Likewise.
40869         (Depends-on): Add unlinkdir.
40870
40871         test-fstatat: new test, to expose Solaris 9 bugs
40872         * tests/test-stat.c (main): Factor guts...
40873         * tests/test-stat.h (test_stat_func): ...into new file.
40874         * tests/test-lstat.c (main): Factor guts...
40875         * tests/test-lstat.h (test_lstat_func): ...into new file.
40876         * tests/test-fstatat.c: New file.
40877         * modules/stat-tests (Files): Add test-stat.h.
40878         * modules/lstat-tests (Files): Add test-lstat.h.
40879         (Depends-on): Add stdbool.
40880         * modules/openat-tests (Depends-on): Add pathmax.
40881         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40882         (Makefile.am): Run new test.
40883
40884         remove: new module, for mingw and Solaris 9 bugs
40885         * modules/remove: New file.
40886         * lib/remove.c: Likewise.
40887         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40889         * modules/stdio (Makefile.am): Use them.
40890         * lib/stdio.in.h (remove): Declare replacement.
40891         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40892         * doc/posix-functions/remove.texi (remove): Likewise.
40893         * modules/remove-tests: New test.
40894         * tests/test-remove.c: Likewise.
40895
40896         unlink: new module, for Solaris 9 bug
40897         * modules/unlink: New file.
40898         * lib/unlink.c: Likewise.
40899         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40901         * modules/unistd (Makefile.am): Use them.
40902         * lib/unistd.in.h (stat): Declare replacement.
40903         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40904         * doc/posix-functions/unlink.texi (unlink): Likewise.
40905         * modules/unlink-tests: New test.
40906         * tests/test-unlink.c: Likewise.
40907
40908         lstat: fix Solaris 9 bug
40909         * lib/lstat.c (lstat): Also check for trailing slash on
40910         non-symlink, non-directories.  Use stat module to simplify logic.
40911         * doc/posix-functions/lstat.texi (lstat): Document it.
40912         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40913         (configure.ac): Check for symlink.
40914         * tests/test-lstat.c (main): Add more tests.
40915
40916         stat: add as dependency to other modules
40917         * modules/chown (Depends-on): Add stat.
40918         * modules/euidaccess (Depends-on): Likewise.
40919         * modules/fchdir (Depends-on): Likewise.
40920         * modules/isdir (Depends-on): Likewise.
40921         * modules/link (Depends-on): Likewise.
40922         * modules/lstat (Depends-on): Likewise.
40923         * modules/mkdir-p (Depends-on): Likewise.
40924         * modules/modechange (Depends-on): Likewise.
40925         * modules/open (Depends-on): Likewise.
40926         * modules/readlink (Depends-on): Likewise.
40927         * modules/same (Depends-on): Likewise.
40928
40929         stat: fix Solaris 9 bug
40930         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40931         slash.
40932         * lib/stat.c (rpl_stat): Work around it.
40933         * doc/posix-functions/stat.texi (stat): Update documentation.
40934
40935         stat: new module, for mingw bug
40936         * modules/stat: New file.
40937         * lib/stat.c: Likewise.
40938         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40939         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40940         * modules/sys_stat (Makefile.am): Use them.
40941         * lib/sys_stat.in.h (stat): Declare replacement.
40942         * lib/openat.c (fstatat): Deal with lstat and stat being function
40943         macros.
40944         * modules/openat (Depends-on): Add inline.
40945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40946         * doc/posix-functions/stat.texi (stat): Likewise.
40947         * modules/stat-tests: New test.
40948         * tests/test-stat.c: Likewise.
40949
40950 2009-09-19  Jim Meyering  <meyering@redhat.com>
40951
40952         syntax-check: detect unnecessary inclusion of canonicalize.h
40953         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40954
40955 2009-09-19  Eric Blake  <ebb9@byu.net>
40956
40957         canonicalize-lgpl: adjust clients to use correct header
40958         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40959         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40960         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40961         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40962         * lib/progreloc.c (includes): Likewise.
40963
40964 2009-09-19  Jim Meyering  <meyering@redhat.com>
40965
40966         test-posixtm.c: correct a comment
40967         * tests/test-posixtm.c: Correct first-line comment.
40968         Spotted by Eric Blake.
40969
40970 2009-09-16  Jim Meyering  <meyering@redhat.com>
40971
40972         posixtm-tests: make T const-correct; add a test case
40973         * tests/test-posixtm.c (T): Declare const.
40974         Add a test for -(2^31+1).
40975         Remove useless can-succeed-only-in-2002 test.
40976
40977         posixtm-tests: adjust the sole failing test
40978         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40979         expected output matches what mktime now produces.  Cross-checked via
40980         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40981
40982         posixtm: move #ifdef'd tests into a new module
40983         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40984         * tests/test-posixtm.c: ... this new file.
40985         * modules/posixtm-tests: New module.
40986
40987 2009-09-19  Eric Blake  <ebb9@byu.net>
40988
40989         openat: simplify use of at-func.c
40990         * lib/at-func.c (includes): Include prerequisites here, to
40991         simplify requirements on client files.
40992         * lib/openat-priv.h: Add double-inclusion guard.
40993         * lib/faccessat.c (includes): Simplify.
40994         * lib/fchmodat.c (includes): Likewise.
40995         * lib/fchownat.c (includes): Likewise.
40996         * lib/mkdirat.c (includes): Likewise.
40997         * lib/mkfifoat.c (includes): Likewise.
40998         * lib/symlinkat.c (includes): Likewise.
40999
41000         openat: allow return of fd 0
41001         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41002         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41003         unistd-safer.
41004         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41005         <fcntl.h>; this module does not leak fds.
41006         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41007         must be allowed to return 0, leaving openat_safer to add the
41008         safety.
41009         (openat_permissive): Avoid writing to just-opened fd 2 if
41010         restoring the current directory fails.
41011         * lib/openat-die.c (openat_restore_fail): Add comment.
41012         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41013         (save_cwd): Guarantee safe fd, but without use of open_safer.
41014         * tests/test-openat.c: New test.
41015         * modules/openat-tests (Files, Makefile.am): Distribute and build
41016         new file.
41017
41018         relocatable-prog-wrapper: fix build
41019         * modules/relocatable-prog-wrapper (Files): Update name of
41020         canonicalize m4 file, broken on 2009-09-17.
41021         Reported by emad hajjar <aleppos@hotmail.com>.
41022
41023 2009-09-19  Bruno Haible  <bruno@clisp.org>
41024
41025         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41026         * lib/safe-alloc.c: Likewise.
41027         Reported by Ian Beckwith <ianb@erislabs.net>.
41028
41029 2009-09-18  Bruno Haible  <bruno@clisp.org>
41030
41031         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41032         Reported by <erobles@sensacd.com.mx>.
41033
41034 2009-09-17  Eric Blake  <ebb9@byu.net>
41035
41036         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41037         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41038         slashes when checking if last component is missing.
41039         * tests/test-canonicalize.c (main): Test this.
41040
41041         canonicalize, canonicalize-lgpl: honor // if distinct from /
41042         * modules/canonicalize (Files): Add double-slash-root.m4.
41043         * modules/canonicalize-lgpl (Files): Likewise.
41044         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41045         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41046         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41047         fallback definition.
41048         (canonicalize_filename_mode): Use it to protect //.
41049         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41050         (__realpath): Likewise.
41051         * tests/test-canonicalize.c (main): Test this.
41052         * tests/test-canonicalize-lgpl.c (main): Likewise.
41053         * modules/canonicalize-tests (Depends-on): Add same-inode.
41054         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41055
41056         canonicalize-lgpl: fix glibc bug with trailing slash
41057         * m4/canonicalize-lgpl.m4: Move contents...
41058         * m4/canonicalize.m4: ...here.
41059         (gl_CANONICALIZE_LGPL): Factor realpath check...
41060         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41061         glibc 2.3.5 bug, fixed 2005-04-27.
41062         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41063         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41064         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41065         * modules/canonicalize-lgpl (Files): Manage file rename.
41066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41067         * modules/stdlib (Makefile.am): Substitute witness.
41068         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41069         is needed.
41070         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41071         replacement is required.
41072         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41073         * doc/glibc-functions/canonicalize_file_name.texi
41074         (canonicalize_file_name): Document this.
41075         * doc/posix-functions/realpath.texi (realpath): Likewise.
41076
41077         canonicalize-lgpl: reject non-directory with trailing slash
41078         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41079         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41080         catches failures in glibc 2.3.5.
41081         * tests/test-canonicalize.c (main): Likewise.
41082
41083         canonicalize-lgpl: use native realpath if it works
41084         * lib/canonicalize-lgpl.c (realpath): Guard with
41085         FUNC_REALPATH_WORKS.
41086         * lib/stdlib.in.h (realpath): Make declaration optional based on
41087         HAVE_REALPATH.
41088         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41089         native realpath works.
41090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41091         * modules/stdlib (Makefile.am): Substitute witness.
41092
41093         canonicalize, canonicalize-lgpl: use <stdlib.h>
41094         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41095         (Include): Mention <stdlib.h>.
41096         (configure.ac): Mention functions we provide.
41097         * modules/canonicalize (configure.ac): Likewise.
41098         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41099         realpath if canonicalize_file_name is missing.
41100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41101         * modules/stdlib (Makefile.am): Substitute witnesses.
41102         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41103         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41104         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41105         * NEWS: Document this.
41106         * doc/glibc-functions/canonicalize_file_name.texi
41107         (canonicalize_file_name): Likewise.
41108         * doc/posix-functions/realpath.texi (realpath): Likewise.
41109         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41110
41111         test-canonicalize: consolidate into single C program
41112         * tests/test-canonicalize.sh: Delete; move setup into...
41113         * tests/test-canonicalize.c (main): ...the program, making it
41114         easier to run in debugger.  Add some tests.
41115         * modules/canonicalize-tests (Files): Remove unused file.
41116         (Depends-on): Add progname.
41117         (configure.ac, Makefile.am): Simplify.
41118
41119         test-canonicalize-lgpl: consolidate into single C program
41120         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41121         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41122         easier to run in debugger.  Add some tests.
41123         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41124         (configure.ac, Makefile.am): Simplify.
41125
41126         canonicalize: avoid resolvepath
41127         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41128         unnecessary checks.
41129         * lib/canonicalize.c (includes): Simplify.
41130         (canonicalize_file_name): Drop resolvepath implementation.
41131         * modules/canonicalize (Depends-on): Drop filenamecat.
41132
41133         canonicalize: don't lose errno
41134         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41135         over calls to free.
41136
41137         canonicalize: simplify errno handling
41138         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41139         assignment.
41140
41141         canonicalize, canonicalize-lgpl: update module dependencies
41142         * modules/canonicalize (Depends-on): Add extensions, lstat,
41143         pathmax, stdlib.
41144         (Files): Drop pathmax.h.
41145         (configure.ac): Adjust macro name.
41146         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41147         lstat, stdlib, sys_stat.
41148         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41149         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41150         extensions.
41151         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41152         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41153         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41154         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41155         declaration, if available.
41156         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41157         we can rely on the readlink module.
41158         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41159         (includes): Use <unistd.h> unconditionally.
41160
41161 2009-09-17  Eric Blake  <ebb9@byu.net>
41162
41163         maint: make Include sections of modules consistent
41164         * modules/alloca: Use only header name; no need to list #include.
41165         * modules/alloca-opt: Likewise.
41166         * modules/arpa_inet: Likewise.
41167         * modules/canon-host: Likewise.
41168         * modules/configmake: Likewise.
41169         * modules/dirent: Likewise.
41170         * modules/eealloc: Likewise.
41171         * modules/environ: Likewise.
41172         * modules/fchdir: Likewise.
41173         * modules/fcntl: Likewise.
41174         * modules/fcntl-h: Likewise.
41175         * modules/gethrxtime: Likewise.
41176         * modules/gettime: Likewise.
41177         * modules/ignore-value: Likewise.
41178         * modules/inet_ntop: Likewise.
41179         * modules/inet_pton: Likewise.
41180         * modules/inttypes: Likewise.
41181         * modules/isnand-nolibm: Likewise.
41182         * modules/isnanf-nolibm: Likewise.
41183         * modules/mbchar: Likewise.
41184         * modules/mbfile: Likewise.
41185         * modules/mbiter: Likewise.
41186         * modules/mbuiter: Likewise.
41187         * modules/netdb: Likewise.
41188         * modules/netinet_in: Likewise.
41189         * modules/nproc: Likewise.
41190         * modules/pagealign_alloc: Likewise.
41191         * modules/poll: Likewise.
41192         * modules/printf-frexp: Likewise.
41193         * modules/pthread: Likewise.
41194         * modules/putenv: Likewise.
41195         * modules/random_r: Likewise.
41196         * modules/relocatable-prog: Likewise.
41197         * modules/search: Likewise.
41198         * modules/select: Likewise.
41199         * modules/selinux-h: Likewise.
41200         * modules/settime: Likewise.
41201         * modules/signal: Likewise.
41202         * modules/size_max: Likewise.
41203         * modules/socklen: Likewise.
41204         * modules/ssize_t: Likewise.
41205         * modules/stdarg: Likewise.
41206         * modules/stdbool: Likewise.
41207         * modules/stddef: Likewise.
41208         * modules/stdint: Likewise.
41209         * modules/stdio: Likewise.
41210         * modules/stdlib: Likewise.
41211         * modules/string: Likewise.
41212         * modules/strings: Likewise.
41213         * modules/sys_file: Likewise.
41214         * modules/sys_ioctl: Likewise.
41215         * modules/sys_select: Likewise.
41216         * modules/sys_socket: Likewise.
41217         * modules/sys_stat: Likewise.
41218         * modules/sys_time: Likewise.
41219         * modules/sys_times: Likewise.
41220         * modules/sys_utsname: Likewise.
41221         * modules/sys_wait: Likewise.
41222         * modules/sysexits: Likewise.
41223         * modules/time: Likewise.
41224         * modules/times: Likewise.
41225         * modules/tmpfile: Likewise.
41226         * modules/trim: Likewise.
41227         * modules/unistd: Likewise.
41228         * modules/wchar: Likewise.
41229         * modules/wctype: Likewise.
41230
41231 2009-09-17  Bruno Haible  <bruno@clisp.org>
41232
41233         Make getdate.y compile on QNX and NetBSD 5 / i386.
41234         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41235         TIME_T_FITS_IN_LONG_INT.
41236         * lib/getdate.y (long_time_t): New type.
41237         (relative_time): Change type of 'seconds' field to long_time_t.
41238         (get_date): Update types of local variables. Check against overflow
41239         during conversion from long_time_t to time_t.
41240         Reported by Matt Kraai <kraai@ftbfs.org>
41241         and Hasso Tepper <hasso@netbsd.org>.
41242
41243 2009-09-17  Bruno Haible  <bruno@clisp.org>
41244
41245         * modules/COPYING: Update copyright years.
41246         * modules/README: Likeiwse.
41247         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41248         Reported by Ian Beckwith <ianb@erislabs.net>.
41249
41250 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41251
41252         * users.txt: Update references for gnuit package.
41253
41254 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41255
41256         * m4/getdelim.m4: Fix typo in copyright line.
41257
41258 2009-09-17  Bruno Haible  <bruno@clisp.org>
41259
41260         * lib/atoll.c: Use the standard header with GPL copyright.
41261         * lib/argz.in.h: Likewise.
41262         * lib/glob.c: Likewise.
41263         * lib/glob-libc.h: Likewise.
41264         * lib/random_r.c: Likewise.
41265         * lib/siglist.h: Likewise.
41266         * lib/strsignal.c: Likewise.
41267         Reported by Ian Beckwith <ianb@erislabs.net>.
41268
41269 2009-09-17  Eric Blake  <ebb9@byu.net>
41270
41271         rmdir: ensure correct dependency order
41272         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41273
41274 2009-09-17  Bruno Haible  <bruno@clisp.org>
41275
41276         Disable assertion that fails on NetBSD 5 / i386.
41277         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41278         Reported by Sam Steingold <sds@gnu.org>
41279         and Hasso Tepper <hasso@netbsd.org>.
41280
41281 2009-09-16  Eric Blake  <ebb9@byu.net>
41282
41283         unlinkdir: port to mingw
41284         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41285         on which no one can unlink a directory.
41286
41287         stdlib: sort witness names
41288         * modules/stdlib (Makefile.am): Sort replacements.
41289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41290         * lib/stdlib.in.h: Likewise.
41291
41292         parse-duration-tests: avoid link failure
41293         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41294         LIBINTL.
41295         Reported by Tom G. Christensen.
41296
41297         openat-tests: ensure unlinkat behaves like rmdir
41298         * tests/test-rmdir.c (main): Factor guts...
41299         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41300         * modules/rmdir-tests (Files): Ship new file.
41301         * modules/openat-tests: New test.
41302         * tests/test-unlinkat.c: Likewise.
41303
41304         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41305         * modules/rmdir-errno (Status, Notice): Now obsolete.
41306
41307         rmdir: work around cygwin 1.5.x and mingw bugs
41308         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41309         * lib/rmdir.c (rmdir): Work around it.
41310         * modules/rmdir (Status, Notice): No longer obsolete.
41311         (Files): Add dos.m4.
41312         (Depends-on): Add unistd.
41313         (configure.ac): Set witnesses.
41314         (License): Relax to LGPLv2+.
41315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41316         * modules/unistd (Makefile.am): Substitute witnesses.
41317         * lib/unistd.in.h (rmdir): Declare replacement.
41318         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41319         * modules/rmdir-tests: New tests.
41320         * tests/test-rmdir.c: Likewise.
41321
41322 2009-09-15  Eric Blake  <ebb9@byu.net>
41323
41324         fchdir: improve use of replacement functions
41325         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41327         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41328         REPLACE_CLOSEDIR.
41329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41330         * modules/sys_stat (Makefile.am): Substitute correct witness.
41331         * modules/dirent (Makefile.am): Likewise.
41332         * modules/unistd (Makefile.am): Likewise.
41333         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41334         * lib/unistd.in.h (dup): Likewise.
41335         * lib/sys_stat.in.h (fstat): Likewise.
41336
41337         maint: ignore gnulib-tool temp files
41338         * .gitignore: Ignore files created during gnulib-tool --test.
41339
41340 2009-09-13  Jim Meyering  <meyering@redhat.com>
41341
41342         posixtm: don't reject a time that specify "60" as the number of seconds
41343         * lib/posixtm.c (posixtime): The code to reject invalid dates
41344         would also reject a time specified with the .60 suffix.
41345         But POSIX allows that, in order to accommodate leap seconds.
41346         So don't reject it.
41347         (main): Adjust tests accordingly.
41348         * modules/posixtm (Depends-on): Add stpcpy.
41349
41350 2009-09-11  Jim Meyering  <meyering@redhat.com>
41351
41352         announce-gen: include [$release_type] in emitted Subject:
41353         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41354         e.g., [stable] in the emitted Subject: line.
41355
41356 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41357
41358         Remove obsolete macros from several modules.
41359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41360         obsolete Autoconf macros with their modern counterparts.
41361         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41362         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41363         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41364         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41365         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41366         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41367         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41368         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41369         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41370         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41371         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41372         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41373         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41374         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41375         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41376         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41377         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41378         * m4/time_r.m4 (gl_TIME_R): Likewise.
41379         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41380         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41381         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41382
41383         Fix copyright header in build-aux scripts.
41384         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41385         recommendation.
41386         * build-aux/ncftpput-ftp: Likewise.
41387         * build-aux/update-copyright: Likewise.
41388
41389 2009-09-09  Eric Blake  <ebb9@byu.net>
41390
41391         test-link: allow Linux choice of errno
41392         * tests/test-link.c (main): Relax test for alternate error.
41393
41394         strndup: fix improper m4 caching
41395         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41396         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41397         (gl_PREREQ_STRNDUP): Delete.
41398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41399         * modules/string (Makefile.am): Substitute it.
41400         * lib/string.in.h (strndup): Modernize prototype.
41401
41402         getcwd: port to mingw
41403         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41404         different from the POSIX assumptions made throughout the getcwd
41405         module; fortunately, the mingw getcwd does not need replacement.
41406         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41407         * modules/getcwd-tests: New test.
41408         * tests/test-getcwd.c: Likewise.
41409
41410         link: fix platform bugs
41411         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41412         * lib/link.c (link): Work around them.  Fix related mingw bug.
41413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41414         * modules/unistd (Makefile.am): Substitute it.
41415         * lib/unistd.in.h (link): Declare replacement.
41416         * doc/posix-functions/link.texi (link): Document this.
41417         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41418
41419         test-link: consolidate into single C program, test more cases
41420         * tests/test-link.sh: Delete.
41421         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41422         at least Cygwin and Solaris.
41423         * modules/link-tests (Files): Remove unused file.
41424         (Depends-on): Add errno, sys_stat.
41425         (Makefile.am): Simplify.
41426
41427 2009-09-08  Bruno Haible  <bruno@clisp.org>
41428
41429         Work around towlower, towupper bug on mingw.
41430         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41431         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41432         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41433         * doc/posix-functions/towupper.texi: Likewise.
41434         Reported by Eric Blake.
41435
41436 2009-09-08  Jim Meyering  <meyering@redhat.com>
41437
41438         build: don't try to run autoheader if we don't use it
41439         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41440         is not used in configure.ac.
41441
41442 2009-09-08  Eric Blake  <ebb9@byu.net>
41443
41444         euidaccess: fix compilation error
41445         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41446
41447         rawmemchr: relax license
41448         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41449         okay.
41450         Reported by Jim Meyering.
41451
41452         mkfifoat: new module
41453         * modules/mkfifoat: New file.
41454         * lib/mkfifoat.c: Likewise.
41455         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41456         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41457         * modules/sys_stat (Makefile.am): Use them.
41458         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41459         * MODULES.html.sh (File system functions): Mention module.
41460         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41461         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41462         * modules/mkfifoat-tests: New test.
41463         * tests/test-mkfifoat.c: Likewise.
41464
41465         strchrnul: relax license
41466         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41467         okay.
41468         Reported by Jim Meyering.
41469
41470 2009-09-08  Eric Blake  <ebb9@byu.net>
41471
41472         fstatat: fix compilation on Solaris
41473         * lib/fstatat.c (includes): Add fcntl.h.
41474         Reported by Pádraig Brady.
41475
41476 2009-09-07  Eric Blake  <ebb9@byu.net>
41477
41478         rename: modernize replacement
41479         * modules/rename (Depends-on): Add stdio.
41480         (configure.ac): Declare witness.
41481         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41482         stdio take care of replacement.
41483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41484         * modules/stdio (Makefile.am): Substitute them.
41485         * lib/stdio.in.h (rename): Declare replacement.
41486         * lib/rename.c (includes): Allow cross-compilation to non-windows
41487         machines.
41488         * doc/posix-functions/rename.texi (rename): Improve
41489         documentation.
41490
41491         stdio: sort witness names
41492         * modules/stdio (Makefile.am): Sort replacements.
41493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41494         * lib/stdio.in.h: Likewise.
41495
41496         getcwd: minor cleanups
41497         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41498         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41499
41500         openat: provide more convenience names
41501         * modules/faccessat (configure.ac): Add C witness.
41502         * lib/unistd.in.h (readlinkat): Fix typo.
41503         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41504         convenience wrappers.
41505         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41506         wrappers in syntax checks.
41507
41508 2009-09-06  Eric Blake  <ebb9@byu.net>
41509
41510         doc: fix comments in recent patches
41511         * lib/faccessat.c: Mention correct function.
41512         * lib/fchmodat.c: Likewise.
41513         * lib/fchownat.c: Likewise.
41514         * lib/symlinkat.c: Likewise.
41515         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41516         constants.
41517
41518         faccessat, symlinkat: continue cleanup of previous patch
41519         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41520         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41521         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41523         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41524         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41525         set.
41526
41527 2009-09-06  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41530         (fstatat): Declare if GNULIB_FSTATAT is set.
41531         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41532         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41533         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41534         * modules/fcntl-h (Files): Remove m4/openat.m4.
41535         * modules/sys_stat (Files): Remove m4/openat.m4.
41536         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41537         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41538         * modules/unistd (Files): Remove m4/openat.m4.
41539         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41540         GNULIB_OPENAT.
41541         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41542         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41544         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41545         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41546         gl_OPENAT_DEFAULTS.
41547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41548         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41549         Don't require gl_OPENAT_DEFAULTS.
41550         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41551         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41552         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41553         (gl_OPENAT_DEFAULTS): Remove macro.
41554
41555 2009-09-06  Bruno Haible  <bruno@clisp.org>
41556
41557         * modules/openat (configure.ac): Remove unneeded witness.
41558
41559 2009-09-06  Bruno Haible  <bruno@clisp.org>
41560
41561         Set errno to ENOSYS when a function is entirely unsupported.
41562         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41563         EOPNOTSUPP.
41564         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41565         * modules/chown (Depends-on): Remove errno.
41566
41567 2009-09-06  Bruno Haible  <bruno@clisp.org>
41568
41569         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41570
41571 2009-09-06  Bruno Haible  <bruno@clisp.org>
41572
41573         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41574
41575 2009-09-06  Ben Pfaff  <blp@gnu.org>
41576             Bruno Haible  <bruno@clisp.org>
41577
41578         Work around a glibc bug in strtok_r.
41579         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41580         Undefine if UNDEFINE_STRTOK_R is set.
41581         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41583         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41584         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41585         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41586         UNDEFINE_STRTOK_R.
41587         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41588
41589 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41590
41591         exclude: minor fix
41592         * lib/exclude.c: Include wctype.h
41593
41594 2009-09-06  Akim Demaille  <demaille@gostai.com>
41595
41596         bootstrap: improve error message
41597         * build-aux/bootstrap (find_tool): Upon failure, report the list
41598         of candidates.
41599         Honor the initial value of the envvar.
41600
41601 2009-09-05  Eric Blake  <ebb9@byu.net>
41602
41603         symlinkat: new module
41604         * modules/symlinkat: New file.
41605         * lib/symlinkat.c: Likewise.
41606         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41608         * modules/unistd (Makefile.am): Use them.
41609         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41610         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41611         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41612         * MODULES.html.sh (File system functions): Mention module.
41613         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41614         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41615         * modules/symlinkat-tests: New test.
41616         * tests/test-symlinkat.c: Likewise.
41617
41618         test-openat-safer: add more checks
41619         * tests/test-openat-safer.c (main): Check more code paths.
41620
41621 2009-09-05  Jim Meyering  <meyering@redhat.com>
41622
41623         syntax-check: detect unnecessary inclusion of openat.h
41624         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41625
41626 2009-09-05  Bruno Haible  <bruno@clisp.org>
41627
41628         Support towlower, towupper.
41629         * doc/posix-functions/towlower.texi: Mention module wctype.
41630         * doc/posix-functions/towupper.texi: Likewise.
41631         * lib/wctype.in.h (towlower, towupper): New functions.
41632         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41633         (ASSERT): New macro.
41634         (e): New variable.
41635         (main): Test also towlower, towupper. Test WEOF argument.
41636         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41637
41638 2009-09-05  Bruno Haible  <bruno@clisp.org>
41639
41640         Fix conversion behaviour when the input is invalid.
41641         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41642         mark occurring in first pass of indirect conversion.
41643         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41644         input.
41645         Found by clang's static analyzer.
41646
41647 2009-09-05  Bruno Haible  <bruno@clisp.org>
41648
41649         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41650         where direct conversion is possible.
41651
41652 2009-09-04  Eric Blake  <ebb9@byu.net>
41653
41654         openat: fail with ENOENT on empty name
41655         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41656         buffer.
41657
41658         link-follow: fix logic bug in prior patch
41659         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41660         reversed sense of yes and no in prior patch.  Avoid confusing
41661         compilation failure with desired semantics.
41662
41663         link-follow: accomodate mingw and cross-compilation
41664         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41665         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41666         cross-compilation results to -1, to make linkat easier to
41667         implement when cross-compiling.  Trivially support mingw.
41668         * modules/link-follow (configure.ac): Call new name.
41669         * NEWS: Mention this.
41670
41671 2009-09-03  Eric Blake  <ebb9@byu.net>
41672
41673         faccessat: compile replacement
41674         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41675         needed.
41676
41677         fts: fix compilation error
41678         * lib/fts.c (includes): Re-add "openat.h", for
41679         openat_needs_fchdir.
41680
41681         faccessat: new module
41682         * modules/faccessat: New file.
41683         * lib/faccessat.c: Likewise.
41684         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41686         * modules/unistd (Makefile.am): Use it.
41687         * lib/unistd.in.h (faccessat): Declare it.
41688         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41689         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41690         * MODULES.html.sh (File system functions): Mention it.
41691         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41692         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41693
41694         euidaccess: prefer POSIX over non-standard implementation
41695         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41696         * lib/euidaccess.c (euidaccess): Use it if available.
41697
41698         openat: make template easier to use
41699         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41700         AT_FUNC_F2 to be undefined.
41701         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41702         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41703         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41704         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41705         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41706         Likewise.
41707         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41708         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41709         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41710         Likewise.
41711
41712         openat: declare in POSIX headers
41713         * NEWS: Mention this.
41714         * modules/openat (configure.ac): Declare witnesses.
41715         (Depends-on): Add fcntl-h, sys_stat, unistd.
41716         (Include): Mention correct headers.
41717         * modules/fcntl-h (Depends-on): Add link-warning.
41718         (Files): Add openat.m4.
41719         (Makefile.am): Substitute witnesses.
41720         * modules/sys_stat (Files, Makefile.am): Likewise.
41721         * modules/unistd (Files, Makefile.am): Likewise.
41722         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41723         (gl_OPENAT_DEFAULTS): New macro.
41724         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41725         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41726         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41727         (SYS_STAT_H): Remove unused variable.
41728         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41729         * lib/fcntl--.h (includes): Remove unneeded header.
41730         * lib/openat-safer.c (includes): Likewise.
41731         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41732         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41733         appropriate headers.
41734         (__OPENAT_PREFIX): Delete.
41735         * lib/fcntl.in.h (openat): Provide declaration.
41736         (AT_FDCWD): Fix Solaris bug.
41737         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41738         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41739         * lib/fchmodat.c (includes):  Adjust to find declaration.
41740         * lib/fchownat.c (includes): Likewise.
41741         * lib/mkdirat.c (includes): Likewise.
41742         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41743         still visible.
41744
41745 2009-09-02  Eric Blake  <ebb9@byu.net>
41746
41747         errno: use consistently
41748         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41749         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41750         * lib/canonicalize.c (ELOOP): Likewise.
41751         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41752         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41753         * lib/lchown.c (EOPNOTSUPP): Likewise.
41754         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41755         * lib/savewd.c (ESTALE): Likewise.
41756         * lib/settime.c (ENOSYS): Likewise.
41757         * lib/utimens.c (ENOSYS): Likewise.
41758         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41759         * lib/chdir-safer.c (ELOOP): Likewise.
41760         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41761         * modules/c-stack (Depends-on): Add errno.
41762         * modules/canonicalize (Depends-on): Likewise.
41763         * modules/chdir-safer (Depends-on): Likewise.
41764         * modules/fdopendir (Depends-on): Likewise.
41765         * modules/inet_ntop (Depends-on): Likewise.
41766         * modules/inet_pton (Depends-on): Likewise.
41767         * modules/lchown (Depends-on): Likewise.
41768         * modules/openat (Depends-on): Likewise.
41769         * modules/savewd (Depends-on): Likewise.
41770         * modules/settime (Depends-on): Likewise.
41771         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41772
41773         fts: avoid leaking fds
41774         * modules/fts (Depends-on): Add cloexec.
41775         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41776         flag.
41777
41778         fts: make directory fds more robust
41779         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41780         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41781
41782         backupfile, chdir-long, fts, savedir: make safer
41783         * lib/backupfile.c (includes): Use "dirent--.h", since
41784         numbered_backup can write to stderr during readdir.
41785         * lib/savedir.c (includes): Likewise.
41786         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41787         emulation can write to stderr on failure.
41788         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41789         * lib/getcwd.c: Document why opendir_safer is unused.
41790         * lib/glob.c: Likewise.
41791         * lib/scandir.c: Likewise.
41792         * lib/openat-proc.c: Likewise, for open_safer.
41793         * modules/backupfile (Depends-on): Add dirent-safer.
41794         * modules/savedir (Depends-on): Likewise.
41795         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41796         * modules/chdir-long (Depends-on): Add openat-safer.
41797
41798         openat-safer: new module
41799         * modules/openat-safer: New file.
41800         * lib/openat-safer.c: Likewise.
41801         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41802         * lib/fcntl-safer.h (openat_safer): Declare.
41803         * lib/fcntl--.h (openat): Override.
41804         * MODULES.html.sh (File descriptor based I/O): Mention it.
41805         * lib/openat.h: Add double-inclusion guards.
41806         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41807         "fcntl--.h", so we can implement openat.
41808         * modules/openat-safer-tests: New test.
41809         * tests/test-openat-safer.c: New file.
41810
41811         dirent-safer: new module
41812         * modules/dirent-safer: New file.
41813         * lib/dirent--.h: Likewise.
41814         * lib/dirent-safer.h: Likewise.
41815         * lib/opendir-safer.c: Likewise.
41816         * m4/dirent-safer.m4: Likewise.
41817         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41818         * modules/dirent-safer-tests: New test.
41819         * tests/test-dirent-safer.c: New file.
41820         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41821
41822         fdopendir: optimize on mingw
41823         * lib/unistd.in.h (_gl_directory_name): New prototype.
41824         * lib/fchdir.c (_gl_directory_name): Implement it.
41825         (fchdir): Use it to simplify implementation.
41826         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41827         fchdir, when available, to avoid calling [f]chdir().
41828
41829         fdopendir: split into its own module
41830         * lib/openat.c (fdopendir): Move...
41831         * lib/fdopendir.c: ...into new file.
41832         * modules/fdopendir: New module.
41833         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41834         * modules/openat (Depends-on): Add fdopendir.
41835         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41836         fdopendir here.
41837         * modules/savedir (Depends-on): Only need fdopendir, not full
41838         openat.
41839         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41840         * lib/openat.h (fdopendir): Drop prototype.
41841         * lib/dirent.in.h (fdopendir): Provide prototype.
41842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41843         * modules/dirent (Makefile.am): Substitute them.
41844         * MODULES.html.sh (File system functions): Mention it.
41845         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41846         * modules/fdopendir-tests: New file.
41847         * tests/test-fdopendir.c: Likewise.
41848
41849         fchdir: use more consistent macro convention
41850         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41851         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41852         REPLACE_FCHDIR, rather than relying on config.h macros.
41853         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41854         inside a single make-time REPLACE_FCHDIR block, rather than using
41855         the config.h FCHDIR_REPLACEMENT.
41856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41857         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41858         Manage fstat replacement.
41859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41860         REPLACE_FCHDIR.
41861         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41862         (Makefile.am): Substitute REPLACE_FCHDIR.
41863         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41864         FCHDIR_REPLACEMENT.
41865         * lib/dup-safer.c (dup_safer): Likewise.
41866         * lib/dup2.c (rpl_dup2): Likewise.
41867         * lib/dup3.c (rpl_dup3): Likewise.
41868         * lib/open.c (rpl_open): Likewise.
41869
41870         fchdir: simplify error handling, and support dup3
41871         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41872         stdbool, malloc-posix, realloc-posix.
41873         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41874         (ensure_dirs_slot): Return false on allocation failure.
41875         (rpl_dup2): Delete.
41876         (_gl_register_dup): New function.
41877         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41878         (_gl_register_fd): Close fd on allocation failure.
41879         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41880         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41881         prototype.
41882         (rpl_dup2_fchdir): Delete prototype.
41883         * lib/open.c (open): Update caller.
41884         * lib/dup2.c (dup2): Track fchdir metadata.
41885         * lib/dup3.c (dup3): Likewise.
41886         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41887         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41888
41889 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41890
41891         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41892         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41893         don't pass arguments to AC_OUTPUT.
41894
41895 2009-09-02  Bruno Haible  <bruno@clisp.org>
41896
41897         * modules/mkdtemp (License): Relicense under LGPLv2+.
41898         Reported by Paolo Bonzini.
41899
41900 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41901
41902         Replace uses of obsolete autoconf macros in Jim's modules.
41903         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41904         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41905         can evoke a warning from autoconf when run with -Wobsolete
41906         enabled.  They were declared obsolete for good reasons (see
41907         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41908         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41909         should not continue using the deprecated macros.
41910         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41911         obsolete Autoconf macros with modern counterparts.
41912         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41913         * m4/dos.m4 (gl_AC_DOS): Likewise.
41914         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41915         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41916         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41917         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41918         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41919         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41920         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41921         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41922         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41923         Likewise.
41924         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41925         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41926         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41927         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41928         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41929         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41930
41931 2009-09-01  Eric Blake  <ebb9@byu.net>
41932
41933         fchdir: fix off-by-one bug in previous patch
41934         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41935         (_gl_unregister_fd): Delete useless if.
41936
41937 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41938
41939         maint.mk: sort the list of syntax-check rules
41940         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41941         easier to get a sense of progress when the rules are run sequentially
41942         and take a long time.
41943
41944 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41945
41946         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41947         * modules/netinet_in: Likewise.
41948         * modules/sys_file: Likewise.
41949         * modules/sys_ioctl: Likewise.
41950         * modules/sys_select: Likewise.
41951         * modules/sys_socket: Likewise.
41952         * modules/sys_stat: Likewise.
41953         * modules/sys_time: Likewise.
41954         * modules/sys_times: Likewise.
41955         * modules/sys_utsname: Likewise.
41956         * modules/sys_wait: Likewise.
41957
41958 2009-09-01  Jim Meyering  <meyering@redhat.com>
41959
41960         fts: help ensure that return values are not ignored
41961         * lib/fts_.h (__GNUC_PREREQ): Define.
41962         (__attribute_warn_unused_result__): Define.
41963         (fts_children, fts_close, fts_open, fts_read): Declare with
41964         __attribute_warn_unused_result__.
41965
41966         fts: fts_close now fails also when closing a dir file descriptor fails
41967         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41968         and propagate to caller, along with errno.
41969
41970         announce-gen: correct formatting in --help output
41971         * build-aux/announce-gen (usage): Move the one-line description in
41972         --help output "up", to where it belongs, just after Usage:.
41973
41974 2009-08-31  Eric Blake  <ebb9@byu.net>
41975
41976         fchdir: port to mingw
41977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41978         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41979         opened, then use a substitute.
41980         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41981         replacement.
41982         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41983         (_gl_register_fd): No need to check stat if open already filters
41984         all directories.
41985         (fchdir): Fix error condition to match POSIX.
41986         * modules/fchdir (Depends-on): Add sys_stat.
41987         * doc/posix-functions/open.texi (open): Document the limitation.
41988         * modules/fchdir-tests: New file.
41989         * tests/test-fchdir.c: Likewise.
41990
41991         canonicalize: allow cross-testing from cygwin to mingw
41992         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41993         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41994         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41995         Likewise.
41996         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41997         target does not support symlinks.
41998         * tests/test-canonicalize-lgpl.sh: Likewise.
41999
42000         chown: avoid compilation warning on mingw
42001         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42002         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42003         mingw.
42004         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42005         * modules/chown (Depends-on): Add errno.
42006
42007 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42008
42009         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42010         command.
42011
42012 2009-08-31  Jim Meyering  <meyering@redhat.com>
42013
42014         canonicalize: remove useless initialization
42015         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42016         initialization of local, "end".
42017
42018 2009-08-30  Bruno Haible  <bruno@clisp.org>
42019
42020         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42021         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42022         ENOSYS.
42023
42024 2009-08-30  Bruno Haible  <bruno@clisp.org>
42025
42026         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42027         /usr/xpg4/bin/tr when it exists.
42028         * tests/test-pipe-filter-gi1.sh: Likewise.
42029
42030 2009-08-30  Bruno Haible  <bruno@clisp.org>
42031
42032         Work around deficient /usr/bin/id program on Solaris.
42033         * tests/test-file-has-acl.sh (ID): New variable.
42034         * tests/test-set-mode-acl.sh (ID): Likewise.
42035         * tests/test-copy-acl.sh (ID): Likewise.
42036         * tests/test-copy-file.sh (ID): Likewise.
42037
42038 2009-08-30  Bruno Haible  <bruno@clisp.org>
42039
42040         New module 'xstriconveh'.
42041         * lib/xstriconveh.h: New file.
42042         * lib/xstriconveh.c: New file.
42043         * modules/xstriconveh: New file.
42044
42045 2009-08-30  Bruno Haible  <bruno@clisp.org>
42046
42047         Make it easier to use mem_cd_iconveh.
42048         * lib/striconveh.h (iconveh_t): New type.
42049         (iconveh_open, iconveh_close): New declarations.
42050         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42051         with a single 'const iconveh_t *' argument.
42052         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42053         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42054         with a single 'const iconveh_t *' argument.
42055         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42056         * tests/test-striconveh.c (main): Update.
42057         * NEWS: Mention the change.
42058
42059 2009-08-30  Bruno Haible  <bruno@clisp.org>
42060
42061         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42062         problem.
42063
42064 2009-08-30  Bruno Haible  <bruno@clisp.org>
42065
42066         Work around iconv_open problem on Solaris.
42067         * lib/iconv_open-solaris.gperf: New file.
42068         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42069         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42070         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42071         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42072         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42073         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42074
42075 2009-08-29  Jim Meyering  <meyering@redhat.com>
42076
42077         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42078         * top/maint.mk (cvs-check): Remove target; it was just an alias
42079         to the better-named vc-diff-check.
42080         (maintainer-distcheck): Remove rule.  It was used only from
42081         the (alpha/beta/major) target, and all of its commands but one
42082         were coreutils-specific.
42083         (vc-dist): Remove rule.
42084         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42085         Run vc-diff-check, not vc-dist.
42086         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42087
42088 2009-08-27  Bruno Haible  <bruno@clisp.org>
42089
42090         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42091         of 0.
42092
42093 2009-08-27  Bruno Haible  <bruno@clisp.org>
42094
42095         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42096         compilers.
42097         * doc/func.texi: Document the SunPRO C bug.
42098
42099 2009-08-27  Bruno Haible  <bruno@clisp.org>
42100
42101         Fix link error on Solaris.
42102         * tests/test-parse-duration.c (xstrdup): Remove function.
42103
42104 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42105
42106         ignore-value: handle pointer types, too
42107         * lib/ignore-value.h (__attribute__): Remove definition.
42108         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42109         of a more concise and more-often effective "(void) i" statement.
42110         (ignore_ptr): New function to suppress warnings from functions that
42111         return pointers, and to make it explicit that one function doesn't
42112         handle all cases.
42113
42114 2009-08-25  Bruno Haible  <bruno@clisp.org>
42115
42116         dup2: work around a Linux bug.
42117         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42118         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42119         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42120         Reported by Simon Josefsson.
42121
42122 2009-08-25  Jim Meyering  <meyering@redhat.com>
42123
42124         libguestfs uses gnulib
42125         * users.txt: Add libguestfs.
42126
42127 2009-08-24  Eric Blake  <ebb9@byu.net>
42128
42129         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42130         * lib/pipe2.c (includes): Add binary-io.h.
42131         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42132
42133 2009-08-24  Bruno Haible  <bruno@clisp.org>
42134
42135         Tolerate declared but missing accept4 syscall.
42136         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42137         available.
42138         * lib/sys_socket.in.h (accept4): If the function is already present,
42139         override it.
42140         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42141         * modules/accept4 (Makefile.am): Compile accept4.c always.
42142         Reported by Paolo Bonzini and Eric Blake.
42143
42144 2009-08-23  Bruno Haible  <bruno@clisp.org>
42145
42146         New module 'accept4'.
42147         * lib/sys_socket.in.h (accept4): New declaration.
42148         * lib/accept4.c: New file.
42149         * m4/accept4.m4: New file.
42150         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42151         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42152         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42153         HAVE_ACCEPT4.
42154         * modules/accept4: New file.
42155         * doc/glibc-functions/accept4.texi: Mention the new module.
42156
42157 2009-08-24  Jim Meyering  <meyering@redhat.com>
42158
42159         progname: also set global program_invocation_name, when possible
42160         Before this change, a libtool-enabled program that calls glibc's
42161         error function would report the program name as
42162         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42163         * modules/progname (configure.ac): Check for a declaration of
42164         program_invocation_name.
42165         * lib/progname.c:  Include <errno.h>.
42166         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42167         Set program_invocation_name.
42168
42169 2009-08-23  Bruno Haible  <bruno@clisp.org>
42170
42171         * lib/dup3.c: Include <string.h>.
42172
42173 2009-08-23  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42176         * lib/pipe2.c (pipe2): Likewise.
42177         Suggested by Eric Blake.
42178
42179 2009-08-23  Bruno Haible  <bruno@clisp.org>
42180
42181         Tolerate declared but missing dup3 syscall.
42182         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42183         * lib/unistd.in.h (dup3): If the function is already present,
42184         override it.
42185         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42186         * modules/dup3 (Makefile.am): Compile dup3.c always.
42187         Reported by Paolo Bonzini.
42188
42189 2009-08-23  Bruno Haible  <bruno@clisp.org>
42190
42191         Tolerate declared but missing pipe2 syscall.
42192         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42193         available.
42194         * lib/unistd.in.h (pipe2): If the function is already present,
42195         override it.
42196         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42197         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42198         Reported by Paolo Bonzini.
42199
42200 2009-08-23  Bruno Haible  <bruno@clisp.org>
42201
42202         * lib/pipe2.c (pipe2): Move #ifs inside function.
42203
42204 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42205
42206         quotearg: document limitations of quote_these_too
42207         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42208         those limitations are created.
42209         * lib/quotearg.h (set_char_quoting): Document that digits and
42210         letters that are special after backslash are not permitted.
42211         (quotearg_char): Cross-reference set_char_quoting documentation.
42212
42213 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42214
42215         quotearg: implement custom_quoting_style
42216         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42217         right_quote fields.
42218         (set_custom_quoting): New public function.
42219         (quotearg_buffer_restyled): Add left_quote and right_quote
42220         arguments, handle them very much like locale quoting, and update
42221         all uses.
42222         (quotearg_n_custom): New public function.
42223         (quotearg_n_custom_mem): New public function.
42224         (quotearg_custom): New public function.
42225         (quotearg_custom_mem): New public function.
42226         * lib/quotearg.h: Prototype and document new public functions.
42227         (enum quoting_style): For escape_quoting_style and
42228         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42229         ignored even though they're otherwise like c_quoting_style.
42230         Add custom_quoting_style member and document with comparison to
42231         clocale_quoting_style.
42232         * tests/test-quotearg.c (custom_quotes): New array.
42233         (custom_results): New array.
42234         (main): Extend to test custom quoting.
42235
42236 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42237
42238         quotearg: fix right quote escaping when it's in quote_these_too
42239         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42240         quote, be sure to prepend only one backslash.
42241         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42242         (main): Test it.
42243
42244 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42245
42246         quotearg-tests: test escaping of embedded locale quotes
42247         * tests/test-quotearg.c (struct result_strings): Add member for
42248         new input.
42249         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42250         (inputs): Add new input.
42251         (results_g): Add expected results.
42252         (flag_results): Likewise.
42253         (locale_results): Likewise.
42254         (compare_strings): Check those.
42255
42256 2009-08-23  Bruno Haible  <bruno@clisp.org>
42257
42258         Tests for module 'dup3'.
42259         * modules/dup3-tests: New file.
42260         * tests/test-dup3.c: New file.
42261
42262         New module 'dup3'.
42263         * lib/unistd.in.h (dup3): New declaration.
42264         * lib/dup3.c: New file.
42265         * m4/dup3.m4: New file.
42266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42267         HAVE_DUP3.
42268         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42269         * modules/dup3: New file.
42270         * doc/glibc-functions/dup3.texi: Mention the new module.
42271
42272 2009-08-23  Bruno Haible  <bruno@clisp.org>
42273
42274         Tweak the dup2 test.
42275         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42276         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42277         the test file is still empty. Fix argument order of lseek.
42278
42279 2009-08-23  Bruno Haible  <bruno@clisp.org>
42280
42281         Avoid test link errors when the modules getopt-gnu, gettext are used.
42282         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42283         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42284
42285 2009-08-23  Bruno Haible  <bruno@clisp.org>
42286
42287         Fix getdtablesize() on mingw.
42288         * lib/getdtablesize.c (getdtablesize): Implement differently.
42289         * lib/unistd.in.h (getdtablesize): Improve comment.
42290
42291 2009-08-23  Bruno Haible  <bruno@clisp.org>
42292
42293         New module 'mkostemp'.
42294         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42295         * lib/stdlib.in.h (mksotemp): New declaration.
42296         * lib/mkostemp.c: New file, from glibc with modifications.
42297         * lib/tempname.h (GT_FILE): Remove outdated comment.
42298         (gen_tempname): Add flags argument.
42299         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42300         (__GT_FILE): Map to 1.
42301         (small_open, large_open): Remove macros.
42302         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42303         * lib/mkstemp.c (mkstemp): Update.
42304         * lib/mkdtemp.c (mkdtemp): Likewise.
42305         * m4/mkostemp.m4: New file.
42306         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42307         HAVE_MKOSTEMP.
42308         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42309         HAVE_MKOSTEMP.
42310         * modules/mkostemp: New file, based on modules/mkstemp.
42311         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42312         * NEWS: Mention the change.
42313
42314 2009-08-23  Bruno Haible  <bruno@clisp.org>
42315
42316         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42317         Reported by Eric Blake.
42318
42319 2009-08-23  Bruno Haible  <bruno@clisp.org>
42320
42321         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42322         Reported by Eric Blake.
42323
42324 2009-08-23  Bruno Haible  <bruno@clisp.org>
42325
42326         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42327         * modules/pipe2 (Depends-on): Likewise.
42328
42329 2009-08-23  Eric Blake  <ebb9@byu.net>
42330
42331         fcntl-h: add O_TTY_INIT support
42332         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42333         * tests/test-fcntl-h.c (o): Test it.
42334         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42335
42336         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42337         * modules/fcntl: Move <fcntl.h> header replacement...
42338         * modules/fcntl-h: ...to new name, so as not to collide with
42339         like-named function.
42340         * tests/test-fcntl.c: Rename...
42341         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42342         * modules/fcntl-tests: Rename...
42343         * modules/fcntl-h-tests: ...to this.  Update test file name.
42344         * modules/chdir-long (Depends-on): Update clients.
42345         * modules/chdir-safer (Depends-on): Likewise.
42346         * modules/fcntl-safer (Depends-on): Likewise.
42347         * modules/fts (Depends-on): Likewise.
42348         * modules/mkancesdirs (Depends-on): Likewise.
42349         * modules/mkdir-p (Depends-on): Likewise.
42350         * modules/open (Depends-on): Likewise.
42351         * modules/savewd (Depends-on): Likewise.
42352         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42353         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42354
42355 2009-08-22  Bruno Haible  <bruno@clisp.org>
42356
42357         * modules/binary-io (License): Relicense under LGPL.
42358         * modules/pipe2 (License): Likewise.
42359
42360 2009-08-22  Bruno Haible  <bruno@clisp.org>
42361
42362         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42363         return value.
42364         * lib/pipe-filter-gi.c (filter_init): Likewise.
42365         Reported by Eric Blake.
42366
42367 2009-08-22  Bruno Haible  <bruno@clisp.org>
42368
42369         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42370         * modules/pipe (Depends-on): Add pipe2.
42371
42372 2009-08-22  Bruno Haible  <bruno@clisp.org>
42373
42374         Tests for module 'pipe2'.
42375         * modules/pipe2-tests: New file.
42376         * tests/test-pipe2.c: New file.
42377
42378         New module 'pipe2'.
42379         * lib/unistd.in.h (pipe2): New declaration.
42380         * lib/pipe2.c: New file.
42381         * m4/pipe2.m4: New file.
42382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42383         HAVE_PIPE2.
42384         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42385         * modules/pipe2: New file.
42386         * doc/glibc-functions/pipe2.texi: Mention the new module.
42387
42388 2009-08-22  Bruno Haible  <bruno@clisp.org>
42389
42390         Reference some new glibc functions.
42391         * doc/glibc-functions/accept4.texi: New file.
42392         * doc/glibc-functions/dup3.texi: New file.
42393         * doc/glibc-functions/mkostemp.texi: New file.
42394         * doc/glibc-functions/pipe2.texi: New file.
42395         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42396         (Glibc sys/socket.h): Refer to accept4.
42397         (Glibc unistd.h): Refer to dup3, pipe2.
42398         Reported by Eric Blake.
42399
42400 2009-08-22  Jim Meyering  <meyering@redhat.com>
42401             Bruno Haible  <bruno@clisp.org>
42402
42403         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42404         This makes it so packages using automake-1.11's silent-rules option
42405         can print e.g., a single "GEN    configmake.h" line, rather than
42406         the 30+ statements that perform the job.  If you want to see the
42407         actual commands, you can still run "make V=1".
42408         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42409         so that make output is abbreviated when those variables are defined
42410         appropriately.
42411         * modules/argz: Likewise.
42412         * modules/arpa_inet: Likewise.
42413         * modules/byteswap: Likewise.
42414         * modules/configmake: Likewise.
42415         * modules/dirent: Likewise.
42416         * modules/errno: Likewise.
42417         * modules/fcntl: Likewise.
42418         * modules/float: Likewise.
42419         * modules/fnmatch: Likewise.
42420         * modules/getopt-posix: Likewise.
42421         * modules/glob: Likewise.
42422         * modules/iconv_open: Likewise.
42423         * modules/inttypes: Likewise.
42424         * modules/localcharset: Likewise.
42425         * modules/locale: Likewise.
42426         * modules/math: Likewise.
42427         * modules/netdb: Likewise.
42428         * modules/netinet_in: Likewise.
42429         * modules/poll: Likewise.
42430         * modules/posix_spawnp-tests: Likewise.
42431         * modules/sched: Likewise.
42432         * modules/search: Likewise.
42433         * modules/selinux-h: Likewise.
42434         * modules/signal: Likewise.
42435         * modules/spawn: Likewise.
42436         * modules/stdarg: Likewise.
42437         * modules/stdbool: Likewise.
42438         * modules/stddef: Likewise.
42439         * modules/stdint: Likewise.
42440         * modules/stdio: Likewise.
42441         * modules/stdlib: Likewise.
42442         * modules/string: Likewise.
42443         * modules/strings: Likewise.
42444         * modules/sys_file: Likewise.
42445         * modules/sys_ioctl: Likewise.
42446         * modules/sys_select: Likewise.
42447         * modules/sys_socket: Likewise.
42448         * modules/sys_stat: Likewise.
42449         * modules/sys_time: Likewise.
42450         * modules/sys_times: Likewise.
42451         * modules/sys_utsname: Likewise.
42452         * modules/sys_wait: Likewise.
42453         * modules/sysexits: Likewise.
42454         * modules/time: Likewise.
42455         * modules/unistd: Likewise.
42456         * modules/wchar: Likewise.
42457         * modules/wctype: Likewise.
42458
42459 2009-08-22  Jim Meyering  <meyering@redhat.com>
42460
42461         announce-gen: detect write failure
42462         * build-aux/announce-gen: Add Coda at end.
42463         Remove equivalent-but-more-verbose block at top.
42464
42465 2009-08-19  Akim Demaille  <demaille@gostai.com>
42466
42467         bootstrap: --help to stdout.
42468         * bootstrap (usage): Don't send --help to stderr.
42469         Use a here doc instead of a long string.
42470
42471 2009-08-21  Eric Blake  <ebb9@byu.net>
42472
42473         test-popen-safer: split from test-popen
42474         * tests/test-popen.c (main): Move...
42475         * tests/test-popen.h: ...into new file.
42476         * tests/test-popen-safer2.c: New file.
42477         * modules/popen-tests (Files): Add test-popen.h.
42478         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42479         Suggested by Bruno Haible.
42480
42481         test-fcntl-safer: split from test-open
42482         * tests/test-open.c (main): Move...
42483         * tests/test-open.h: ...into new file.
42484         * tests/test-fcntl-safer.c: New file.
42485         * modules/open-tests (Files): Add test-open.h.
42486         * modules/fcntl-safer-tests: New file.
42487         Suggested by Bruno Haible.
42488
42489         test-fopen-safer: split from test-fopen
42490         * tests/test-fopen.c (main): Move...
42491         * tests/test-fopen.h: ...into new file.
42492         * tests/test-fopen-safer.c: New file.
42493         * modules/fopen-tests (Files): Add test-fopen.h.
42494         * modules/fopen-safer-tests: New file.
42495         Suggested by Bruno Haible.
42496
42497 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42498
42499         popen-safer: test O_CLOEXEC at run-time.
42500         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42501
42502 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42503
42504         fcntl: move more flags to the header
42505         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42506         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42507         * lib/fcntl.in.h: Do both things here.
42508
42509 2009-08-21  Jim Meyering  <meyering@redhat.com>
42510
42511         consistently remove $@-t before redirecting to it
42512         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42513         * modules/alloca-opt: Likewise.
42514         * modules/byteswap: Likewise.
42515         * modules/fnmatch: Likewise.
42516         * modules/getopt-posix: Likewise.
42517         * modules/glob: Likewise.
42518         * modules/poll: Likewise.
42519         * modules/posix_spawnp-tests: Likewise.
42520         * modules/sys_socket: Likewise.
42521         * modules/sysexits: Likewise.
42522
42523 2009-08-21  Eric Blake  <ebb9@byu.net>
42524
42525         popen: simplify access to original popen
42526         * lib/popen.c (rpl_popen): No need to worry about popen being a
42527         macro.
42528         Reported by Bruno Haible.
42529
42530 2009-08-20  Eric Blake  <ebb9@byu.net>
42531
42532         build: avoid some compiler warnings
42533         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42534         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42535         type.
42536         (new_exclude_segment, excluded_file_pattern_p)
42537         (excluded_file_name_p): Reduce scope.
42538         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42539         old-style declaration.
42540
42541 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42542
42543         * tests/test-exclude1.sh: Handle Windows EOL.
42544         * tests/test-exclude2.sh: Likewise.
42545         * tests/test-exclude3.sh: Likewise.
42546         * tests/test-exclude4.sh: Likewise.
42547         * tests/test-exclude5.sh: Likewise.
42548         * tests/test-exclude6.sh: Likewise.
42549         * tests/test-exclude7.sh: Likewise.
42550
42551 2009-08-19  Akim Demaille  <demaille@gostai.com>
42552
42553         bootstrap: find sha1sum when named gsha1sum.
42554         * bootstrap (find_tool): New.
42555         ($SHA1SUM): New.
42556         Use it.
42557
42558 2009-08-20  Jim Meyering  <meyering@redhat.com>
42559
42560         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42561         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42562         expression that converts "." in a file name to "\." in the resulting
42563         regexp.  Start with a dummy statement, so that prior shell variable
42564         definitions are expanded portably.  Reported by Simon Josefsson.
42565
42566 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42567
42568         Fix polling for writeability of a screen buffer.
42569         * lib/poll.c: Distinguish input and screen buffers for the
42570         Win32 implementation.
42571         * lib/select.c: Likewise.
42572
42573 2009-08-19  Eric Blake  <ebb9@byu.net>
42574
42575         popen-safer: prevent popen from clobbering std descriptors
42576         * modules/popen-safer: New file.
42577         * lib/popen-safer.c: Likewise.
42578         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42579         * lib/stdio--.h (popen): Provide override.
42580         * lib/stdio-safer.h (popen_safer): Provide declaration.
42581         * tests/test-popen.c (includes): Partially test this.
42582         * modules/popen-safer-tests: New file, for more tests.
42583         * tests/test-popen-safer.c: Likewise.
42584         * MODULES.html.sh (file stream based Input/Output): Mention it.
42585
42586         tests: test some of the *-safer modules
42587         * modules/fopen-safer (Depends-on): Add fopen.
42588         * modules/fcntl-safer (Depends-on): Add fcntl.
42589         * modules/stdlib-safer (Depends-on): Add stdlib.
42590         (configure.ac): Set indicator.
42591         * modules/unistd-safer (configure.ac): Likewise.
42592         * modules/tmpfile-safer (configure.ac): Likewise.
42593         (Depends-on): Add tmpfile.
42594         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42595         active.
42596         * tests/test-fopen.c (includes): Test safer versions when they are
42597         in use.
42598         * tests/test-open.c (includes): Likewise.
42599
42600         popen: fix cygwin 1.5 bug when stdin closed
42601         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42602         * modules/popen: New file.
42603         * modules/popen-tests: Likewise.
42604         * tests/test-popen.c: Likewise.
42605         * m4/popen.m4: Likewise.
42606         * lib/popen.c: Likewise.
42607         * lib/stdio.in.h (popen): New declaration.
42608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42609         * modules/stdio (Makefile.am): Likewise.
42610         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42611
42612 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42613
42614         maint.mk: give full control over update-copyright exclusions
42615         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42616         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42617         (update-copyright): Don't force inclusion of top-level
42618         ChangeLog.  Don't force exclusion of all COPYING files, but make
42619         them the default exclusion instead.
42620
42621 2009-08-16  Bruno Haible  <bruno@clisp.org>
42622
42623         Fix test failures on Solaris 10.
42624         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42625         tests when Solaris iconv() is used.
42626         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42627         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42628         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42629         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42630         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42631
42632 2009-08-16  Bruno Haible  <bruno@clisp.org>
42633
42634         Fix test failures on Solaris 10.
42635         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42636         'tr' program and pass it as first argument.
42637         * tests/test-pipe-filter-gi1.sh: Likewise.
42638         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42639         program as first argument.
42640         * tests/test-pipe-filter-gi1.c (main): Likewise.
42641
42642 2009-08-16  Eric Blake  <ebb9@byu.net>
42643
42644         fpurge: fix previous commits
42645         * modules/fpurge (Makefile.am): Make replacement conditional,
42646         partially reverting 2007-04-29 change; missed in previous
42647         attempt.
42648         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42649         is missing.
42650
42651 2009-08-16  Bruno Haible  <bruno@clisp.org>
42652
42653         Clarify fpurge's effect on the file position.
42654         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42655         * tests/test-fpurge.c (main): Make a second pass for checking the file
42656         position.
42657
42658 2009-08-16  Bruno Haible  <bruno@clisp.org>
42659
42660         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42661         declaration of fpurge is missing.
42662         * tests/test-fpurge.c (main): Check that the file has not more contents
42663         than expected. Close the file before removing it.
42664
42665 2009-08-15  Eric Blake  <ebb9@byu.net>
42666
42667         fpurge: don't wrap working cygwin implementation
42668         * lib/fpurge.c (fpurge): Fix comment typo.
42669         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42670         1.7 to avoid replacement.
42671         * tests/test-fpurge.c (main): Enhance test.
42672
42673 2009-08-15  Eric Blake  <ebb9@byu.net>
42674         and Jim Meyering  <meyering@redhat.com>
42675
42676         test-update-copyright: skip if perl is insufficient
42677         * tests/test-update-copyright.sh: Failure to run maintainer tool
42678         should not cause testsuite failure on cygwin 1.5.
42679
42680 2009-08-14  Eric Blake  <ebb9@byu.net>
42681
42682         doc: mention more functions added in cygwin 1.7.0
42683         * doc/posix-headers/limits.texi (limits.h): Update for recent
42684         cygwin additions.
42685         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42686         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42687         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42688         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42689         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42690
42691 2009-08-14  Eric Blake  <ebb9@byu.net>
42692
42693         maint.mk: simplify update-copyright rule
42694         * top/maint.mk (update-copyright-local): Delete, and document how
42695         to do it in cfg.mk instead.
42696         (update-copyright-exclude-regexp): Delete, and document how to do
42697         it in .x-update-copyright instead.
42698         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42699         exclude ChangeLog.
42700
42701 2009-08-14  Bruno Haible  <bruno@clisp.org>
42702
42703         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42704
42705 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42706
42707         maint.mk: support update-copyright-env
42708         * top/maint.mk (update-copyright-env): Define place-holder.
42709         (update-copyright): Expand $(update-copyright-env) before
42710         invoking update-copyright.
42711
42712 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42713
42714         update-copyright: implement forced reformatting
42715         * build-aux/update-copyright: Implement and document
42716         UPDATE_COPYRIGHT_FORCE.
42717         * tests/test-update-copyright.sh: Test it.
42718
42719 2009-08-14  Eric Blake  <ebb9@byu.net>
42720         and Bruno Haible  <bruno@clisp.org>
42721
42722         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42723         * tests/test-locale.c: Revert previous patch related to NULL.
42724         * tests/test-stdio.c: Likewise.
42725         * tests/test-stdlib.c: Likewise.
42726         * tests/test-string.c: Likewise.
42727         * tests/test-unistd.c: Likewise.
42728         * modules/time-tests (Depends-on): Add verify.
42729         * modules/wchar-tests (Depends-on): Likewise.
42730         * tests/test-time.c: Test for NULL compliance.
42731         * tests/test-wchar.c: Likewise.
42732         * modules/locale (Depends-on): Add stddef.
42733         * modules/stdio (Depends-on): Likewise.
42734         * modules/stdlib (Depends-on): Likewise.
42735         * modules/string (Depends-on): Likewise.
42736         * modules/time (Depends-on): Likewise.
42737         * modules/unistd (Depends-on): Likewise.
42738         * modules/wchar (Depends-on): Likewise.
42739         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42740         * lib/stdlib.in.h (includes): Likewise.
42741         * lib/string.in.h (includes): Likewise.
42742         * lib/time.in.h (includes): Likewise.
42743         * lib/unistd.in.h (includes): Likewise.
42744         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42745         replaced.
42746         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42747         * m4/stddef_h.m4: New file.
42748         * modules/stddef: Likewise.
42749         * lib/stddef.in.h: Likewise.
42750         * modules/stddef-tests: Likewise.
42751         * tests/test-stddef.c: Likewise.
42752         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42753         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42754         * doc/posix-headers/locale.texi (locale.h): Likewise.
42755         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42756         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42757         * doc/posix-headers/string.texi (string.h): Likewise.
42758         * doc/posix-headers/time.texi (time.h): Likewise.
42759         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42760         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42761
42762 2009-08-14  Eric Blake  <ebb9@byu.net>
42763
42764         doc: improve git diff of texinfo files
42765         * .gitattributes: Add rule for *.texi files, with hint on how to
42766         use it.
42767         Copied from m4, and based on a report by Bruno Haible.
42768
42769 2009-08-14  Bruno Haible  <bruno@clisp.org>
42770
42771         Disable multithread support by default on Cygwin 1.5.x for real.
42772         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42773
42774 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42775
42776         update-copyright: much ado about intervals
42777         * build-aux/update-copyright: Implement and document
42778         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42779         of copyright year intervals.
42780         Also, document UPDATE_COPYRIGHT_YEAR.
42781         * tests/test-update-copyright.sh: Test it.
42782
42783         update-copyright: convert 2-digit to 4-digit years
42784         * build-aux/update-copyright: Implement and document.
42785         * tests/test-update-copyright.sh: Update.
42786
42787 2009-08-14  Jim Meyering  <meyering@redhat.com>
42788
42789         test-exclude: avoid coreutils "make check" failure
42790         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42791         just as in test-argmatch.c.
42792
42793 2009-08-13  Eric Blake  <ebb9@byu.net>
42794
42795         test-dup2: fix bad assumption
42796         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42797         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42798
42799         test-version-etc: fix CRLF portability issue
42800         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42801         recognize \r.
42802         * tests/test-argp-version-etc-1.sh: Likewise.
42803
42804         getopt: update client modules
42805         * modules/argp (Depends-on): Use getopt-gnu.
42806         * modules/git-merge-changelog (Depends-on): Likewise.
42807         * modules/long-options (Depends-on): Likewise.
42808         * modules/xstrtol (Depends-on): Likewise.
42809
42810 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42811
42812         * tests/test-version-etc.sh: Don't fail on different
42813         project/version.  Don't fail on CRLF differences.  Rewrite to use
42814         multiple -e instead of multiple sed forks, suggested by Eric Blake
42815         <ebb9@byu.net>.
42816         * tests/test-argp-version-etc-1.sh: Likewise.
42817
42818 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42819
42820         * tests/test-version-etc.sh: Don't fail on different
42821         project/version.
42822
42823 2009-08-12  Bruno Haible  <bruno@clisp.org>
42824
42825         Tests for modules 'getopt-posix', 'getopt-gnu'.
42826         * modules/getopt-posix-tests: New file.
42827         * tests/test-getopt.c: New file.
42828         * tests/test-getopt.h: New file.
42829         * tests/test-getopt_long.h: New file.
42830
42831         New modules 'getopt-posix', 'getopt-gnu'.
42832         * modules/getopt-gnu: New file, renamed from modules/getopt.
42833         * modules/getopt-posix: New file.
42834         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42835         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42836         (gl_GETOPT): Remove macro.
42837         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42838         Disable the test against BSD systems that declare optreset. Test
42839         against mingw bug. Test against lack of support of optional arguments
42840         on many platforms.
42841         * doc/glibc-headers/getopt.texi: Update module name and list of
42842         relevant platforms.
42843         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42844         'getopt-gnu' and more portability problems.
42845         * NEWS: Mention the changes.
42846
42847 2009-08-12  Bruno Haible  <bruno@clisp.org>
42848
42849         Ensure that optarg etc. get declared by <unistd.h>.
42850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42851         AC_USE_SYSTEM_EXTENSIONS.
42852         * modules/getopt (Depends-on): Add 'extensions'.
42853
42854 2009-08-12  Bruno Haible  <bruno@clisp.org>
42855
42856         Avoid test link errors.
42857         * modules/pipe-filter-ii-tests (Makefile.am): Define
42858         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42859         * modules/pipe-filter-gi-tests (Makefile.am): Define
42860         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42862
42863 2009-08-12  Bruno Haible  <bruno@clisp.org>
42864
42865         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42866         gl_GETOPT_SUBSTITUTE before.
42867         (gl_GETOPT): Use it.
42868         * m4/argp.m4 (gl_ARGP): Update.
42869         Reported by Sergey Poznyakoff.
42870
42871         * m4/getopt.m4: Reorder macros.
42872         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42873         (gl_GETOPT_SUBSTITUTE): Remove macro.
42874
42875 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42876
42877         Minor improvement in gitlog-to-changelog
42878
42879         * build-aux/gitlog-to-changelog: New option `--format' makes
42880         output format string configurable.
42881
42882 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42883
42884         Optimize exclude: use hash tables for non-wildcard patterns.
42885
42886         * lib/exclude.c: Include hash.h and mbuiter.h
42887         (struct exclude_pattern, exclude_segment): New data types.
42888         (struct exclude): Rewrite.
42889         (fnmatch_pattern_has_wildcards): New function.
42890         (new_exclude_segment, free_exclude_segment): New functions.
42891         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42892         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42893         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42894         * modules/exclude: Depend on hash and mbuiter.
42895
42896         * modules/exclude-tests: New file.
42897         * tests/test-exclude.c: New file.
42898         * tests/test-exclude1.sh: New file.
42899         * tests/test-exclude2.sh: New file.
42900         * tests/test-exclude3.sh: New file.
42901         * tests/test-exclude4.sh: New file.
42902         * tests/test-exclude5.sh: New file.
42903         * tests/test-exclude6.sh: New file.
42904         * tests/test-exclude7.sh: New file.
42905
42906 2009-08-12  Bruno Haible  <bruno@clisp.org>
42907
42908         Ensure that getopt() gets declared by <unistd.h>.
42909         * lib/unistd.in.h: Conditionally include getopt.h.
42910         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42911         Set GNULIB_UNISTD_H_GETOPT.
42912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42913         GNULIB_UNISTD_H_GETOPT.
42914         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42915
42916 2009-08-12  Bruno Haible  <bruno@clisp.org>
42917
42918         Clarify logic.
42919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42920         gl_replace_getopt instead of GETOPT_H.
42921
42922 2009-08-12  Bruno Haible  <bruno@clisp.org>
42923
42924         * m4/getopt.m4: Add comments.
42925
42926 2009-08-12  Bruno Haible  <bruno@clisp.org>
42927
42928         Disable multithread support by default on Cygwin 1.5.x.
42929         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42930         set gl_use_threads=no if not specified otherwise.
42931
42932 2009-08-11  Bruno Haible  <bruno@clisp.org>
42933
42934         Avoid compilation error on NetBSD 5.0.
42935         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42936         * tests/test-stdio.c: Likewise.
42937         * tests/test-stdlib.c: Likewise.
42938         * tests/test-string.c: Likewise.
42939         * tests/test-unistd.c: Likewise.
42940         Reported by Greg Troxel <gdt@ir.bbn.com>
42941         at <https://savannah.gnu.org/support/?106973>.
42942
42943 2009-08-11  Bruno Haible  <bruno@clisp.org>
42944
42945         * modules/dup2-tests (Depends-on): Remove close.
42946
42947         Undo 2009-07-19 commit.
42948         * modules/acl-tests (Depends-on): Remove close.
42949         * modules/binary-io-tests (Depends-on): Likewise.
42950         * modules/closein-tests (Depends-on): Likewise.
42951         * modules/flock-tests (Depends-on): Likewise.
42952         * modules/fsync-tests (Depends-on): Likewise.
42953         * modules/lseek-tests (Depends-on): Likewise.
42954         * modules/pipe-tests (Depends-on): Likewise.
42955         * modules/posix_spawn-tests (Depends-on): Likewise.
42956         * modules/posix_spawnp-tests (Depends-on): Likewise.
42957         * modules/stat-time-tests (Depends-on): Likewise.
42958         * modules/yesno-tests (Depends-on): Likewise.
42959
42960 2009-08-10  Bruno Haible  <bruno@clisp.org>
42961
42962         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42963
42964 2009-08-10  Bruno Haible  <bruno@clisp.org>
42965
42966         Fix a gcc warning.
42967         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42968
42969 2009-08-10  Bruno Haible  <bruno@clisp.org>
42970
42971         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42972         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42973         not only the first time.
42974         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42975         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42976         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42977         is 1, not only the the first time.
42978
42979 2009-08-10  Bruno Haible  <bruno@clisp.org>
42980
42981         Make it possible to use module 'gethostname' without module 'close'.
42982         * lib/unistd.in.h (close): Evoke a link error only if
42983         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42985         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42986         * modules/unistd (Makefile.am): Substitute
42987         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42988         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42989         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42990         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42991         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42992         * modules/sys_ioctl (Makefile.am): Substitute
42993         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42994         * modules/socket (configure.ac): On native Windows, set
42995         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42996         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42997         Reported by Sam Steingold <sds@gnu.org>.
42998
42999 2009-08-10  Bruno Haible  <bruno@clisp.org>
43000
43001         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43002         * modules/ioctl (configure.ac): Likewise.
43003
43004 2009-08-10  Bruno Haible  <bruno@clisp.org>
43005
43006         Avoid collision between gnulib wrapper and libintl wrapper.
43007         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43008         already defined in intl/printf.c.
43009         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43010         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43011
43012 2009-08-09  Bruno Haible  <bruno@clisp.org>
43013
43014         Make <sys/select.h> really self-contained, also on Solaris 10.
43015         * lib/sys_select.in.h: Include <string.h>.
43016         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43017         Solaris 10 problem.
43018         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43019         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43020         Reported by Jim Meyering.
43021
43022 2009-08-09  Bruno Haible  <bruno@clisp.org>
43023
43024         Avoid warnings from 'aclocal' that are due to a use of macro name
43025         AM_XGETTEXT_OPTION that is not defined in automake.
43026         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43027         automake.
43028         * modules/error (configure.ac): Likewise.
43029         * modules/propername (configure.ac): Likewise.
43030         * modules/vasprintf (configure.ac): Likewise.
43031         * modules/verror (configure.ac): Likewise.
43032         * modules/xprintf (configure.ac): Likewise.
43033         * modules/xvasprintf (configure.ac): Likewise.
43034
43035 2009-08-08  Bruno Haible  <bruno@clisp.org>
43036
43037         Avoid compilation error in C++ mode.
43038         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43039         Reported by Sam Steingold <sds@gnu.org>.
43040
43041 2009-08-08  Bruno Haible  <bruno@clisp.org>
43042
43043         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43044         for the various Unix platforms.
43045         * doc/posix-headers/limits.texi: Update platforms list regarding
43046         HOST_NAME_MAX.
43047         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43048
43049 2009-08-07  Jim Meyering  <meyering@redhat.com>
43050
43051         selinux-at: fix typo in a comment
43052         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43053         Spotted by Paolo Bonzini.
43054
43055         selinux-at: remove redundant m4 code, add documentation
43056         * modules/selinux-at (configure.ac): Remove redundant code.
43057         LIB_SELINUX is already set via the dependent module, selinux-h.
43058         (Include): Add quotes around selinux-at.h.
43059         * lib/selinux-at.h: Add documentation.
43060         Reported by Bruno Haible in
43061         http://marc.info/?l=gnulib-bug&m=124958988300749
43062
43063 2009-08-07  Bruno Haible  <bruno@clisp.org>
43064
43065         Avoid link error on MacOS X 10.3 and 10.4.
43066         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43067         on non-ELF systems.
43068         * lib/argp-pv.c (argp_program_version): Likewise.
43069         Reported by Simon Josefsson.
43070
43071 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43072
43073         * tests/test-version-etc.sh: Use $EXEEXT.
43074
43075 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43076
43077         update-copyright: update documentation to point to maint.mk
43078         * build-aux/update-copyright: Here.
43079
43080 2009-08-06  Jim Meyering  <meyering@redhat.com>
43081
43082         maint.mk: support update-copyright-local
43083         * top/maint.mk (update-copyright-local): Define place-holder.
43084         (update-copyright): Depend on $(update-copyright-local).
43085
43086 2009-08-06  Jim Meyering  <meyering@redhat.com>
43087
43088         selinux-at: new module
43089         Initially written for coreutils, this module will soon be
43090         used by findutils, too.
43091         * MODULES.html.sh [Misc]: Add selinux-at.
43092         * lib/selinux-at.h: New file, from coreutils.
43093         * lib/selinux-at.c: Likewise.
43094         * modules/selinux-at: Likewise.
43095         (License): Change from LGPL to GPL, since it depends
43096         on the GPL'd openat module.
43097
43098         doc: update README
43099         * README: Remove references to cogito.
43100         Remove cvs-repo-updating instructions from 2007.
43101         Don't imply that CVS is better if you have limited disk space.
43102
43103 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43104
43105         update-copyright: support C-style comments
43106         * build-aux/update-copyright: Implement and document.
43107         * tests/test-update-copyright.sh: Test.
43108
43109 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43110
43111         update-copyright: support omitted "(C)"
43112         * build-aux/update-copyright: Implement and document.  Also,
43113         allow variable whitespace before "(C)".
43114         * tests/test-update-copyright.sh: Test.
43115
43116 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43117
43118         update-copyright: don't trip on non-FSF copyright statements
43119         * build-aux/update-copyright: Fix so that the first correctly
43120         formatted FSF copyright statement is recognized no matter what
43121         appears before it.  Update documentation.
43122         * tests/test-update-copyright.sh: Test that.
43123
43124 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43125
43126         update-copyright: clean up code a little
43127         * build-aux/update-copyright: Append "_re" to the name of any
43128         variable holding a regular expression.
43129         Replace "old" and "new" with "stmt" in variable names.
43130         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43131         handled correctly.
43132         Format code more consistently.
43133
43134 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43135
43136         update-copyright-tests: improve portability
43137         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43138         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43139
43140 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43141
43142         update-copyright: support @copyright{} and &copy;
43143         * build-aux/update-copyright: Implement and document.
43144         * tests/test-update-copyright.sh: Test.
43145
43146 2009-08-04  Jim Meyering  <meyering@redhat.com>
43147
43148         update-copyright-tests: correctly test EOL=\r\n handling
43149         * tests/test-update-copyright.sh: Put \r at the end of some lines
43150         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43151
43152         maint.mk: make update-copyright exclusion list more configurable
43153         * top/maint.mk (update-copyright): Default to excluding COPYING,
43154         but allow an override, in case someone does want to update that file.
43155
43156         maint.mk: don't update copyright date in COPYING
43157         * top/maint.mk (update-copyright): Exclude COPYING.
43158
43159         maint.mk: add a copyright-updating rule
43160         * top/maint.mk (update-copyright): New rule.
43161         Derived from coreutils/Makefile.am.
43162
43163         update-copyright: rename some variables
43164         * build-aux/update-copyright: Rename a few variables for clarity.
43165         Tweak syntax.  List Joel E. Denny as coauthor.
43166
43167 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43168
43169         update-copyright: fix bug for 2-digit last year and add tests
43170         * build-aux/update-copyright: Fix bug.
43171         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43172         specified.
43173         * modules/update-copyright-tests: New
43174         * tests/test-update-copyright.sh: New.
43175
43176 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43177
43178         update-copyright: handle leading tabs in line prefix
43179         * build-aux/update-copyright: Count leading tabs as 8 spaces
43180         when computing margin.  This helps with the formatting of
43181         ChangeLogs, for example.
43182         Fix documentation a little.
43183
43184 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43185
43186         update-copyright: support EOL=\r\n
43187         * build-aux/update-copyright: Implement that.
43188
43189 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43190
43191         update-copyright: automatically format copyright statements
43192         * build-aux/update-copyright: Implement that.
43193         Also, be a little more predictable and safer by always failing
43194         when the full copyright format is not perfectly recognized as an
43195         unbroken whole.  Discussed at
43196         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43197         Rewrite documentation.
43198
43199 2009-08-03  Bruno Haible  <bruno@clisp.org>
43200
43201         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43202
43203 2009-08-02  Bruno Haible  <bruno@clisp.org>
43204
43205         Tests for module 'uname'.
43206         * modules/uname-tests: New file.
43207         * tests/test-uname.c: New file.
43208
43209         New module 'uname'.
43210         * lib/uname.c: New file.
43211         * m4/uname.m4: New file.
43212         * modules/uname: New file.
43213         * doc/posix-functions/uname.texi: Mention the new module.
43214
43215 2009-08-02  Bruno Haible  <bruno@clisp.org>
43216
43217         Tests for module 'sys_utsname'.
43218         * modules/sys_utsname-tests: New file.
43219         * tests/test-sys_utsname.c: New file.
43220
43221         New module 'sys_utsname'.
43222         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43223         * m4/sys_utsname_h.m4: New file.
43224         * modules/sys_utsname: New file.
43225         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43226
43227 2009-08-02  Bruno Haible  <bruno@clisp.org>
43228
43229         Implicitly initialize the sockets library.
43230         * lib/gethostname.c: Include sockets.h.
43231         (rpl_gethostname): Invoke gl_sockets_startup.
43232         * lib/socket.c: Include sockets.h.
43233         (rpl_socket): Invoke gl_sockets_startup.
43234         * modules/gethostname (Depends-on): Add sockets.
43235         * modules/socket (Depends-on): Likewise.
43236         * tests/test-poll.c: Don't include sockets.h.
43237         (main): Don't invoke gl_sockets_startup.
43238         * tests/test-select.c: Don't include sockets.h.
43239         (main): Don't invoke gl_sockets_startup.
43240
43241 2009-08-02  Bruno Haible  <bruno@clisp.org>
43242
43243         Allow multiple calls to gl_sockets_startup.
43244         * lib/sockets.c (initialized_sockets_version): New variable.
43245         (gl_sockets_startup): Do nothing if already called for this or a higher
43246         version.
43247         (gl_sockets_cleanup): Reset initialized_sockets_version.
43248
43249 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43250
43251         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43252         different project/version.
43253
43254 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43255             Bruno Haible  <bruno@clisp.org>
43256
43257         Tests for module 'pipe-filter-gi'.
43258         * modules/pipe-filter-gi-tests: New file.
43259         * tests/test-pipe-filter-gi1.sh: New file.
43260         * tests/test-pipe-filter-gi1.c: New file.
43261         * tests/test-pipe-filter-gi2.sh: New file.
43262         * tests/test-pipe-filter-gi2-main.c: New file.
43263         * tests/test-pipe-filter-gi2-child.c: New file.
43264
43265         New module 'pipe-filter-gi'.
43266         * lib/pipe-filter-gi.c: New file.
43267         * modules/pipe-filter-gi: New file.
43268
43269 2009-08-02  Bruno Haible  <bruno@clisp.org>
43270             Paolo Bonzini  <bonzini@gnu.org>
43271
43272         Tests for module 'pipe-filter-ii'.
43273         * modules/pipe-filter-ii-tests: New file.
43274         * tests/test-pipe-filter-ii1.sh: New file.
43275         * tests/test-pipe-filter-ii1.c: New file.
43276         * tests/test-pipe-filter-ii2.sh: New file.
43277         * tests/test-pipe-filter-ii2-main.c: New file.
43278         * tests/test-pipe-filter-ii2-child.c: New file.
43279
43280         New module 'pipe-filter-ii'.
43281         * lib/pipe-filter.h: New file.
43282         * lib/pipe-filter-ii.c: New file.
43283         * lib/pipe-filter-aux.h: New file.
43284         * modules/pipe-filter-ii: New file.
43285
43286 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43287
43288         * lib/gc-libgcrypt.c: Change copyright to FSF.
43289         * lib/gc-gnulib.c: Likewise.
43290
43291 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43292
43293         * lib/gethostname.c: Include limits.h.
43294
43295 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43296             Bruno Haible  <bruno@clisp.org>
43297
43298         Ensure HOST_NAME_MAX as part of the gethostname module.
43299         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43300         define also HOST_NAME_MAX.
43301         * tests/test-gethostname.c: Include <limits.h>.
43302         (main): Check also HOST_NAME_MAX.
43303         * doc/posix-headers/limits.texi: Document the mingw problem.
43304
43305 2009-08-02  Bruno Haible  <bruno@clisp.org>
43306
43307         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43308         Add comments.
43309
43310 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43311
43312         * lib/gethostname.c: Add Windows wrapper.
43313         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43314         * modules/gethostname: Depend on sys_socket & errno, for also
43315         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43316         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43317
43318 2009-07-31  Jim Meyering  <meyering@redhat.com>
43319
43320         getloadavg: fix symbol name in comment
43321         * lib/getloadavg.c: Correct a typo I introduced when adding
43322         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43323         Matt Kraai spotted the problem.
43324
43325 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43326
43327         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43328         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43329         code also if ! defined N_NAME_POINTER.
43330         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43331         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43332         but the n_name member is a 12-byte array.
43333
43334 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43335
43336         update-copyright: generalize comment handling
43337         * build-aux/update-copyright: Handle copyright statements
43338         within more comment styles.
43339         Document usage.
43340         Report any file with an external copyright holder or parse failure.
43341
43342 2009-07-29  Jim Meyering  <meyering@redhat.com>
43343
43344         mktime: correct setting of REPLACE_MKTIME
43345         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43346
43347         update-copyright: new module
43348         * modules/update-copyright: New file.
43349         * build-aux/update-copyright: New file.
43350         * MODULES.html.sh (maint+release support): Add update-copyright.
43351
43352 2009-07-27  Bruno Haible  <bruno@clisp.org>
43353
43354         Fix compilation error when <ctime> is used and mktime is replaced.
43355         * lib/time.in.h (mktime): New declaration.
43356         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43357         REPLACE_MKTIME instead of defining mktime in config.h.
43358         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43359         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43360         Reported by Ross McFarland <rwmcfa1@neces.com>.
43361
43362 2009-07-27  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43365         Reported by Matt Kraai <mkraai@beckman.com>.
43366
43367 2009-07-25  Jim Meyering  <meyering@redhat.com>
43368
43369         maint.mk: avoid warnings about missing files
43370         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43371         diagnostic when .prev-version does not exist.
43372         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43373         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43374         nonexistent cfg.mk.
43375         Suggestions from Simon Josefsson.
43376
43377 2009-07-25  Bruno Haible  <bruno@clisp.org>
43378
43379         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43380         defined as macros. Needed on QNX 6.4.1.
43381         Reported by Matt Kraai <mkraai@beckman.com>.
43382
43383 2009-07-23  Jim Meyering  <meyering@redhat.com>
43384
43385         maint.mk: invoke "make dist" with a working value of XZ_OPT
43386         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43387
43388 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43389
43390         Make fseeko.c compile on QNX.
43391         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43392
43393 2009-07-22  Peter Simons  <simons@cryp.to>
43394
43395         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43396         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43397         * lib/md4.h: Likewise.
43398         * lib/md5.h: Likewise.
43399         * lib/sha1.h: Likewise.
43400         * lib/sha256.h: Likewise.
43401         * lib/sha512.h: Likewise.
43402
43403         tests-sha1: don't assign literal string to 'char *' variable
43404         * tests/test-sha1.c (main): Declare locals with "const" to match
43405         attributes of the right hand side.
43406
43407 2009-07-21  Eric Blake  <ebb9@byu.net>
43408
43409         dup2: fix more mingw problems
43410         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43411         fd to itself.
43412         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43413         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43414         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43415         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43416         care of mingw bugs.
43417
43418 2009-07-21  Jim Meyering  <meyering@redhat.com>
43419
43420         vc-list-files: avoid failure when /bin/sh is dash
43421         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43422         On some Debian based systems, /bin/sh is a symlink to dash, and running
43423         this command would omit the "/" following each 'tests' prefix:
43424           dash -x build-aux/vc-list-files -C . tests
43425         That is because bash and dash work differently:
43426           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43427           bash ok
43428           dash odd
43429
43430 2009-07-21  Eric Blake  <ebb9@byu.net>
43431
43432         dup2-tests: test previous patch
43433         * modules/dup2-tests: New file.
43434         * tests/test-dup2.c: Likewise.
43435         * tests/test-open.c (main): Avoid unspecified behavior.
43436         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43437         test.
43438
43439         dup2: work around mingw and cygwin 1.5 bug
43440         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43442         * modules/unistd (Makefile.am): Substitute it.
43443         * lib/unistd.in.h (dup2): Declare the replacement.
43444         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43445         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43446         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43447         * modules/execute (Depends-on): Add dup2.
43448         * modules/fseterr (Depends-on): Likewise.
43449         * modules/pipe (Depends-on): Likewise.
43450         * modules/posix_spawn-internal (Depends-on): Likewise.
43451
43452 2009-07-21  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/.gitattributes: New file.
43455
43456 2009-07-20  Bruno Haible  <bruno@clisp.org>
43457
43458         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43459         (main): Use it.
43460
43461 2009-07-20  Eric Blake  <ebb9@byu.net>
43462
43463         test-pipe: make a bit more robust.
43464         * tests/test-pipe.c (myerr): Allow error messages regardless of
43465         what we do to stderr.
43466         (test_pipe): Rearrange to avoid deadlock.
43467         (child_main): Try a larger read, to ensure we avoided deadlock.
43468         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43469         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43470         if misused.
43471
43472 2009-07-19  Jim Meyering  <meyering@redhat.com>
43473
43474         fts: avoid false-positive cycle-detection
43475         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43476         for each new command line argument.
43477
43478 2009-07-19  Bruno Haible  <bruno@clisp.org>
43479
43480         Fix build error on mingw with the modules sys_select and unistd.
43481         * modules/acl-tests (Depends-on): Add close.
43482         * modules/binary-io-tests (Depends-on): Likewise.
43483         * modules/closein-tests (Depends-on): Likewise.
43484         * modules/flock-tests (Depends-on): Likewise.
43485         * modules/fsync-tests (Depends-on): Likewise.
43486         * modules/lseek-tests (Depends-on): Likewise.
43487         * modules/pipe-tests (Depends-on): Likewise.
43488         * modules/posix_spawn-tests (Depends-on): Likewise.
43489         * modules/posix_spawnp-tests (Depends-on): Likewise.
43490         * modules/stat-time-tests (Depends-on): Likewise.
43491         * modules/yesno-tests (Depends-on): Likewise.
43492
43493 2009-07-19  Bruno Haible  <bruno@clisp.org>
43494
43495         Unify conditionals.
43496         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43497         macros, not at the compiler macros.
43498         * lib/pipe.c: Likewise.
43499         * lib/execute.c: Likewise.
43500         * lib/spawni.c: Likewise.
43501
43502 2009-07-19  Bruno Haible  <bruno@clisp.org>
43503
43504         Fix handling of closed stdin/stdout/stderr on mingw.
43505         * lib/w32spawn.h: Include unistd.h.
43506         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43507         file descriptor with O_NOINHERIT flag.
43508         (fd_safer_noinherit): New function, based on fd-safer.c.
43509         (dup_safer_noinherit): New function, based on dup-safer.c.
43510         (undup_safer_noinherit): New function.
43511         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43512         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43513         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43514         instead of fd_safer.
43515         * tests/test-pipe.c: Include <windows.h>.
43516         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43517         result.
43518
43519         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43520         from main.
43521         (test_pipe): Pass an extra argument for disambiguation.
43522         (main): Invoke parent_main or child_main.
43523
43524         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43525         consistently.
43526
43527 2009-07-18  Eric Blake  <ebb9@byu.net>
43528
43529         test-pipe: fix mingw build
43530         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43531
43532 2009-07-18  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/pipe-tests (Makefile.am): Fix typo.
43535
43536 2009-07-18  Eric Blake  <ebb9@byu.net>
43537
43538         error: fix mingw build
43539         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43540         Reported by Bruno Haible.
43541
43542         error: avoid undefined use of stdout
43543         * lib/error.c (error, error_at_line): Check that fd 1 is open
43544         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43545         is handling faults and the close_stdout module wants to report the
43546         detection of closed stdout as an error.
43547
43548 2009-07-17  Eric Blake  <ebb9@byu.net>
43549
43550         pipe: be robust in face of closed fds
43551         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43552         should cause child to misbehave.
43553         * modules/pipe-tests: New module.
43554         * tests/test-pipe.c: New file.
43555         * tests/test-pipe.sh: New file.
43556         Reported by Akim Demaille.
43557
43558 2009-07-14  Bruno Haible  <bruno@clisp.org>
43559
43560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43561         Reported by anonymous kc.
43562
43563 2009-07-07  Jim Meyering  <meyering@redhat.com>
43564
43565         maint.mk: don't look for translatable strings in *.m4 or *.mk
43566         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43567         when searching for translatable strings.
43568
43569 2009-07-05  Jim Meyering  <meyering@redhat.com>
43570
43571         remove superfluous parentheses in STREQ definition
43572         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43573         * lib/getugroups.c (STREQ): Likewise.
43574         * lib/fnmatch.c (STREQ): Likewise.
43575         Spotted by Bruno Haible.
43576
43577 2009-07-04  Jim Meyering  <meyering@redhat.com>
43578
43579         argv-iter: new module
43580         * MODULES.html.sh: Add argv-iter.
43581         * lib/argv-iter.c, lib/argv-iter.h: New files.
43582         * modules/argv-iter: New file.
43583         * modules/argv-iter-tests: New file.
43584         * tests/test-argv-iter.c: Test it.
43585
43586 2009-07-04  Bruno Haible  <bruno@clisp.org>
43587
43588         Fix assertion.
43589         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43590         contains more exact copies of a given entry than file2, leave the extra
43591         copies unpaired rather than aborting.
43592         Reported by Eric Blake.
43593
43594 2009-07-02  Bruno Haible  <bruno@clisp.org>
43595
43596         Speedup git-merge-changelog for git cherry-pick.
43597         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43598         (entries_mapping_get): New function, extracted from compute_mapping.
43599         (entries_mapping_reverse_get): New function.
43600         (compute_mapping): Add a 'full' argument. Return the result in a
43601         'struct entries_mapping'.
43602         (main): Update. Access the mappings through entries_mapping_get.
43603         Reported by Eric Blake.
43604
43605 2009-07-02  Bruno Haible  <bruno@clisp.org>
43606
43607         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43608         best_i.
43609
43610 2009-07-02  Bruno Haible  <bruno@clisp.org>
43611
43612         Speed up approximate search for matching ChangeLog entries.
43613         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43614         argument. Call fstrcmp_bounded instead of fstrcmp.
43615         (compute_mapping, try_split_merged_entry, main): Update callers.
43616
43617 2009-07-02  Bruno Haible  <bruno@clisp.org>
43618
43619         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43620
43621 2009-06-30  Bruno Haible  <bruno@clisp.org>
43622
43623         Reduce the number of uc_is_cased calls.
43624         * lib/unicase.h (casing_suffix_context_t): Add
43625         'first_char_except_ignorable' field.
43626         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43627         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43628         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43629         Update initializer.
43630         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43631         case-ignorable characters.
43632         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43633         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43634         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43635         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43636         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43637
43638 2009-06-30  Bruno Haible  <bruno@clisp.org>
43639
43640         Tests for module 'unicase/ignorable'.
43641         * modules/unicase/ignorable-tests: New file.
43642         * tests/unicase/test-ignorable.c: New file, generated by
43643         gen-uni-tables.
43644
43645         Tests for module 'unicase/cased'.
43646         * modules/unicase/cased-tests: New file.
43647         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43648         * tests/unicase/test-predicate-part1.h: New file, derived from
43649         tests/unictype/test-predicate-part1.h.
43650         * tests/unicase/test-predicate-part2.h: New file, same as
43651         tests/unictype/test-predicate-part2.h.
43652
43653         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43654         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43655         (output_casing_properties): New function.
43656         (main): Call it.
43657         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43658         * lib/unicase/cased.c: Include unictype/bitmap.h.
43659         (uc_is_cased): Define through a bitmap lookup.
43660         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43661         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43662         (uc_is_case_ignorable): Define through a bitmap lookup.
43663         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43664         lib/unictype/bitmap.h.
43665         (Depends-on): Add inline. Clean up.
43666         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43667         lib/unictype/bitmap.h.
43668         (Depends-on): Add inline. Clean up.
43669         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43670         recognition.
43671         * tests/unicase/test-u16-tolower.c (main): Likewise.
43672         * tests/unicase/test-u32-tolower.c (main): Likewise.
43673
43674 2009-06-30  Bruno Haible  <bruno@clisp.org>
43675
43676         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43677         * lib/unicase/u16-casemap.c: Likewise.
43678         * lib/unicase/u32-casemap.c: Likewise.
43679
43680 2009-06-29  Bruno Haible  <bruno@clisp.org>
43681
43682         Define u32_casefold as a wrapper around u32_ct_casefold.
43683         * lib/unicase/u32-casefold.c: Update.
43684         * modules/unicase/u32-casefold (Depends-on): Add
43685         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43686         unicase/empty-suffix-context. Clean up.
43687
43688         Define u16_casefold as a wrapper around u16_ct_casefold.
43689         * lib/unicase/u16-casefold.c: Update.
43690         * modules/unicase/u16-casefold (Depends-on): Add
43691         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43692         unicase/empty-suffix-context. Clean up.
43693
43694         Define u8_casefold as a wrapper around u8_ct_casefold.
43695         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43696         * lib/unicase/u8-casefold.c: Update.
43697         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43698         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43699
43700         Define u32_totitle as a wrapper around u32_ct_totitle.
43701         * lib/unicase/u32-totitle.c: Update.
43702         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43703         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43704
43705         Define u16_totitle as a wrapper around u16_ct_totitle.
43706         * lib/unicase/u16-totitle.c: Update.
43707         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43708         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43709
43710         Define u8_totitle as a wrapper around u8_ct_totitle.
43711         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43712         functions.
43713         (FUNC): Delegate to U_CT_TOTITLE.
43714         * lib/unicase/u8-totitle.c: Update.
43715         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43716         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43717
43718         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43719         invocation.
43720         * modules/unicase/u32-tolower (Depends-on): Add
43721         unicase/empty-prefix-context, unicase/empty-suffix-context.
43722
43723         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43724         invocation.
43725         * modules/unicase/u16-tolower (Depends-on): Add
43726         unicase/empty-prefix-context, unicase/empty-suffix-context.
43727
43728         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43729         * modules/unicase/u8-tolower (Depends-on): Add
43730         unicase/empty-prefix-context, unicase/empty-suffix-context.
43731
43732         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43733         invocation.
43734         * modules/unicase/u32-toupper (Depends-on): Add
43735         unicase/empty-prefix-context, unicase/empty-suffix-context.
43736
43737         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43738         invocation.
43739         * modules/unicase/u16-toupper (Depends-on): Add
43740         unicase/empty-prefix-context, unicase/empty-suffix-context.
43741
43742         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43743         * modules/unicase/u8-toupper (Depends-on): Add
43744         unicase/empty-prefix-context, unicase/empty-suffix-context.
43745
43746         New module 'unicase/u32-ct-casefold'.
43747         * lib/unicase/u32-ct-casefold.c: New file.
43748         * modules/unicase/u32-ct-casefold: New file.
43749
43750         New module 'unicase/u16-ct-casefold'.
43751         * lib/unicase/u16-ct-casefold.c: New file.
43752         * modules/unicase/u16-ct-casefold: New file.
43753
43754         New module 'unicase/u8-ct-casefold'.
43755         * lib/unicase/u8-ct-casefold.c: New file.
43756         * lib/unicase/u-ct-casefold.h: New file, derived from
43757         lib/unicase/u-casefold.h.
43758         * modules/unicase/u8-ct-casefold: New file.
43759
43760         New module 'unicase/u32-ct-totitle'.
43761         * lib/unicase/u32-ct-totitle.c: New file.
43762         * modules/unicase/u32-ct-totitle: New file.
43763
43764         New module 'unicase/u16-ct-totitle'.
43765         * lib/unicase/u16-ct-totitle.c: New file.
43766         * modules/unicase/u16-ct-totitle: New file.
43767
43768         New module 'unicase/u8-ct-totitle'.
43769         * lib/unicase/u8-ct-totitle.c: New file.
43770         * lib/unicase/u-ct-totitle.h: New file, derived from
43771         lib/unicase/u-totitle.h.
43772         * modules/unicase/u8-ct-totitle: New file.
43773
43774         New module 'unicase/u32-ct-tolower'.
43775         * lib/unicase/u32-ct-tolower.c: New file.
43776         * modules/unicase/u32-ct-tolower: New file.
43777
43778         New module 'unicase/u16-ct-tolower'.
43779         * lib/unicase/u16-ct-tolower.c: New file.
43780         * modules/unicase/u16-ct-tolower: New file.
43781
43782         New module 'unicase/u8-ct-tolower'.
43783         * lib/unicase/u8-ct-tolower.c: New file.
43784         * modules/unicase/u8-ct-tolower: New file.
43785
43786         New module 'unicase/u32-ct-toupper'.
43787         * lib/unicase/u32-ct-toupper.c: New file.
43788         * modules/unicase/u32-ct-toupper: New file.
43789
43790         New module 'unicase/u16-ct-toupper'.
43791         * lib/unicase/u16-ct-toupper.c: New file.
43792         * modules/unicase/u16-ct-toupper: New file.
43793
43794         New module 'unicase/u8-ct-toupper'.
43795         * lib/unicase/u8-ct-toupper.c: New file.
43796         * modules/unicase/u8-ct-toupper: New file.
43797
43798         Add context arguments to u*_casemap functions.
43799         * lib/unicase/unicasemap.h: Include unicase.h.
43800         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43801         suffix_context arguments.
43802         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43803         functions.
43804         (FUNC): Add prefix_context and suffix_context arguments. Use
43805         uc_is_cased and uc_is_case_ignorable.
43806         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43807         * lib/unicase/u16-casemap.c: Likewise.
43808         * lib/unicase/u32-casemap.c: Likewise.
43809         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43810         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43811         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43812         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43813         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43814         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43815
43816         New module 'unicase/u32-suffix-context'.
43817         * lib/unicase/u32-suffix-context.c: New file.
43818         * modules/unicase/u32-suffix-context: New file.
43819
43820         New module 'unicase/u16-suffix-context'.
43821         * lib/unicase/u16-suffix-context.c: New file.
43822         * modules/unicase/u16-suffix-context: New file.
43823
43824         New module 'unicase/u8-suffix-context'.
43825         * lib/unicase/u8-suffix-context.c: New file.
43826         * lib/unicase/u-suffix-context.h: New file.
43827         * modules/unicase/u8-suffix-context: New file.
43828
43829         New module 'unicase/empty-suffix-context'.
43830         * lib/unicase/empty-suffix-context.c: New file.
43831         * modules/unicase/empty-suffix-context: New file.
43832
43833         New module 'unicase/u32-prefix-context'.
43834         * lib/unicase/u32-prefix-context.c: New file.
43835         * modules/unicase/u32-prefix-context: New file.
43836
43837         New module 'unicase/u16-prefix-context'.
43838         * lib/unicase/u16-prefix-context.c: New file.
43839         * modules/unicase/u16-prefix-context: New file.
43840
43841         New module 'unicase/u8-prefix-context'.
43842         * lib/unicase/u8-prefix-context.c: New file.
43843         * lib/unicase/u-prefix-context.h: New file.
43844         * lib/unicase/context.h: New file.
43845         * modules/unicase/u8-prefix-context: New file.
43846
43847         New module 'unicase/empty-prefix-context'.
43848         * lib/unicase/empty-prefix-context.c: New file.
43849         * modules/unicase/empty-prefix-context: New file.
43850
43851         New module 'unicase/ignorable'.
43852         * lib/unicase/ignorable.c: New file.
43853         * modules/unicase/ignorable: New file.
43854
43855         New module 'unicase/cased'.
43856         * lib/unicase/caseprop.h: New file.
43857         * lib/unicase/cased.c: New file.
43858         * modules/unicase/cased: New file.
43859
43860         New functions for case mapping of substrings.
43861         * lib/unicase.h (casing_prefix_context_t): New type.
43862         (unicase_empty_prefix_context): New variable.
43863         (u8_casing_prefix_context, u16_casing_prefix_context,
43864         u32_casing_prefix_context, u8_casing_prefixes_context,
43865         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43866         declarations.
43867         (casing_suffix_context_t): New type.
43868         (unicase_empty_suffix_context): New variable.
43869         (u8_casing_suffix_context, u16_casing_suffix_context,
43870         u32_casing_suffix_context, u8_casing_suffixes_context,
43871         u16_casing_suffixes_context, u32_casing_suffixes_context,
43872         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43873         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43874         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43875         declarations.
43876
43877 2009-06-28  Jim Meyering  <meyering@redhat.com>
43878
43879         boostrap: indent only with spaces
43880         * build-aux/bootstrap: Indent only with spaces, never TABs.
43881
43882         bootstrap: split long lines
43883         * build-aux/bootstrap: Keep line length < 80.
43884
43885         bootstrap: sync from coreutils
43886         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43887         just as autoreconf does.  Verify a list of prerequisite
43888         package-name,version-number pairs if defined in bootstrap.conf.
43889         Refer to README-prereq, if prerequisites are not satisfied.
43890
43891 2009-06-27  Eric Blake  <ebb9@byu.net>
43892
43893         tests: add test for bogus NULL definition
43894         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43895         * tests/test-stdlib.c: Likewise.
43896         * tests/test-string.c: Likewise.
43897         * tests/test-locale.c: Likewise.
43898         * tests/test-unistd.c: Likewise.
43899         * modules/stdio-tests (Depends-on): Add verify.
43900         * modules/stdlib-tests (Depends-on): Likewise.
43901         * modules/string-tests (Depends-on): Likewise.
43902         * modules/locale-tests (Depends-on): Likewise.
43903         * modules/unistd-tests (Depends-on): Likewise.
43904
43905 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43906
43907         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43908         self-explaining comment.
43909         * m4/selinux-selinux-h: Update serial.
43910         (gl_LIBSELINUX): New macro, adding a warning for missing development
43911         packages to code extracted from...
43912         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43913         Add warning for missing development packages here, too.
43914
43915 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43916
43917         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43918
43919 2009-06-25  Eric Blake  <ebb9@byu.net>
43920
43921         version-etc: fix regression
43922         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43923         gcc.
43924         (version_etc): Use it, to catch bugs with trailing NULL.
43925         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43926         (version_etc_va): Fix logic bug.
43927         * modules/version-etc-tests: Add test.
43928         * tests/test-version-etc.c: New file.
43929         * tests/test-version-etc.sh: Likewise.
43930
43931 2009-06-25  Sam Steingold  <sds@gnu.org>
43932
43933         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43934         mbtowc declaration.
43935
43936 2009-06-25  Eric Blake  <ebb9@byu.net>
43937
43938         fpurge: migrate into <stdio.h>
43939         * lib/fpurge.h: Delete...
43940         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43941         * lib/fpurge.c (fpurge): Change declaring header.
43942         * modules/fpurge (Files): Drop deleted file.
43943         (Depends-on): Add stdio.
43944         (configure.ac): Set witness.
43945         * modules/stdio (Makefile.am): Support fpurge macros.
43946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43947         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43948         * lib/fflush.c: Update client.
43949         * tests/test-fpurge.c: Likewise.
43950         * NEWS: Mention the change.
43951
43952 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43953
43954         * lib/argp-version-etc.c (program_authors): Add const
43955         qualifier.
43956         * lib/version-etc.c: Fix typos in the comments.
43957         * modules/argp-version-etc: Depends on version-etc.
43958
43959 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43960
43961         argp-version-etc: new module.
43962
43963         * lib/argp-version-etc.c: New file.
43964         * lib/argp-version-etc.h: New file.
43965         * modules/argp-version-etc: New file.
43966         * modules/argp-version-etc-tests: New file.
43967         * tests/test-argp-version-etc.c: New test.
43968         * tests/test-argp-version-etc-1.sh: New test.
43969
43970 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43971
43972         Provide additional interfaces and documentation for version-etc
43973         module.
43974
43975         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43976         interfaces.
43977         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43978         prototypes.
43979
43980 2009-06-24  Bruno Haible  <bruno@clisp.org>
43981
43982         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43983         HAVE_LIB${NAME} macro.
43984         Reported by Sam Steingold <sds@gnu.org>.
43985
43986 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43987
43988         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43989         needed.
43990
43991 2009-06-21  Bruno Haible  <bruno@clisp.org>
43992
43993         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43994         work.
43995         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43996         together with LIB${NAME}, LTLIB${NAME}.
43997         Reported by Sam Steingold <sds@gnu.org>.
43998
43999 2009-06-20  Jim Meyering  <meyering@redhat.com>
44000
44001         tests: make sc_require_test_exit_idiom more generic
44002         * top/maint.mk (Exit_witness_file): New overridable variable.
44003         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44004         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44005
44006 2009-06-19  Jim Meyering  <meyering@redhat.com>
44007
44008         hash: reverse order of src/dst parameters in an internal interface
44009         * lib/hash.c (transfer_entries): Reverse order of parameters to
44010         put DST before SRC.  Adjust callers.
44011
44012         tests: test-hash: avoid wholesale duplication
44013         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44014         Instead, use a loop and add a single conditional.
44015
44016         tests: test-hash: allow seed selection via a command line argument
44017         * tests/test-hash.c (get_seed): New function.
44018         (main): Use it.
44019
44020 2009-06-19  Eric Blake  <ebb9@byu.net>
44021
44022         hash: avoid memory leak on allocation failure
44023         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44024         failure.  Factor repeated algorithm...
44025         (transfer_entries): ...into new helper routine.
44026         (hash_delete): React to hash_rehash return value.
44027
44028         hash: reduce memory pressure in hash_rehash no-op case
44029         * lib/hash.c (next_prime): Avoid overflow.
44030         (hash_initialize): Factor bucket size computation...
44031         (compute_bucket_size): ...into new helper function.
44032         (hash_rehash): Use new function and open coding to reduce memory
44033         pressure, and avoid a memory leak in USE_OBSTACK code.
44034         Reported by Jim Meyering.
44035
44036 2009-06-18  Eric Blake  <ebb9@byu.net>
44037
44038         hash: make rotation more obvious
44039         * modules/hash (Depends-on): Add bitrotate and stdint.
44040         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44041         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44042         (SIZE_MAX): Rely on headers for definition.
44043         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44044         (raw_hasher): Use rotr_sz.
44045         Suggested by Jim Meyering.
44046
44047         hash: fix memory leak in last patch
44048         * lib/hash.c (hash_rehash): Avoid memory leak.
44049
44050         hash: avoid no-op rehashing
44051         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44052
44053         hash: provide default callback functions
44054         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44055         (hash_initialize): Use them as defaults.
44056         * tests/test-hash.c (main): Test this.
44057
44058         hash: minor optimization
44059         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44060         when possible.
44061         (hash_initialize): Document this promise.
44062         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44063         * tests/test-hash.c (hash_compare_strings): Test this.
44064
44065 2009-06-18  Bruno Haible  <bruno@clisp.org>
44066
44067         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44068         going to be replaced anyway.
44069
44070 2009-06-18  Bruno Haible  <bruno@clisp.org>
44071
44072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44073         in one place.
44074         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44075         be replaced anyway.
44076
44077 2009-06-18  Eric Blake  <ebb9@byu.net>
44078
44079         hash: check for resize before insertion
44080         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44081         threshold before insertion, so that a pathological hash_rehash
44082         that fills every bucket can still trigger another rehash.
44083
44084 2009-06-18  Jim Meyering  <meyering@redhat.com>
44085
44086         hash-tests: add a loop around the small tests
44087         * tests/test-hash.c (main): Repeat small tests with selected
44088         small initial table sizes.
44089
44090 2009-06-17  Eric Blake  <ebb9@byu.net>
44091
44092         hash: minor cleanups
44093         * lib/hash.h (hash_entry): Make opaque, by moving...
44094         * lib/hash.c (hash_entry): ...here.
44095         (hash_insert): Clarify restrictions on what can be inserted.
44096         (hash_get_next): Clarify when it is safe to remove an element
44097         during traversal.
44098         (check_tuning): Skip verification when tuning is known safe.
44099         (hash_initialize): Clarify restrictions on tuning.
44100
44101 2009-06-17  Jim Meyering  <jim@meyering.net>
44102         and Eric Blake  <ebb9@byu.net>
44103
44104         hash-tests: new module
44105         * modules/hash-tests: New file.
44106         * tests/test-hash.c: New file.
44107
44108 2009-06-17  Eric Blake  <ebb9@byu.net>
44109
44110         strstr-simple: document new module
44111         * MODULES.html.sh: Document new module.
44112
44113         strstr, strcasestr: replace on platforms with broken memchr
44114         * modules/strstr: Split into...
44115         * modules/strstr-simple: ...new module that does not care about
44116         performance, but does care about glibc bug.
44117         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44118         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44119         if platform memchr is broken, per Debian bug 521737.
44120         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44121         memchr.
44122         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44123         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44124         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44125         * modules/mountlist (Depends-on): Add strstr-simple.
44126         * modules/gen-uni-tables (Depends-on): Likewise.
44127         * modules/argz (Depends-on): Add strstr.
44128
44129 2009-06-17  Bruno Haible  <bruno@clisp.org>
44130
44131         * modules/posix_spawn-internal (Depends-on): Add errno.
44132
44133 2009-06-17  Bruno Haible  <bruno@clisp.org>
44134
44135         Define missing ESTALE on Interix 3.5.
44136         * lib/errno.in.h (ESTALE): Assign a value if missing.
44137         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44138         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44139         missing.
44140         * doc/posix-headers/errno.texi: Mention the Interix bug.
44141         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44142
44143 2009-06-15  Eric Blake  <ebb9@byu.net>
44144
44145         memchr, memchr2: add valgrind exception
44146         * lib/memchr.valgrind: New file.
44147         * lib/memchr2.valgrind: New file.
44148         * modules/memchr (Files): Distribute valgrind file.
44149         * modules/memchr2 (Files): Likewise.
44150
44151         docs: memchr is no longer obsolete
44152         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44153         * lib/string.in.h (memchr): Simplify logic.
44154
44155 2009-06-14  Jim Meyering  <meyering@redhat.com>
44156
44157         link-follow: fix the "checking..." message to not mention trailing slash
44158         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44159         never considered trailing slashes.
44160
44161 2009-06-14  Bruno Haible  <bruno@clisp.org>
44162
44163         * m4/memchr.m4: Mention also the bug on IA-64.
44164         * doc/posix-functions/memchr.texi: Likewise.
44165
44166 2009-06-12  Eric Blake  <ebb9@byu.net>
44167
44168         memchr: detect broken x86_64 and alpha implementations
44169         * modules/memchr-tests (Depends-on): Move mmap detection...
44170         * modules/memchr (Depends-on): ...here.
44171         (configure.ac): Set indicator.
44172         * lib/string.in.h (memchr): Declare replacement.
44173         * modules/string (Makefile.am): Trigger replacement.
44174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44175         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44176         bugs.
44177         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44178         * modules/getpagesize (License): Relax license.
44179
44180 2009-06-11  Bruno Haible  <bruno@clisp.org>
44181
44182         * lib/idpriv.h: Add more references.
44183
44184 2009-06-08  Bruno Haible  <bruno@clisp.org>
44185
44186         Tests for module 'idpriv-droptemp'.
44187         * modules/idpriv-droptemp-tests: New file.
44188         * tests/test-idpriv-droptemp.sh: New file.
44189         * tests/test-idpriv-droptemp.su.sh: New file.
44190         * tests/test-idpriv-droptemp.c: New file.
44191
44192         New module 'idpriv-droptemp'.
44193         * lib/idpriv-droptemp.c: New file.
44194         * modules/idpriv-droptemp: New file.
44195
44196 2009-06-08  Bruno Haible  <bruno@clisp.org>
44197
44198         Tests for module 'idpriv-drop'.
44199         * modules/idpriv-drop-tests: New file.
44200         * tests/test-idpriv-drop.sh: New file.
44201         * tests/test-idpriv-drop.su.sh: New file.
44202         * tests/test-idpriv-drop.c: New file.
44203
44204         New module 'idpriv-drop'.
44205         * lib/idpriv.h: New file.
44206         * lib-idpriv-drop.c: New file.
44207         * m4/idpriv.m4: New file.
44208         * modules/idpriv-drop: New file.
44209
44210 2009-06-08  Bruno Haible  <bruno@clisp.org>
44211
44212         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44213         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44214         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44215         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44216         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44217         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44218         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44219
44220 2009-06-08  Eric Blake  <ebb9@byu.net>
44221
44222         test-strstr: use memory fence, when possible
44223         * tests/test-strstr.c (main): Use memory fence, in order to be
44224         more likely to trigger Debian bug 521737.
44225         * modules/strstr-tests (Files): Pull in additional files.
44226
44227         memchr: no longer obsolete, for wider field testing
44228         * modules/memchr (Status, Notice): Delete, this module is no
44229         longer obsolete.
44230         * modules/vasnprintf (Depends-on): Add memchr.
44231
44232 2009-06-07  Jim Meyering  <meyering@redhat.com>
44233
44234         hash: declare some functions with the warn_unused_result attribute
44235         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44236
44237 2009-06-07  Bruno Haible  <bruno@clisp.org>
44238
44239         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44240         Reported by Eric Blake.
44241
44242 2009-06-06  Eric Blake  <ebb9@byu.net>
44243
44244         test-alignof: fix typo with long double
44245         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44246         compiler error.
44247
44248 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44249
44250         Escape non-texinfo { and }s.
44251         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44252         markup error.
44253
44254 2009-06-04  Jim Meyering  <meyering@redhat.com>
44255
44256         gitlog-to-changelog: don't infloop on an empty commit log
44257         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44258         Reported by Boris Petersen <transacid@centerim.org>.
44259
44260 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44261
44262         version-etc: extend for packagers
44263         Add three new configure options, intended for packagers:
44264           --with-packager="packager name"
44265           --with-packager-version="packager-specific version"
44266           --with-packager-bug-reports="packager bug reporting"
44267         An example with coreutils:
44268           $ ./configure \
44269             --with-packager=Gentoo \
44270             --with-packager-bug-report=http://bugs.gentoo.org/ \
44271             --with-packager-version="patchset 1.6"
44272           $ ./src/ls --version | head -n2
44273           ls (GNU coreutils) 7.1-dirty
44274           Packaged by Gentoo (patchset 1.6)
44275         Note that the bug reporting info via --help doesn't show up because
44276         coreutils uses its own custom emit_bug_reporting_address() implementation
44277         in src/system.h.  If it didn't, it'd look like:
44278           $ ./src/ls --help | tail -n4
44279           Report bugs to <bug-coreutils@gnu.org>.
44280           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44281           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44282           General help using GNU software: <http://www.gnu.org/gethelp/>.
44283         * lib/version-etc.c: Print new information, if provided.
44284         * m4/version-etc.m4: New file.
44285         * modules/version-etc (Files): Add m4/version-etc.m4.
44286         (configure.ac): Add gl_VERSION_ETC.
44287
44288 2009-05-31  Bruno Haible  <bruno@clisp.org>
44289
44290         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44291         and 'int64_t'.
44292         * modules/alignof-tests (Dependencies): Add stdint.
44293         Reported by Eric Blake.
44294
44295 2009-05-31  Bruno Haible  <bruno@clisp.org>
44296
44297         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44298         restriction due to compiler bugs.
44299         Reported by Eric Blake.
44300
44301 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44302             Bruno Haible  <bruno@clisp.org>
44303
44304         Fix test-alignof failure.
44305         * lib/alignof.h (alignof_slot): New macro.
44306         (alignof_type): New macro, with the same semantics as the previous
44307         'alignof'.
44308         (alignof): Alias to alignof_slot.
44309         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44310         check that the results are usable as constant expressions.
44311
44312 2009-05-31  Bruno Haible  <bruno@clisp.org>
44313
44314         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44315         * tests/test-memchr.c (main): Check that memchr does not read past the
44316         first occurrence of the byte.
44317         * tests/test-strstr.c (main): Update comment.
44318         Suggested by Eric Blake.
44319
44320 2009-05-30  Bruno Haible  <bruno@clisp.org>
44321
44322         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44323         detail how to use dumpbin.
44324         Reported by David Byron <dbyron@dbyron.com>.
44325
44326 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44327
44328         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44329
44330 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44331
44332         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44333
44334 2009-05-28  Bruno Haible  <bruno@clisp.org>
44335
44336         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44337         build-aux/ files.
44338
44339 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44340
44341         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44342
44343 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44344
44345         * gnulib-tool (sed_transform_main_lib_file)
44346         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44347         regexps.
44348
44349 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44350
44351         * tests/test-strstr.c: Add another self-test.
44352         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44353         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44354
44355 2009-05-23  Bruno Haible  <bruno@clisp.org>
44356
44357         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44358         change.
44359
44360 2009-05-21  Bruno Haible  <bruno@clisp.org>
44361
44362         Simplify use of mode_t varargs.
44363         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44364         uses 'mode_t' or 'int'.
44365         * lib/openat.c (openat): Likewise.
44366         * lib/open-safer.c (open_safer): Likewise.
44367         * m4/mode_t.m4: New file.
44368         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44369         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44370         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44371         * modules/open (Files): Add m4/mode_t.m4.
44372         * modules/openat (Files): Likewise.
44373         * modules/fcntl-safer (Files): Likewise.
44374         Suggested by Eric Blake.
44375
44376 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44377
44378         * doc/glibc-functions/fallocate.texi: New file.
44379         * doc/gnulib.texi: Include it.
44380
44381 2009-05-21  Eric Blake  <ebb9@byu.net>
44382             Bruno Haible  <bruno@clisp.org>
44383
44384         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44385         invocations.
44386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44387
44388 2009-05-21  Eric Blake  <ebb9@byu.net>
44389             Bruno Haible  <bruno@clisp.org>
44390
44391         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44392         include_next. Fix of 2008-11-20 commit.
44393         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44394         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44395         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44396         NEXT_MATH_H.
44397         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44398         instead of NEXT_MATH_H.
44399
44400 2009-05-21  Bruno Haible  <bruno@clisp.org>
44401
44402         Avoid redefinition warnings for SIZE_MAX.
44403         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44404         Reported by Simon Josefsson.
44405
44406 2009-05-21  Bruno Haible  <bruno@clisp.org>
44407
44408         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44409         AC_CACHE_VAL.
44410
44411 2009-05-20  Bruno Haible  <bruno@clisp.org>
44412
44413         Make zeroptr.h work on mingw.
44414         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44415         mprotect.
44416         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44417         * modules/memchr2-tests (configure.ac): Likewise.
44418         * modules/memcmp-tests (configure.ac): Likewise.
44419         * modules/memmem-tests (configure.ac): Likewise.
44420         * modules/memrchr-tests (configure.ac): Likewise.
44421         Reported by Simon Josefsson.
44422
44423 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44424
44425         * tests/test-glob.c: Include string.h for strcmp prototype.
44426
44427 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44428
44429         * modules/getdelim (Depends-on): Add explicit stdint, although it
44430         was implicitly already pulled in via realloc-posix.
44431         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44432
44433 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44434
44435         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44436         G. Christensen" <tgc@jupiterrise.com>.
44437         * m4/sys_socket_h.m4: Check for sa_family_t.
44438         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44439         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44440         * tests/test-sys_socket.c: Check that sa_family_t works.
44441
44442 2009-05-18  Eric Blake  <ebb9@byu.net>
44443
44444         maint.mk: allow gnulib_dir in VPATH build
44445         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44446
44447 2009-05-15  Jim Meyering  <meyering@redhat.com>
44448
44449         maint.mk: Give gnulib_dir a default definition.
44450         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44451         Thus, most packages no longer need to specify this variable in cfg.mk
44452
44453 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44454
44455         rename.m4: fix typos that would make non-mingw cross-configure fail
44456         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44457
44458 2009-05-13  Eric Blake  <ebb9@byu.net>
44459
44460         mmap-anon: avoid out-of-order autoconf expansion
44461         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44462         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44463         * modules/memchr-tests (Depends-on): Add extensions.
44464         * modules/memchr2-tests (Depends-on): Add extensions.
44465         * modules/memcmp-tests (Depends-on): Add extensions.
44466         * modules/memmem-tests (Depends-on): Add extensions.
44467         * modules/memrchr-tests (Depends-on): Add extensions.
44468
44469 2009-05-13  Bruno Haible  <bruno@clisp.org>
44470
44471         Make some tests ISO C 99 compliant.
44472         * tests/zerosize-ptr.h: New file.
44473         * tests/test-memchr.c: Include zerosize-ptr.h.
44474         (main): Use a zero-size object pointer instead of NULL.
44475         * tests/test-memchr2.c: Include zerosize-ptr.h.
44476         (main): Use a zero-size object pointer instead of NULL.
44477         * tests/test-memcmp.c: Include zerosize-ptr.h.
44478         (main): Use a zero-size object pointer instead of NULL.
44479         * tests/test-memmem.c: Include zerosize-ptr.h.
44480         (main): Use a zero-size object pointer instead of NULL.
44481         * tests/test-memrchr.c: Include zerosize-ptr.h.
44482         (main): Use a zero-size object pointer instead of NULL.
44483         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44484         m4/mmap-anon.m4.
44485         (Depends-on): Add getpagesize.
44486         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44487         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44488         m4/mmap-anon.m4.
44489         (Depends-on): Add getpagesize.
44490         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44491         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44492         m4/mmap-anon.m4.
44493         (Depends-on): Add getpagesize.
44494         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44495         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44496         m4/mmap-anon.m4.
44497         (Depends-on): Add getpagesize.
44498         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44499         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44500         m4/mmap-anon.m4.
44501         (Depends-on): Add getpagesize.
44502         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44503
44504 2009-05-12  Bruno Haible  <bruno@clisp.org>
44505
44506         Tests for module 'alignof'.
44507         * modules/alignof-tests: New file.
44508         * tests/test-alignof.c: New file.
44509
44510 2009-05-12  Bruno Haible  <bruno@clisp.org>
44511
44512         Fix alignof macro.
44513         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44514         vendor compilers that are always correct.
44515
44516 2009-05-12  Bruno Haible  <bruno@clisp.org>
44517
44518         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44520         not whether its fully works.
44521
44522 2009-05-12  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44525
44526 2009-05-12  Jim Meyering  <meyering@redhat.com>
44527
44528         * top/maint.mk: Adjust backslash alignment.
44529
44530 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44531
44532         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44533
44534 2009-05-11  Eric Blake  <ebb9@byu.net>
44535
44536         argp: avoid undefined behavior
44537         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44538         macros.
44539
44540 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44541
44542         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44543         user.name to prevent git commit from complaining.
44544
44545 2009-05-10  Bruno Haible  <bruno@clisp.org>
44546
44547         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44548         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44549         it rewrites every file name only once.
44550         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44551
44552 2009-05-08  Bruno Haible  <bruno@clisp.org>
44553
44554         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44555         instead of 'max'.
44556
44557 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44558
44559         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44560         sockaddr_storage test.
44561
44562 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44563
44564         * modules/sys_socket (Makefile.am): Substitute
44565         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44566         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44567         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44568         * tests/test-sys_socket.c: Check sockaddr_storage.
44569
44570 2009-05-08  Bruno Haible  <bruno@clisp.org>
44571
44572         New module 'alignof'.
44573         * lib/alignof.h: New file.
44574         * modules/alignof: New file.
44575
44576 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44577             Bruno Haible  <bruno@clisp.org>
44578
44579         Fix test-file-has-acl on FreeBSD.
44580         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44581         mask is implicitly added.
44582         * tests/test-file-has-acl.c: Include <signal.h>.
44583         (main): Terminate the test after 5 seconds.
44584         * modules/acl-tests (configure.ac): Check for alarm function.
44585
44586 2009-05-04  Bruno Haible  <bruno@clisp.org>
44587
44588         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44589         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44590         * modules/errno (configure.ac): Drop AC_REQUIRE.
44591         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44592         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44593
44594 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44595
44596         * modules/glob-tests: New module.
44597         * tests/test-glob.c: Add.
44598
44599 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44600
44601         * modules/fnmatch-tests: New module.
44602         * tests/test-fnmatch.c: Add.
44603
44604 2009-05-04  Eric Blake  <ebb9@byu.net>
44605
44606         maint: make the new no-submodule-changes rule VPATH-safe
44607         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44608
44609 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44610             Bruno Haible  <bruno@clisp.org>
44611
44612         acl: Fix infinite loop on FreeBSD.
44613         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44614         of return value from acl_get_entry.
44615         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44616         Likewise.
44617
44618 2009-05-03  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/acl-internal.h (acl_entries): Clarify return value.
44621         * lib/acl_entries.c (acl_entries): Likewise.
44622
44623 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44624
44625         Bug fix in acl module.
44626         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44627
44628 2009-05-03  Bruno Haible  <bruno@clisp.org>
44629
44630         Create gperf-generated file in the source dir, not in the build dir.
44631         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44632         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44633         * modules/unicase/locale-language (unicase/locale-languages.h):
44634         Likewise.
44635         * modules/unicase/special-casing (unicase/special-casing-table.h):
44636         Likewise.
44637         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44638         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44639         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44640         Reported by Ralf Wildenhues.
44641
44642 2009-05-03  Bruno Haible  <bruno@clisp.org>
44643
44644         * modules/fnmatch (Description, configure.ac): Taken from
44645         fnmatch-posix.
44646         * modules/fnmatch-posix: Turn into a symbolic reference to the
44647         'fnmatch' module, and deprecate.
44648         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44649
44650 2009-05-03  Bruno Haible  <bruno@clisp.org>
44651
44652         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44653         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44654         Reported by Ralf Wildenhues.
44655
44656 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44657
44658         * m4/fnmatch.m4: Fix fnmatch re-define.
44659
44660 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44661
44662         priv-set: new module and tests; adapt write-any-file
44663         * lib/priv-set.c: New file.
44664         * lib/priv-set.h: New file.
44665         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44666         * lib/write-any-file.c: Simplify by using priv-set module.
44667         * m4/priv-set.m4: New file.
44668         * modules/priv-set: New file.
44669         * modules/unlinkdir: Add dependency on priv-set module.
44670         * modules/write-any-file: Likewise.
44671
44672         Tests for module 'priv-set'.
44673         * modules/priv-set-tests: New file.
44674         * tests/test-priv-set.c: New file.
44675
44676 2009-05-03  Jim Meyering  <meyering@redhat.com>
44677             Bruno Haible  <bruno@clisp.org>
44678
44679         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44680         use the converted UTF-8 variant of the name instead.
44681
44682 2009-05-03  Jim Meyering  <meyering@redhat.com>
44683
44684         tests: tighten some getdate tests
44685         * tests/test-getdate.c (main): Tighten tests: require equality,
44686         not just greater than.  Set TZ envvar to UTC0.
44687
44688 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44689
44690         getdate: correctly interpret "next monday" when run on a Monday
44691         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44692         that e.g., "next tues" (when run on a tuesday) results in a date
44693         that is one week in the future, and not today's date.
44694         I.e., add a week when the wday is the same as the current one.
44695         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44696         and earlier by Martin Bernreuther and Jan Minář.
44697         * tests/test-getdate.c (main): Check that "next DAY" is always in
44698         the future and that "last DAY" is always in the past.
44699
44700 2009-05-02  Jim Meyering  <meyering@redhat.com>
44701
44702         build: ensure that a release build fails when a submodule is unclean
44703         * top/maint.mk (no-submodule-changes): New rule.
44704         (alpha beta major): Depend on it.
44705
44706 2009-05-02  Bruno Haible  <bruno@clisp.org>
44707
44708         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44709         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44710         shell variable gl_fnmatch_required to detect which variant is
44711         requested.
44712         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44713         gl_FUNC_FNMATCH_POSIX.
44714         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44715         exclude fnmatch-posix.
44716
44717 2009-05-02  Bruno Haible  <bruno@clisp.org>
44718
44719         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44720         * modules/mbsrtowcs (License): Change to LGPLv2+.
44721         * modules/strnlen1 (License): Likewise.
44722         Reported by Simon Josefsson.
44723
44724 2009-05-02  Bruno Haible  <bruno@clisp.org>
44725
44726         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44727         "cross".
44728         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44729         gnulib-tool was called with option --source-base=lib.
44730
44731 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44732
44733         Use automake *-local hooks without commands, for extensibility.
44734         * modules/localcharset (Makefile.am): Rename install-exec-local
44735         rule to install-exec-localcharset, and make it a prerequisite of
44736         install-exec-local.  Likewise, rename the uninstall-local rule to
44737         uninstall-localcharset, and make it a prerequisite of the former.
44738
44739 2009-05-01  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44742         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44743         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44744         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44745         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44746         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44747         m4/locale-zh.m4, m4/codeset.m4.
44748
44749         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44750         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44751         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44752         m4/locale-zh.m4.
44753
44754         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44755         REPLACE_WCRTOMB if mbstate_t must be replaced.
44756         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44757         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44758
44759 2009-05-01  Bruno Haible  <bruno@clisp.org>
44760
44761         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44762         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44763         dngettext, dcngettext, textdomain, bindtextdomain,
44764         bind_textdomain_codeset): Undefine before redefining.
44765
44766 2009-04-30  Bruno Haible  <bruno@clisp.org>
44767
44768         Fix bug introduced on 2009-04-25.
44769         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44770         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44771         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44772         is defined.
44773         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44774         is defined.
44775         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44776         is defined.
44777         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44778
44779 2009-04-28  Bruno Haible  <bruno@clisp.org>
44780
44781         Comment tweaks.
44782         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44783         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44784         * lib/unicase.h (u*_casexfrm): Likewise.
44785         Reported by Paolo Bonzini.
44786
44787 2009-04-28  Bruno Haible  <bruno@clisp.org>
44788
44789         Fix a compilation error.
44790         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44791         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44792         Reported by Jim Meyering.
44793
44794 2009-04-27  Bruno Haible  <bruno@clisp.org>
44795
44796         New module 'libunistring'.
44797         * modules/libunistring: New file.
44798         * m4/libunistring.m4: New file.
44799         * MODULES.html.sh (Unicode string functions): Add it.
44800
44801 2009-04-27  Eric Blake  <ebb9@byu.net>
44802
44803         maint.mk: allow package-specific header to provide <config.h>
44804         * top/maint.mk (sc_require_config_h): New variable.
44805         (sc_require_config_h, sc_require_config_h_first): Use it.
44806
44807 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44808
44809         * top/maint.mk (sc_avoid_if_before_free): Except
44810         useless-if-before-free script.
44811
44812 2009-04-27  Eric Blake  <ebb9@byu.net>
44813
44814         maintainer-makefile: depend on all required helper scripts
44815         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44816         useless-if-before-free.
44817         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44818         version, rather than assuming gnulib checkout is available.
44819         Reported by Simen Josefsson.
44820
44821 2009-04-26  Bruno Haible  <bruno@clisp.org>
44822
44823         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44824         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44825         "../" or "..".
44826
44827 2009-04-26  Bruno Haible  <bruno@clisp.org>
44828
44829         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44830         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44831         AC_LIB_HAVE_LINKFLAGS.
44832
44833 2009-04-26  Bruno Haible  <bruno@clisp.org>
44834
44835         Simplify calling convention of u*_conv_from_encoding.
44836         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44837         u32_conv_from_encoding): Expect a resultbuf argument and return the
44838         result directly as a pointer.
44839         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44840         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44841         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44842         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44843         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44844         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44845         Update.
44846         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44847         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44848         * lib/vasnprintf.c (VASNPRINTF): Update.
44849         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44850         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44851         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44852         * NEWS: Mention the change.
44853
44854 2009-04-26  Bruno Haible  <bruno@clisp.org>
44855
44856         Simplify calling convention of u*_conv_to_encoding.
44857         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44858         u32_conv_to_encoding): Expect a resultbuf argument and return the
44859         result directly as a pointer.
44860         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44861         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44862         freeing scaled_offsets if mem_iconveha failed.
44863         * lib/unicase/u-casexfrm.h (FUNC): Update.
44864         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44865         * lib/vasnprintf.c (VASNPRINTF): Update.
44866         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44867         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44868         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44869         * NEWS: Mention the change.
44870
44871 2009-04-26  Bruno Haible  <bruno@clisp.org>
44872
44873         Avoid test failures on AIX and OSF/1.
44874         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44875         malloc(0).
44876         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44877         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44878         Likewise.
44879         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44880         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44881         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44882         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44883         * doc/posix-functions/malloc.texi: Document the portability problem
44884         related to malloc(0).
44885
44886 2009-04-26  Bruno Haible  <bruno@clisp.org>
44887
44888         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44889         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44890         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44891
44892 2009-04-25  Bruno Haible  <bruno@clisp.org>
44893
44894         Avoid link error when creating a namespace clean library.
44895         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44896         as macro with arguments if already defined as an alias.
44897         * lib/signbitf.c (gl_signbitf): Don't undefine.
44898         * lib/signbitd.c (gl_signbitd): Don't undefine.
44899         * lib/signbitl.c (gl_signbitl): Don't undefine.
44900
44901 2009-04-25  Jim Meyering  <meyering@redhat.com>
44902
44903         vc-list-files: fix another quoting bug
44904         * build-aux/vc-list-files: Avoid sed backslash expansion
44905         of pathological directory names.
44906
44907 2009-04-25  Eric Blake  <ebb9@byu.net>
44908
44909         vc-list-files: fix shell quoting error
44910         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44911         timestamp.
44912
44913 2009-04-25  Jim Meyering  <meyering@redhat.com>
44914
44915         vc-list-files: restore lost functionality with subdir argument
44916         * build-aux/vc-list-files: When given a non-"." sub-directory
44917         argument, substitute the $dir/ prefix back onto each resulting name.
44918         Otherwise, coreutils' root_tests check would fail.
44919
44920 2009-04-24  Eric Blake  <ebb9@byu.net>
44921
44922         vc-list-files: ignore git symlinks
44923         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44924         than ls-files, to ignore git symlinks.
44925
44926         maint.mk: import improvements from m4
44927         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44928         (move_if_change): Delete unused macro.
44929         (news-date-check, vc-diff-check): Support VPATH builds.
44930         (announcement): Likewise.  Split --bootstrap-tools list...
44931         (boostrap-tools): ...into separate list, which can be overridden
44932         in cfg.mk.
44933         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44934         requiring dependency on useless-if-before-free module.
44935         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44936         Support VPATH builds.
44937
44938 2009-04-24  Jim Meyering  <meyering@redhat.com>
44939
44940         maint.mk: remove coreutils-specific rules and variables
44941         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44942         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44943         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44944
44945         maint.mk: remove obsolete rule
44946         * top/maint.mk (rel-check): Remove rule.
44947         (WGET, WGETFLAGS): Remove now-unused variables.
44948
44949 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44950
44951         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44952         consistency.
44953
44954         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44955         '$(PATH_SEPARATOR)' instead of ':'.
44956
44957 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44958
44959         * lib/getopt1.c (main): Use 'const' for static array.
44960
44961 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44962
44963         * top/maint.mk: Sync with coreutils.
44964         * NEWS: Explain incompatibilities.
44965
44966 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44967             Bruno Haible  <bruno@clisp.org>
44968
44969         Fix cross-compilation results.
44970         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44971         statement, as third argument of AC_TRY_RUN.
44972         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44973         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44974         Likewise.
44975         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44976         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44977         Likewise.
44978         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44979         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44980         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44981
44982 2009-04-20  Bruno Haible  <bruno@clisp.org>
44983
44984         Avoid test failure on mingw.
44985         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44986
44987 2009-04-20  Bruno Haible  <bruno@clisp.org>
44988
44989         Avoid compilation error on mingw.
44990         * modules/localename-tests (Depends-on): Add locale.
44991
44992 2009-04-19  Bruno Haible  <bruno@clisp.org>
44993
44994         Support for building a shared library on Windows platforms.
44995         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44996         (main): Test the presence of UNINORM_NFC here.
44997         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44998         (main): Test the presence of UNINORM_NFD here.
44999         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45000         (main): Test the presence of UNINORM_NFKC here.
45001         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45002         (main): Test the presence of UNINORM_NFKD here.
45003
45004 2009-04-19  Bruno Haible  <bruno@clisp.org>
45005
45006         Avoid a compiler warning.
45007         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45008         Change type of variable 'sequence'.
45009
45010 2009-04-19  Bruno Haible  <bruno@clisp.org>
45011
45012         * modules/configmake (Makefile.am): When the contents of configmake.h
45013         does not change, arrange to preserve its modification time.
45014
45015 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45016
45017         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45018         gettext domain.
45019
45020 2009-04-16  Jim Meyering  <meyering@redhat.com>
45021
45022         useless-if-before-free: improve conversion code
45023         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45024         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45025
45026 2009-04-14  Bruno Haible  <bruno@clisp.org>
45027
45028         * modules/fcntl (Depends-on): Add extensions.
45029         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45030
45031 2009-04-12  Ben Pfaff  <blp@gnu.org>
45032
45033         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45034         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45035
45036 2009-03-20  Ben Pfaff  <blp@gnu.org>
45037
45038         Make rename replace existing destinations on Windows.
45039         * m4/rename.m4: Add test for Mingw.
45040         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45041         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45042         * doc/posix-functions/rename.texi: Document.
45043
45044 2009-04-10  Bruno Haible  <bruno@clisp.org>
45045
45046         New include file "iconveh.h".
45047         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45048         * lib/striconveh.h: Include it.
45049         (enum iconv_ilseq_handler): Remove definition.
45050         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45051         striconveh.h.
45052         * lib/striconveha.c: Include striconveh.h.
45053         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45054         * modules/striconveh (Files): Add lib/iconveh.h.
45055         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45056         lib/striconveh.h.
45057
45058 2009-04-10  Bruno Haible  <bruno@clisp.org>
45059
45060         * lib/uniconv.h: Update comment.
45061
45062 2009-04-10  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45065         always.
45066         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45067         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45068         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45069         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45070         "unistring-notinline.h", so that the function gets defined always.
45071         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45072         * lib/unistr/u8-uctomb.c: Likewise.
45073         * lib/unistr/u16-mbtouc.c: Likewise.
45074         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45075         * lib/unistr/u16-uctomb.c: Likewise.
45076         * lib/unistr/u32-mbtouc.c: Likewise.
45077         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45078         * lib/unistr/u32-uctomb.c: Likewise.
45079
45080 2009-04-10  Bruno Haible  <bruno@clisp.org>
45081
45082         Mark 'utime' obsolete.
45083         * modules/utime (Status, Notice): New sections.
45084         Suggested by Jim Meyering.
45085
45086         Fix cross-compile guess for utime test.
45087         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45088         autoconf.
45089         * doc/posix-functions/utime.texi: Give more precisions.
45090         Reported by Jan <ipif@ymail.com>.
45091
45092 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45093
45094         filevercmp: correct today's change
45095         * lib/filevercmp.c: Also handle coreutils' test inputs.
45096         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45097
45098         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45099         for reporting it.
45100         * lib/filevercmp.c: Special handle for "", "." and "..".
45101         * tests/test-filevercmp.c: Enlarge the set suite.
45102
45103 2009-04-07  Jim Meyering  <meyering@redhat.com>
45104
45105         useless-if-before-free: show how to remove braced useless free, too
45106         * build-aux/useless-if-before-free: still only in a comment, though.
45107
45108 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45109
45110         maint.mk: import changes to syntax-check macros from coreutils
45111         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45112         Use them in the relevant macros.
45113
45114 2009-04-06  Bruno Haible  <bruno@clisp.org>
45115
45116         Fix unportable use of bit-fields.
45117         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45118         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45119         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45120
45121 2009-04-06  Bruno Haible  <bruno@clisp.org>
45122
45123         Avoid test failures on AIX and OSF/1.
45124         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45125         that malloc(0) = NULL.
45126         * tests/unicase/test-u8-tolower.c (check): Likewise.
45127         * tests/unicase/test-u8-totitle.c (check): Likewise.
45128         * tests/unicase/test-u8-toupper.c (check): Likewise.
45129         * tests/unicase/test-u16-casefold.c (check): Likewise.
45130         * tests/unicase/test-u16-tolower.c (check): Likewise.
45131         * tests/unicase/test-u16-totitle.c (check): Likewise.
45132         * tests/unicase/test-u16-toupper.c (check): Likewise.
45133         * tests/unicase/test-u32-casefold.c (check): Likewise.
45134         * tests/unicase/test-u32-tolower.c (check): Likewise.
45135         * tests/unicase/test-u32-totitle.c (check): Likewise.
45136         * tests/unicase/test-u32-toupper.c (check): Likewise.
45137         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45138         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45139         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45140         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45141         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45142         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45143         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45144         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45145         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45146         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45147         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45148         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45149
45150 2009-04-05  Bruno Haible  <bruno@clisp.org>
45151
45152         Work around an autoconf limitation.
45153         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45154         comment line if it would be longer than 3 KB.
45155
45156 2009-04-05  Bruno Haible  <bruno@clisp.org>
45157
45158         Avoid test failure with libiconv-1.13.
45159         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45160         of the expected test results.
45161
45162 2009-04-05  Bruno Haible  <bruno@clisp.org>
45163
45164         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45165         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45166         that it should be installed.
45167
45168 2009-04-05  Bruno Haible  <bruno@clisp.org>
45169
45170         * gnulib-tool: New option --copy-file.
45171         (func_usage): Document it.
45172         (func_dest_tmpfilename): Moved out of func_import.
45173         (func_add_file, func_update_file): New functions, extracted from
45174         func_import.
45175         (func_import): Update.
45176
45177 2009-04-05  Karl Berry  <karl@gnu.org>
45178
45179         * README: prominently mention gnulib-tool.
45180         Rearrange sections so getting the code is near the top.
45181
45182 2009-04-05  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/unicase.h: Mention u*_cmp2.
45185         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45186         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45187         * lib/unicase/ulc-casecmp.c: Likewise.
45188         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45189         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45190         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45191         unistr/u8-cmp.
45192         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45193         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45194         unistr/u16-cmp.
45195         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45196         unistr/u32-cmp.
45197
45198         * lib/uninorm.h: Mention u*_cmp2.
45199         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45200         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45201         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45202         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45203         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45204         unistr/u8-cmp.
45205         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45206         unistr/u16-cmp.
45207         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45208         unistr/u32-cmp.
45209
45210         New module 'unistr/u32-cmp2'.
45211         * lib/unistr/u32-cmp2.c: New file.
45212         * modules/unistr/u32-cmp2: New file.
45213
45214         New module 'unistr/u16-cmp2'.
45215         * lib/unistr/u16-cmp2.c: New file.
45216         * modules/unistr/u16-cmp2: New file.
45217
45218         New module 'unistr/u8-cmp2'.
45219         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45220         * lib/unistr/u8-cmp2.c: New file.
45221         * lib/unistr/u-cmp2.h: New file.
45222         * modules/unistr/u8-cmp2: New file.
45223
45224 2009-04-05  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/unictype.h (uc_property_is_valid): New macro.
45227         * tests/unictype/test-pr_byname.c (main): Use it.
45228
45229         * lib/unistr.h: Doc fixes.
45230         * lib/uniconv.h: Doc fixes.
45231         * lib/unictype.h: Doc fixes.
45232
45233 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45234
45235         Port coreutils 7.2 to Solaris 8.
45236
45237         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45238         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45239         for Solaris 8.  This is a bit of a hack, as it means it's the
45240         caller's responsibility to add -lnsl if needed, but most likely it
45241         won't be needed since only getaddrinfo uses this and getaddrinfo
45242         isn't needed on Solaris 8.
45243
45244         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45245         problem to Solaris 8 encountered with coreutils 7.2, which
45246         resulted in a message "fnmatch.c:292: warning: passing argument 4
45247         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45248         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45249
45250 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45251
45252         * m4/ld-version-script.m4: Add FIXME comment.
45253
45254 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45255
45256         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45257         SOVERSION variable.
45258
45259 2009-04-02  Bruno Haible  <bruno@clisp.org>
45260
45261         * Makefile (info, html, dvi, pdf): Combine the rules.
45262         Suggested by Jim Meyering.
45263
45264 2009-04-01  Bruno Haible  <bruno@clisp.org>
45265
45266         * Makefile (info, html, dvi, pdf): New targets.
45267         Reported by Reuben Thomas <rrt@sc3d.org>.
45268
45269 2009-04-01  Bruno Haible  <bruno@clisp.org>
45270
45271         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45272         can be put into PATH.
45273         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45274
45275 2009-04-01  Bruno Haible  <bruno@clisp.org>
45276
45277         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45278
45279 2009-04-01  Bruno Haible  <bruno@clisp.org>
45280
45281         Rename module 'visibility'.
45282         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45283         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45284         * doc/gnulib.texi: Update.
45285         * MODULES.html.sh (Misc): Update.
45286         * NEWS: Mention the change.
45287
45288 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45289
45290         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45291         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45292         Eric Blake <ebb9@byu.net> for review.
45293         * MODULES.html.sh: Add lib-msvc-compat.
45294         * doc/gnulib.texi: Link to new section.
45295         * m4/ld-output-def.m4: New file.
45296         * doc/ld-output-def.texi: New file.
45297
45298 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45299
45300         Rename ld-version-script to lib-symbol-versions.  Suggested by
45301         Bruno Haible <bruno@clisp.org>.
45302         * modules/ld-version-script: Renamed to lib-symbol-versions.
45303         * doc/ld-version-script.texi: Fix module name.
45304         * MODULES.html.sh: Add lib-symbol-versions.
45305
45306 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45307
45308         * modules/u64-tests: New file.
45309         * tests/test-u64.c: New file.
45310
45311 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45312
45313         * MODULES.html.sh: Mention u64.
45314         * modules/u64: New module.
45315         * modules/crypto/sha512: Depend on u64 module instead of providing
45316         u64.h.
45317
45318 2009-03-27  Eric Blake  <ebb9@byu.net>
45319
45320         test-strerror: make debugging EAI_SYSTEM easier
45321         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45322         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45323         failure was EAI_SYSTEM.
45324
45325 2009-03-25  Bruno Haible  <bruno@clisp.org>
45326
45327         Fix a problem with --enable-relocatable on Solaris 7.
45328         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45329         since 2008-02-24.
45330
45331 2009-03-25  Eric Blake  <ebb9@byu.net>
45332
45333         test-sockets: avoid gcc warning
45334         * tests/test-sockets.c (main): Silence compiler warning.
45335
45336 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45337
45338         New modules nproc, pthread, contributed by Glen Lenker.
45339
45340         * MODULES.html.sh: Add pthread, nproc.
45341         * lib/nproc.c: New file.
45342         * lib/nproc.h: New file.
45343         * lib/pthread.in.h: New file.
45344         * m4/pthread.m4: New file.
45345         * modules/nproc: New file.
45346         * modules/pthread: New file.
45347
45348 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45349
45350         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45351         New variable.
45352
45353 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45354
45355         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45356         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45357         * tests/test-filevercmp.c: Add tests for backup suffixes.
45358
45359 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45360
45361         * modules/stdlib (Depends-on): Add stdint, needed when defining
45362         struct random_data on, for example, HP-UX 10.20.  Reported by
45363         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45364
45365 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45366
45367         * lib/readline.c (readline): Call fflush on stdout after printing
45368         prompt.
45369
45370 2009-03-20  Bruno Haible  <bruno@clisp.org>
45371
45372         Remove dependency from 'close' module to -lws2_32 on native Windows.
45373         * lib/close-hook.h: New file.
45374         * lib/close-hook.c: New file.
45375         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45376         w32sock.h.
45377         (_gl_close_fd_maybe_socket): Remove function.
45378         (rpl_close): Invoke execute_all_close_hooks instead of
45379         _gl_close_fd_maybe_socket.
45380         * lib/sockets.c: Include close-hook.h, w32sock.h.
45381         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45382         (close_sockets_hook): New variable.
45383         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45384         (gl_sockets_cleanup): Unregister it.
45385         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45386         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45387         * modules/close-hook: New file.
45388         * modules/close (Files): Remove lib/w32sock.h.
45389         (Depends-on): Add close-hook.
45390         (Link): Remove section.
45391         * modules/sockets (Files): Add lib/w32sock.h.
45392         (Depends-on): Add close-hook.
45393         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45394         invocation.
45395         * NEWS: Mention that LIB_CLOSE is gone.
45396
45397 2009-03-23  Eric Blake  <ebb9@byu.net>
45398
45399         signal-tests: test previous patch
45400         * tests/test-signal.c: New file.
45401         * modules/signal-tests: Likewise.
45402
45403         signal.h: always support 'volatile sig_atomic_t'
45404         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45405         (gl_SIGNAL_H_DEFAULTS): Add a default.
45406         * modules/signal (Makefile.am): Substitute if needed.
45407         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45408         users can blindly add volatile.
45409         * doc/posix-headers/signal.texi (signal.h): Document it.
45410         Reported by Matthew Woehlke.
45411
45412 2009-03-23  Jim Meyering  <meyering@redhat.com>
45413
45414         pathmax: PATH_MAX: use pathconf only when available
45415         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45416         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45417         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45418         This avoids a link failure in a PSP cross-compilation environment
45419         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45420
45421         * lib/vasnprintf.c (divide): Fix typo in comment.
45422
45423 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45424
45425         * gnulib-tool (func_filter_filelist): Fix comment.
45426
45427 2009-03-20  Bruno Haible  <bruno@clisp.org>
45428
45429         Make sockets.h self-contained.
45430         * lib/sockets.c: Include sockets.h first.
45431         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45432
45433 2009-03-19  Eric Blake  <ebb9@byu.net>
45434
45435         doc: mention more functions added in cygwin 1.7.0
45436         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45437         addition.
45438         * doc/posix-functions/log2f.texi: Likewise.
45439
45440 2009-03-19  Jim Meyering  <meyering@redhat.com>
45441
45442         fsusage: avoid syntax error due to statement-before-declaration
45443         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45444         after all declarations.  Reported by Matthew Woehlke in
45445         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45446
45447 2009-03-18  Eric Blake  <ebb9@byu.net>
45448
45449         build-aux/compile: sync from automake
45450         * build-aux/compile: New file, from automake.
45451         * config/srclist.txt: Mention build-aux/compile.
45452
45453 2009-03-17  Bruno Haible  <bruno@clisp.org>
45454
45455         * lib/git-merge-changelog.c: Fix typo in comment.
45456         Reported by Reuben Thomas <rrt@sc3d.org>.
45457
45458 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45459
45460         * m4/regex.m4: update and improve help for
45461         --without-included-regex.
45462
45463 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45464
45465         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45466         failure on missing include files.
45467
45468 2009-03-17  Eric Blake  <ebb9@byu.net>
45469
45470         doc: mention more functions added in cygwin 1.7.0
45471         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45472         addition.
45473         * doc/posix-functions/fwscanf.texi: Likewise.
45474         * doc/posix-functions/swprintf.texi: Likewise.
45475         * doc/posix-functions/swscanf.texi: Likewise.
45476         * doc/posix-functions/vfwprintf.texi: Likewise.
45477         * doc/posix-functions/vfwscanf.texi: Likewise.
45478         * doc/posix-functions/vswprintf.texi: Likewise.
45479         * doc/posix-functions/vswscanf.texi: Likewise.
45480         * doc/posix-functions/vwprintf.texi: Likewise.
45481         * doc/posix-functions/vwscanf.texi: Likewise.
45482         * doc/posix-functions/wcscasecmp.texi: Likewise.
45483         * doc/posix-functions/wcsdup.texi: Likewise.
45484         * doc/posix-functions/wcsftime.texi: Likewise.
45485         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45486         * doc/posix-functions/wprintf.texi: Likewise.
45487         * doc/posix-functions/wscanf.texi: Likewise.
45488         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45489
45490 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45491
45492         maint.mk: really add $(AM_MAKEFLAGS)
45493         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45494         was inadvertently omitted in the last commit.
45495         Spotted by Bruno Haible.
45496
45497         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45498         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45499         $(AM_MAKEFLAGS)' rather than plain `make'.
45500
45501         gnulib-tool: execute $MAKE not make
45502         * gnulib-tool: Default $MAKE to 'make'.
45503         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45504         than make.  Initialize $MAKE in the do-autobuild script.
45505
45506         gnulib-tool: use $MAKE not make in generated files
45507         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45508         make, in generated files.  Initialize $MAKE in the do-autobuild
45509         script.
45510
45511         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45512
45513         GNUmakefile: disable parallelism only for multiple, recursive targets
45514         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45515         additions in the Makefile.
45516         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45517         by Automake.
45518         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45519         are listed on the command line and at least one of them is
45520         listed in $(ALL_RECURSIVE_TARGETS).
45521
45522 2009-03-14  Bruno Haible  <bruno@clisp.org>
45523
45524         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45525         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45526         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45527         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45528         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45529         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45530         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45531         unistr/u8-uctomb.
45532         * modules/unistr/u8-strchr (Depends-on): Likewise.
45533         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45534         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45535         unistr/u16-uctomb.
45536         * modules/unistr/u16-strchr (Depends-on): Likewise.
45537         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45538
45539 2009-03-12  Bruno Haible  <bruno@clisp.org>
45540
45541         Work around select() bug on Interix 3.5.
45542         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45543         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45544         * m4/select.m4: New file.
45545         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45546         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45547         * modules/select (Files): Add m4/select.m4.
45548         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45549         * modules/nanosleep (Depends-on): Add select.
45550         * modules/poll (Depends-on): Likewise.
45551         * doc/posix-functions/select.texi: Mention the Interix bug.
45552         Reported by Markus Duft <mduft@gentoo.org>.
45553
45554         * lib/select.c: Renamed from lib/winsock-select.c.
45555         * modules/select (Files): Add lib/select.c, remove
45556         lib/winsock-select.c.
45557         (configure.ac): Update.
45558
45559 2009-03-12  Jim Meyering  <meyering@redhat.com>
45560
45561         avoid gcc warnings about unused macro definitions
45562         * lib/readtokens.c (STREQ): Remove unused definition.
45563         * lib/xmalloc.c (SIZE_MAX): Likewise.
45564         * lib/openat-die.c (N_): Likewise.
45565         * lib/mountlist.c (SIZE_MAX): Remove definition.
45566         Instead, include <stdint.h>.
45567         * lib/readutmp.c: Likewise.
45568         * modules/readutmp (Depends-on): Add stdint.
45569         * modules/mountlist (Depends-on): Add stdint.
45570         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45571
45572 2009-03-10  Bruno Haible  <bruno@clisp.org>
45573
45574         Tests for module 'mbmemcasecoll'.
45575         * modules/mbmemcasecoll-tests: New file.
45576         * tests/test-mbmemcasecoll1.sh: New file.
45577         * tests/test-mbmemcasecoll2.sh: New file.
45578         * tests/test-mbmemcasecoll3.sh: New file.
45579         * tests/test-mbmemcasecoll.c: New file.
45580
45581         New module 'mbmemcasecoll'.
45582         * lib/mbmemcasecoll.h: New file.
45583         * lib/mbmemcasecoll.c: New file.
45584         * modules/mbmemcasecoll: New file.
45585
45586         * tests/test-mbmemcasecmp.h: New file, extracted from
45587         tests/test-mbmemcasecmp.c.
45588         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45589         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45590         (main): Update.
45591         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45592
45593 2009-03-09  Bruno Haible  <bruno@clisp.org>
45594
45595         Tests for module 'mbmemcasecmp'.
45596         * modules/mbmemcasecmp-tests: New file.
45597         * tests/test-mbmemcasecmp1.sh: New file.
45598         * tests/test-mbmemcasecmp2.sh: New file.
45599         * tests/test-mbmemcasecmp3.sh: New file.
45600         * tests/test-mbmemcasecmp.c: New file.
45601
45602         New module 'mbmemcasecmp'.
45603         * lib/mbmemcasecmp.h: New file.
45604         * lib/mbmemcasecmp.c: New file.
45605         * modules/mbmemcasecmp: New file.
45606
45607 2009-03-09  Bruno Haible  <bruno@clisp.org>
45608
45609         Tests for module 'unicase/ulc-casecoll'.
45610         * modules/unicase/ulc-casecoll-tests: New file.
45611         * tests/unicase/test-ulc-casecoll1.sh: New file.
45612         * tests/unicase/test-ulc-casecoll2.sh: New file.
45613         * tests/unicase/test-ulc-casecoll.c: New file.
45614
45615         New module 'unicase/ulc-casecoll'.
45616         * lib/unicase.h (ulc_casecoll): New declaration.
45617         * lib/unicase/ulc-casecoll.c: New file.
45618         * modules/unicase/ulc-casecoll: New file.
45619
45620         New module 'unicase/ulc-casexfrm'.
45621         * lib/unicase.h (ulc_casexfrm): New declaration.
45622         * lib/unicase/ulc-casexfrm.c: New file.
45623         * modules/unicase/ulc-casexfrm: New file.
45624
45625 2009-03-09  Bruno Haible  <bruno@clisp.org>
45626
45627         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45628         invocations.
45629
45630         * m4/mbscasecmp.m4: Remove file.
45631         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45632         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45633
45634         * m4/mbscasestr.m4: Remove file.
45635         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45636         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45637
45638         * m4/mbschr.m4: Remove file.
45639         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45640         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45641
45642         * m4/mbscspn.m4: Remove file.
45643         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45644         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45645
45646         * m4/mbslen.m4: Remove file.
45647         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45648         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45649
45650         * m4/mbsncasecmp.m4: Remove file.
45651         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45652         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45653
45654         * m4/mbsnlen.m4: Remove file.
45655         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45656         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45657
45658         * m4/mbspbrk.m4: Remove file.
45659         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45660         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45661
45662         * m4/mbspcasecmp.m4: Remove file.
45663         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45664         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45665
45666         * m4/mbsrchr.m4: Remove file.
45667         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45668         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45669
45670         * m4/mbssep.m4: Remove file.
45671         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45672         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45673
45674         * m4/mbsspn.m4: Remove file.
45675         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45676         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45677
45678         * m4/mbsstr.m4: Remove file.
45679         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45680         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45681
45682         * m4/mbstok_r.m4: Remove file.
45683         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45684         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45685
45686         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45687
45688         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45689         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45690
45691         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45692
45693 2009-03-08  Bruno Haible  <bruno@clisp.org>
45694
45695         Tests for module 'unicase/ulc-casecmp'.
45696         * modules/unicase/ulc-casecmp-tests: New file.
45697         * tests/unicase/test-ulc-casecmp1.sh: New file.
45698         * tests/unicase/test-ulc-casecmp2.sh: New file.
45699         * tests/unicase/test-ulc-casecmp.c: New file.
45700
45701         New module 'unicase/ulc-casecmp'.
45702         * lib/unicase.h (ulc_casecmp): New declaration.
45703         * lib/unicase/ulc-casecmp.c: New file.
45704         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45705         'const SRC_UNIT *'.
45706         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45707         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45708         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45709         * modules/unicase/ulc-casecmp: New file.
45710
45711         Tests for module 'unicase/u32-is-cased'.
45712         * modules/unicase/u32-is-cased-tests: New file.
45713         * tests/unicase/test-u32-is-cased.c: New file.
45714
45715         Tests for module 'unicase/u16-is-cased'.
45716         * modules/unicase/u16-is-cased-tests: New file.
45717         * tests/unicase/test-u16-is-cased.c: New file.
45718
45719         Tests for module 'unicase/u8-is-cased'.
45720         * modules/unicase/u8-is-cased-tests: New file.
45721         * tests/unicase/test-u8-is-cased.c: New file.
45722         * tests/unicase/test-is-cased.h: New file.
45723
45724         New module 'unicase/u32-is-cased'.
45725         * lib/unicase/u32-is-cased.c: New file.
45726         * modules/unicase/u32-is-cased: New file.
45727
45728         New module 'unicase/u16-is-cased'.
45729         * lib/unicase/u16-is-cased.c: New file.
45730         * modules/unicase/u16-is-cased: New file.
45731
45732         New module 'unicase/u8-is-cased'.
45733         * lib/unicase/u8-is-cased.c: New file.
45734         * lib/unicase/u-is-cased.h: New file.
45735         * modules/unicase/u8-is-cased: New file.
45736
45737         Tests for module 'unicase/u32-is-casefolded'.
45738         * modules/unicase/u32-is-casefolded-tests: New file.
45739         * tests/unicase/test-u32-is-casefolded.c: New file.
45740
45741         Tests for module 'unicase/u16-is-casefolded'.
45742         * modules/unicase/u16-is-casefolded-tests: New file.
45743         * tests/unicase/test-u16-is-casefolded.c: New file.
45744
45745         Tests for module 'unicase/u8-is-casefolded'.
45746         * modules/unicase/u8-is-casefolded-tests: New file.
45747         * tests/unicase/test-u8-is-casefolded.c: New file.
45748         * tests/unicase/test-is-casefolded.h: New file.
45749
45750         New module 'unicase/u32-is-casefolded'.
45751         * lib/unicase/u32-is-casefolded.c: New file.
45752         * modules/unicase/u32-is-casefolded: New file.
45753
45754         New module 'unicase/u16-is-casefolded'.
45755         * lib/unicase/u16-is-casefolded.c: New file.
45756         * modules/unicase/u16-is-casefolded: New file.
45757
45758         New module 'unicase/u8-is-casefolded'.
45759         * lib/unicase/u8-is-casefolded.c: New file.
45760         * modules/unicase/u8-is-casefolded: New file.
45761
45762         Tests for module 'unicase/u32-is-titlecase'.
45763         * modules/unicase/u32-is-titlecase-tests: New file.
45764         * tests/unicase/test-u32-is-titlecase.c: New file.
45765
45766         Tests for module 'unicase/u16-is-titlecase'.
45767         * modules/unicase/u16-is-titlecase-tests: New file.
45768         * tests/unicase/test-u16-is-titlecase.c: New file.
45769
45770         Tests for module 'unicase/u8-is-titlecase'.
45771         * modules/unicase/u8-is-titlecase-tests: New file.
45772         * tests/unicase/test-u8-is-titlecase.c: New file.
45773         * tests/unicase/test-is-titlecase.h: New file.
45774
45775         New module 'unicase/u32-is-titlecase'.
45776         * lib/unicase/u32-is-titlecase.c: New file.
45777         * modules/unicase/u32-is-titlecase: New file.
45778
45779         New module 'unicase/u16-is-titlecase'.
45780         * lib/unicase/u16-is-titlecase.c: New file.
45781         * modules/unicase/u16-is-titlecase: New file.
45782
45783         New module 'unicase/u8-is-titlecase'.
45784         * lib/unicase/u8-is-titlecase.c: New file.
45785         * modules/unicase/u8-is-titlecase: New file.
45786
45787         Tests for module 'unicase/u32-is-lowercase'.
45788         * modules/unicase/u32-is-lowercase-tests: New file.
45789         * tests/unicase/test-u32-is-lowercase.c: New file.
45790
45791         Tests for module 'unicase/u16-is-lowercase'.
45792         * modules/unicase/u16-is-lowercase-tests: New file.
45793         * tests/unicase/test-u16-is-lowercase.c: New file.
45794
45795         Tests for module 'unicase/u8-is-lowercase'.
45796         * modules/unicase/u8-is-lowercase-tests: New file.
45797         * tests/unicase/test-u8-is-lowercase.c: New file.
45798         * tests/unicase/test-is-lowercase.h: New file.
45799
45800         New module 'unicase/u32-is-lowercase'.
45801         * lib/unicase/u32-is-lowercase.c: New file.
45802         * modules/unicase/u32-is-lowercase: New file.
45803
45804         New module 'unicase/u16-is-lowercase'.
45805         * lib/unicase/u16-is-lowercase.c: New file.
45806         * modules/unicase/u16-is-lowercase: New file.
45807
45808         New module 'unicase/u8-is-lowercase'.
45809         * lib/unicase/u8-is-lowercase.c: New file.
45810         * modules/unicase/u8-is-lowercase: New file.
45811
45812         Tests for module 'unicase/u32-is-uppercase'.
45813         * modules/unicase/u32-is-uppercase-tests: New file.
45814         * tests/unicase/test-u32-is-uppercase.c: New file.
45815
45816         Tests for module 'unicase/u16-is-uppercase'.
45817         * modules/unicase/u16-is-uppercase-tests: New file.
45818         * tests/unicase/test-u16-is-uppercase.c: New file.
45819
45820         Tests for module 'unicase/u8-is-uppercase'.
45821         * modules/unicase/u8-is-uppercase-tests: New file.
45822         * tests/unicase/test-u8-is-uppercase.c: New file.
45823         * tests/unicase/test-is-uppercase.h: New file.
45824
45825         New module 'unicase/u32-is-uppercase'.
45826         * lib/unicase/u32-is-uppercase.c: New file.
45827         * modules/unicase/u32-is-uppercase: New file.
45828
45829         New module 'unicase/u16-is-uppercase'.
45830         * lib/unicase/u16-is-uppercase.c: New file.
45831         * modules/unicase/u16-is-uppercase: New file.
45832
45833         New module 'unicase/u8-is-uppercase'.
45834         * lib/unicase/u8-is-uppercase.c: New file.
45835         * modules/unicase/u8-is-uppercase: New file.
45836
45837         New module 'unicase/u32-is-invariant'.
45838         * lib/unicase/u32-is-invariant.c: New file.
45839         * modules/unicase/u32-is-invariant: New file.
45840
45841         New module 'unicase/u16-is-invariant'.
45842         * lib/unicase/u16-is-invariant.c: New file.
45843         * modules/unicase/u16-is-invariant: New file.
45844
45845         New module 'unicase/u8-is-invariant'.
45846         * lib/unicase/u8-is-invariant.c: New file.
45847         * lib/unicase/invariant.h: New file.
45848         * lib/unicase/u-is-invariant.h: New file.
45849         * modules/unicase/u8-is-invariant: New file.
45850
45851         Tests for module 'unicase/u32-casecoll'.
45852         * modules/unicase/u32-casecoll-tests: New file.
45853         * tests/unicase/test-u32-casecoll.c: New file.
45854
45855         Tests for module 'unicase/u16-casecoll'.
45856         * modules/unicase/u16-casecoll-tests: New file.
45857         * tests/unicase/test-u16-casecoll.c: New file.
45858
45859         Tests for module 'unicase/u8-casecoll'.
45860         * modules/unicase/u8-casecoll-tests: New file.
45861         * tests/unicase/test-u8-casecoll.c: New file.
45862
45863         New module 'unicase/u32-casecoll'.
45864         * lib/unicase/u32-casecoll.c: New file.
45865         * modules/unicase/u32-casecoll: New file.
45866
45867         New module 'unicase/u16-casecoll'.
45868         * lib/unicase/u16-casecoll.c: New file.
45869         * modules/unicase/u16-casecoll: New file.
45870
45871         New module 'unicase/u8-casecoll'.
45872         * lib/unicase/u8-casecoll.c: New file.
45873         * lib/unicase/u-casecoll.h: New file.
45874         * modules/unicase/u8-casecoll: New file.
45875
45876         New module 'unicase/u32-casexfrm'.
45877         * lib/unicase/u32-casexfrm.c: New file.
45878         * modules/unicase/u32-casexfrm: New file.
45879
45880         New module 'unicase/u16-casexfrm'.
45881         * lib/unicase/u16-casexfrm.c: New file.
45882         * modules/unicase/u16-casexfrm: New file.
45883
45884         New module 'unicase/u8-casexfrm'.
45885         * lib/unicase/u8-casexfrm.c: New file.
45886         * lib/unicase/u-casexfrm.h: New file.
45887         * modules/unicase/u8-casexfrm: New file.
45888
45889         Tests for module 'unicase/u32-casecmp'.
45890         * modules/unicase/u32-casecmp-tests: New file.
45891         * tests/unicase/test-u32-casecmp.c: New file.
45892
45893         Tests for module 'unicase/u16-casecmp'.
45894         * modules/unicase/u16-casecmp-tests: New file.
45895         * tests/unicase/test-u16-casecmp.c: New file.
45896
45897         Tests for module 'unicase/u8-casecmp'.
45898         * modules/unicase/u8-casecmp-tests: New file.
45899         * tests/unicase/test-u8-casecmp.c: New file.
45900         * tests/unicase/test-casecmp.h: New file.
45901
45902         New module 'unicase/u32-casecmp'.
45903         * lib/unicase/u32-casecmp.c: New file.
45904         * modules/unicase/u32-casecmp: New file.
45905
45906         New module 'unicase/u16-casecmp'.
45907         * lib/unicase/u16-casecmp.c: New file.
45908         * modules/unicase/u16-casecmp: New file.
45909
45910         New module 'unicase/u8-casecmp'.
45911         * lib/unicase/u8-casecmp.c: New file.
45912         * lib/unicase/u-casecmp.h: New file.
45913         * modules/unicase/u8-casecmp: New file.
45914
45915         Tests for module 'unicase/u32-casefold'.
45916         * modules/unicase/u32-casefold-tests: New file.
45917         * tests/unicase/test-u32-casefold.c: New file.
45918
45919         Tests for module 'unicase/u16-casefold'.
45920         * modules/unicase/u16-casefold-tests: New file.
45921         * tests/unicase/test-u16-casefold.c: New file.
45922
45923         Tests for module 'unicase/u8-casefold'.
45924         * modules/unicase/u8-casefold-tests: New file.
45925         * tests/unicase/test-u8-casefold.c: New file.
45926
45927         New module 'unicase/u32-casefold'.
45928         * lib/unicase/u32-casefold.c: New file.
45929         * modules/unicase/u32-casefold: New file.
45930
45931         New module 'unicase/u16-casefold'.
45932         * lib/unicase/u16-casefold.c: New file.
45933         * modules/unicase/u16-casefold: New file.
45934
45935         New module 'unicase/u8-casefold'.
45936         * lib/unicase/u8-casefold.c: New file.
45937         * lib/unicase/u-casefold.h: New file.
45938         * modules/unicase/u8-casefold: New file.
45939
45940         New module 'unicase/tocasefold'.
45941         * lib/unicase/casefold.h: New file.
45942         * lib/unicase/tocasefold.c: New file.
45943         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45944         * modules/unicase/tocasefold: New file.
45945
45946         Tests for module 'unicase/u32-totitle'.
45947         * modules/unicase/u32-totitle-tests: New file.
45948         * tests/unicase/test-u32-totitle.c: New file.
45949
45950         Tests for module 'unicase/u16-totitle'.
45951         * modules/unicase/u16-totitle-tests: New file.
45952         * tests/unicase/test-u16-totitle.c: New file.
45953
45954         Tests for module 'unicase/u8-totitle'.
45955         * modules/unicase/u8-totitle-tests: New file.
45956         * tests/unicase/test-u8-totitle.c: New file.
45957
45958         New module 'unicase/u32-totitle'.
45959         * lib/unicase/u32-totitle.c: New file.
45960         * modules/unicase/u32-totitle: New file.
45961
45962         New module 'unicase/u16-totitle'.
45963         * lib/unicase/u16-totitle.c: New file.
45964         * modules/unicase/u16-totitle: New file.
45965
45966         New module 'unicase/u8-totitle'.
45967         * lib/unicase/u8-totitle.c: New file.
45968         * lib/unicase/u-totitle.h: New file.
45969         * modules/unicase/u8-totitle: New file.
45970
45971         Tests for module 'unicase/u32-tolower'.
45972         * modules/unicase/u32-tolower-tests: New file.
45973         * tests/unicase/test-u32-tolower.c: New file.
45974
45975         Tests for module 'unicase/u16-tolower'.
45976         * modules/unicase/u16-tolower-tests: New file.
45977         * tests/unicase/test-u16-tolower.c: New file.
45978
45979         Tests for module 'unicase/u8-tolower'.
45980         * modules/unicase/u8-tolower-tests: New file.
45981         * tests/unicase/test-u8-tolower.c: New file.
45982
45983         New module 'unicase/u32-tolower'.
45984         * lib/unicase/u32-tolower.c: New file.
45985         * modules/unicase/u32-tolower: New file.
45986
45987         New module 'unicase/u16-tolower'.
45988         * lib/unicase/u16-tolower.c: New file.
45989         * modules/unicase/u16-tolower: New file.
45990
45991         New module 'unicase/u8-tolower'.
45992         * lib/unicase/u8-tolower.c: New file.
45993         * modules/unicase/u8-tolower: New file.
45994
45995         Tests for module 'unicase/u32-toupper'.
45996         * modules/unicase/u32-toupper-tests: New file.
45997         * tests/unicase/test-u32-toupper.c: New file.
45998
45999         Tests for module 'unicase/u16-toupper'.
46000         * modules/unicase/u16-toupper-tests: New file.
46001         * tests/unicase/test-u16-toupper.c: New file.
46002
46003         Tests for module 'unicase/u8-toupper'.
46004         * modules/unicase/u8-toupper-tests: New file.
46005         * tests/unicase/test-u8-toupper.c: New file.
46006
46007         New module 'unicase/u32-toupper'.
46008         * lib/unicase/u32-toupper.c: New file.
46009         * modules/unicase/u32-toupper: New file.
46010
46011         New module 'unicase/u16-toupper'.
46012         * lib/unicase/u16-toupper.c: New file.
46013         * modules/unicase/u16-toupper: New file.
46014
46015         New module 'unicase/u8-toupper'.
46016         * lib/unicase/u8-toupper.c: New file.
46017         * modules/unicase/u8-toupper: New file.
46018
46019         New module 'unicase/u32-casemap'.
46020         * lib/unicase/u32-casemap.c: New file.
46021         * modules/unicase/u32-casemap: New file.
46022
46023         New module 'unicase/u16-casemap'.
46024         * lib/unicase/u16-casemap.c: New file.
46025         * modules/unicase/u16-casemap: New file.
46026
46027         New module 'unicase/u8-casemap'.
46028         * lib/unicase/unicasemap.h: New file.
46029         * lib/unicase/u8-casemap.c: New file.
46030         * lib/unicase/u-casemap.h: New file.
46031         * modules/unicase/u8-casemap: New file.
46032
46033         New module 'unicase/special-casing'.
46034         * lib/unicase/special-casing.h: New file.
46035         * lib/unicase/special-casing.c: New file.
46036         * lib/unicase/special-casing-table.gperf: New file, generated by
46037         gen-uni-tables.c.
46038         * modules/unicase/special-casing: New file.
46039
46040         Tests for module 'unicase/locale-language'.
46041         * modules/unicase/locale-language-tests: New file.
46042         * tests/unicase/test-locale-language.sh: New file.
46043         * tests/unicase/test-locale-language.c: New file.
46044
46045         New module 'unicase/locale-language'.
46046         * lib/unicase/locale-language.c: New file.
46047         * lib/unicase/locale-languages.gperf: New file.
46048         * modules/unicase/locale-language: New file.
46049
46050         Generate more tables for case conversion and case folding.
46051         * lib/gen-uni-tables.c (SCC_*): New enum items.
46052         (struct special_casing_rule): New type.
46053         (casing_rules, num_casing_rules, allocated_casing_rules): New
46054         variables.
46055         (add_casing_rule, fill_casing_rules): New functions.
46056         (struct casefold_rule): New type.
46057         (casefolding_rules, num_casefolding_rules,
46058         allocated_casefolding_rules): New variables.
46059         (fill_casefolding_rules): New function.
46060         (unicode_casefold): New variable.
46061         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46062         sort_casing_rules, output_casing_rules): New functions.
46063         (main): Accept to more arguments: SpecialCasing.txt and
46064         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46065         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46066         Output mapping for casefolding.
46067
46068         * lib/unicase.h: Include stdbool.h, uninorm.h.
46069         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46070         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46071         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46072         arguments.
46073         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46074         resultp arguments.
46075         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46076         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46077         resultp arguments.
46078         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46079         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46080         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46081         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46082         declarations.
46083         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46084
46085 2009-03-08  Bruno Haible  <bruno@clisp.org>
46086
46087         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46088         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46089         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46090         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46091
46092 2009-03-07  Bruno Haible  <bruno@clisp.org>
46093
46094         Adjust u*_normcmp, u*_normcoll API.
46095         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46096         u16_normcoll, u32_normcoll): Change failure conventions.
46097         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46098         errno and return -1.
46099         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46100
46101 2009-03-07  Bruno Haible  <bruno@clisp.org>
46102
46103         Tests for module 'uninorm/u32-normcoll'.
46104         * modules/uninorm/u32-normcoll-tests: New file.
46105         * tests/uninorm/test-u32-normcoll.c: New file.
46106
46107         Tests for module 'uninorm/u16-normcoll'.
46108         * modules/uninorm/u16-normcoll-tests: New file.
46109         * tests/uninorm/test-u16-normcoll.c: New file.
46110
46111         Tests for module 'uninorm/u8-normcoll'.
46112         * modules/uninorm/u8-normcoll-tests: New file.
46113         * tests/uninorm/test-u8-normcoll.c: New file.
46114
46115 2009-03-07  Bruno Haible  <bruno@clisp.org>
46116
46117         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46118         tests/uninorm/test-u32-normcmp.c.
46119         * tests/uninorm/test-u32-normcmp.c: Include it.
46120         (test_nonascii): New function, extracted from main. Add some more
46121         tests.
46122         (main): Invoke test_ascii and test_nonascii.
46123         * modules/uninorm/u32-normcmp-tests (Files): Add
46124         tests/uninorm/test-u32-normcmp.h.
46125         (Depends-on): Remove uninorm/u32-normcmp.
46126
46127         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46128         tests/uninorm/test-u16-normcmp.c.
46129         * tests/uninorm/test-u16-normcmp.c: Include it.
46130         (test_nonascii): New function, extracted from main. Add some more
46131         tests.
46132         (main): Invoke test_ascii and test_nonascii.
46133         * modules/uninorm/u16-normcmp-tests (Files): Add
46134         tests/uninorm/test-u16-normcmp.h.
46135         (Depends-on): Remove uninorm/u16-normcmp.
46136
46137         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46138         tests/uninorm/test-u8-normcmp.c.
46139         * tests/uninorm/test-u8-normcmp.c: Include it.
46140         (test_nonascii): New function, extracted from main. Add some more
46141         tests.
46142         (main): Invoke test_ascii and test_nonascii.
46143         * modules/uninorm/u8-normcmp-tests (Files): Add
46144         tests/uninorm/test-u8-normcmp.h.
46145         (Depends-on): Remove uninorm/u8-normcmp.
46146
46147 2009-03-07  Bruno Haible  <bruno@clisp.org>
46148
46149         New module 'uninorm/u32-normcoll'.
46150         * lib/uninorm/u32-normcoll.c: New file.
46151         * modules/uninorm/u32-normcoll: New file.
46152
46153         New module 'uninorm/u16-normcoll'.
46154         * lib/uninorm/u16-normcoll.c: New file.
46155         * modules/uninorm/u16-normcoll: New file.
46156
46157         New module 'uninorm/u8-normcoll'.
46158         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46159         declarations.
46160         * lib/uninorm/u8-normcoll.c: New file.
46161         * lib/uninorm/u-normcoll.h: New file.
46162         * modules/uninorm/u8-normcoll: New file.
46163
46164         New module 'uninorm/u32-normxfrm'.
46165         * lib/uninorm/u32-normxfrm.c: New file.
46166         * modules/uninorm/u32-normxfrm: New file.
46167
46168         New module 'uninorm/u16-normxfrm'.
46169         * lib/uninorm/u16-normxfrm.c: New file.
46170         * modules/uninorm/u16-normxfrm: New file.
46171
46172         New module 'uninorm/u8-normxfrm'.
46173         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46174         declarations.
46175         * lib/uninorm/u8-normxfrm.c: New file.
46176         * lib/uninorm/u-normxfrm.h: New file.
46177         * modules/uninorm/u8-normxfrm: New file.
46178
46179 2009-03-07  Bruno Haible  <bruno@clisp.org>
46180
46181         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46182         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46183         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46184
46185 2009-03-07  Bruno Haible  <bruno@clisp.org>
46186
46187         New module 'memxfrm'.
46188         * lib/memxfrm.h: New file.
46189         * lib/memxfrm.c: New file.
46190         * modules/memxfrm: New file.
46191
46192 2009-03-07  Bruno Haible  <bruno@clisp.org>
46193
46194         New module 'memcmp2'.
46195         * lib/memcmp2.h: New file.
46196         * lib/memcmp2.c: New file.
46197         * modules/memcmp2: New file.
46198
46199 2009-03-07  Bruno Haible  <bruno@clisp.org>
46200
46201         Tests for module 'uninorm/decomposing-form'.
46202         * modules/uninorm/decomposing-form-tests: New file.
46203         * tests/uninorm/test-decomposing-form.c: New file.
46204
46205         New module 'uninorm/decomposing-form'.
46206         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46207         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46208         Add 'decomposing_variant' field.
46209         * lib/uninorm/decomposing-form.c: New file.
46210         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46211         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46212         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46213         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46214         * modules/uninorm/decomposing-form: New file.
46215         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46216         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46217
46218 2009-03-07  Bruno Haible  <bruno@clisp.org>
46219
46220         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46221         strings.
46222
46223 2009-03-06  Bruno Haible  <bruno@clisp.org>
46224
46225         Tests for module 'uninorm/u32-normcmp'.
46226         * tests/uninorm/test-u32-normcmp.c: New file.
46227         * modules/uninorm/u32-normcmp-tests: New file.
46228
46229         Tests for module 'uninorm/u16-normcmp'.
46230         * tests/uninorm/test-u16-normcmp.c: New file.
46231         * modules/uninorm/u16-normcmp-tests: New file.
46232
46233         Tests for module 'uninorm/u8-normcmp'.
46234         * tests/uninorm/test-u8-normcmp.c: New file.
46235         * modules/uninorm/u8-normcmp-tests: New file.
46236
46237         New module 'uninorm/u32-normcmp'.
46238         * lib/uninorm/u32-normcmp.c: New file.
46239         * modules/uninorm/u32-normcmp: New file.
46240
46241         New module 'uninorm/u16-normcmp'.
46242         * lib/uninorm/u16-normcmp.c: New file.
46243         * modules/uninorm/u16-normcmp: New file.
46244
46245         New module 'uninorm/u8-normcmp'.
46246         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46247         declarations.
46248         * lib/uninorm/u8-normcmp.c: New file.
46249         * lib/uninorm/u-normcmp.h: New file.
46250         * modules/uninorm/u8-normcmp: New file.
46251
46252 2009-03-06  Bruno Haible  <bruno@clisp.org>
46253
46254         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46255         Reported by Eric Blake.
46256
46257 2009-03-06  Eric Blake  <ebb9@byu.net>
46258             Bruno Haible  <bruno@clisp.org>
46259
46260         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46261         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46262         condition.
46263         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46264         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46265         condition.
46266         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46267
46268 2009-03-06  Eric Blake  <ebb9@byu.net>
46269
46270         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46271         to avoid compiler warnings.
46272         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46273
46274 2009-03-05  Bruno Haible  <bruno@clisp.org>
46275
46276         * tests/test-ftell.c (main): Disable test beyond end of file on
46277         FreeMiNT.
46278         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46279
46280 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46281
46282         * lib/filevercmp.c: Move hidden files up in ordering.
46283         * tests/test-filevercmp.c: Add tests for hidden files.
46284
46285 2009-03-04  Bruno Haible  <bruno@clisp.org>
46286
46287         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46288         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46289         AM_CFLAGS.
46290         Reported by Simon Josefsson.
46291
46292 2009-03-03  Bruno Haible  <bruno@clisp.org>
46293
46294         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46295         Reported by Simon Josefsson.
46296
46297         * doc/ld-version-script.texi: Update node reference.
46298
46299 2009-03-03  Bruno Haible  <bruno@clisp.org>
46300
46301         * modules/visibility (License): Change to 'unlimited'.
46302         Suggested by Simon Josefsson.
46303
46304 2009-03-03  Jim Meyering  <meyering@redhat.com>
46305
46306         unlinkdir: cannot_unlink_dir may modify process state
46307         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46308         it's neither thread-safe nor appropriate for use in a library.
46309
46310 2009-03-03  Eric Blake  <ebb9@byu.net>
46311
46312         test-closein: silence test under Darwin
46313         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46314         care if it dies from EPIPE or EBADF.
46315
46316 2009-03-03  Bruno Haible  <bruno@clisp.org>
46317
46318         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46319         earlier.
46320         * doc/visibility.texi: Fix @node and @section.
46321
46322 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46323
46324         * doc/gnulib.texi: Link to sections for ld version script and
46325         visibility.
46326         * doc/visibility.texi: Add @node and @section.
46327         * modules/ld-version-script: New module.
46328         * m4/ld-version-script.m4: New file.
46329         * doc/ld-version-script.texi: New file.
46330
46331 2009-03-02  David Lutterkort  <lutter@redhat.com>
46332
46333         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46335
46336 2009-03-02  Bruno Haible  <bruno@clisp.org>
46337
46338         * doc/visibility.texi: Mention libtool's -export-symbols option.
46339
46340 2009-03-02  Jim Meyering  <meyering@redhat.com>
46341
46342         announce-gen: new option: --no-print-checksums
46343         * build-aux/announce-gen (usage): Describe it.
46344         (print_checksums): Print a newline here, not in the [*] footnote.
46345         (main): Honor it.
46346
46347 2009-03-01  Bruno Haible  <bruno@clisp.org>
46348
46349         Use socklen_t in the native Windows replacements prototypes.
46350         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46351         instead of 'int'.
46352         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46353         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46354         * modules/getsockopt (Depends-on): Add socklen.
46355         * modules/setsockopt (Depends-on): Add socklen.
46356
46357 2009-03-01  Bruno Haible  <bruno@clisp.org>
46358
46359         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46360         least 4.2.
46361
46362 2009-03-01  Eric Blake  <ebb9@byu.net>
46363             Bruno Haible  <bruno@clisp.org>
46364
46365         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46366         error messages.
46367         * lib/wait-process.c (wait_subprocess): Omit error message about
46368         deadly signal sent to the child of termsigp != NULL.
46369
46370 2009-03-01  Eric Blake  <ebb9@byu.net>
46371
46372         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46373
46374 2009-03-01  Bruno Haible  <bruno@clisp.org>
46375
46376         Avoid a gcc warning.
46377         * tests/test-sched.c (b): Make global.
46378         Reported by Eric Blake.
46379
46380 2009-01-19  Martin Lambers  <marlam@marlam.de>
46381
46382         Provide POSIX semantics for socket timeout options on W32.
46383         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46384         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46385         * modules/setsockopt: Depend on sys_time module for struct timeval.
46386         * modules/getsockopt: Depend on sys_time module for struct timeval.
46387
46388 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46389
46390         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46391         __USE_GNU, for consistency with netdb.in.h.
46392         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46393
46394 2009-03-01  Bruno Haible  <bruno@clisp.org>
46395
46396         More support for FreeMiNT.
46397         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46398         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46399
46400 2009-03-01  Bruno Haible  <bruno@clisp.org>
46401
46402         More support for FreeMiNT.
46403         * lib/fpurge.c (fpurge): Correct last commit.
46404         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46405
46406 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46407
46408         Fix unportable awk script in vc-list-files.
46409         * build-aux/vc-list-files: In the replacement awk script, use
46410         substr with a second argument of 1, not zero.
46411         Report by Simon Josefsson.
46412
46413 2009-02-28  Bruno Haible  <bruno@clisp.org>
46414
46415         More support for FreeMiNT.
46416         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46417         to FreeMiNT today.
46418         * lib/fwriting.c (fwriting): Likewise.
46419         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46420
46421 2009-02-28  Bruno Haible  <bruno@clisp.org>
46422
46423         * tests/test-freadseek.c (main): Disable test beyond end of file on
46424         FreeMiNT.
46425         * tests/test-ftello.c (main): Likewise.
46426         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46427
46428 2009-02-28  Bruno Haible  <bruno@clisp.org>
46429
46430         Add tentative support for FreeMiNT.
46431         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46432         * lib/fpurge.c (fpurge): Likewise.
46433         * lib/freadable.c (freadable): Likewise.
46434         * lib/freading.c (freading): Likewise.
46435         * lib/freadptr.c (freadptr): Likewise.
46436         * lib/freadseek.c (freadptrinc): Likewise.
46437         * lib/fseeko.c (rpl_fseeko): Likewise.
46438         * lib/fseterr.c (fseterr): Likewise.
46439         * lib/fwritable.c (fwritable): Likewise.
46440         * lib/fwriting.c (fwriting): Likewise.
46441         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46442         Hourihane.
46443         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46444
46445 2009-02-28  Bruno Haible  <bruno@clisp.org>
46446
46447         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46448         SIGCHLD.
46449         Reported by Jim Meyering.
46450
46451 2009-02-28  Bruno Haible  <bruno@clisp.org>
46452
46453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46454         Mention the results of these tests on various platforms.
46455         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46456         order.
46457         * doc/posix-functions/printf.texi: Likewise.
46458         * doc/posix-functions/snprintf.texi: Likewise.
46459         * doc/posix-functions/sprintf.texi: Likewise.
46460         * doc/posix-functions/vfprintf.texi: Likewise.
46461         * doc/posix-functions/vprintf.texi: Likewise.
46462         * doc/posix-functions/vsnprintf.texi: Likewise.
46463         * doc/posix-functions/vsprintf.texi: Likewise.
46464         * doc/glibc-functions/obstack_printf.texi: Likewise.
46465         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46466
46467 2009-02-28  Bruno Haible  <bruno@clisp.org>
46468
46469         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46470         Reported by Loïc Minier <lool@dooz.org>.
46471
46472 2009-02-27  Bruno Haible  <bruno@clisp.org>
46473
46474         * gnulib-tool (func_import): Make the sed expression used to create the
46475         sed script for updating the .gitignore file POSIX compliant.
46476         Reported by Eric Blake.
46477
46478 2009-02-27  Bruno Haible  <bruno@clisp.org>
46479
46480         * gnulib-tool (sed): Don't alias as "sed --posix".
46481         Reported by Eric Blake.
46482
46483 2009-02-27  Bruno Haible  <bruno@clisp.org>
46484
46485         Avoid test link errors.
46486         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46487         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46488         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46489         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46491
46492 2009-02-27  Bruno Haible  <bruno@clisp.org>
46493
46494         Avoid spurious "(cached)" in configure output.
46495         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46496         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46497         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46498         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46499         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46500         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46501         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46502         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46503         Reported by Eric Blake.
46504
46505 2009-02-27  Eric Blake  <ebb9@byu.net>
46506
46507         printf: fix regression in previous patch
46508         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46509
46510 2009-02-27  Bruno Haible  <bruno@clisp.org>
46511
46512         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46513         value.
46514         * lib/stdint.in.h: Likewise.
46515         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46516
46517 2009-02-27  Eric Blake  <ebb9@byu.net>
46518
46519         doc: mention more functions added in cygwin 1.7.0
46520         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46521         addition.
46522         * doc/posix-functions/open_wmemstream.texi: Likewise.
46523         * doc/posix-functions/wcsnlen.texi: Likewise.
46524         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46525         * doc/posix-functions/wcstod.texi: Likewise.
46526         * doc/posix-functions/wcstof.texi: Likewise.
46527         * doc/posix-functions/wcstoimax.texi: Likewise.
46528         * doc/posix-functions/wcstok.texi: Likewise.
46529         * doc/posix-functions/wcstoumax.texi: Likewise.
46530
46531         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
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         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46547         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46548         compilation bug by using runtime conversion.
46549         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46550         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46551         * modules/ceill-tests (Files): Use nan.h.
46552         * modules/floorl-tests (Files): Likewise.
46553         * modules/frexpl-tests (Files): Likewise.
46554         * modules/isnanl-tests (Files): Likewise.
46555         * modules/ldexpl-tests (Files): Likewise.
46556         * modules/roundl-tests (Files): Likewise.
46557         * modules/truncl-tests (Files): Likewise.
46558         * tests/test-ceill.c (main): Use a working NaN.
46559         * tests/test-floorl.c (main): Likewise.
46560         * tests/test-frexpl.c (main): Likewise.
46561         * tests/test-isnan.c (test_long_double): Likewise.
46562         * tests/test-isnanl.h (main): Likewise.
46563         * tests/test-ldexpl.h (main): Likewise.
46564         * tests/test-roundl.h (main): Likewise.
46565         * tests/test-truncl.h (main): Likewise.
46566         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46567
46568 2009-02-26  Eric Blake  <ebb9@byu.net>
46569             Bruno Haible  <bruno@clisp.org>
46570
46571         Work around a *printf bug with %ls on Solaris.
46572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46573         precision is specified, sprintf stops converting the wide string
46574         argument when the number of bytes that have been produced by this
46575         conversion equals or exceeds the precision.
46576         * doc/posix-functions/fprintf.texi: Update.
46577         * doc/posix-functions/printf.texi: Update.
46578         * doc/posix-functions/snprintf.texi: Update.
46579         * doc/posix-functions/sprintf.texi: Update.
46580         * doc/posix-functions/vfprintf.texi: Update.
46581         * doc/posix-functions/vprintf.texi: Update.
46582         * doc/posix-functions/vsnprintf.texi: Update.
46583         * doc/posix-functions/vsprintf.texi: Update.
46584         * doc/glibc-functions/obstack_printf.texi: Update.
46585         * doc/glibc-functions/obstack_vprintf.texi: Update.
46586
46587 2009-02-26  Eric Blake  <ebb9@byu.net>
46588
46589         stdlib: favor compiler check of random.h
46590         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46591         to avoid an ObjC random.h installed by Swarm.
46592
46593 2009-02-26  Bruno Haible  <bruno@clisp.org>
46594
46595         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46596         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46597         Reported by Gary V. Vaughan <gary@gnu.org>.
46598
46599 2009-02-26  Bruno Haible  <bruno@clisp.org>
46600
46601         Fix *printf behaviour regarding the %ls directive.
46602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46603         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46604         NEED_PRINTF_DIRECTIVE_LS.
46605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46606         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46607         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46608         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46609         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46610         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46611         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46613         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46616         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46617         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46618         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46619         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46620         * doc/posix-functions/fprintf.texi: Update.
46621         * doc/posix-functions/printf.texi: Update.
46622         * doc/posix-functions/snprintf.texi: Update.
46623         * doc/posix-functions/sprintf.texi: Update.
46624         * doc/posix-functions/vfprintf.texi: Update.
46625         * doc/posix-functions/vprintf.texi: Update.
46626         * doc/posix-functions/vsnprintf.texi: Update.
46627         * doc/posix-functions/vsprintf.texi: Update.
46628         * doc/glibc-functions/obstack_printf.texi: Update.
46629         * doc/glibc-functions/obstack_vprintf.texi: Update.
46630         Reported by Eric Blake.
46631
46632 2009-02-25  Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46635         with known value.
46636         Reported by Gary V. Vaughan <gary@gnu.org>.
46637
46638 2009-02-25  Bruno Haible  <bruno@clisp.org>
46639
46640         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46641         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46642         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46643         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46644         Reported by Gary V. Vaughan <gary@gnu.org>.
46645
46646 2009-02-25  Bruno Haible  <bruno@clisp.org>
46647
46648         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46649         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46650         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46651         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46652         Reported by Gary V. Vaughan <gary@gnu.org>.
46653
46654 2009-02-25  Eric Blake  <ebb9@byu.net>
46655
46656         tests: skip fseek/ftell tests if ungetc is broken
46657         * m4/ungetc.m4: New file.
46658         * modules/fseek-tests: Split test, so ungetc dependency is
46659         separate from rest of test.
46660         * modules/fseeko-tests: Likewise.
46661         * modules/ftell-tests: Likewise.
46662         * modules/ftello-tests: Likewise.
46663         * tests/test-fseek.c (main): Isolate ungetc dependency.
46664         * tests/test-fseeko.c (main): Likewise.
46665         * tests/test-ftell.c (main): Likewise.
46666         * tests/test-ftello.c (main): Likewise.
46667         * tests/test-fseek2.sh: New file.
46668         * tests/test-fseeko2.sh: Likewise.
46669         * tests/test-ftell2.sh: Likewise.
46670         * tests/test-ftello2.sh: Likewise.
46671
46672 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46673
46674         test-getaddrinfo: fix usage of skip return code 77
46675         * tests/test-gettaddrinfo.c: Return skip code 77 only
46676         for first occurance of skip (4x77 is not 77)
46677
46678 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46679
46680         strtod: avoid C99 decl-after-statement
46681         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46682
46683 2009-02-24  Eric Blake  <ebb9@byu.net>
46684
46685         strtod: detect HP-UX 11.31 bug
46686         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46687         Reported by Gary V. Vaughan.
46688
46689 2009-02-23  Bruno Haible  <bruno@clisp.org>
46690
46691         Fix invalid read past end of memory block.
46692         * lib/vasnprintf.c (DCHAR_SET): Define.
46693         (local_wcslen): Define only when needed.
46694         (local_strnlen, local_wcsnlen): New functions.
46695         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46696         directives that involve a conversion ourselves.
46697         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46698         wcsnlen, mbrtowc, wcrtomb.
46699         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46700         * tests/test-vasprintf-posix.c (test_function): Likewise.
46701         * tests/test-snprintf-posix.h (test_function): Likewise.
46702         * tests/test-sprintf-posix.h (test_function): Likewise.
46703         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46704
46705 2009-02-22  Bruno Haible  <bruno@clisp.org>
46706
46707         Implement new clarified decomposition of Hangul syllables.
46708         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46709         of type LTV, return only a pairwise decomposition.
46710         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46711         Likewise.
46712         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46713         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46714         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46715
46716 2009-02-22  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46719         zero-length results and shrink excess allocated memory.
46720         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46721         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46722         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46723         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46724         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46725         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46726         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46727         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46728         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46729         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46730         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46731         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46732
46733 2009-02-21  Bruno Haible  <bruno@clisp.org>
46734
46735         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46736         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46737         spaces after a period. Put a space between a macro name and its
46738         argument list. Trivial rewordings.
46739         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46740         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46741         (main): Return 0 explicitly.
46742
46743 2009-02-21  Bruno Haible  <bruno@clisp.org>
46744
46745         Tests for module 'uninorm/filter'.
46746         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46747         * modules/uninorm/filter-tests: New file.
46748
46749         New module 'uninorm/filter'.
46750         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46751         uninorm_filter_flush, uninorm_filter_free): New declarations.
46752         * lib/uninorm/uninorm-filter.c: New file.
46753         * modules/uninorm/filter: New file.
46754
46755 2009-02-21  Bruno Haible  <bruno@clisp.org>
46756
46757         Tests for module 'uninorm/nfkc'.
46758         * tests/uninorm/test-nfkc.c: New file.
46759         * tests/uninorm/test-u8-nfkc.c: New file.
46760         * tests/uninorm/test-u16-nfkc.c: New file.
46761         * tests/uninorm/test-u32-nfkc.c: New file.
46762         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46763         * tests/uninorm/test-u32-nfkc-big.c: New file.
46764         * modules/uninorm/nfkc-tests: New file.
46765
46766         New module 'uninorm/nfkc'.
46767         * lib/uninorm/nfkc.c: New file.
46768         * modules/uninorm/nfkc: New file.
46769
46770         Tests for module 'uninorm/nfkd'.
46771         * tests/uninorm/test-nfkd.c: New file.
46772         * tests/uninorm/test-u8-nfkd.c: New file.
46773         * tests/uninorm/test-u16-nfkd.c: New file.
46774         * tests/uninorm/test-u32-nfkd.c: New file.
46775         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46776         * tests/uninorm/test-u32-nfkd-big.c: New file.
46777         * modules/uninorm/nfkd-tests: New file.
46778
46779         New module 'uninorm/nfkd'.
46780         * lib/uninorm/nfkd.c: New file.
46781         * modules/uninorm/nfkd: New file.
46782
46783         Tests for module 'uninorm/nfc'.
46784         * tests/uninorm/test-nfc.c: New file.
46785         * tests/uninorm/test-u8-nfc.c: New file.
46786         * tests/uninorm/test-u16-nfc.c: New file.
46787         * tests/uninorm/test-u32-nfc.c: New file.
46788         * tests/uninorm/test-u32-nfc-big.sh: New file.
46789         * tests/uninorm/test-u32-nfc-big.c: New file.
46790         * modules/uninorm/nfc-tests: New file.
46791
46792         New module 'uninorm/nfc'.
46793         * lib/uninorm/nfc.c: New file.
46794         * modules/uninorm/nfc: New file.
46795
46796         Tests for module 'uninorm/nfd'.
46797         * tests/uninorm/test-nfd.c: New file.
46798         * tests/uninorm/test-u8-nfd.c: New file.
46799         * tests/uninorm/test-u16-nfd.c: New file.
46800         * tests/uninorm/test-u32-nfd.c: New file.
46801         * tests/uninorm/test-u32-nfd-big.sh: New file.
46802         * tests/uninorm/test-u32-nfd-big.c: New file.
46803         * tests/uninorm/test-u32-normalize-big.h: New file.
46804         * tests/uninorm/test-u32-normalize-big.c: New file.
46805         * tests/uninorm/NormalizationTest.txt: New file, created from
46806         Unicode 5.1.0 NormalizationTest.txt.
46807         * modules/uninorm/nfd-tests: New file.
46808
46809         New module 'uninorm/nfd'.
46810         * lib/uninorm/nfd.c: New file.
46811         * modules/uninorm/nfd: New file.
46812
46813         New module 'uninorm/u32-normalize'.
46814         * lib/uninorm/u32-normalize.c: New file.
46815         * modules/uninorm/u32-normalize: New file.
46816
46817         New module 'uninorm/u16-normalize'.
46818         * lib/uninorm/u16-normalize.c: New file.
46819         * modules/uninorm/u16-normalize: New file.
46820
46821         New module 'uninorm/u8-normalize'.
46822         * lib/uninorm/u8-normalize.c: New file.
46823         * lib/uninorm/normalize-internal.h: New file.
46824         * lib/uninorm/u-normalize-internal.h: New file.
46825         * modules/uninorm/u8-normalize: New file.
46826
46827         New module 'uninorm/decompose-internal'.
46828         * lib/uninorm/decompose-internal.c: New file.
46829         * modules/uninorm/decompose-internal: New file.
46830
46831         Tests for module 'uninorm/composition'.
46832         * tests/uninorm/test-composition.c: New file.
46833         * modules/uninorm/composition-tests: New file.
46834
46835         New module 'uninorm/composition'.
46836         * lib/uninorm/composition.c: New file.
46837         * lib/uninorm/composition-table.gperf: New file, generated by
46838         gen-uni-tables.
46839         * modules/uninorm/composition: New file.
46840
46841         Tests for module 'uninorm/compat-decomposition'.
46842         * tests/uninorm/test-compat-decomposition.c: New file.
46843         * modules/uninorm/compat-decomposition-tests: New file.
46844
46845         New module 'uninorm/compat-decomposition'.
46846         * lib/uninorm/decompose-internal.h: New file.
46847         * lib/uninorm/compat-decomposition.c: New file.
46848         * modules/uninorm/compat-decomposition: New file.
46849
46850         Tests for module 'uninorm/canonical-decomposition'.
46851         * tests/uninorm/test-canonical-decomposition.c: New file.
46852         * modules/uninorm/canonical-decomposition-tests: New file.
46853
46854         New module 'uninorm/canonical-decomposition'.
46855         * lib/uninorm/canonical-decomposition.c: New file.
46856         * modules/uninorm/canonical-decomposition: New file.
46857
46858         Tests for module 'uninorm/decomposition'.
46859         * tests/uninorm/test-decomposition.c: New file.
46860         * modules/uninorm/decomposition-tests: New file.
46861
46862         New module 'uninorm/decomposition'.
46863         * lib/uninorm/decomposition.c: New file.
46864         * modules/uninorm/decomposition: New file.
46865
46866         New module 'uninorm/decomposition-table'.
46867         * lib/uninorm/decomposition-table.h: New file.
46868         * lib/uninorm/decomposition-table.c: New file.
46869         * lib/uninorm/decomposition-table1.h: New file, generated by
46870         gen-uni-tables.
46871         * lib/uninorm/decomposition-table2.h: New file, generated by
46872         gen-uni-tables.
46873         * modules/uninorm/decomposition-table: New file.
46874
46875         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46876         (UC_DECOMP_*): New enumeration items.
46877         (get_decomposition): New function.
46878         (struct decomp_table): New type.
46879         (output_decomposition, output_decomposition_tables): New functions.
46880         (unicode_composition_exclusions): New variable.
46881         (fill_composition_exclusions, debug_output_composition_tables): New
46882         functions.
46883         (main): Accept one more argument. Invoke fill_composition_exclusions.
46884         Output decomposition and composition tables.
46885
46886         New module 'uninorm/base'.
46887         * lib/uninorm.h: New file.
46888         * lib/unictype.h: Update comment.
46889         * modules/uninorm/base: New file.
46890
46891 2009-02-21  David Lutterkort  <lutter@redhat.com>
46892
46893         Tests for module 'safe-alloc'.
46894         * tests/test-safe-alloc.c: New file.
46895         * modules/safe-alloc-tests: New file.
46896
46897         New module 'safe-alloc'.
46898         * lib/safe-alloc.h: New file.
46899         * lib/safe-alloc.c: New file.
46900         * m4/safe-alloc.m4: New file.
46901         * modules/safe-alloc: New file.
46902         * doc/safe-alloc.texi: New file.
46903         * doc/gnulib.texi: Include it.
46904         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46905         safe-alloc.
46906
46907 2009-02-18  Bruno Haible  <bruno@clisp.org>
46908
46909         Fix link error on non-glibc systems.
46910         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46911         variable.
46912         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46913
46914 2009-02-18  Jim Meyering  <meyering@redhat.com>
46915
46916         fts: avoid used-uninitialized error due to recent change
46917         * lib/fts.c (fts_read): Guard uses of the new member,
46918         parent->fts_n_dirs_remaining, since it's not relevant for
46919         the parent of a directory specified on the command-line.
46920
46921 2009-02-17  James Youngman  <jay@gnu.org>
46922             Bruno Haible  <bruno@clisp.org>
46923
46924         * m4/include_next.m4: Reformulate comment.
46925
46926 2009-02-16  Jim Meyering  <meyering@redhat.com>
46927
46928         fts: add #if guards so that the fts_lgpl module still builds
46929         * lib/fts.c: Guard just-added hash-table-using parts with
46930         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46931         Reported by Simon Josefsson.
46932
46933 2009-02-15  Bruno Haible  <bruno@clisp.org>
46934
46935         * modules/array-mergesort-tests: New file.
46936         * tests/test-array-mergesort.c: New file.
46937
46938         New module 'array-mergesort'.
46939         * modules/array-mergesort: New file.
46940         * lib/array-mergesort.h: New file.
46941
46942 2009-02-15  Bruno Haible  <bruno@clisp.org>
46943
46944         Fix 2009-02-07 commit.
46945         * lib/gen-uni-tables.c (output_predicate, output_category,
46946         output_combclass, output_bidi_category, output_decimal_digit,
46947         output_digit, output_numeric, output_mirror, output_scripts,
46948         output_ident_category, output_simple_mapping): Fix format directives.
46949         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46950
46951 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46952
46953         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46954         fixes are available from IBM.
46955
46956 2009-02-13  Jim Meyering  <meyering@redhat.com>
46957
46958         fts: arrange not to stat non-directories in more cases
46959         This makes GNU find (when it doesn't need to stat each file)
46960         *much* more efficient at traversing reiserfs file systems.
46961         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46962         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46963         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46964         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46965         (leaf_optimization_applies): New function.
46966         (LCO_hash, LCO_compare): New helper functions.
46967         (link_count_optimize_ok): New function.
46968         (fts_stat): Initialize new member (if dir).
46969         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46970         we've just stat'ed a directory.  Skip the stat call when possible.
46971         ---
46972         Note this AFS-related exchange:
46973         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46974         and note find's pioctl call in find/fstype.c.
46975         But that is necessary only if you want to enable the
46976         optimization for AFS, and for now, I don't.
46977
46978         fts: move a function definition "up" (no semantic change)
46979         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46980         "up" to precede upcoming use of a related function.
46981
46982 2009-02-11  Jim Meyering  <meyering@redhat.com>
46983
46984         fts: correct internal computation of nlinks (optimization-related)
46985         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46986         whether the current entry is a directory, so don't test it.
46987
46988 2009-02-10  Bruno Haible  <bruno@clisp.org>
46989
46990         Tests for module 'uniwbrk/ulc-wordbreaks'.
46991         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46992         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46993         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46994
46995         Tests for module 'uniwbrk/u32-wordbreaks'.
46996         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46997         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46998
46999         Tests for module 'uniwbrk/u16-wordbreaks'.
47000         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47001         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47002
47003         Tests for module 'uniwbrk/u8-wordbreaks'.
47004         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47005         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47006
47007 2009-02-10  Bruno Haible  <bruno@clisp.org>
47008
47009         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47010         property.
47011         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47012         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47013         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47014
47015 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47016
47017         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47018         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47019
47020 2009-02-10  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47023         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47024         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47025         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47026         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47027         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47028
47029 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47030
47031         * lib/sockets.h (gl_fd_to_handle): New function.
47032
47033         * tests/test-sockets.c: Call gl_fd_to_handle.
47034
47035 2009-02-09  Bruno Haible  <bruno@clisp.org>
47036
47037         * doc/havelib.texi: Document the conventions on bi-arch systems.
47038
47039 2009-02-08  Bruno Haible  <bruno@clisp.org>
47040
47041         Document the AC_LIB_LINKFLAGS macro.
47042         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47043         * doc/gnulib.texi: Include it.
47044
47045 2009-02-08  Bruno Haible  <bruno@clisp.org>
47046
47047         Fix wrong order of sections, compared to TOC.
47048         * doc/gnulib.texi: Include relocatable-maint.texi after the
47049         "Regular expressions" node, not before.
47050
47051 2009-02-08  Bruno Haible  <bruno@clisp.org>
47052
47053         Tests for module 'unicase/totitle'.
47054         * modules/unicase/totitle-tests: New file.
47055
47056         Tests for module 'unicase/tolower'.
47057         * modules/unicase/tolower-tests: New file.
47058
47059         Tests for module 'unicase/toupper'.
47060         * modules/unicase/toupper-tests: New file.
47061         * tests/unicase/test-mapping-part1.h: New file.
47062         * tests/unicase/test-mapping-part2.h: New file.
47063
47064         New module 'unicase/totitle'.
47065         * modules/unicase/totitle: New file.
47066         * lib/unicase/totitle.c: New file.
47067
47068         New module 'unicase/tolower'.
47069         * modules/unicase/tolower: New file.
47070         * lib/unicase/tolower.c: New file.
47071
47072         New module 'unicase/toupper'.
47073         * modules/unicase/toupper: New file.
47074         * lib/unicase/toupper.c: New file.
47075         * lib/unicase/simple-mapping.h: New file.
47076
47077         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47078         (mapping_table): New structure.
47079         (output_simple_mapping): New function.
47080         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47081         * modules/gen-uni-tables (Description): Update.
47082         * lib/unicase/toupper.h: New file, automatically generated by
47083         gen-uni-tables.
47084         * lib/unicase/tolower.h: New file, automatically generated by
47085         gen-uni-tables.
47086         * lib/unicase/totitle.h: New file, automatically generated by
47087         gen-uni-tables.
47088         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47089         gen-uni-tables.
47090         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47091         gen-uni-tables.
47092         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47093         gen-uni-tables.
47094
47095         New module 'unicase/base'.
47096         * modules/unicase/base: New file.
47097         * lib/unicase.h: New file.
47098
47099 2009-02-08  Bruno Haible  <bruno@clisp.org>
47100
47101         New module 'uniwbrk/ulc-wordbreaks'.
47102         * modules/uniwbrk/ulc-wordbreaks: New file.
47103         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47104
47105         New module 'uniwbrk/u32-wordbreaks'.
47106         * modules/uniwbrk/u32-wordbreaks: New file.
47107         * lib/uniwbrk/u32-wordbreaks.c: New file.
47108
47109         New module 'uniwbrk/u16-wordbreaks'.
47110         * modules/uniwbrk/u16-wordbreaks: New file.
47111         * lib/uniwbrk/u16-wordbreaks.c: New file.
47112
47113         New module 'uniwbrk/u8-wordbreaks'.
47114         * modules/uniwbrk/u8-wordbreaks: New file.
47115         * lib/uniwbrk/u8-wordbreaks.c: New file.
47116         * lib/uniwbrk/u-wordbreaks.h: New file.
47117
47118         New module 'uniwbrk/table'.
47119         * modules/uniwbrk/table: New file.
47120         * lib/uniwbrk/wbrktable.h: New file.
47121         * lib/uniwbrk/wbrktable.c: New file.
47122
47123         New module 'uniwbrk/wordbreak-property'.
47124         * modules/uniwbrk/wordbreak-property: New file.
47125         * lib/uniwbrk/wordbreak-property.c: New file.
47126
47127         * lib/gen-uni-tables.c (WBP_*): New enum items.
47128         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47129         (unicode_org_wbp): New variable.
47130         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47131         New functions.
47132         (wbp_table): New structure.
47133         (output_wbp, output_wbrk_tables): New functions.
47134         (main): Accept additional argument. Invoke fill_org_wbp,
47135         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47136         output_wbrk_tables.
47137         * modules/gen-uni-tables (Description): Update.
47138         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47139         gen-uni-tables.
47140
47141         New module 'uniwbrk/base'.
47142         * modules/uniwbrk/base: New file.
47143         * lib/uniwbrk.h: New file.
47144
47145 2009-02-08  Bruno Haible  <bruno@clisp.org>
47146
47147         Update to Unicode 5.1.0.
47148         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47149         U+2185..U+2188.
47150         (is_property_default_ignorable_code_point): Don't include characters
47151         of category Cc or Cs and not-a-characters.
47152         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47153         U+0D79, U+109E, U+109F, U+A60C.
47154         * lib/unictype/bidi_of.h: Regenerated.
47155         * lib/unictype/blocks.h: Regenerated.
47156         * lib/unictype/categ_C.h: Regenerated.
47157         * lib/unictype/categ_Cf.h: Regenerated.
47158         * lib/unictype/categ_Cn.h: Regenerated.
47159         * lib/unictype/categ_L.h: Regenerated.
47160         * lib/unictype/categ_Ll.h: Regenerated.
47161         * lib/unictype/categ_Lm.h: Regenerated.
47162         * lib/unictype/categ_Lo.h: Regenerated.
47163         * lib/unictype/categ_Lu.h: Regenerated.
47164         * lib/unictype/categ_M.h: Regenerated.
47165         * lib/unictype/categ_Mc.h: Regenerated.
47166         * lib/unictype/categ_Me.h: Regenerated.
47167         * lib/unictype/categ_Mn.h: Regenerated.
47168         * lib/unictype/categ_N.h: Regenerated.
47169         * lib/unictype/categ_Nd.h: Regenerated.
47170         * lib/unictype/categ_Nl.h: Regenerated.
47171         * lib/unictype/categ_No.h: Regenerated.
47172         * lib/unictype/categ_P.h: Regenerated.
47173         * lib/unictype/categ_Pd.h: Regenerated.
47174         * lib/unictype/categ_Pe.h: Regenerated.
47175         * lib/unictype/categ_Pf.h: Regenerated.
47176         * lib/unictype/categ_Pi.h: Regenerated.
47177         * lib/unictype/categ_Po.h: Regenerated.
47178         * lib/unictype/categ_Ps.h: Regenerated.
47179         * lib/unictype/categ_S.h: Regenerated.
47180         * lib/unictype/categ_Sk.h: Regenerated.
47181         * lib/unictype/categ_Sm.h: Regenerated.
47182         * lib/unictype/categ_So.h: Regenerated.
47183         * lib/unictype/categ_of.h: Regenerated.
47184         * lib/unictype/combining.h: Regenerated.
47185         * lib/unictype/ctype_alnum.h: Regenerated.
47186         * lib/unictype/ctype_alpha.h: Regenerated.
47187         * lib/unictype/ctype_graph.h: Regenerated.
47188         * lib/unictype/ctype_lower.h: Regenerated.
47189         * lib/unictype/ctype_print.h: Regenerated.
47190         * lib/unictype/ctype_punct.h: Regenerated.
47191         * lib/unictype/ctype_upper.h: Regenerated.
47192         * lib/unictype/decdigit.h: Regenerated.
47193         * lib/unictype/digit.h: Regenerated.
47194         * lib/unictype/mirror.h: Regenerated.
47195         * lib/unictype/numeric.h: Regenerated.
47196         * lib/unictype/pr_alphabetic.h: Regenerated.
47197         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47198         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47199         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47200         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47201         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47202         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47203         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47204         * lib/unictype/pr_combining.h: Regenerated.
47205         * lib/unictype/pr_dash.h: Regenerated.
47206         * lib/unictype/pr_decimal_digit.h: Regenerated.
47207         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47208         * lib/unictype/pr_deprecated.h: Regenerated.
47209         * lib/unictype/pr_diacritic.h: Regenerated.
47210         * lib/unictype/pr_extender.h: Regenerated.
47211         * lib/unictype/pr_format_control.h: Regenerated.
47212         * lib/unictype/pr_grapheme_base.h: Regenerated.
47213         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47214         * lib/unictype/pr_grapheme_link.h: Regenerated.
47215         * lib/unictype/pr_id_continue.h: Regenerated.
47216         * lib/unictype/pr_id_start.h: Regenerated.
47217         * lib/unictype/pr_ideographic.h: Regenerated.
47218         * lib/unictype/pr_ignorable_control.h: Regenerated.
47219         * lib/unictype/pr_lowercase.h: Regenerated.
47220         * lib/unictype/pr_math.h: Regenerated.
47221         * lib/unictype/pr_numeric.h: Regenerated.
47222         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47223         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47224         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47225         * lib/unictype/pr_other_id_continue.h: Regenerated.
47226         * lib/unictype/pr_other_lowercase.h: Regenerated.
47227         * lib/unictype/pr_other_math.h: Regenerated.
47228         * lib/unictype/pr_punctuation.h: Regenerated.
47229         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47230         * lib/unictype/pr_soft_dotted.h: Regenerated.
47231         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47232         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47233         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47234         * lib/unictype/pr_uppercase.h: Regenerated.
47235         * lib/unictype/pr_xid_continue.h: Regenerated.
47236         * lib/unictype/pr_xid_start.h: Regenerated.
47237         * lib/unictype/pr_zero_width.h: Regenerated.
47238         * lib/unictype/scripts.h: Regenerated.
47239         * lib/unictype/scripts_byname.gperf: Regenerated.
47240         * lib/unictype/sy_java_ident.h: Regenerated.
47241         * lib/unilbrk/lbrkprop1.h: Regenerated.
47242         * lib/unilbrk/lbrkprop2.h: Regenerated.
47243         * tests/unictype/test-categ_C.c: Regenerated.
47244         * tests/unictype/test-categ_Cf.c: Regenerated.
47245         * tests/unictype/test-categ_Cn.c: Regenerated.
47246         * tests/unictype/test-categ_L.c: Regenerated.
47247         * tests/unictype/test-categ_Ll.c: Regenerated.
47248         * tests/unictype/test-categ_Lm.c: Regenerated.
47249         * tests/unictype/test-categ_Lo.c: Regenerated.
47250         * tests/unictype/test-categ_Lu.c: Regenerated.
47251         * tests/unictype/test-categ_M.c: Regenerated.
47252         * tests/unictype/test-categ_Mc.c: Regenerated.
47253         * tests/unictype/test-categ_Me.c: Regenerated.
47254         * tests/unictype/test-categ_Mn.c: Regenerated.
47255         * tests/unictype/test-categ_N.c: Regenerated.
47256         * tests/unictype/test-categ_Nd.c: Regenerated.
47257         * tests/unictype/test-categ_Nl.c: Regenerated.
47258         * tests/unictype/test-categ_No.c: Regenerated.
47259         * tests/unictype/test-categ_P.c: Regenerated.
47260         * tests/unictype/test-categ_Pd.c: Regenerated.
47261         * tests/unictype/test-categ_Pe.c: Regenerated.
47262         * tests/unictype/test-categ_Pf.c: Regenerated.
47263         * tests/unictype/test-categ_Pi.c: Regenerated.
47264         * tests/unictype/test-categ_Po.c: Regenerated.
47265         * tests/unictype/test-categ_Ps.c: Regenerated.
47266         * tests/unictype/test-categ_S.c: Regenerated.
47267         * tests/unictype/test-categ_Sk.c: Regenerated.
47268         * tests/unictype/test-categ_Sm.c: Regenerated.
47269         * tests/unictype/test-categ_So.c: Regenerated.
47270         * tests/unictype/test-ctype_alnum.c: Regenerated.
47271         * tests/unictype/test-ctype_alpha.c: Regenerated.
47272         * tests/unictype/test-ctype_graph.c: Regenerated.
47273         * tests/unictype/test-ctype_lower.c: Regenerated.
47274         * tests/unictype/test-ctype_print.c: Regenerated.
47275         * tests/unictype/test-ctype_punct.c: Regenerated.
47276         * tests/unictype/test-ctype_upper.c: Regenerated.
47277         * tests/unictype/test-decdigit.h: Regenerated.
47278         * tests/unictype/test-digit.h: Regenerated.
47279         * tests/unictype/test-numeric.h: Regenerated.
47280         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47281         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47282         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47283         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47284         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47285         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47286         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47287         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47288         * tests/unictype/test-pr_combining.c: Regenerated.
47289         * tests/unictype/test-pr_dash.c: Regenerated.
47290         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47291         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47292         * tests/unictype/test-pr_deprecated.c: Regenerated.
47293         * tests/unictype/test-pr_diacritic.c: Regenerated.
47294         * tests/unictype/test-pr_extender.c: Regenerated.
47295         * tests/unictype/test-pr_format_control.c: Regenerated.
47296         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47297         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47298         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47299         * tests/unictype/test-pr_id_continue.c: Regenerated.
47300         * tests/unictype/test-pr_id_start.c: Regenerated.
47301         * tests/unictype/test-pr_ideographic.c: Regenerated.
47302         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47303         * tests/unictype/test-pr_lowercase.c: Regenerated.
47304         * tests/unictype/test-pr_math.c: Regenerated.
47305         * tests/unictype/test-pr_numeric.c: Regenerated.
47306         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47307         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47308         Regenerated.
47309         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47310         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47311         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47312         * tests/unictype/test-pr_other_math.c: Regenerated.
47313         * tests/unictype/test-pr_punctuation.c: Regenerated.
47314         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47315         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47316         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47317         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47318         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47319         * tests/unictype/test-pr_uppercase.c: Regenerated.
47320         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47321         * tests/unictype/test-pr_xid_start.c: Regenerated.
47322         * tests/unictype/test-pr_zero_width.c: Regenerated.
47323
47324         Update to Unicode 5.1.0.
47325         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47326         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47327         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47328         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47329         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47330         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47331         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47332         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47333         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47334         (nonspacing_table_ind): Update.
47335         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47336
47337         Update to Unicode 5.1.0.
47338         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47339         code transform.
47340         * lib/uniname/uniname.c (unicode_character_name,
47341         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47342         * lib/uniname/uninames.h: Regenerated.
47343         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47344
47345 2009-02-07  Bruno Haible  <bruno@clisp.org>
47346
47347         Merge gen-ctype and gen-lbrk into a single program.
47348         * lib/gen-uni-tables.c: New file, incorporating
47349         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47350         Add directory prefixes to the names of the generated files.
47351         * lib/unictype/gen-ctype.c: Remove file.
47352         * lib/unilbrk/gen-lbrk.c: Remove file.
47353         * modules/gen-uni-tables: New file.
47354         * modules/unictype/gen-ctype: Remove file.
47355         * modules/unilbrk/gen-lbrk: Remove file.
47356
47357 2009-02-07  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47360
47361         New module 'unistr/u32-strcoll'.
47362         * modules/unistr/u32-strcoll: New file.
47363         * lib/unistr/u32-strcoll.c: New file.
47364
47365         New module 'unistr/u16-strcoll'.
47366         * modules/unistr/u16-strcoll: New file.
47367         * lib/unistr/u16-strcoll.c: New file.
47368
47369         New module 'unistr/u8-strcoll'.
47370         * modules/unistr/u8-strcoll: New file.
47371         * lib/unistr/u8-strcoll.c: New file.
47372         * lib/unistr/u-strcoll.h: New file.
47373
47374 2009-02-07  Bruno Haible  <bruno@clisp.org>
47375
47376         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47377         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47378         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47379         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47380         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47381         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47382
47383 2009-02-07  Bruno Haible  <bruno@clisp.org>
47384
47385         Make 64-bit clean.
47386         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47387         output_combclass, output_bidi_category, output_decimal_digit,
47388         output_digit, output_numeric, output_mirror, output_scripts,
47389         output_ident_category): Use proper width specifier in format strings.
47390
47391 2009-02-07  Bruno Haible  <bruno@clisp.org>
47392
47393         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47394         failure behaviour.
47395
47396 2009-02-07  Jim Meyering  <meyering@redhat.com>
47397
47398         regex: avoid compilation failure with upcoming gcc-4.4
47399         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47400         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47401         "... error: integer overflow in preprocessor expression".
47402
47403 2009-02-05  Ben Pfaff  <blp@gnu.org>
47404
47405         Fix link errors on Windows when close module is used.
47406         * modules/close: Add $(LIB_CLOSE) to Link section.
47407         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47408         $(LIB_CLOSE) on Windows.
47409
47410 2009-02-05  Jim Meyering  <meyering@redhat.com>
47411
47412         still avoid unused-parameter warnings, but do it cleanly
47413         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47414         (get_fs_usage): Cast to void instead.
47415         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47416         (dev_from_mount_options, read_file_system_list): Cast to void.
47417         Prompted by Bruno Haible.
47418
47419 2009-02-04  Jim Meyering  <meyering@redhat.com>
47420
47421         fsusage.c: correct copyright year
47422         * lib/fsusage.c: Reflect year in which the change is pushed into
47423
47424         avoid misc. warnings
47425         * lib/fsusage.c (UNUSED_PARAM): Define.
47426         (get_fs_usage): Mark parameter "disk" as unused.
47427         * lib/getugroups.c (getgrent): Use "void" in prototype.
47428         * lib/mountlist.c: Mark unused parameters.
47429         (read_file_system_list): Declare a local with "const".
47430         * lib/nanosleep.c (getnow): Declare static.
47431         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47432
47433         dirfd: set errno upon failure
47434         * lib/dirfd.c: Include <errno.h>.
47435         Set errno to ENOTSUP when returning -1.
47436         * modules/dirfd (Depends-on): Add errno.
47437         Suggested by John Kodis <kodis@comcast.net>.
47438
47439 2009-02-01  Bruno Haible  <bruno@clisp.org>
47440
47441         Don't assume sizeof (long) >= sizeof (void *).
47442         * lib/memcmp.c: Include stdint.h.
47443         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47444         srcp2 to 'const byte *'.
47445         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47446         types to uintptr_t.
47447         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47448         * modules/memcmp (Depends-on): Add stdint.
47449         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47450
47451 2009-01-30  Eric Blake  <ebb9@byu.net>
47452
47453         fix more require-before-expand issues
47454         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47455         expand, AC_PROG_AWK.
47456         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47457
47458 2009-01-28  Eric Blake  <ebb9@byu.net>
47459
47460         version-etc: use consistent URL formatting
47461         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47462         Improve formatting.  Use fputs for string without %.
47463
47464 2009-01-28  Jim Meyering  <meyering@redhat.com>
47465
47466         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47467         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47468         "underquoted definition of NAME" from autoconf-2.59.
47469
47470 2009-01-28  Bruno Haible  <bruno@clisp.org>
47471
47472         * doc/gnulib.texi: Add "Obsolete modules" to index.
47473
47474 2009-01-28  Jim Meyering  <meyering@redhat.com>
47475
47476         useless-if-before-free: recognize more variants
47477         * build-aux/useless-if-before-free: Also recognize e.g.,
47478         if (NULL != p) free (p);
47479
47480 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47481
47482         test-getaddrinfo: skip (don't fail) this test when there's no network
47483         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47484         on the presumption that it means you lack network access.
47485
47486 2009-01-26  Jim Meyering  <meyering@redhat.com>
47487
47488         fflush: avoid warnings on modern systems
47489         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47490         pos and result, into scopes where they're used.
47491
47492 2009-01-26  Eric Blake  <ebb9@byu.net>
47493
47494         Silence warning reintroduced by recent extensions patch.
47495         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47496         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47497         autoconf.
47498
47499         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47500         * m4/00gnulib.m4: New file.
47501         * gnulib-tool (func_get_filelist): Always use it.
47502         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47503         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47504
47505 2009-01-25  Bruno Haible  <bruno@clisp.org>
47506
47507         Make test-quotearg work on MacOS X and AIX.
47508         * tests/test-quotearg.sh: New file.
47509         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47510         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47511         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47512         include <libintl.h>.
47513         (fake_locale): Remove variable.
47514         (gettext, dgettext, dcgettext): Remove functions.
47515         (main): Instead of setting a fake locale, set a real locale. Call
47516         textdomain and bindtextdomain.
47517         * modules/quotearg-tests (Files): Add the new files.
47518         (Depends-on): Add gettext, setenv, unsetenv.
47519         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47520         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47521         Augment TESTS_ENVIRONMENT.
47522
47523 2009-01-25  Bruno Haible  <bruno@clisp.org>
47524
47525         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47526         fr_FR.ISO8859-1 locale on MacOS X.
47527         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47528         ja_JP.eucJP locale on MacOS X.
47529         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47530         zh_CN.GB18030 locale on MacOS X.
47531
47532 2009-01-25  Bruno Haible  <bruno@clisp.org>
47533
47534         Avoid link errors on MacOS X 10.3.
47535         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47536         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47537
47538 2009-01-25  Bruno Haible  <bruno@clisp.org>
47539
47540         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47541         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47542         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47543         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47544         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47545         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47546         posix_spawnattr_init, posix_spawnattr_setsigmask,
47547         posix_spawnattr_setflags, posix_spawnattr_destroy.
47548
47549         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47550         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47551         * modules/execute (Files): Remove m4/posix_spawn.m4.
47552         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47553         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47554         posix_spawnattr_init, posix_spawnattr_setsigmask,
47555         posix_spawnattr_setflags, posix_spawnattr_destroy.
47556
47557 2009-01-25  Bruno Haible  <bruno@clisp.org>
47558
47559         * lib/glthread/threadlib.c: Include <stdlib.h>.
47560
47561 2009-01-25  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/glthread/threadlib.c (dummy): New declaration.
47564
47565 2009-01-25  Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47568         multibyte characters also for the GB18030 encoding. Don't crash when
47569         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47570
47571 2009-01-25  Bruno Haible  <bruno@clisp.org>
47572
47573         Avoid redefining 'struct random_data' on OSF/1 5.1.
47574         * lib/stdlib.in.h: Include <random.h> if it exists.
47575         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47576         HAVE_RANDOM_H. Include <random.h> when testing whether
47577         'struct random_data' exists.
47578         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47579
47580 2009-01-25  Bruno Haible  <bruno@clisp.org>
47581
47582         Don't install charset.alias on MacOS X >= 10.3.
47583         * lib/localcharset.c (DARWIN7): New macro.
47584         (get_charset_aliases): Hardcode the result for Darwin7.
47585         * modules/localcharset (install-exec-local): Don't install
47586         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47587
47588 2009-01-25  Bruno Haible  <bruno@clisp.org>
47589
47590         Don't install charset.alias on mingw and Cygwin.
47591         * modules/localcharset (install-exec-local): Don't install
47592         charset.alias on mingw and Cygwin, if the file does not yet exist.
47593         The result for these platforms is hardcoded in localcharset.c.
47594
47595 2009-01-25  Bruno Haible  <bruno@clisp.org>
47596
47597         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47599         before requiring AC_USE_SYSTEM_EXTENSIONS.
47600
47601 2009-01-25  Jim Meyering  <meyering@redhat.com>
47602
47603         c-strtod: avoid warnings
47604         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47605         "assignment discards qualifiers from pointer target type" warnings.
47606
47607 2009-01-24  Bruno Haible  <bruno@clisp.org>
47608
47609         Add support for non-UTF-8 locales on MacOS X.
47610         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47611         canonical encodings. For Darwin 7 and newer, don't map traditional
47612         encodings to UTF-8.
47613         Reported by Vincent Lefevre <vincent@vinc17.org>
47614         at <http://savannah.gnu.org/bugs/?25235>.
47615
47616 2009-01-24  Bruno Haible  <bruno@clisp.org>
47617
47618         * doc/gnulib.texi (Obsolete modules): New section.
47619         Reported by Mike Frysinger <vapier@gentoo.org>.
47620
47621 2009-01-24  Bruno Haible  <bruno@clisp.org>
47622
47623         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47624         (%.dvi): New rule.
47625
47626 2009-01-24  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47629         Reported by Eric Blake.
47630
47631 2009-01-24  Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47634         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47635         Reported by Gary V. Vaughan <gary@gnu.org>.
47636
47637 2009-01-24  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47640
47641 2009-01-23  Bruno Haible  <bruno@clisp.org>
47642
47643         Make c-strtod, c-strtold usable in libraries.
47644         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47645         (C_STRTOD): Call strdup instead of xstrdup.
47646         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47647         * modules/c-strtold (Depends-on): Likewise.
47648         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47649         * NEWS: Mention the change.
47650         Reported by Michael Gold <mgold@ncf.ca>.
47651
47652 2009-01-23  Jim Meyering  <meyering@redhat.com>
47653
47654         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47655         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47656         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47657
47658 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47659
47660         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47661         GNU CoreUtils.
47662         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47663         * modules/version-etc (Description): Update.
47664
47665 2009-01-22  Bruno Haible  <bruno@clisp.org>
47666
47667         Cache the C locale object.
47668         * lib/c-strtod.c (c_locale_cache): New variable.
47669         (c_locale): New function.
47670         (C_STRTOD): Use it, and don't call freelocale.
47671         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47672         Suggested by Paolo Bonzini.
47673
47674 2009-01-21  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47677         conditions other than overflow.
47678
47679 2009-01-21  Bruno Haible  <bruno@clisp.org>
47680
47681         * lib/c-strtod.c: Include errno.h.
47682         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47683         value from STRTOD_L and STRTOD.
47684
47685 2009-01-21  Bruno Haible  <bruno@clisp.org>
47686         and Jim Meyering  <meyering@redhat.com>
47687
47688         nanosleep: skip configure test (fail it) for apple universal builds
47689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47690         universal builds, assume that nanosleep does not work.
47691         * modules/nanosleep (Depends-on): Add multiarch.
47692
47693         mktime: skip configure test (fail it) for apple universal builds
47694         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47695         universal builds, assume that mktime does not work.
47696         * modules/mktime (Depends-on): Add multiarch.
47697
47698 2009-01-21  Eric Blake  <ebb9@byu.net>
47699
47700         multiarch: avoid expand-before-require warning
47701         * modules/multiarch (configure.ac): Require, rather than expand,
47702         gl_MULTIARCH.
47703         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47704         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47705         enforce that all clients require it.  Partial reversion of
47706         2008-12-29 patch.
47707
47708         error: avoid expand-before-require warning
47709         * modules/errno (configure.ac): Require, rather than expand,
47710         gl_HEADER_ERRNO_H.
47711         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47712         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47713         enforce that all clients require it.
47714
47715         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47716         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47717         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47718         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47719
47720 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47721
47722         Revert:
47723         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47724
47725         regex: do not depend on obsolete modules.
47726         * modules/regex: Remove memcmp and memmove.
47727
47728 2009-01-20  Bruno Haible  <bruno@clisp.org>
47729
47730         Make the 'link' module link on Windows NT 4.
47731         * lib/link.c (_WIN32_WINNT): Don't define.
47732         (CreateHardLinkFuncType): New type.
47733         (CreateHardLinkFunc, initialized): New variables.
47734         (initialize): New function.
47735         (link): Invoke CreateHardLink indirectly through the function pointer.
47736
47737 2009-01-20  Bruno Haible  <bruno@clisp.org>
47738
47739         Fix compilation failure on mingw.
47740         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47741
47742 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47743
47744         * doc/c-strtod.texi: Mention a couple of restrictions.
47745
47746 2009-01-20  Jim Meyering  <meyering@redhat.com>
47747
47748         gettimeofday: move more declarations out of functions
47749         * lib/gettimeofday.c: Move extern declarations of tzset and
47750         gmtime out of containing functions.  Prompted by Bruno Haible.
47751
47752 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47753
47754         regex: do not depend on obsolete modules.
47755         * modules/regex: Remove memcmp and memmove.
47756
47757 2009-01-19  Bruno Haible  <bruno@clisp.org>
47758
47759         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47760         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47761         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47762         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47763         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47764
47765 2009-01-19  Bruno Haible  <bruno@clisp.org>
47766
47767         * tests/test-link.c: Include <errno.h>.
47768         (main): Exit with code 77 when a hard link cannot be created due to
47769         the file system.
47770         * tests/test-link.sh: Skip test when a hard link cannot be created due
47771         to the file system.
47772         Suggested by Eric Blake.
47773
47774 2009-01-19  Martin Lambers  <marlam@marlam.de>
47775
47776         * modules/link-tests: New file.
47777         * tests/test-link.sh: New file.
47778         * tests/test-link.c: New file.
47779
47780 2009-01-19  Eric Blake  <ebb9@byu.net>
47781
47782         doc: mention another function added in cygwin 1.7.0
47783         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47784         Another new function in cygwin 1.7.
47785
47786 2009-01-19  Bruno Haible  <bruno@clisp.org>
47787
47788         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47789         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47790         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47791         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47792         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47793         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47794         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47795         * m4/md4.m4 (gl_MD4): Likewise.
47796         * m4/md5.m4 (gl_MD5): Likewise.
47797         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47798         * m4/sha1.m4 (gl_SHA1): Likewise.
47799         * m4/sha256.m4 (gl_SHA256): Likewise.
47800         * m4/sha512.m4 (gl_SHA512): Likewise.
47801
47802 2009-01-19  Bruno Haible  <bruno@clisp.org>
47803
47804         * modules/uniname/uniname-tests (Depends-on): Add progname.
47805         * tests/uniname/test-uninames.c: Include progname.h.
47806         (main): Call set_program_name.
47807
47808         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47809         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47810         (main): Call set_program_name.
47811
47812         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47813         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47814         (main): Call set_program_name.
47815
47816         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47817         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47818         (main): Call set_program_name.
47819
47820         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47821         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47822         (main): Call set_program_name.
47823
47824         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47825         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47826         (main): Call set_program_name.
47827
47828         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47829         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47830         (main): Call set_program_name.
47831
47832         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47833         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47834         (main): Call set_program_name.
47835
47836         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47837         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47838         (main): Call set_program_name.
47839
47840 2009-01-19  Eric Blake  <ebb9@byu.net>
47841
47842         test-unistd: test previous patch
47843         * tests/test-unistd.c: Test *_FILENO macros.
47844
47845         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47846         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47847         Guarantee a definition.
47848         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47849         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47850         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47851         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47852         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47853         Likewise.
47854         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47855         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47856         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47857         Likewise.
47858         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47859         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47860         (STDERR_FILENO): Likewise.
47861         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47862         (STDERR_FILENO): Likewise.
47863         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47864         (STDERR_FILENO): Likewise.
47865         Reported by Elbert Pol.
47866
47867 2009-01-19  Eric Blake  <ebb9@byu.net>
47868
47869         doc: mention more functions added in cygwin 1.7.0
47870         * doc/posix-functions/abort.texi (abort): Update wording related
47871         to cygwin.
47872         * doc/posix-functions/daylight.texi (daylight): Likewise.
47873         * doc/posix-functions/optarg.texi (optarg): Likewise.
47874         * doc/posix-functions/optarg.texi (opterr): Likewise.
47875         * doc/posix-functions/optarg.texi (optind): Likewise.
47876         * doc/posix-functions/optarg.texi (optopt): Likewise.
47877         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47878         worked in 1.5.x, and was withdrawn in 1.7.
47879         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47880         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47881         cygwin versions.
47882         * doc/posix-functions/perror.texi (perror): Likewise.
47883         * doc/posix-functions/printf.texi (printf): Likewise.
47884         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47885         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47886         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47887         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47888         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47889         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47890         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47891         Likewise.
47892         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47893         Likewise.
47894         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47895         this function.
47896         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47897         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47898         Likewise.
47899         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47900         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47901         * doc/posix-functions/confstr.texi (confstr): Likewise.
47902         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47903         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47904         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47905         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47906         * doc/posix-functions/fputws.texi (fputws): Likewise.
47907         * doc/posix-functions/fwide.texi (fwide): Likewise.
47908         * doc/posix-functions/getwc.texi (getwc): Likewise.
47909         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47910         * doc/posix-functions/putwc.texi (putwc): Likewise.
47911         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47912         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47913         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47914         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47915         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47916         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47917         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47918         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47919         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47920         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47921         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47922
47923 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47924
47925         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47926         * lib/ioctl.c: Include <sys/ioctl.h>.
47927
47928 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47929
47930         * modules/getdate-tests (Depends-on): Add progname.
47931         * tests/test-getdate.c: Use progname module, to avoid link errors
47932         on non-glibc systems.
47933
47934 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47935
47936         * modules/filenamecat-tests (Depends-on): Add progname.
47937         * modules/fstrcmp-tests (Depends-on): Likewise.
47938
47939         * tests/test-filenamecat.c: Use progname module, to avoid link
47940         errors on non-glibc systems.
47941         * tests/test-fstrcmp.c: Likewise.
47942
47943 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47944
47945         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47946         * lib/gettimeofday.c: Move extern declaration out of function.
47947
47948 2009-01-18  Bruno Haible  <bruno@clisp.org>
47949
47950         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47951         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47952         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47953
47954 2009-01-18  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/strftime.c (MEMPCPY): Remove unused macro.
47957         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47958
47959 2009-01-18  Martin Lambers  <marlam@marlam.de>
47960
47961         New module 'link'.
47962         * lib/unistd.in.h (link): New declaration.
47963         * lib/link.c: New file.
47964         * m4/link.m4: New file.
47965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47966         HAVE_LINK.
47967         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47968         * modules/link: New file.
47969         * doc/posix-functions/link.texi: Mention the new module.
47970
47971 2009-01-18  Bruno Haible  <bruno@clisp.org>
47972
47973         * tests/test-avltree_list.c (main): Call set_program_name.
47974         * tests/test-avltree_oset.c (main): Likewise.
47975         * tests/test-obstack-printf.c: Include progname.h.
47976         (main): Call set_program_name.
47977         * tests/test-quotearg.c: Include progname.h.
47978         (main): Call set_program_name.
47979         * tests/test-xmemdup0.c: Include progname.h.
47980         (main): Call set_program_name.
47981
47982 2009-01-18  Bruno Haible  <bruno@clisp.org>
47983
47984         New module 'alphasort'.
47985         * lib/dirent.in.h (alphasort): New declaration.
47986         * lib/alphasort.c: New file, from glibc with modifications.
47987         * m4/alphasort.m4: New file.
47988         * modules/alphasort: New file.
47989         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47990         HAVE_ALPHASORT.
47991         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47992         HAVE_ALPHASORT.
47993         * doc/posix-functions/alphasort.texi: Mention the new module and the
47994         portability problems.
47995
47996 2009-01-18  Bruno Haible  <bruno@clisp.org>
47997
47998         New module 'scandir'.
47999         * lib/dirent.in.h (scandir): New declaration.
48000         * lib/scandir.c: New file, from glibc with modifications.
48001         * m4/scandir.m4: New file.
48002         * modules/scandir: New file.
48003         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48004         HAVE_SCANDIR.
48005         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48006         HAVE_SCANDIR.
48007         * doc/posix-functions/scandir.texi: Mention the new module and the
48008         portability problems.
48009
48010 2009-01-17  Bruno Haible  <bruno@clisp.org>
48011
48012         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48013         Update documentation.
48014         (func_remove_suffix): Escape all dots in the suffix. Update
48015         documentation.
48016         (func_filter_filelist): Update documentation.
48017         Reported by Ralf Wildenhues.
48018
48019 2009-01-17  Bruno Haible  <bruno@clisp.org>
48020
48021         * modules/dprintf-posix-tests: New file.
48022         * tests/test-dprintf-posix.sh: New file.
48023         * tests/test-dprintf-posix.c: New file.
48024
48025         New modules 'dprintf', 'dprintf-posix'.
48026         * lib/stdio.in.h (dprintf): New declaration.
48027         * lib/dprintf.c: New file.
48028         * m4/dprintf.m4: New file.
48029         * m4/dprintf-posix.m4: New file.
48030         * modules/dprintf: New file.
48031         * modules/dprintf-posix: New file.
48032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48033         HAVE_DPRINTF, REPLACE_DPRINTF.
48034         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48035         HAVE_DPRINTF, REPLACE_DPRINTF.
48036         * doc/posix-functions/dprintf.texi: Mention the new modules.
48037
48038 2009-01-17  Bruno Haible  <bruno@clisp.org>
48039
48040         * modules/vdprintf-posix-tests: New file.
48041         * tests/test-vdprintf-posix.sh: New file.
48042         * tests/test-vdprintf-posix.c: New file.
48043
48044         New modules 'vdprintf', 'vdprintf-posix'.
48045         * lib/stdio.in.h (vdprintf): New declaration.
48046         * lib/vdprintf.c: New file.
48047         * m4/vdprintf.m4: New file.
48048         * m4/vdprintf-posix.m4: New file.
48049         * modules/vdprintf: New file.
48050         * modules/vdprintf-posix: New file.
48051         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48052         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48053         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48054         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48055         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48056
48057 2009-01-17  Bruno Haible  <bruno@clisp.org>
48058
48059         Fix replacement of fopen on mingw.
48060         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48061         mingw.
48062
48063 2009-01-17  Bruno Haible  <bruno@clisp.org>
48064
48065         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48066         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48067
48068 2009-01-17  Bruno Haible  <bruno@clisp.org>
48069
48070         Avoid test-fflush2.sh failure on mingw.
48071         * tests/test-fflush2.c: Include binary-io.h.
48072         (main): Put standard input into binary mode.
48073         * modules/fflush-tests (Depends-on): Add binary-io.
48074
48075 2009-01-17  Bruno Haible  <bruno@clisp.org>
48076
48077         * lib/wchar.in.h: In another particular situation, include only the
48078         system's <wchar.h> file.
48079         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48080         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48081         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48082
48083 2009-01-17  Bruno Haible  <bruno@clisp.org>
48084
48085         Support for stripping executables in --enable-relocatable.
48086         * build-aux/install-reloc: Expect one more argument, or an environment
48087         variable RELOC_STRIP_PROG. If set, strip the destination program and
48088         its wrapper.
48089         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48090         RELOC_STRIP_PROG.
48091         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48092         to set RELOCATABLE_STRIP.
48093         * NEWS: Mention the new Makefile requirement.
48094
48095 2009-01-17  Bruno Haible  <bruno@clisp.org>
48096
48097         * build-aux/install-reloc: Remove debugging information left over by
48098         C compiler on MacOS X.
48099
48100 2009-01-17  Bruno Haible  <bruno@clisp.org>
48101
48102         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48103         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48104         _NSGetExecutablePath.
48105
48106 2009-01-16  Jim Meyering  <meyering@redhat.com>
48107
48108         strerror: avoid warnings about discarding "const"
48109         * lib/strerror.c (rpl_strerror): Instead of returning a const
48110         string from each and every "case", use a variable, and add a single
48111         cast after the switch.
48112
48113 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48114
48115         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48116
48117 2009-01-16  Bruno Haible  <bruno@clisp.org>
48118
48119         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48120         array initializer syntax that also works in C++ mode.
48121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48122
48123 2009-01-16  Jim Meyering  <meyering@redhat.com>
48124
48125         poll: suppress a warning
48126         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48127         to ignore "...unsigned expression < 0 is always false" warnings.
48128
48129 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48130
48131         poll: remove declarations of unused variables
48132         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48133         sockbuf and optlen.
48134
48135 2009-01-15  Bruno Haible  <bruno@clisp.org>
48136
48137         Make fflush-after-ungetc POSIX compliant on BSD systems.
48138         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48139         (clear_ungetc_buffer): Implement also for other systems.
48140         (rpl_fflush): On glibc systems, invoke
48141         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48142         clear_ungetc_buffer after fetching the stream's position, not before.
48143
48144 2009-01-15  Bruno Haible  <bruno@clisp.org>
48145
48146         Make fflush-after-ungetc POSIX compliant on glibc systems.
48147         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48148         after ungetc.
48149         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48150         (rpl_fflush): On glibc systems, simply call the system's fflush
48151         function after clearing the ungetc buffer.
48152         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48153         Instead, lseek only to the end of file, then use the system's fseeko
48154         for the rest. On glibc systems, reset the EOF indicator bit.
48155
48156 2009-01-15  Jim Meyering  <meyering@redhat.com>
48157
48158         openmp.m4: revert quote-adding change, for portability to older autoconf
48159         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48160         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48161         Simon Josefsson noticed the problem when using autoconf-2.61.
48162
48163 2009-01-15  Bruno Haible  <bruno@clisp.org>
48164
48165         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48166         * tests/test-fflush2.c (ASSERT): Always fail.
48167         (main): Add two tests for fflush() after ungetc(), taking into account
48168         the Austin Group's clarification.
48169         Suggested by Eric Blake.
48170
48171 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48172
48173         mktime.m4: remove K&R-style function prototypes
48174         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48175         for the Sun C++ compiler.
48176
48177 2009-01-14  Bruno Haible  <bruno@clisp.org>
48178
48179         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48180         while including <wchar.h>.
48181         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48182         the system's <wchar.h> file.
48183         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48184
48185 2009-01-14  Bruno Haible  <bruno@clisp.org>
48186
48187         * m4/csharp.m4: Don't mention gettext on the serial number line.
48188         * m4/csharpexec.m4: Likewise.
48189         * m4/eaccess.m4: Likewise.
48190         * m4/javaexec.m4: Likewise.
48191         * m4/sig_atomic_t.m4: Likewise.
48192         * m4/tmpdir.m4: Likewise.
48193         * m4/intldir.m4: Bump gettext version.
48194         * m4/lib-ld.m4: Likewise.
48195
48196 2009-01-14  Bruno Haible  <bruno@clisp.org>
48197
48198         * lib/progname.c (set_program_name): Add more comments.
48199         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48200
48201 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48202
48203         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48204         were sys/stat.h does not define it.
48205
48206 2009-01-14  Jim Meyering  <meyering@redhat.com>
48207
48208         many *.m4 files: improve m4 quoting
48209         99% of this change was performed by running the following commands:
48210         git ls-files | grep '\.m4$' | xargs perl -pi \
48211           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48212           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48213           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48214           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48215         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48216         The remainder were to add Copyright dates, increment serial numbers,
48217         undo some changes in comments, exclude m4/intl.m4, and add quotes
48218         around the "1" in ",1" where the unusual spacing prohibited the
48219         above regexps from doing the job.  For more details, see
48220         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48221         * m4/acl.m4: Modified.
48222         * m4/afs.m4: Likewise.
48223         * m4/alloca.m4: Likewise.
48224         * m4/argp.m4: Likewise.
48225         * m4/argz.m4: Likewise.
48226         * m4/atexit.m4: Likewise.
48227         * m4/bison-i18n.m4: Likewise.
48228         * m4/bison.m4: Likewise.
48229         * m4/byteswap.m4: Likewise.
48230         * m4/c-stack.m4: Likewise.
48231         * m4/c-strtod.m4: Likewise.
48232         * m4/calloc.m4: Likewise.
48233         * m4/canonicalize-lgpl.m4: Likewise.
48234         * m4/chown.m4: Likewise.
48235         * m4/clock_time.m4: Likewise.
48236         * m4/codeset.m4: Likewise.
48237         * m4/copy-file.m4: Likewise.
48238         * m4/csharp.m4: Likewise.
48239         * m4/csharpcomp.m4: Likewise.
48240         * m4/csharpexec.m4: Likewise.
48241         * m4/d-ino.m4: Likewise.
48242         * m4/d-type.m4: Likewise.
48243         * m4/dirfd.m4: Likewise.
48244         * m4/double-slash-root.m4: Likewise.
48245         * m4/eaccess.m4: Likewise.
48246         * m4/eealloc.m4: Likewise.
48247         * m4/environ.m4: Likewise.
48248         * m4/errno_h.m4: Likewise.
48249         * m4/euidaccess.m4: Likewise.
48250         * m4/execute.m4: Likewise.
48251         * m4/fatal-signal.m4: Likewise.
48252         * m4/fchdir.m4: Likewise.
48253         * m4/fcntl_h.m4: Likewise.
48254         * m4/fileblocks.m4: Likewise.
48255         * m4/filenamecat.m4: Likewise.
48256         * m4/findprog.m4: Likewise.
48257         * m4/flexmember.m4: Likewise.
48258         * m4/fnmatch.m4: Likewise.
48259         * m4/fopen.m4: Likewise.
48260         * m4/fpending.m4: Likewise.
48261         * m4/fprintf-posix.m4: Likewise.
48262         * m4/free.m4: Likewise.
48263         * m4/frexp.m4: Likewise.
48264         * m4/frexpl.m4: Likewise.
48265         * m4/fsusage.m4: Likewise.
48266         * m4/ftruncate.m4: Likewise.
48267         * m4/gc-camellia.m4: Likewise.
48268         * m4/gc-random.m4: Likewise.
48269         * m4/gc.m4: Likewise.
48270         * m4/getaddrinfo.m4: Likewise.
48271         * m4/getcwd-abort-bug.m4: Likewise.
48272         * m4/getcwd-path-max.m4: Likewise.
48273         * m4/getdate.m4: Likewise.
48274         * m4/getdomainname.m4: Likewise.
48275         * m4/getgroups.m4: Likewise.
48276         * m4/gethostname.m4: Likewise.
48277         * m4/gethrxtime.m4: Likewise.
48278         * m4/getline.m4: Likewise.
48279         * m4/getloadavg.m4: Likewise.
48280         * m4/getndelim2.m4: Likewise.
48281         * m4/getpass.m4: Likewise.
48282         * m4/gettext.m4: Likewise.
48283         * m4/gettime.m4: Likewise.
48284         * m4/gettimeofday.m4: Likewise.
48285         * m4/gnulib-common.m4: Likewise.
48286         * m4/group-member.m4: Likewise.
48287         * m4/host-os.m4: Likewise.
48288         * m4/iconv.m4: Likewise.
48289         * m4/iconv_open.m4: Likewise.
48290         * m4/inet_ntop.m4: Likewise.
48291         * m4/inet_pton.m4: Likewise.
48292         * m4/inline.m4: Likewise.
48293         * m4/intldir.m4: Likewise.
48294         * m4/intlmacosx.m4: Likewise.
48295         * m4/intmax.m4: Likewise.
48296         * m4/intmax_t.m4: Likewise.
48297         * m4/inttypes.m4: Likewise.
48298         * m4/inttypes_h.m4: Likewise.
48299         * m4/inttypes-pri.m4: Likewise.
48300         * m4/isapipe.m4: Likewise.
48301         * m4/isnand.m4: Likewise.
48302         * m4/isnanf.m4: Likewise.
48303         * m4/isnanl.m4: Likewise.
48304         * m4/javacomp.m4: Likewise.
48305         * m4/javaexec.m4: Likewise.
48306         * m4/jm-winsz1.m4: Likewise.
48307         * m4/jm-winsz2.m4: Likewise.
48308         * m4/lchown.m4: Likewise.
48309         * m4/lcmessage.m4: Likewise.
48310         * m4/ldexpl.m4: Likewise.
48311         * m4/lib-ld.m4: Likewise.
48312         * m4/lib-link.m4: Likewise.
48313         * m4/libsigsegv.m4: Likewise.
48314         * m4/link-follow.m4: Likewise.
48315         * m4/localcharset.m4: Likewise.
48316         * m4/locale-fr.m4: Likewise.
48317         * m4/locale-ja.m4: Likewise.
48318         * m4/locale-tr.m4: Likewise.
48319         * m4/locale-zh.m4: Likewise.
48320         * m4/lock.m4: Likewise.
48321         * m4/longlong.m4: Likewise.
48322         * m4/ls-mntd-fs.m4: Likewise.
48323         * m4/lstat.m4: Likewise.
48324         * m4/malloc.m4: Likewise.
48325         * m4/mathl.m4: Likewise.
48326         * m4/mbrtowc.m4: Likewise.
48327         * m4/mbstate_t.m4: Likewise.
48328         * m4/mbswidth.m4: Likewise.
48329         * m4/memchr.m4: Likewise.
48330         * m4/memcmp.m4: Likewise.
48331         * m4/memcpy.m4: Likewise.
48332         * m4/memmem.m4: Likewise.
48333         * m4/memmove.m4: Likewise.
48334         * m4/mempcpy.m4: Likewise.
48335         * m4/memrchr.m4: Likewise.
48336         * m4/memset.m4: Likewise.
48337         * m4/minmax.m4: Likewise.
48338         * m4/mkdir-slash.m4: Likewise.
48339         * m4/mkdtemp.m4: Likewise.
48340         * m4/mktime.m4: Likewise.
48341         * m4/mmap-anon.m4: Likewise.
48342         * m4/mountlist.m4: Likewise.
48343         * m4/nanosleep.m4: Likewise.
48344         * m4/nls.m4: Likewise.
48345         * m4/nocrash.m4: Likewise.
48346         * m4/open.m4: Likewise.
48347         * m4/openat.m4: Likewise.
48348         * m4/openmp.m4: Likewise.
48349         * m4/pathmax.m4: Likewise.
48350         * m4/perl.m4: Likewise.
48351         * m4/physmem.m4: Likewise.
48352         * m4/pipe.m4: Likewise.
48353         * m4/po.m4: Likewise.
48354         * m4/poll.m4: Likewise.
48355         * m4/posixtm.m4: Likewise.
48356         * m4/posixver.m4: Likewise.
48357         * m4/printf-frexp.m4: Likewise.
48358         * m4/printf-frexpl.m4: Likewise.
48359         * m4/printf-posix.m4: Likewise.
48360         * m4/printf-posix-rpl.m4: Likewise.
48361         * m4/printf.m4: Likewise.
48362         * m4/progtest.m4: Likewise.
48363         * m4/putenv.m4: Likewise.
48364         * m4/readline.m4: Likewise.
48365         * m4/readlink.m4: Likewise.
48366         * m4/readutmp.m4: Likewise.
48367         * m4/realloc.m4: Likewise.
48368         * m4/regex.m4: Likewise.
48369         * m4/relocatable.m4: Likewise.
48370         * m4/relocatable-lib.m4: Likewise.
48371         * m4/rename-dest-slash.m4: Likewise.
48372         * m4/rename.m4: Likewise.
48373         * m4/rmdir-errno.m4: Likewise.
48374         * m4/rmdir.m4: Likewise.
48375         * m4/roundf.m4: Likewise.
48376         * m4/roundl.m4: Likewise.
48377         * m4/rpmatch.m4: Likewise.
48378         * m4/save-cwd.m4: Likewise.
48379         * m4/selinux-selinux-h.m4: Likewise.
48380         * m4/setenv.m4: Likewise.
48381         * m4/settime.m4: Likewise.
48382         * m4/sig2str.m4: Likewise.
48383         * m4/sig_atomic_t.m4: Likewise.
48384         * m4/signalblocking.m4: Likewise.
48385         * m4/signbit.m4: Likewise.
48386         * m4/sigpipe.m4: Likewise.
48387         * m4/sockets.m4: Likewise.
48388         * m4/sockpfaf.m4: Likewise.
48389         * m4/st_dm_mode.m4: Likewise.
48390         * m4/stat-time.m4: Likewise.
48391         * m4/stdbool.m4: Likewise.
48392         * m4/stdint.m4: Likewise.
48393         * m4/stdint_h.m4: Likewise.
48394         * m4/stpcpy.m4: Likewise.
48395         * m4/stpncpy.m4: Likewise.
48396         * m4/strcase.m4: Likewise.
48397         * m4/strchrnul.m4: Likewise.
48398         * m4/strcspn.m4: Likewise.
48399         * m4/strdup.m4: Likewise.
48400         * m4/strftime.m4: Likewise.
48401         * m4/strndup.m4: Likewise.
48402         * m4/strnlen.m4: Likewise.
48403         * m4/strpbrk.m4: Likewise.
48404         * m4/strptime.m4: Likewise.
48405         * m4/strsep.m4: Likewise.
48406         * m4/strtod.m4: Likewise.
48407         * m4/strtoimax.m4: Likewise.
48408         * m4/strtok_r.m4: Likewise.
48409         * m4/strtol.m4: Likewise.
48410         * m4/strtoll.m4: Likewise.
48411         * m4/strtoul.m4: Likewise.
48412         * m4/strtoull.m4: Likewise.
48413         * m4/strtoumax.m4: Likewise.
48414         * m4/strverscmp.m4: Likewise.
48415         * m4/threadlib.m4: Likewise.
48416         * m4/timegm.m4: Likewise.
48417         * m4/tm_gmtoff.m4: Likewise.
48418         * m4/tmpdir.m4: Likewise.
48419         * m4/tmpfile.m4: Likewise.
48420         * m4/tzset.m4: Likewise.
48421         * m4/uintmax_t.m4: Likewise.
48422         * m4/unlinkdir.m4: Likewise.
48423         * m4/unlocked-io.m4: Likewise.
48424         * m4/uptime.m4: Likewise.
48425         * m4/userspec.m4: Likewise.
48426         * m4/utimbuf.m4: Likewise.
48427         * m4/utime.m4: Likewise.
48428         * m4/utimes-null.m4: Likewise.
48429         * m4/utimes.m4: Likewise.
48430         * m4/vararrays.m4: Likewise.
48431         * m4/vasnprintf.m4: Likewise.
48432         * m4/vfprintf-posix.m4: Likewise.
48433         * m4/vprintf-posix.m4: Likewise.
48434         * m4/wait-process.m4: Likewise.
48435         * m4/wchar_t.m4: Likewise.
48436         * m4/wint_t.m4: Likewise.
48437         * m4/write-any-file.m4: Likewise.
48438         * m4/yield.m4: Likewise.
48439
48440 2009-01-13  Bruno Haible  <bruno@clisp.org>
48441
48442         Avoid test-copy-file.sh failures when ACL support insufficient.
48443         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48444         TESTS_ENVIRONMENT.
48445         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48446         Reported by Jim Meyering.
48447
48448 2009-01-13  Bruno Haible  <bruno@clisp.org>
48449
48450         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48451         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48452         * modules/unistdio/u8-printf-parse (Files): Likewise.
48453         * modules/unistdio/u32-printf-parse (Files): Likewise.
48454         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48455
48456 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48457
48458         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48459         and m4/inttypes_h.m4 too.
48460
48461 2009-01-12  Eric Blake  <ebb9@byu.net>
48462
48463         tests: IRIX 6.2 cc can't compile -0.0 into .data
48464         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48465         rather than at compile-time.
48466         * tests/test-floorl.c (minus_zero): Likewise.
48467         * tests/test-frexpl.c (minus_zero): Likewise.
48468         * tests/test-isnan.c (minus_zerol): Likewise.
48469         * tests/test-isnanl.h (minus_zero): Likewise.
48470         * tests/test-ldexpl.c (minus_zero): Likewise.
48471         * tests/test-roundl.c (minus_zero): Likewise.
48472         * tests/test-signbit.c (minus_zerol): Likewise.
48473         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48474         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48475         * tests/test-truncl.c (minus_zero): Likewise.
48476         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48477         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48478         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48479
48480 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48481
48482         regex: fix glibc bug 9697
48483         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48484         handling.
48485
48486 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48487
48488         regex: fix glibc bug 697
48489         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48490         being NULL also if there are no backreferences.
48491
48492 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48493
48494         regex: merge glibc changes
48495         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48496         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48497         re_string_skip_chars, re_string_reconstruct): Likewise.
48498         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48499
48500 2009-01-07  Jim Meyering  <meyering@redhat.com>
48501
48502         poll: filter through cppi
48503         * lib/poll.c: Indent cpp directives to reflect nesting.
48504
48505 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48506
48507         poll: don't return uninitialized
48508         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48509
48510 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48511
48512         avoid compile failure on AIX 6.1
48513         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48514         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48515
48516 2009-01-04  Jim Meyering  <meyering@redhat.com>
48517
48518         remove duplicate inclusion of <stdio.h>
48519         * tests/test-fprintf-posix.c: Likewise.
48520         * tests/test-printf-posix.c: Likewise.
48521         * tests/test-snprintf-posix.c: Likewise.
48522         * tests/test-sprintf-posix.c: Likewise.
48523         * tests/test-vasprintf-posix.c: Likewise.
48524         * tests/test-vfprintf-posix.c: Likewise.
48525         * tests/test-vprintf-posix.c: Likewise.
48526         * tests/test-vsnprintf-posix.c: Likewise.
48527         * tests/test-vsprintf-posix.c: Likewise.
48528
48529 2009-01-03  Jim Meyering  <meyering@redhat.com>
48530
48531         gnulib-tool: fix sed-based filtering
48532         * gnulib-tool (func_filter_filelist): Remove extra backslash
48533         in sed_fff_filter definition.
48534
48535 2009-01-02  Jim Meyering  <meyering@redhat.com>
48536
48537         strftime: avoid compilation failure on Solaris 2.6
48538         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48539         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48540         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48541         be available.  Reported by Tom G. Christensen.  Details in
48542         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48543
48544 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48545             Bruno Haible  <bruno@clisp.org>
48546
48547         Speed up gnulib-tool by doing more string processing through shell
48548         built-ins.
48549         * gnulib-tool (fast_func_append): New variable.
48550         (func_remove_prefix, func_remove_suffix): New functions.
48551         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48552         (func_filter_filelist): New function.
48553         (func_get_dependencies): Use func_remove_suffix instead of sed.
48554         (func_get_automake_snippet): Use func_filter_filelist instead of a
48555         subshell and sed invocation.
48556
48557 2009-01-01  Bruno Haible  <bruno@clisp.org>
48558
48559         Fix a security bug.
48560         * gnulib-tool (func_import, import, update): Don't allow the characters
48561         '"', '$', '`', '\' in macro arguments that become part of commands that
48562         are evaluated.
48563
48564 2009-01-01  Bruno Haible  <bruno@clisp.org>
48565
48566         * gnulib-tool (func_reset_sigpipe): Add more comments.
48567
48568 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48569
48570         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48571         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48572         already know the answer.
48573
48574 2009-01-01  Jim Meyering  <meyering@redhat.com>
48575
48576         * lib/version-etc.c (version_etc_va): Update copyright year.
48577
48578 2008-12-30  Bruno Haible  <bruno@clisp.org>
48579
48580         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48581         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48582         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48583
48584 2008-12-29  Eric Blake  <ebb9@byu.net>
48585
48586         multiarch: avoid autoconf AC_REQUIRE bug
48587         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48588         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48589         2.63 and older.
48590         Reported by Bruno Haible, and analyzed in
48591         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48592
48593 2008-12-29  Bruno Haible  <bruno@clisp.org>
48594
48595         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48596         files in subdirectories correctly.
48597         Reported by Ralf Wildenhues.
48598
48599 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48600
48601         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48602         rather than 'join FILE -', for Solaris join.
48603
48604 2008-12-29  Bruno Haible  <bruno@clisp.org>
48605
48606         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48607         quoting.
48608         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48609         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48610         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48611         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48612         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48613         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48614         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48615         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48616         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48617         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48618         * m4/nls.m4 (AM_NLS): Likewise.
48619         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48620         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48621         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48622         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48623         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48624         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48625         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48626         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48627         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48628         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48629         * m4/xsize.m4 (gl_XSIZE): Likewise.
48630         Suggested by Jim Meyering.
48631
48632 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48633
48634         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48635         * lib/parse-duration.c: use a switch instead of cascading if's.
48636
48637 2008-12-29  Eric Blake  <ebb9@byu.net>
48638
48639         wchar.h: supply WEOF on Irix 5.3
48640         * lib/wchar.in.h (wint_t): Also supply WEOF.
48641         * lib/wctype.in.h (wint_t): Likewise.
48642         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48643         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48644         Reported by Tom G. Christensen.
48645
48646 2008-12-26  Bruno Haible  <bruno@clisp.org>
48647
48648         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48649         i486, i586, i686.
48650
48651 2008-12-26  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48654
48655 2008-12-26  Bruno Haible  <bruno@clisp.org>
48656
48657         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48658         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48659         not __STDC_CONSTANT_MACROS.
48660         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48661
48662 2008-12-25  Bruno Haible  <bruno@clisp.org>
48663
48664         Add support for universal builds to vasnprintf.
48665         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48666         universal builds, guess no.
48667         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48668         * modules/vasprintf-posix (Depends-on): Likewise.
48669         * modules/fprintf-posix (Depends-on): Likewise.
48670         * modules/vfprintf-posix (Depends-on): Likewise.
48671         * modules/snprintf-posix (Depends-on): Likewise.
48672         * modules/vsnprintf-posix (Depends-on): Likewise.
48673         * modules/sprintf-posix (Depends-on): Likewise.
48674         * modules/vsprintf-posix (Depends-on): Likewise.
48675         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48676         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48677         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48678         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48679         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48680         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48681         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48682
48683         Add support for universal builds to <inttypes.h>.
48684         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48685         _SCNu64_PREFIX): In Apple
48686         universal builds, define directly, using _LP64.
48687         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48688         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48689         * modules/inttypes (Depends-on): Add multiarch.
48690         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48691
48692         Add support for universal builds to <stdint.h>.
48693         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48694         universal builds, define directly, using _LP64.
48695         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48696         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48697         and size_t.
48698         * modules/stdint (Depends-on): Add multiarch.
48699         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48700
48701         New module 'multiarch'.
48702         * modules/multiarch: New file.
48703         * m4/multiarch.m4: New file.
48704
48705 2008-12-25  Bruno Haible  <bruno@clisp.org>
48706
48707         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48708
48709 2008-12-25  Bruno Haible  <bruno@clisp.org>
48710
48711         * modules/btowc (License): Relicense under LGPLv2+.
48712         * modules/mbsinit (License): Likewise.
48713         * modules/mbrtowc (License): Likewise.
48714         * modules/wcrtomb (License): Likewise.
48715         * modules/streq (License): Likewise.
48716         Reported by David Lutterkort <lutter@redhat.com>.
48717
48718 2008-12-23  Bruno Haible  <bruno@clisp.org>
48719
48720         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48721
48722 2008-12-23  Bruno Haible  <bruno@clisp.org>
48723
48724         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48726         GETADDRINFO_LIB, not in LIBS.
48727         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48728         * modules/canon-host (Link): Likewise.
48729         * NEWS: Mention the change.
48730         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48731         GETADDRINFO_LIB.
48732
48733 2008-12-22  Bruno Haible  <bruno@clisp.org>
48734
48735         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48736         * doc/posix-functions/iswalpha_l.texi: Likewise.
48737         * doc/posix-functions/iswblank_l.texi: Likewise.
48738         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48739         * doc/posix-functions/iswctype_l.texi: Likewise.
48740         * doc/posix-functions/iswdigit_l.texi: Likewise.
48741         * doc/posix-functions/iswgraph_l.texi: Likewise.
48742         * doc/posix-functions/iswlower_l.texi: Likewise.
48743         * doc/posix-functions/iswprint_l.texi: Likewise.
48744         * doc/posix-functions/iswpunct_l.texi: Likewise.
48745         * doc/posix-functions/iswspace_l.texi: Likewise.
48746         * doc/posix-functions/iswupper_l.texi: Likewise.
48747         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48748         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48749         * doc/posix-functions/open_wmemstream.texi: Likewise.
48750         * doc/posix-functions/swscanf.texi: Likewise.
48751         * doc/posix-functions/towctrans_l.texi: Likewise.
48752         * doc/posix-functions/towlower.texi: Likewise.
48753         * doc/posix-functions/towlower_l.texi: Likewise.
48754         * doc/posix-functions/towupper.texi: Likewise.
48755         * doc/posix-functions/towupper_l.texi: Likewise.
48756         * doc/posix-functions/vfwprintf.texi: Likewise.
48757         * doc/posix-functions/vfwscanf.texi: Likewise.
48758         * doc/posix-functions/vswscanf.texi: Likewise.
48759         * doc/posix-functions/vwprintf.texi: Likewise.
48760         * doc/posix-functions/vwscanf.texi: Likewise.
48761         * doc/posix-functions/wcpcpy.texi: Likewise.
48762         * doc/posix-functions/wcpncpy.texi: Likewise.
48763         * doc/posix-functions/wcscasecmp.texi: Likewise.
48764         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48765         * doc/posix-functions/wcscoll_l.texi: Likewise.
48766         * doc/posix-functions/wcsdup.texi: Likewise.
48767         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48768         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48769         * doc/posix-functions/wcsnlen.texi: Likewise.
48770         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48771         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48772         * doc/posix-functions/wctrans_l.texi: Likewise.
48773         * doc/posix-functions/wctype_l.texi: Likewise.
48774         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48775         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48776         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48777         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48778         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48779         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48780         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48781         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48782         * doc/glibc-functions/wcschrnul.texi: Likewise.
48783         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48784         * doc/glibc-functions/wcstod_l.texi: Likewise.
48785         * doc/glibc-functions/wcstof_l.texi: Likewise.
48786         * doc/glibc-functions/wcstol_l.texi: Likewise.
48787         * doc/glibc-functions/wcstold_l.texi: Likewise.
48788         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48789         * doc/glibc-functions/wcstoq.texi: Likewise.
48790         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48791         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48792         * doc/glibc-functions/wcstouq.texi: Likewise.
48793         * doc/glibc-functions/wmempcpy.texi: Likewise.
48794
48795 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48796             Eric Blake  <ebb9@byu.net>
48797             Paolo Bonzini  <bonzini@gnu.org>
48798             Bruno Haible  <bruno@clisp.org>
48799
48800         Make c-stack work on Haiku.
48801         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48802         (c_stack_action): Use SA_ONSTACK flag.
48803
48804 2008-12-22  Bruno Haible  <bruno@clisp.org>
48805
48806         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48807
48808 2008-12-22  Bruno Haible  <bruno@clisp.org>
48809
48810         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48811         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48812         being overridden.
48813         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48814         New macros.
48815         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48816         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48817         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48818         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48819
48820 2008-12-22  Bruno Haible  <bruno@clisp.org>
48821
48822         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48823         from test code.
48824
48825 2008-12-22  Eric Blake  <ebb9@byu.net>
48826
48827         Avoid gcc warnings on cygwin.
48828         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48829         Avoid unused variable.
48830         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48831         Likewise.
48832
48833 2008-12-22  Bruno Haible  <bruno@clisp.org>
48834
48835         Remove HAVE_MBRTOWC conditionals.
48836         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48837         (mbscasecmp): Assume mbrtowc function.
48838         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48839         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48840         * lib/mbschr.c: Include mbuiter.h unconditionally.
48841         (mbschr): Assume mbrtowc function.
48842         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48843         (mbscspn): Assume mbrtowc function.
48844         * lib/mbslen.c: Include mbuiter.h unconditionally.
48845         (mbslen): Assume mbrtowc function.
48846         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48847         (mbsncasecmp): Assume mbrtowc function.
48848         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48849         (mbsnlen): Assume mbrtowc function.
48850         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48851         (mbspbrk): Assume mbrtowc function.
48852         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48853         (mbspcasecmp): Assume mbrtowc function.
48854         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48855         (mbsrchr): Assume mbrtowc function.
48856         * lib/mbssep.c: Include mbuiter.h unconditionally.
48857         (mbssep): Assume mbrtowc function.
48858         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48859         (mbsspn): Assume mbrtowc function.
48860         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48861         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48862         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48863         (mbstok_r): Assume mbrtowc function.
48864         * lib/propername.c: Include mbuiter.h unconditionally.
48865         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48866         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48867         (trim2): Assume mbrtowc function.
48868         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48869         (mbsnwidth): Assume mbrtowc function.
48870         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48871         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48872         fallback definitions.
48873         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48874
48875 2008-12-22  Bruno Haible  <bruno@clisp.org>
48876
48877         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48878
48879 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48880
48881         * modules/regex: Request emulations for the mb*/wc* functions we need.
48882         * m4/regex.m4: Don't look for those functions here.
48883         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48884
48885 2008-12-22  Bruno Haible  <bruno@clisp.org>
48886
48887         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48888
48889 2008-12-21  Bruno Haible  <bruno@clisp.org>
48890
48891         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48892         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48893         (Include): Remove conditionalization.
48894         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48895         (Include): Remove conditionalization.
48896         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48897         (Include): Remove conditionalization.
48898         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48899         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48900         * NEWS: Mention the change.
48901         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48902         via Sergey Poznyakoff <gray@gnu.org.ua>.
48903
48904 2008-12-21  Bruno Haible  <bruno@clisp.org>
48905
48906         * MODULES.html.sh (Extended multibyte and wide character utilities
48907         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48908         wcrtomb, wcsrtombs.
48909         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48910         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48911         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48912         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48913
48914 2008-12-21  Bruno Haible  <bruno@clisp.org>
48915
48916         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48917
48918 2008-12-21  Bruno Haible  <bruno@clisp.org>
48919
48920         * modules/wcsnrtombs-tests: New file.
48921         * tests/test-wcsnrtombs1.sh: New file.
48922         * tests/test-wcsnrtombs2.sh: New file.
48923         * tests/test-wcsnrtombs3.sh: New file.
48924         * tests/test-wcsnrtombs4.sh: New file.
48925         * tests/test-wcsnrtombs.c: New file.
48926
48927         New module 'wcsnrtombs'.
48928         * lib/wchar.in.h (wcsnrtombs): New declaration.
48929         * lib/wcsnrtombs.c: New file.
48930         * lib/wcsrtombs-state.c: New file.
48931         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48932         (internal_state): Remove variable.
48933         * m4/wcsnrtombs.m4: New file.
48934         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48935         compilation units.
48936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48937         HAVE_WCSNRTOMBS.
48938         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48939         HAVE_WCSNRTOMBS.
48940         * modules/wcsnrtombs: New file.
48941         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48942         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48943
48944 2008-12-21  Bruno Haible  <bruno@clisp.org>
48945
48946         * modules/wcsrtombs-tests: New file.
48947         * tests/test-wcsrtombs1.sh: New file.
48948         * tests/test-wcsrtombs2.sh: New file.
48949         * tests/test-wcsrtombs3.sh: New file.
48950         * tests/test-wcsrtombs4.sh: New file.
48951         * tests/test-wcsrtombs.c: New file.
48952
48953         New module 'wcsrtombs'.
48954         * lib/wchar.in.h (wcsrtombs): New declaration.
48955         * lib/wcsrtombs.c: New file.
48956         * m4/wcsrtombs.m4: New file.
48957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48958         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48960         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48961         * modules/wcsrtombs: New file.
48962         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48963         bugs.
48964
48965 2008-12-21  Bruno Haible  <bruno@clisp.org>
48966
48967         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48968         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48969         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48970         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48971         if not correct.
48972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48973         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48974         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48975         m4/locale-zh.m4, m4/codeset.m4.
48976         * doc/posix-functions/wcrtomb.texi: Document the bug.
48977
48978 2008-12-21  Bruno Haible  <bruno@clisp.org>
48979
48980         Work around a btowc() bug on IRIX 6.5.
48981         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48982         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48983         REPLACE_WTOBC if not.
48984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48985         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48986         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48987
48988 2008-12-21  Bruno Haible  <bruno@clisp.org>
48989
48990         * modules/wcrtomb-tests: New file.
48991         * tests/test-wcrtomb.sh: New file.
48992         * tests/test-wcrtomb.c: New file.
48993
48994         New module 'wcrtomb'.
48995         * lib/wchar.in.h (wcrtomb): New declaration.
48996         * lib/wcrtomb.c: New file.
48997         * m4/wcrtomb.m4: New file.
48998         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48999         HAVE_WCRTOMB.
49000         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49001         HAVE_WCRTOMB.
49002         * modules/wcrtomb: New file.
49003         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49004
49005 2008-12-21  Bruno Haible  <bruno@clisp.org>
49006
49007         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49008         * modules/mbsrtowcs (Files): Likewise.
49009         * modules/wctob (Files): Likewise.
49010         * modules/c-strcase-tests (Files): Likewise.
49011         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49012         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49013         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49014         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49015         * modules/vasnprintf-posix-tests (Files): Likewise.
49016
49017 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49018
49019         gitlog-to-changelog: pass all command-line arguments to git-log
49020         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49021         it is sometimes convenient to filter the commits in various ways.
49022         gitlog-to-changelog only allows --since to specify a start date,
49023         but git-log itself supports many other filtering mechanisms.
49024         At the moment, I want to filter by branch name.  Rather than
49025         adding a --branch option to gitlog-to-changelog, it seems more
49026         flexible to simply pass all options directly to git-log and let
49027         git do the work.  Notice that this effectively makes --since a
49028         redundant option for gitlog-to-changelog, but removing it would
49029         require current usage to change since calls would then require
49030         an additional '--'.
49031
49032 2008-12-21  Bruno Haible  <bruno@clisp.org>
49033
49034         * modules/mbsnrtowcs-tests: New file.
49035         * tests/test-mbsnrtowcs1.sh: New file.
49036         * tests/test-mbsnrtowcs2.sh: New file.
49037         * tests/test-mbsnrtowcs3.sh: New file.
49038         * tests/test-mbsnrtowcs4.sh: New file.
49039         * tests/test-mbsnrtowcs.c: New file.
49040
49041         New module 'mbsnrtowcs'.
49042         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49043         * lib/mbsnrtowcs.c: New file.
49044         * lib/mbsrtowcs-state.c: New file.
49045         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49046         (internal_state): Remove variable.
49047         * m4/mbsnrtowcs.m4: New file.
49048         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49049         compilation units.
49050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49051         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49052         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49053         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49054         * modules/mbsnrtowcs: New file.
49055         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49056         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49057         portability problem.
49058
49059 2008-12-21  Bruno Haible  <bruno@clisp.org>
49060
49061         Work around mbsrtowcs bug.
49062         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49063         (gl_FUNC_MBSRTOWCS): Invoke it.
49064         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49065         m4/locale-zh.m4.
49066         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49067
49068 2008-12-21  Bruno Haible  <bruno@clisp.org>
49069
49070         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49071
49072 2008-12-21  Bruno Haible  <bruno@clisp.org>
49073
49074         Update doc for AIX.
49075         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49076         16-bit wchar_t type.
49077         * doc/posix-functions/btowc.texi: Likewise.
49078         * doc/posix-functions/fgetwc.texi: Likewise.
49079         * doc/posix-functions/fgetws.texi: Likewise.
49080         * doc/posix-functions/fputwc.texi: Likewise.
49081         * doc/posix-functions/fputws.texi: Likewise.
49082         * doc/posix-functions/fwide.texi: Likewise.
49083         * doc/posix-functions/fwprintf.texi: Likewise.
49084         * doc/posix-functions/fwscanf.texi: Likewise.
49085         * doc/posix-functions/getwchar.texi: Likewise.
49086         * doc/posix-functions/getwc.texi: Likewise.
49087         * doc/posix-functions/iswalnum.texi: Likewise.
49088         * doc/posix-functions/iswalpha.texi: Likewise.
49089         * doc/posix-functions/iswblank.texi: Likewise.
49090         * doc/posix-functions/iswcntrl.texi: Likewise.
49091         * doc/posix-functions/iswctype.texi: Likewise.
49092         * doc/posix-functions/iswdigit.texi: Likewise.
49093         * doc/posix-functions/iswgraph.texi: Likewise.
49094         * doc/posix-functions/iswlower.texi: Likewise.
49095         * doc/posix-functions/iswprint.texi: Likewise.
49096         * doc/posix-functions/iswpunct.texi: Likewise.
49097         * doc/posix-functions/iswspace.texi: Likewise.
49098         * doc/posix-functions/iswupper.texi: Likewise.
49099         * doc/posix-functions/iswxdigit.texi: Likewise.
49100         * doc/posix-functions/mbrtowc.texi: Likewise.
49101         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49102         * doc/posix-functions/mbstowcs.texi: Likewise.
49103         * doc/posix-functions/mbtowc.texi: Likewise.
49104         * doc/posix-functions/putwchar.texi: Likewise.
49105         * doc/posix-functions/putwc.texi: Likewise.
49106         * doc/posix-functions/swprintf.texi: Likewise.
49107         * doc/posix-functions/tolower.texi: Likewise.
49108         * doc/posix-functions/toupper.texi: Likewise.
49109         * doc/posix-functions/towctrans.texi: Likewise.
49110         * doc/posix-functions/ungetwc.texi: Likewise.
49111         * doc/posix-functions/vswprintf.texi: Likewise.
49112         * doc/posix-functions/wcrtomb.texi: Likewise.
49113         * doc/posix-functions/wcscat.texi: Likewise.
49114         * doc/posix-functions/wcschr.texi: Likewise.
49115         * doc/posix-functions/wcscmp.texi: Likewise.
49116         * doc/posix-functions/wcscoll.texi: Likewise.
49117         * doc/posix-functions/wcscpy.texi: Likewise.
49118         * doc/posix-functions/wcscspn.texi: Likewise.
49119         * doc/posix-functions/wcsftime.texi: Likewise.
49120         * doc/posix-functions/wcslen.texi: Likewise.
49121         * doc/posix-functions/wcsncat.texi: Likewise.
49122         * doc/posix-functions/wcsncmp.texi: Likewise.
49123         * doc/posix-functions/wcsncpy.texi: Likewise.
49124         * doc/posix-functions/wcspbrk.texi: Likewise.
49125         * doc/posix-functions/wcsrchr.texi: Likewise.
49126         * doc/posix-functions/wcsrtombs.texi: Likewise.
49127         * doc/posix-functions/wcsspn.texi: Likewise.
49128         * doc/posix-functions/wcsstr.texi: Likewise.
49129         * doc/posix-functions/wcstod.texi: Likewise.
49130         * doc/posix-functions/wcstof.texi: Likewise.
49131         * doc/posix-functions/wcstoimax.texi: Likewise.
49132         * doc/posix-functions/wcstok.texi: Likewise.
49133         * doc/posix-functions/wcstold.texi: Likewise.
49134         * doc/posix-functions/wcstoll.texi: Likewise.
49135         * doc/posix-functions/wcstol.texi: Likewise.
49136         * doc/posix-functions/wcstombs.texi: Likewise.
49137         * doc/posix-functions/wcstoull.texi: Likewise.
49138         * doc/posix-functions/wcstoul.texi: Likewise.
49139         * doc/posix-functions/wcstoumax.texi: Likewise.
49140         * doc/posix-functions/wcswidth.texi: Likewise.
49141         * doc/posix-functions/wcsxfrm.texi: Likewise.
49142         * doc/posix-functions/wctob.texi: Likewise.
49143         * doc/posix-functions/wctomb.texi: Likewise.
49144         * doc/posix-functions/wctrans.texi: Likewise.
49145         * doc/posix-functions/wctype.texi: Likewise.
49146         * doc/posix-functions/wcwidth.texi: Likewise.
49147         * doc/posix-functions/wmemchr.texi: Likewise.
49148         * doc/posix-functions/wmemcmp.texi: Likewise.
49149         * doc/posix-functions/wmemcpy.texi: Likewise.
49150         * doc/posix-functions/wmemmove.texi: Likewise.
49151         * doc/posix-functions/wmemset.texi: Likewise.
49152         * doc/posix-functions/wprintf.texi: Likewise.
49153         * doc/posix-functions/wscanf.texi: Likewise.
49154
49155 2008-12-21  Bruno Haible  <bruno@clisp.org>
49156
49157         Update doc for HP-UX 11.11.
49158         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49159         in HP-UX version 11.00, not in all versions of HP-UX 11.
49160         * doc/posix-functions/fwide.texi: Likewise.
49161         * doc/posix-functions/fwprintf.texi: Likewise.
49162         * doc/posix-functions/fwscanf.texi: Likewise.
49163         * doc/posix-functions/inet_ntop.texi: Likewise.
49164         * doc/posix-functions/inet_pton.texi: Likewise.
49165         * doc/posix-functions/mbrlen.texi: Likewise.
49166         * doc/posix-functions/mbrtowc.texi: Likewise.
49167         * doc/posix-functions/mbsinit.texi: Likewise.
49168         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49169         * doc/posix-functions/swprintf.texi: Likewise.
49170         * doc/posix-functions/swscanf.texi: Likewise.
49171         * doc/posix-functions/towctrans.texi: Likewise.
49172         * doc/posix-functions/vfwprintf.texi: Likewise.
49173         * doc/posix-functions/vswprintf.texi: Likewise.
49174         * doc/posix-functions/vwprintf.texi: Likewise.
49175         * doc/posix-functions/wcrtomb.texi: Likewise.
49176         * doc/posix-functions/wcsrtombs.texi: Likewise.
49177         * doc/posix-functions/wcsstr.texi: Likewise.
49178         * doc/posix-functions/wctob.texi: Likewise.
49179         * doc/posix-functions/wctrans.texi: Likewise.
49180         * doc/posix-functions/wmemchr.texi: Likewise.
49181         * doc/posix-functions/wmemcmp.texi: Likewise.
49182         * doc/posix-functions/wmemcpy.texi: Likewise.
49183         * doc/posix-functions/wmemmove.texi: Likewise.
49184         * doc/posix-functions/wmemset.texi: Likewise.
49185         * doc/posix-functions/wprintf.texi: Likewise.
49186         * doc/posix-functions/wscanf.texi: Likewise.
49187
49188 2008-12-21  Bruno Haible  <bruno@clisp.org>
49189
49190         Work around a portability problem.
49191         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49192         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49193
49194 2008-12-20  Bruno Haible  <bruno@clisp.org>
49195
49196         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49197         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49198         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49200         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49201
49202         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49203         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49204         set.
49205         (GNULIB_defined_mbstate_t): New macro.
49206         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49207         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49208         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49209         reuses the system's mbrtowc function but works around the bugs.
49210         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49211         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49212         macros.
49213         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49214         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49215         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49216         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49217         REPLACE_MBSINIT if mbsinit needs to be overridden.
49218         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49219         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49220         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49221         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49222         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49223         m4/locale-zh.m4.
49224         (Depends): Add mbsinit.
49225         * modules/mbsinit (Depends): Add mbrtowc.
49226         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49227
49228 2008-12-20  Bruno Haible  <bruno@clisp.org>
49229
49230         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49231         so that there are no conversion errors on AIX.
49232         * tests/test-mbsrtowcs.c (main): LIkewise.
49233
49234 2008-12-20  Bruno Haible  <bruno@clisp.org>
49235
49236         Work around wctob bug on Solaris <= 9.
49237         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49238         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49240         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49241         * modules/wctob (Files): Add m4/locale-fr.m4.
49242         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49243
49244 2008-12-20  Bruno Haible  <bruno@clisp.org>
49245
49246         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49247         /dev/null.
49248         * tests/test-select-in.sh: Likewise.
49249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49250
49251 2008-12-20  Bruno Haible  <bruno@clisp.org>
49252
49253         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49254         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49255         Cygwin 1.5.x.
49256
49257 2008-12-20  Bruno Haible  <bruno@clisp.org>
49258
49259         Ensure mbstate_t is defined on HP-UX 11.11.
49260         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49261         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49262         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49263         AC_USE_SYSTEM_EXTENSIONS.
49264         * modules/fnmatch (Depends-on): Add extensions.
49265         * modules/mbrlen (Depends-on): Likewise.
49266         * modules/mbrtowc (Depends-on): Likewise.
49267         * modules/mbsinit (Depends-on): Likewise.
49268         * modules/mbsrtowcs (Depends-on): Likewise.
49269         * modules/mbswidth (Depends-on): Likewise.
49270         * modules/quotearg (Depends-on): Likewise.
49271         * modules/strftime (Depends-on): Likewise.
49272
49273 2008-12-20  Bruno Haible  <bruno@clisp.org>
49274
49275         Ensure wctob is declared on IRIX 6.5.
49276         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49277         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49278         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49279         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49280         of HAVE_WCTOB.
49281         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49282         HAVE_WCTOB.
49283         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49284
49285 2008-12-19  Bruno Haible  <bruno@clisp.org>
49286
49287         * modules/mbsrtowcs-tests: New file.
49288         * tests/test-mbsrtowcs1.sh: New file.
49289         * tests/test-mbsrtowcs2.sh: New file.
49290         * tests/test-mbsrtowcs3.sh: New file.
49291         * tests/test-mbsrtowcs4.sh: New file.
49292         * tests/test-mbsrtowcs.c: New file.
49293
49294         New module 'mbsrtowcs'.
49295         * lib/wchar.in.h (mbsrtowcs): New declaration.
49296         * lib/mbsrtowcs.c: New file.
49297         * m4/mbsrtowcs.m4: New file.
49298         * modules/mbsrtowcs: New file.
49299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49300         HAVE_MBSRTOWCS.
49301         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49302         HAVE_MBSRTOWCS.
49303         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49304
49305 2008-12-19  Bruno Haible  <bruno@clisp.org>
49306
49307         New module 'mbrlen'.
49308         * lib/wchar.in.h (mbrlen): New declaration.
49309         * lib/mbrlen.c: New file.
49310         * m4/mbrlen.m4: New file.
49311         * modules/mbrlen: New file.
49312         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49313         HAVE_MBRLEN.
49314         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49315         HAVE_MBRLEN.
49316         * doc/posix-functions/mbrlen.texi: Document the new module.
49317
49318 2008-12-19  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49321         * modules/mbrtowc (Depends-on): Add verify.
49322         Suggested by Paul Eggert.
49323
49324 2008-12-18  Bruno Haible  <bruno@clisp.org>
49325
49326         * modules/mbsinit-tests: New file.
49327         * tests/test-mbsinit.sh: New file.
49328         * tests/test-mbsinit.c: New file.
49329
49330 2008-12-18  Bruno Haible  <bruno@clisp.org>
49331
49332         * modules/mbrtowc-tests: New file.
49333         * tests/test-mbrtowc1.sh: New file.
49334         * tests/test-mbrtowc2.sh: New file.
49335         * tests/test-mbrtowc3.sh: New file.
49336         * tests/test-mbrtowc4.sh: New file.
49337         * tests/test-mbrtowc.c: New file.
49338
49339         New module 'mbrtowc'.
49340         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49341         mbsinit and mbrtowc.
49342         (mbrtowc): New declaration.
49343         * lib/mbrtowc.c: New file.
49344         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49345         * modules/mbrtowc: New file.
49346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49347         HAVE_MBRTOWC.
49348         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49349         HAVE_MBRTOWC.
49350         * doc/posix-functions/mbrtowc.texi: Document the new module.
49351
49352 2008-12-18  Bruno Haible  <bruno@clisp.org>
49353
49354         New module 'wctob'.
49355         * lib/wchar.in.h (wctob): New declaration.
49356         * lib/wctob.c: New file.
49357         * m4/wctob.m4: New file.
49358         * modules/wctob: New file.
49359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49360         HAVE_WCTOB.
49361         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49362         * doc/posix-functions/wctob.texi: Document the new module.
49363
49364 2008-12-18  Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49367         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49368
49369 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49370
49371         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49372         G. Christensen" <tgc@jupiterrise.com>.
49373
49374         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49375         G. Christensen" <tgc@jupiterrise.com>.
49376
49377         * lib/flock.c: Need to include string.h.  Reported by "Tom
49378         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49379         <ebb9@byu.net>.
49380
49381 2008-12-18  Bruno Haible  <bruno@clisp.org>
49382
49383         * m4/locale-ja.m4: New file, from GNU gettext.
49384
49385 2008-12-17  Bruno Haible  <bruno@clisp.org>
49386
49387         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49388         Suggested by Eric Blake.
49389
49390 2008-12-17  Bruno Haible  <bruno@clisp.org>
49391
49392         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49393
49394 2008-12-17  Bruno Haible  <bruno@clisp.org>
49395
49396         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49397         * modules/mbsinit (Depends-on): Add verify.
49398         Suggested by Paul Eggert.
49399
49400 2008-12-17  Bruno Haible  <bruno@clisp.org>
49401
49402         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49403         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49404         gl_FUNC_MBRTOWC.
49405         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49406         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49407         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49408         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49409         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49410         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49411         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49412         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49413         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49414         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49415         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49416         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49417         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49418         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49419         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49420         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49421         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49422         * modules/trim (configure.ac): Likewise.
49423
49424 2008-12-17  Bruno Haible  <bruno@clisp.org>
49425
49426         * modules/btowc-tests: New file.
49427         * tests/test-btowc1.sh: New file.
49428         * tests/test-btowc2.sh: New file.
49429         * tests/test-btowc.c: New file.
49430
49431         New module 'btowc'.
49432         * lib/wchar.in.h (btowc): New declaration.
49433         * lib/btowc.c: New file.
49434         * m4/btowc.m4: New file.
49435         * modules/btowc: New file.
49436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49437         HAVE_BTOWC.
49438         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49439         * doc/posix-functions/btowc.texi: Document the new module.
49440
49441 2008-12-17  Bruno Haible  <bruno@clisp.org>
49442
49443         New module 'mbsinit'.
49444         * lib/wchar.in.h (mbsinit): New declaration.
49445         * lib/mbsinit.c: New file.
49446         * m4/mbsinit.m4: New file.
49447         * modules/mbsinit: New file.
49448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49449         HAVE_MBSINIT.
49450         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49451         HAVE_MBSINIT.
49452         * doc/posix-functions/mbsinit.texi: Document the new module.
49453
49454 2008-12-16  Bruno Haible  <bruno@clisp.org>
49455
49456         * lib/unistd.in.h: Add comment.
49457         * tests/test-environ.c: Don't include <stdlib.h>.
49458
49459 2008-12-16  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/parse-duration.h (parse_duration): Document return value
49462         convention.
49463         * lib/parse-duration.c: Include specification header first. Add
49464         comments.
49465         (_): Remove macro.
49466         (parse_year_month_day, parse_hour_minute_second): Move side effects
49467         outside of strchr call.
49468         (parse_non_iso8601): Move side effects outside of isspace call.
49469         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49470         call.
49471
49472 2008-12-16  Bruno Haible  <bruno@clisp.org>
49473
49474         * tests/test-parse-duration.sh: Produce no output when the test
49475         succeeds.
49476
49477 2008-12-16  Bruno Haible  <bruno@clisp.org>
49478
49479         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49480         expressions.
49481
49482 2008-12-15  Bruno Haible  <bruno@clisp.org>
49483
49484         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49485         * doc/glibc-functions/flistxattr.texi: Likewise.
49486         * doc/glibc-functions/fopencookie.texi: Likewise.
49487         * doc/glibc-functions/fremovexattr.texi: Likewise.
49488         * doc/glibc-functions/fsetxattr.texi: Likewise.
49489         * doc/glibc-functions/getxattr.texi: Likewise.
49490         * doc/glibc-functions/lgetxattr.texi: Likewise.
49491         * doc/glibc-functions/listxattr.texi: Likewise.
49492         * doc/glibc-functions/llistxattr.texi: Likewise.
49493         * doc/glibc-functions/lremovexattr.texi: Likewise.
49494         * doc/glibc-functions/lsetxattr.texi: Likewise.
49495         * doc/glibc-functions/removexattr.texi: Likewise.
49496         * doc/glibc-functions/setxattr.texi: Likewise.
49497         * doc/posix-functions/open_memstream.texi: Likewise.
49498
49499 2008-12-15  Eric Blake  <ebb9@byu.net>
49500
49501         Update doc for cygwin 1.7.
49502         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49503         functions.
49504         * doc/posix-functions/fchmodat.texi: Likewise.
49505         * doc/posix-functions/fchownat.texi: Likewise.
49506         * doc/posix-functions/fdopendir.texi: Likewise.
49507         * doc/posix-functions/fmemopen.texi: Likewise.
49508         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49509         * doc/posix-functions/fstatat.texi: Likewise.
49510         * doc/posix-functions/futimens.texi: Likewise.
49511         * doc/posix-functions/gai_strerror.texi: Likewise.
49512         * doc/posix-functions/getaddrinfo.texi: Likewise.
49513         * doc/posix-functions/getnameinfo.texi: Likewise.
49514         * doc/posix-functions/if_freenameindex.texi: Likewise.
49515         * doc/posix-functions/if_indextoname.texi: Likewise.
49516         * doc/posix-functions/if_nameindex.texi: Likewise.
49517         * doc/posix-functions/if_nametoindex.texi: Likewise.
49518         * doc/posix-functions/insque.texi: Likewise.
49519         * doc/posix-functions/linkat.texi: Likewise.
49520         * doc/posix-functions/llrint.texi: Likewise.
49521         * doc/posix-functions/llrintf.texi: Likewise.
49522         * doc/posix-functions/llrintl.texi: Likewise.
49523         * doc/posix-functions/lockf.texi: Likewise.
49524         * doc/posix-functions/lrintl.texi: Likewise.
49525         * doc/posix-functions/mkdirat.texi: Likewise.
49526         * doc/posix-functions/mkfifoat.texi: Likewise.
49527         * doc/posix-functions/mknodat.texi: Likewise.
49528         * doc/posix-functions/mq_close.texi: Likewise.
49529         * doc/posix-functions/mq_getattr.texi: Likewise.
49530         * doc/posix-functions/mq_notify.texi: Likewise.
49531         * doc/posix-functions/mq_open.texi: Likewise.
49532         * doc/posix-functions/mq_receive.texi: Likewise.
49533         * doc/posix-functions/mq_send.texi: Likewise.
49534         * doc/posix-functions/mq_setattr.texi: Likewise.
49535         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49536         * doc/posix-functions/mq_timedsend.texi: Likewise.
49537         * doc/posix-functions/mq_unlink.texi: Likewise.
49538         * doc/posix-functions/open_memstream.texi: Likewise.
49539         * doc/posix-functions/openat.texi: Likewise.
49540         * doc/posix-functions/posix_fadvise.texi: Likewise.
49541         * doc/posix-functions/posix_fallocate.texi: Likewise.
49542         * doc/posix-functions/posix_madvise.texi: Likewise.
49543         * doc/posix-functions/posix_memalign.texi: Likewise.
49544         * doc/posix-functions/posix_openpt.texi: Likewise.
49545         * doc/posix-functions/readlinkat.texi: Likewise.
49546         * doc/posix-functions/remque.texi: Likewise.
49547         * doc/posix-functions/renameat.texi: Likewise.
49548         * doc/posix-functions/rintl.texi: Likewise.
49549         * doc/posix-functions/sem_unlink.texi: Likewise.
49550         * doc/posix-functions/shm_open.texi: Likewise.
49551         * doc/posix-functions/shm_unlink.texi: Likewise.
49552         * doc/posix-functions/signgam.texi: Likewise.
49553         * doc/posix-functions/sigset.texi: Likewise.
49554         * doc/posix-functions/stpcpy.texi: Likewise.
49555         * doc/posix-functions/stpncpy.texi: Likewise.
49556         * doc/posix-functions/strerror.texi: Likewise.
49557         * doc/posix-functions/strtod.texi: Likewise.
49558         * doc/posix-functions/symlinkat.texi: Likewise.
49559         * doc/posix-functions/unlinkat.texi: Likewise.
49560         * doc/posix-functions/utimensat.texi: Likewise.
49561         * doc/glibc-functions/bindresvport.texi: Likewise.
49562         * doc/glibc-functions/dn_expand.texi: Likewise.
49563         * doc/glibc-functions/exp10.texi: Likewise.
49564         * doc/glibc-functions/exp10f.texi: Likewise.
49565         * doc/glibc-functions/fgetxattr.texi: Likewise.
49566         * doc/glibc-functions/flistxattr.texi: Likewise.
49567         * doc/glibc-functions/fopencookie.texi: Likewise.
49568         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49569         * doc/glibc-functions/fremovexattr.texi: Likewise.
49570         * doc/glibc-functions/fsetxattr.texi: Likewise.
49571         * doc/glibc-functions/getifaddrs.texi: Likewise.
49572         * doc/glibc-functions/getxattr.texi: Likewise.
49573         * doc/glibc-functions/lgetxattr.texi: Likewise.
49574         * doc/glibc-functions/listxattr.texi: Likewise.
49575         * doc/glibc-functions/llistxattr.texi: Likewise.
49576         * doc/glibc-functions/lremovexattr.texi: Likewise.
49577         * doc/glibc-functions/lsetxattr.texi: Likewise.
49578         * doc/glibc-functions/pow10.texi: Likewise.
49579         * doc/glibc-functions/pow10f.texi: Likewise.
49580         * doc/glibc-functions/rcmd_af.texi: Likewise.
49581         * doc/glibc-functions/removexattr.texi: Likewise.
49582         * doc/glibc-functions/res_init.texi: Likewise.
49583         * doc/glibc-functions/res_mkquery.texi: Likewise.
49584         * doc/glibc-functions/res_query.texi: Likewise.
49585         * doc/glibc-functions/res_querydomain.texi: Likewise.
49586         * doc/glibc-functions/res_send.texi: Likewise.
49587         * doc/glibc-functions/rresvport_af.texi: Likewise.
49588         * doc/glibc-functions/setxattr.texi: Likewise.
49589         * doc/glibc-functions/strcasestr.texi: Likewise.
49590
49591 2008-12-15  Bruno Haible  <bruno@clisp.org>
49592
49593         Fix compilation error on OSF/1 4.0.
49594         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49595         <sys/time.h>, simply delegate to the system header.
49596         Reported by Daniel Richard G. <oss@teragram.com>.
49597
49598 2008-12-15  Bruno Haible  <bruno@clisp.org>
49599
49600         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49601         * doc/posix-functions/fchmodat.texi: Likewise.
49602         * doc/posix-functions/fchownat.texi: Likewise.
49603         * doc/posix-functions/fdopendir.texi: Likewise.
49604         * doc/posix-functions/fstatat.texi: Likewise.
49605         * doc/posix-functions/mkdirat.texi: Likewise.
49606         * doc/posix-functions/unlinkat.texi: Likewise.
49607
49608 2008-12-14  Bruno Haible  <bruno@clisp.org>
49609
49610         Update doc for POSIX:2008.
49611         * doc/posix-functions/faccessat.texi: New file.
49612         * doc/posix-functions/fchmodat.texi: New file.
49613         * doc/posix-functions/fchownat.texi: New file.
49614         * doc/posix-functions/fdopendir.texi: New file.
49615         * doc/posix-functions/fstatat.texi: New file.
49616         * doc/posix-functions/futimens.texi: New file.
49617         * doc/posix-functions/linkat.texi: New file.
49618         * doc/posix-functions/mkdirat.texi: New file.
49619         * doc/posix-functions/mkfifoat.texi: New file.
49620         * doc/posix-functions/mknodat.texi: New file.
49621         * doc/posix-functions/open_wmemstream.texi: New file.
49622         * doc/posix-functions/openat.texi: New file.
49623         * doc/posix-functions/psiginfo.texi: New file.
49624         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49625         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49626         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49627         * doc/posix-functions/readlinkat.texi: New file.
49628         * doc/posix-functions/renameat.texi: New file.
49629         * doc/posix-functions/strerror_l.texi: New file.
49630         * doc/posix-functions/symlinkat.texi: New file.
49631         * doc/posix-functions/unlinkat.texi: New file.
49632         * doc/posix-functions/utimensat.texi: New file.
49633         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49634
49635 2008-12-14  Bruno Haible  <bruno@clisp.org>
49636
49637         Update doc for POSIX:2008.
49638         * doc/posix-functions/alphasort.texi: Renamed from
49639         doc/glibc-functions/alphasort.texi.
49640         * doc/posix-functions/dirfd.texi: Renamed from
49641         doc/glibc-functions/dirfd.texi.
49642         * doc/posix-functions/dprintf.texi: Renamed from
49643         doc/glibc-functions/dprintf.texi.
49644         * doc/posix-functions/duplocale.texi: Renamed from
49645         doc/glibc-functions/duplocale.texi.
49646         * doc/posix-functions/fexecve.texi: Renamed from
49647         doc/glibc-functions/fexecve.texi.
49648         * doc/posix-functions/fmemopen.texi: Renamed from
49649         doc/glibc-functions/fmemopen.texi.
49650         * doc/posix-functions/freelocale.texi: Renamed from
49651         doc/glibc-functions/freelocale.texi.
49652         * doc/posix-functions/getdate_err.texi: Renamed from
49653         doc/glibc-functions/getdate_err.texi.
49654         * doc/posix-functions/isalnum_l.texi: Renamed from
49655         doc/glibc-functions/isalnum_l.texi.
49656         * doc/posix-functions/isalpha_l.texi: Renamed from
49657         doc/glibc-functions/isalpha_l.texi.
49658         * doc/posix-functions/isblank_l.texi: Renamed from
49659         doc/glibc-functions/isblank_l.texi.
49660         * doc/posix-functions/iscntrl_l.texi: Renamed from
49661         doc/glibc-functions/iscntrl_l.texi.
49662         * doc/posix-functions/isdigit_l.texi: Renamed from
49663         doc/glibc-functions/isdigit_l.texi.
49664         * doc/posix-functions/isgraph_l.texi: Renamed from
49665         doc/glibc-functions/isgraph_l.texi.
49666         * doc/posix-functions/islower_l.texi: Renamed from
49667         doc/glibc-functions/islower_l.texi.
49668         * doc/posix-functions/isprint_l.texi: Renamed from
49669         doc/glibc-functions/isprint_l.texi.
49670         * doc/posix-functions/ispunct_l.texi: Renamed from
49671         doc/glibc-functions/ispunct_l.texi.
49672         * doc/posix-functions/isspace_l.texi: Renamed from
49673         doc/glibc-functions/isspace_l.texi.
49674         * doc/posix-functions/isupper_l.texi: Renamed from
49675         doc/glibc-functions/isupper_l.texi.
49676         * doc/posix-functions/iswalnum_l.texi: Renamed from
49677         doc/glibc-functions/iswalnum_l.texi.
49678         * doc/posix-functions/iswalpha_l.texi: Renamed from
49679         doc/glibc-functions/iswalpha_l.texi.
49680         * doc/posix-functions/iswblank_l.texi: Renamed from
49681         doc/glibc-functions/iswblank_l.texi.
49682         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49683         doc/glibc-functions/iswcntrl_l.texi.
49684         * doc/posix-functions/iswctype_l.texi: Renamed from
49685         doc/glibc-functions/iswctype_l.texi.
49686         * doc/posix-functions/iswdigit_l.texi: Renamed from
49687         doc/glibc-functions/iswdigit_l.texi.
49688         * doc/posix-functions/iswgraph_l.texi: Renamed from
49689         doc/glibc-functions/iswgraph_l.texi.
49690         * doc/posix-functions/iswlower_l.texi: Renamed from
49691         doc/glibc-functions/iswlower_l.texi.
49692         * doc/posix-functions/iswprint_l.texi: Renamed from
49693         doc/glibc-functions/iswprint_l.texi.
49694         * doc/posix-functions/iswpunct_l.texi: Renamed from
49695         doc/glibc-functions/iswpunct_l.texi.
49696         * doc/posix-functions/iswspace_l.texi: Renamed from
49697         doc/glibc-functions/iswspace_l.texi.
49698         * doc/posix-functions/iswupper_l.texi: Renamed from
49699         doc/glibc-functions/iswupper_l.texi.
49700         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49701         doc/glibc-functions/iswxdigit_l.texi.
49702         * doc/posix-functions/isxdigit_l.texi: Renamed from
49703         doc/glibc-functions/isxdigit_l.texi.
49704         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49705         doc/glibc-functions/mbsnrtowcs.texi.
49706         * doc/posix-functions/mkdtemp.texi: Renamed from
49707         doc/glibc-functions/mkdtemp.texi.
49708         * doc/posix-functions/newlocale.texi: Renamed from
49709         doc/glibc-functions/newlocale.texi.
49710         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49711         doc/glibc-functions/nl_langinfo_l.texi.
49712         * doc/posix-functions/open_memstream.texi: Renamed from
49713         doc/glibc-functions/open_memstream.texi.
49714         * doc/posix-functions/opterr.texi: Renamed from
49715         doc/glibc-functions/opterr.texi.
49716         * doc/posix-functions/optind.texi: Renamed from
49717         doc/glibc-functions/optind.texi.
49718         * doc/posix-functions/optopt.texi: Renamed from
49719         doc/glibc-functions/optopt.texi.
49720         * doc/posix-functions/psignal.texi: Renamed from
49721         doc/glibc-functions/psignal.texi.
49722         * doc/posix-functions/scandir.texi: Renamed from
49723         doc/glibc-functions/scandir.texi.
49724         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49725         doc/glibc-functions/sched_get_priority_min.texi.
49726         * doc/posix-functions/signgam.texi: Renamed from
49727         doc/glibc-functions/signgam.texi.
49728         * doc/posix-functions/stpcpy.texi: Renamed from
49729         doc/glibc-functions/stpcpy.texi.
49730         * doc/posix-functions/stpncpy.texi: Renamed from
49731         doc/glibc-functions/stpncpy.texi.
49732         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49733         doc/glibc-functions/strcasecmp_l.texi.
49734         * doc/posix-functions/strcoll_l.texi: Renamed from
49735         doc/glibc-functions/strcoll_l.texi.
49736         * doc/posix-functions/strfmon_l.texi: Renamed from
49737         doc/glibc-functions/strfmon_l.texi.
49738         * doc/posix-functions/strftime_l.texi: Renamed from
49739         doc/glibc-functions/strftime_l.texi.
49740         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49741         doc/glibc-functions/strncasecmp_l.texi.
49742         * doc/posix-functions/strndup.texi: Renamed from
49743         doc/glibc-functions/strndup.texi.
49744         * doc/posix-functions/strnlen.texi: Renamed from
49745         doc/glibc-functions/strnlen.texi.
49746         * doc/posix-functions/strsignal.texi: Renamed from
49747         doc/glibc-functions/strsignal.texi.
49748         * doc/posix-functions/strxfrm_l.texi: Renamed from
49749         doc/glibc-functions/strxfrm_l.texi.
49750         * doc/posix-functions/timer_gettime.texi: Renamed from
49751         doc/glibc-functions/timer_gettime.texi.
49752         * doc/posix-functions/tolower_l.texi: Renamed from
49753         doc/glibc-functions/tolower_l.texi.
49754         * doc/posix-functions/toupper_l.texi: Renamed from
49755         doc/glibc-functions/toupper_l.texi.
49756         * doc/posix-functions/towctrans_l.texi: Renamed from
49757         doc/glibc-functions/towctrans_l.texi.
49758         * doc/posix-functions/towlower_l.texi: Renamed from
49759         doc/glibc-functions/towlower_l.texi.
49760         * doc/posix-functions/towupper_l.texi: Renamed from
49761         doc/glibc-functions/towupper_l.texi.
49762         * doc/posix-functions/uselocale.texi: Renamed from
49763         doc/glibc-functions/uselocale.texi.
49764         * doc/posix-functions/vdprintf.texi: Renamed from
49765         doc/glibc-functions/vdprintf.texi.
49766         * doc/posix-functions/wcpcpy.texi:
49767         Renamed from doc/glibc-functions/wcpcpy.texi.
49768         * doc/posix-functions/wcpncpy.texi: Renamed from
49769         doc/glibc-functions/wcpncpy.texi.
49770         * doc/posix-functions/wcscasecmp.texi: Renamed from
49771         doc/glibc-functions/wcscasecmp.texi.
49772         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49773         doc/glibc-functions/wcscasecmp_l.texi.
49774         * doc/posix-functions/wcscoll_l.texi: Renamed from
49775         doc/glibc-functions/wcscoll_l.texi.
49776         * doc/posix-functions/wcsdup.texi: Renamed from
49777         doc/glibc-functions/wcsdup.texi.
49778         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49779         doc/glibc-functions/wcsncasecmp.texi.
49780         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49781         doc/glibc-functions/wcsncasecmp_l.texi.
49782         * doc/posix-functions/wcsnlen.texi: Renamed from
49783         doc/glibc-functions/wcsnlen.texi.
49784         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49785         doc/glibc-functions/wcsnrtombs.texi.
49786         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49787         doc/glibc-functions/wcsxfrm_l.texi.
49788         * doc/posix-functions/wctrans_l.texi: Renamed from
49789         doc/glibc-functions/wctrans_l.texi.
49790         * doc/posix-functions/wctype_l.texi: Renamed from
49791         doc/glibc-functions/wctype_l.texi.
49792         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49793         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49794         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49795         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49796         these subsections.
49797         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49798         Remove sections.
49799
49800 2008-12-14  Bruno Haible  <bruno@clisp.org>
49801
49802         Update doc for POSIX:2008.
49803         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49804
49805 2008-12-14  Bruno Haible  <bruno@clisp.org>
49806
49807         Update doc for POSIX:2008.
49808         * doc/pastposix-functions/bcmp.texi: Renamed from
49809         doc/posix-functions/bcmp.texi.
49810         * doc/pastposix-functions/bcopy.texi: Renamed from
49811         doc/posix-functions/bcopy.texi.
49812         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49813         doc/posix-functions/bsd_signal.texi.
49814         * doc/pastposix-functions/bzero.texi: Renamed from
49815         doc/posix-functions/bzero.texi.
49816         * doc/pastposix-functions/ecvt.texi: Renamed from
49817         doc/posix-functions/ecvt.texi.
49818         * doc/pastposix-functions/fcvt.texi: Renamed from
49819         doc/posix-functions/fcvt.texi.
49820         * doc/pastposix-functions/ftime.texi: Renamed from
49821         doc/posix-functions/ftime.texi.
49822         * doc/pastposix-functions/gcvt.texi: Renamed from
49823         doc/posix-functions/gcvt.texi.
49824         * doc/pastposix-functions/getcontext.texi: Renamed from
49825         doc/posix-functions/getcontext.texi.
49826         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49827         doc/posix-functions/gethostbyaddr.texi.
49828         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49829         doc/posix-functions/gethostbyname.texi.
49830         * doc/pastposix-functions/getwd.texi: Renamed from
49831         doc/posix-functions/getwd.texi.
49832         * doc/pastposix-functions/h_errno.texi: Renamed from
49833         doc/posix-functions/h_errno.texi.
49834         * doc/pastposix-functions/index.texi: Renamed from
49835         doc/posix-functions/index.texi.
49836         * doc/pastposix-functions/makecontext.texi: Renamed from
49837         doc/posix-functions/makecontext.texi.
49838         * doc/pastposix-functions/mktemp.texi: Renamed from
49839         doc/posix-functions/mktemp.texi.
49840         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49841         doc/posix-functions/pthread_attr_getstackaddr.texi.
49842         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49843         doc/posix-functions/pthread_attr_setstackaddr.texi.
49844         * doc/pastposix-functions/rindex.texi: Renamed from
49845         doc/posix-functions/rindex.texi.
49846         * doc/pastposix-functions/scalb.texi: Renamed from
49847         doc/posix-functions/scalb.texi.
49848         * doc/pastposix-functions/setcontext.texi: Renamed from
49849         doc/posix-functions/setcontext.texi.
49850         * doc/pastposix-functions/swapcontext.texi: Renamed from
49851         doc/posix-functions/swapcontext.texi.
49852         * doc/pastposix-functions/ualarm.texi: Renamed from
49853         doc/posix-functions/ualarm.texi.
49854         * doc/pastposix-functions/usleep.texi: Renamed from
49855         doc/posix-functions/usleep.texi.
49856         * doc/pastposix-functions/vfork.texi: Renamed from
49857         doc/posix-functions/vfork.texi.
49858         * doc/pastposix-functions/wcswcs.texi: Renamed from
49859         doc/posix-functions/wcswcs.texi.
49860         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49861         (Function Substitutes): Update.
49862
49863 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49864
49865         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49866         m4/strerror.m4.
49867
49868 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49869             Bruno Haible  <bruno@clisp.org>
49870
49871         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49872
49873 2008-12-13  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/strtoull (Depends-on): Remove unistd.
49876
49877 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49878
49879         * modules/strtoull (Depends-on): Add stdlib.
49880
49881 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49882
49883         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49884
49885 2008-12-10  Jim Meyering  <meyering@redhat.com>
49886
49887         gl_ASSERT: don't say assertions are disabled when they're not
49888         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49889         "checking whether to enable assertions... no", when they are in
49890         fact enabled.  This is solely a bug in the output of configure.
49891         In spite of saying "no", NDEBUG was not defined in that case.
49892         Also, as noted by Eric Blake, leave assertions enabled upon
49893         --enable-assert=INVALID.
49894
49895 2008-12-10  Bruno Haible  <bruno@clisp.org>
49896
49897         Change MODULES.html to refer to POSIX:2008 where possible.
49898         * MODULES.html.sh (POSIX2008_URL): New variable.
49899         (posix_headers): Remove sys/timeb, ucontext.
49900         (posix2001_headers): New variable.
49901         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49902         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49903         index, makecontext, mktemp, pthread_attr_getstackaddr,
49904         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49905         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49906         (posix2001_functions): New variable.
49907         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49908         otherwise.
49909
49910 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49911
49912         add missing include to parse-duration.c
49913         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49914         * modules/parse-duration (Depends-on): Add xalloc.
49915
49916         fix sed script reading maint.mk
49917         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49918         (syntax-check-rules): Use it.
49919
49920 2008-12-09  Bruno Haible  <bruno@clisp.org>
49921
49922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49923         MacOS X 10.4/PowerPC.
49924         Reported by Simon Josefsson.
49925
49926 2008-12-08  Jim Meyering  <meyering@redhat.com>
49927
49928         work around mingw's lack of some S_IF definitions
49929         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49930         Reported by Simon Josefsson.
49931
49932 2008-12-08  Bruno Haible  <bruno@clisp.org>
49933
49934         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49935         applied to variables. Needed on MacOS X 10.4/PowerPC.
49936         Reported by Simon Josefsson.
49937
49938 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49939         and Eric Blake  <ebb9@byu.net>
49940
49941         assert: honor --enable-assert
49942         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49943         order to honor --enable-assert, rather than treating it as a
49944         synonym for --disable-assert.
49945
49946 2008-12-08  Jim Meyering  <meyering@redhat.com>
49947
49948         * lib/posixtm.c: Remove now-useless declaration of mktime.
49949
49950         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49951
49952 2008-12-07  Bruno Haible  <bruno@clisp.org>
49953
49954         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49955         test_once): Mark functions as static.
49956         * tests/test-tls.c (test_tls): Likewise.
49957
49958 2008-12-07  Bruno Haible  <bruno@clisp.org>
49959
49960         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49961         iconv_register_autodetect.
49962
49963 2008-12-07  Jim Meyering  <meyering@redhat.com>
49964
49965         posixtm.c: avoid a warning
49966         * lib/posixtm.c (posixtime): Don't initialize tm0.
49967         It's no longer needed to placate gcc4's -Wuninitialized,
49968         and the attempt to placate would elicit a new warning.
49969
49970         unicodeio.c: mark unused parameters
49971         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49972         (fallback_failure_callback): Likewise.
49973
49974 2008-12-07  Bruno Haible  <bruno@clisp.org>
49975
49976         * gnulib-tool (func_create_testdir): When building the tests
49977         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49978         Reported by Simon Josefsson.
49979
49980 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49981
49982         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49983
49984 2008-12-06  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49987         Suggested by Eric Blake.
49988
49989 2008-12-06  Bruno Haible  <bruno@clisp.org>
49990
49991         Fix a c-stack test failure on MacOS X.
49992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49993         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49994         handler for SIGBUS as well.
49995         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49996         install a signal handler for SIGBUS as well.
49997         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49998
49999 2008-12-06  Bruno Haible  <bruno@clisp.org>
50000
50001         Advocacy documentation.
50002         * doc/gnulib-intro.texi (Benefits): New section.
50003         * doc/gnulib.texi: Update.
50004
50005 2008-12-06  Bruno Haible  <bruno@clisp.org>
50006
50007         Document the 'manywarnings' module.
50008         * doc/manywarnings.texi: New file.
50009         * doc/gnulib.texi: Include it.
50010
50011 2008-12-05  Eric Blake  <ebb9@byu.net>
50012
50013         tests: silence some gcc warnings
50014         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50015         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50016         type mismatches.
50017
50018 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50019             Bruno Haible  <bruno@clisp.org>
50020
50021         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50022
50023 2008-11-29  Jim Meyering  <meyering@redhat.com>
50024
50025         unicodeio.c: mark unused parameters
50026         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50027         (fallback_failure_callback): Likewise.
50028
50029         fts: fix a thinko
50030         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50031         (set_stat_type): Return S_IF*-valued "type" directly.
50032         Prompted by James Youngman's spotting a related bug.
50033         Confirmed by further testing through find.
50034
50035         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50036         * lib/fts.c (D_TYPE): Define.
50037         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50038         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50039         (s_ifmt_shift_bits): New function.
50040         (set_stat_type): New function.
50041         (fts_build): When not calling fts_stat, call set_stat_type
50042         to propagate dirent.d_type info to fts_read caller.
50043         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50044         fts_statp->st_mode type information may be valid.
50045
50046 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50047
50048         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50049         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50050         <sds@gnu.org>.
50051
50052 2008-11-20  Bruno Haible  <bruno@clisp.org>
50053
50054         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50055         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50056         INCLUDE_NEXT.
50057         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50058         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50059         * modules/math (Makefile.am): Substitute
50060         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50061         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50062
50063 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50064             Bruno Haible  <bruno@clisp.org>
50065
50066         * lib/stdint.in.h: Define all type macros so that their expansion is
50067         a single typedef'ed token. Fixes a compilation failure in Boost which
50068         does "using ::int8_t;".
50069
50070 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50071
50072         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50073         gl_MANYWARN_ALL_GCC.
50074         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50075         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50076         * modules/manywarnings: New file.
50077         * MODULES.html.sh: Mention manywarnings module.
50078
50079 2008-11-18  Bruno Haible  <bruno@clisp.org>
50080
50081         * doc/gnulib-tool.texi (Unit tests): New section.
50082
50083 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50084
50085         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50086         paths like 'lib/po/foo.po'.
50087
50088 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50089
50090         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50091         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50092
50093 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50094
50095         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50096         parameter works.
50097
50098 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50099
50100         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50101
50102 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50103
50104         * modules/parse-duration-tests: New file.
50105         * tests/test-parse-duration.sh: New file.
50106         * tests/test-parse-duration.c: New file.
50107
50108         New module 'parse-duration'.
50109         * lib/parse-duration.h: New file.
50110         * lib/parse-duration.c: New file.
50111         * modules/parse-duration: New file.
50112
50113 2008-11-17  Bruno Haible  <bruno@clisp.org>
50114
50115         * tests/test-select-out.sh: Comment out the first pipe test.
50116         Reported by Simon Josefsson.
50117
50118 2008-11-17  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50121         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50122         gl_HOSTENT.
50123
50124 2008-11-17  Bruno Haible  <bruno@clisp.org>
50125
50126         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50127         -lnetwork and -lnet. Needed for Haiku and BeOS.
50128
50129 2008-11-16  Bruno Haible  <bruno@clisp.org>
50130
50131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50132
50133 2008-11-16  Bruno Haible  <bruno@clisp.org>
50134
50135         Avoid test failure on Haiku.
50136         * tests/test-fsync.c: Include <errno.h>.
50137         (main): Don't require that fsync (0) fails.
50138
50139 2008-11-15  Bruno Haible  <bruno@clisp.org>
50140
50141         New module 'hostent'.
50142         * modules/hostent: New file.
50143         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50144
50145 2008-11-15  Bruno Haible  <bruno@clisp.org>
50146
50147         New module 'servent'.
50148         * modules/servent: New file.
50149         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50150
50151 2008-11-15  Bruno Haible  <bruno@clisp.org>
50152
50153         Avoid generating same test program with two different rules.
50154         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50155         test-frexp to test-frexp-nolibm.
50156         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50157         test-frexpl to test-frexpl-nolibm.
50158
50159 2008-11-15  Bruno Haible  <bruno@clisp.org>
50160
50161         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50162         $(FREXPL_LIBM).
50163
50164 2008-11-15  Bruno Haible  <bruno@clisp.org>
50165
50166         * lib/netdb.in.h: Activate the definitions also when the system's
50167         <netdb.h> has 'struct addrinfo'.
50168         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50169         EAI_OVERFLOW or AI_NUMERICSERV.
50170         * doc/posix-headers/netdb.texi: Document the problem.
50171
50172 2008-11-15  Bruno Haible  <bruno@clisp.org>
50173
50174         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50175
50176         Make the 'sched' module work on platforms where <sched.h> exists but
50177         is incomplete (such as Haiku).
50178         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50179         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50180         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50181         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50182         HAVE_STRUCT_SCHED_PARAM.
50183         * modules/sched (Depends-on): Add include_next.
50184         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50185         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50186         * doc/posix-headers/sched.texi: Document the issue.
50187
50188 2008-11-13  Jim Meyering  <meyering@redhat.com>
50189
50190         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50191         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50192         test would fail due to the difference in the Report bugs to ...
50193         line.  The expected address is empty, "<>", while the actual
50194         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50195
50196 2008-11-12  Bruno Haible  <bruno@clisp.org>
50197
50198         lstat: don't compile lstat.c on systems lacking lstat
50199         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50200         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50201         Reported by Daniel P. Berrange via Jim Meyering.
50202
50203 2008-11-12  Jim Meyering  <meyering@redhat.com>
50204
50205         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50206
50207 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50208
50209         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50210         instead.
50211
50212 2008-11-12  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/unicodeio.c: Include unistr.h.
50215         (utf8_wctomb): Remove function.
50216         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50217
50218 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50219
50220         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50221         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50222         <bruno@clisp.org>.
50223         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50224
50225 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50226
50227         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50228         * doc/gnulib.texi: Add section for warnings.
50229
50230 2008-11-11  Bruno Haible  <bruno@clisp.org>
50231
50232         * lib/sockets.h: Add a comment.
50233
50234 2008-11-11  Karl Berry  <karl@gnu.org>
50235
50236         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50237
50238 2008-11-11  Eric Blake  <ebb9@byu.net>
50239
50240         fdl.texi: avoid git symlinks
50241         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50242
50243 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50244
50245         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50246
50247 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50248
50249         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50250         (gl_WARN_ADD): Substitute $2 if literal.
50251
50252 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50253
50254         * m4/warning.m4: Remove.
50255
50256 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50257
50258         * m4/warnings.m4: Almost complete rewrite. :-)
50259
50260 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50261
50262         * modules/warnings: New module.
50263         * m4/warnings.m4: New file.
50264         * MODULES.html.sh: Mention warnings module.
50265         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50266         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50267
50268 2008-11-10  Eric Blake  <ebb9@byu.net>
50269
50270         fdl.texi: make a symlink to the latest version
50271         * doc/standards.texi: Revert today's earlier change.
50272         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50273         * doc/fdl.texi: ...and replace this with a symlink to the newer
50274         fdl-1.3.texi.
50275
50276 2008-11-10  Bruno Haible  <bruno@clisp.org>
50277
50278         * tests/test-select-fd.c (main): Accept the result file name as fourth
50279         argument.
50280         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50281         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50282
50283 2008-11-10  Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50286         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50287         as autoconf-substituted macros.
50288         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50290         gl_NETDB_H_DEFAULTS. Set these variables.
50291         * modules/netdb (Makefile.am): Substitute these variables.
50292
50293 2008-11-10  Eric Blake  <ebb9@byu.net>
50294
50295         standards.texi: include correct file for FDL 1.3
50296         * doc/standards.texi (GNU Free Documentation License): Change
50297         include file to pull in FDL 1.3, not 1.2.
50298
50299         fdl.texi: revert accidental change to license
50300         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50301
50302 2008-11-10  Bruno Haible  <bruno@clisp.org>
50303
50304         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50305         cross-compiling guesses also when the native compile gives no result.
50306
50307 2008-11-10  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/spawni.c (__spawni): Force variable into the stack.
50310
50311 2008-11-10  Bruno Haible  <bruno@clisp.org>
50312
50313         Add support for Haiku.
50314         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50315         glibc and BeOS, but also on Haiku.
50316         * lib/fpurge.c (fpurge): Likewise.
50317         * lib/freadable.c (freadable): Likewise.
50318         * lib/freadahead.c (freadahead): Likewise.
50319         * lib/freading.c (freading): Likewise.
50320         * lib/freadptr.c (freadptr): Likewise.
50321         * lib/freadseek.c (freadptrinc): Likewise.
50322         * lib/fseeko.c (rpl_fseeko): Likewise.
50323         * lib/fseterr.c (fseterr): Likewise.
50324         * lib/fwritable.c (fwritable): Likewise.
50325         * lib/fwriting.c (fwriting): Likewise.
50326         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50327
50328 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50329
50330         * lib/config.charset: Treat Haiku like BeOS.
50331
50332 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50333
50334         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50335         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50336
50337 2008-11-08  Bruno Haible  <bruno@clisp.org>
50338
50339         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50340         AC_CACHE_CHECK.
50341
50342 2008-11-08  Bruno Haible  <bruno@clisp.org>
50343
50344         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50345
50346 2008-11-08  Bruno Haible  <bruno@clisp.org>
50347
50348         * tests/test-select-fd.c: New file.
50349         * tests/test-select-in.sh: New file.
50350         * tests/test-select-out.sh: New file.
50351         * tests/test-select-stdin.c: New file.
50352         * modules/select-tests (Files): Add the new files.
50353         (Depends-on): Add gettimeofday.
50354         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50355         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50356         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50357
50358 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50359             Bruno Haible  <bruno@clisp.org>
50360
50361         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50362
50363 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50364
50365         * build-aux/pmccabe2html: Added support for C++ source files.
50366
50367 2008-11-05  Ben Pfaff  <blp@gnu.org>
50368
50369         Fix lib/close.c build on Windows.
50370         * modules/close (Files): Add lib/w32sock.h.
50371
50372 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50373
50374         Accept Bison's NEWS format.
50375         * build-aux/announce-gen (print_news_deltas): Tweak
50376         $re_prefix.
50377
50378 2008-11-04  Bruno Haible  <bruno@clisp.org>
50379
50380         * modules/random_r (Maintainer): Add glibc.
50381
50382 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50383
50384         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50385         by karl@freefriends.org (Karl Berry).
50386         * doc/alloca.texi: Likewise.
50387         * doc/c-ctype.texi: Likewise.
50388         * doc/c-strcase.texi: Likewise.
50389         * doc/c-strcaseeq.texi: Likewise.
50390         * doc/c-strcasestr.texi: Likewise.
50391         * doc/c-strstr.texi: Likewise.
50392         * doc/c-strtod.texi: Likewise.
50393         * doc/c-strtold.texi: Likewise.
50394         * doc/ctime.texi: Likewise.
50395         * doc/error.texi: Likewise.
50396         * doc/fdl.texi: Likewise.
50397         * doc/gcd.texi: Likewise.
50398         * doc/getdate.texi: Likewise.
50399         * doc/gnulib-intro.texi: Likewise.
50400         * doc/gnulib-tool.texi: Likewise.
50401         * doc/gnulib.texi: Likewise.
50402         * doc/inet_ntoa.texi: Likewise.
50403         * doc/maintain.texi: Likewise.
50404         * doc/make-stds.texi: Likewise.
50405         * doc/quote.texi: Likewise.
50406         * doc/regexprops-generic.texi: Likewise.
50407         * doc/standards.texi: Likewise.
50408         * doc/verify.texi: Likewise.
50409         * doc/visibility.texi: Likewise.
50410         * doc/gnulib.texi (GNU Free Documentation License): Include
50411         fdl-1.3.texi instead of fdl.texi.
50412
50413 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50414
50415         * doc/fdl-1.3.texi: New file, from
50416         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50417         * modules/fdl-1.3: Add.
50418         * MODULES.html.sh: Add fdl-1.3.
50419
50420 2008-11-03  Bruno Haible  <bruno@clisp.org>
50421
50422         Make determination of absolute name of header file work with AIX xlc.
50423         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50424         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50425         preprocessing.
50426         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50427         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50428
50429 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50430
50431         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50432         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50433         <ludo@gnu.org>.
50434
50435 2008-11-02  Bruno Haible  <bruno@clisp.org>
50436
50437         Mark 'strpbrk' obsolete.
50438         * modules/strpbrk (Status, Notice): New sections.
50439         * modules/strtok_r (Depends-on): Add strpbrk.
50440
50441 2008-11-02  Bruno Haible  <bruno@clisp.org>
50442
50443         Mark 'strdup' obsolete.
50444         * modules/strdup (Status, Notice): New sections.
50445         * modules/findprog (Depends-on): Add strdup.
50446         * modules/getaddrinfo (Depends-on): Likewise.
50447         * modules/localename (Depends-on): Likewise.
50448         * modules/relocatable-lib (Depends-on): Likewise.
50449         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50450         * modules/relocatable-prog (Depends-on): Likewise.
50451         * modules/trim (Depends-on): Likewise.
50452         * modules/unictype/gen-ctype (Depends-on): Likewise.
50453         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50454
50455 2008-11-02  Bruno Haible  <bruno@clisp.org>
50456
50457         Mark 'strcspn' obsolete.
50458         * modules/strcspn (Status, Notice): New sections.
50459
50460 2008-11-02  Bruno Haible  <bruno@clisp.org>
50461
50462         Mark 'rmdir' obsolete.
50463         * modules/rmdir (Status, Notice): New sections.
50464         * modules/clean-temp (Depends-on): Add rmdir.
50465         * modules/openat (Depends-on): Likewise.
50466
50467 2008-11-02  Bruno Haible  <bruno@clisp.org>
50468
50469         Mark 'raise' obsolete.
50470         * modules/raise (Status, Notice): New sections.
50471         (Include): Specify <signal.h>.
50472         * modules/stdio (Depends-on): Add raise.
50473         * modules/write (Depends-on): Likewise.
50474
50475 2008-11-02  Bruno Haible  <bruno@clisp.org>
50476
50477         Mark 'memset' obsolete.
50478         * modules/memset (Status, Notice): New sections.
50479
50480 2008-11-02  Bruno Haible  <bruno@clisp.org>
50481
50482         Mark 'memmove' obsolete.
50483         * modules/memmove (Status, Notice): New sections.
50484         * modules/argp (Depends-on): Add memmove.
50485         * modules/argz (Depends-on): Likewise.
50486         * modules/canonicalize (Depends-on): Likewise.
50487         * modules/canonicalize-lgpl (Depends-on): Likewise.
50488         * modules/fts (Depends-on): Likewise.
50489         * modules/getcwd (Depends-on): Likewise.
50490         * modules/human (Depends-on): Likewise.
50491         * modules/regex (Depends-on): Likewise.
50492         * modules/striconveh (Depends-on): Likewise.
50493         * modules/trim (Depends-on): Likewise.
50494         * modules/unistr/u8-move (Depends-on): Likewise.
50495         * modules/unistr/u16-move (Depends-on): Likewise.
50496         * modules/unistr/u32-move (Depends-on): Likewise.
50497
50498 2008-11-02  Bruno Haible  <bruno@clisp.org>
50499
50500         Mark 'memcpy' obsolete.
50501         * modules/memcpy (Status, Notice): New sections.
50502
50503 2008-11-02  Bruno Haible  <bruno@clisp.org>
50504
50505         Mark 'memcmp' obsolete.
50506         * modules/memcmp (Status, Notice): New sections.
50507         * modules/argmatch (Depends-on): Add memchr.
50508         * modules/backupfile (Depends-on): Likewise.
50509         * modules/c-strcasestr (Depends-on): Likewise.
50510         * modules/crypto/des (Depends-on): Likewise.
50511         * modules/csharpcomp (Depends-on): Likewise.
50512         * modules/fnmatch (Depends-on): Likewise.
50513         * modules/git-merge-changelog (Depends-on): Likewise.
50514         * modules/isnand (Depends-on): Likewise.
50515         * modules/isnand-nolibm (Depends-on): Likewise.
50516         * modules/isnanf (Depends-on): Likewise.
50517         * modules/isnanf-nolibm (Depends-on): Likewise.
50518         * modules/isnanl (Depends-on): Likewise.
50519         * modules/isnanl-nolibm (Depends-on): Likewise.
50520         * modules/mbchar (Depends-on): Likewise.
50521         * modules/memcoll (Depends-on): Likewise.
50522         * modules/quotearg (Depends-on): Likewise.
50523         * modules/regex (Depends-on): Likewise.
50524         * modules/relocatable-prog (Depends-on): Likewise.
50525         * modules/same (Depends-on): Likewise.
50526         * modules/signbit (Depends-on): Likewise.
50527         * modules/strcasestr-simple (Depends-on): Likewise.
50528         * modules/unictype/gen-ctype (Depends-on): Likewise.
50529         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50530         * modules/uniname/uniname (Depends-on): Likewise.
50531         * modules/unistr/u8-cmp (Depends-on): Likewise.
50532
50533 2008-11-02  Bruno Haible  <bruno@clisp.org>
50534
50535         Mark 'memchr' obsolete.
50536         * modules/memchr (Status, Notice): New sections.
50537         * modules/argp (Depends-on): Add memchr.
50538         * modules/base64 (Depends-on): Likewise.
50539         * modules/c-strcasestr (Depends-on): Likewise.
50540         * modules/chdir-long (Depends-on): Likewise.
50541         * modules/fnmatch (Depends-on): Likewise.
50542         * modules/getsubopt (Depends-on): Likewise.
50543         * modules/git-merge-changelog (Depends-on): Likewise.
50544         * modules/glob (Depends-on): Likewise.
50545         * modules/strcasestr-simple (Depends-on): Likewise.
50546         * modules/strnlen (Depends-on): Likewise.
50547
50548 2008-11-02  Bruno Haible  <bruno@clisp.org>
50549
50550         Mark 'atexit' obsolete.
50551         * modules/atexit (Status, Notice): New sections.
50552         * modules/chdir-long (Depends-on): Add atexit.
50553         * modules/wait-process (Depends-on): Likewise.
50554
50555 2008-11-02  Bruno Haible  <bruno@clisp.org>
50556
50557         * gnulib-tool: New option --with-obsolete.
50558         (func_usage): Document it.
50559         (func_modules_transitive_closure): Drop obsolete dependencies if
50560         incobsolete is not true.
50561         (func_import): Read and save the incobsolete variable to the cache.
50562
50563 2008-11-02  Bruno Haible  <bruno@clisp.org>
50564
50565         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50566         * gnulib-tool: New option --extract-status.
50567         (func_usage): Document it.
50568         (sed_extract_prog): Recognize it.
50569         (func_get_status): New function.
50570
50571 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50572
50573         * modules/sockets (License): Change from LGPL to LGPLv2+.
50574
50575 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50576
50577         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50578
50579 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50580
50581         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50582         Mention times and sys_times.
50583         * modules/sys_times, modules/sys_times-tests: New modules.
50584         * modules/times, modules/times-tests: Likewise
50585         * m4/sys_times_h.m4: New file.
50586         * lib/sys_times.in.h: Likewise
50587         * lib/times.c: Likewise.
50588         * tests/test-sys_times.c: Likewise.
50589         * tests/test-times.c: Likewise.
50590         * doc/posix-headers/sys_times.texi: Update.
50591         * doc/posix-functions/times.texi: Update.
50592
50593 2008-10-28  Jim Meyering  <meyering@redhat.com>
50594
50595         * modules/tempname (Depends-on): Add lstat.
50596
50597         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50598
50599 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50600
50601         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50602         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50603         using idiom used elsewhere in gnulib.
50604
50605 2008-10-27  Jim Meyering  <meyering@redhat.com>
50606
50607         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50608
50609 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50610
50611         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50612         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50613         programs.
50614         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50615
50616 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50617
50618         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50619
50620 2008-10-27  Bruno Haible  <bruno@clisp.org>
50621
50622         * tests/test-lstat.c: Include <stdio.h>.
50623
50624 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50625
50626         * modules/lstat-tests: New module.
50627         * tests/test-lstat.c: New file.
50628
50629 2008-10-26  Jim Meyering  <meyering@redhat.com>
50630
50631         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50632
50633 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50634             Bruno Haible  <bruno@clisp.org>
50635
50636         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50637         * modules/configmake (Include): Add a note that the include must come
50638         after all system headers.
50639         * lib/javaversion.c: Include configmake.h after all other includes.
50640
50641 2008-10-26  Bruno Haible  <bruno@clisp.org>
50642
50643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50644         HAVE_STRUCT_RANDOM_DATA to 1.
50645         (gl_STDLIB_H): Simplify.
50646
50647 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50648
50649         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50650         substitute HAVE_STRUCT_RANDOM_DATA.
50651         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50652         random_data.
50653         * modules/stdlib (Makefile.am): Substitute
50654         HAVE_STRUCT_RANDOM_DATA.
50655
50656 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50657
50658         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50659         * doc/gnulib-intro.texi (Copyright): Likewise.
50660
50661 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50662
50663         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50664         findings.
50665
50666 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50667             Bruno Haible  <bruno@clisp.org>
50668
50669         * lib/unistd.in.h: Include <winsock2.h>.
50670         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50671         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50672         Provide dummy declarations.
50673         (gethostname): Override.
50674         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50675         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50676         gl_PREREQ_SYS_H_WINSOCK2.
50677         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50678         * doc/posix-functions/gethostname.texi: More details.
50679
50680 2008-10-25  Bruno Haible  <bruno@clisp.org>
50681
50682         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50683         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50684         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50685
50686         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50687         here ...
50688         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50689         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50690         gl_UNISTD_H_DEFAULTS.
50691
50692 2008-10-25  Eric Blake  <ebb9@byu.net>
50693
50694         signbit: avoid spurious compiler failure
50695         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50696         declarations inside function.
50697
50698 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50699             Bruno Haible  <bruno@clisp.org>
50700
50701         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50702         * modules/random_r (Depends-on): Add stdint.
50703
50704 2008-10-24  Bruno Haible  <bruno@clisp.org>
50705
50706         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50707         Eggert.
50708         * modules/strerror (License): Likewise.
50709
50710 2008-10-24  Jim Meyering  <meyering@redhat.com>
50711
50712         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50713         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50714
50715 2008-10-24  Eric Blake  <ebb9@byu.net>
50716
50717         getgroups: fix compilation when getgroups is available
50718         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50719         but with <config.h> override of getgroups disabled.
50720
50721 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50722
50723         * doc/gnulib.texi (Header files): Add note about C++ problems.
50724         Explained by Bruno Haible <bruno@clisp.org>.
50725
50726 2008-10-23  Bruno Haible  <bruno@clisp.org>
50727
50728         Define a dummy SA_NODEFER macro on Interix.
50729         * lib/signal.in.h (SA_NODEFER): Define fallback.
50730         Reported by Aleksey Cheusov <cheusov@tut.by> via
50731         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50732
50733 2008-10-23  Bruno Haible  <bruno@clisp.org>
50734
50735         * modules/freadahead (License): Change to LGPLv2+.
50736         Suggested by Simon Josefsson.
50737
50738 2008-10-23  Jim Meyering  <meyering@redhat.com>
50739
50740         random_r: new module
50741         * modules/random_r: New file.
50742         * m4/random_r.m4: New file.
50743         * lib/random_r.c: New file, from glibc.
50744         * modules/random_r-tests: New file.
50745         * tests/test-random_r.c: New file.
50746         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50747          Declare.
50748         (RAND_MAX): Define.
50749         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50750         * modules/stdlib: Substitute them, too.
50751         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50752         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50753         * doc/glibc-functions/random_r.texi: Likewise.
50754         * doc/glibc-functions/setstate_r.texi: Likewise.
50755         * doc/glibc-functions/srandom_r.texi: Likewise.
50756         * config/srclist.txt: Mention it.
50757
50758 2008-10-23  David Lutterkort  <lutter@redhat.com>
50759
50760         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50761         link requirement
50762
50763 2008-10-23  Jim Meyering  <meyering@redhat.com>
50764
50765         selinux-h: mark parameters of stub functions as intentionally unused
50766         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50767         * lib/se-context.in.h: Likewise.
50768
50769 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50770
50771         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50772
50773 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50774
50775         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50776
50777 2008-10-22  Eric Blake  <ebb9@byu.net>
50778
50779         glthread/thread: avoid compiler warning
50780         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50781         Add unreachable abort to silence compiler.
50782
50783 2008-10-22  Eric Blake  <ebb9@byu.net>
50784
50785         netdb: also supply struct addrinfo for cygwin 1.5.x
50786         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50787         older cygwin.
50788         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50789         cygwin.
50790         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50791
50792 2008-10-22  Bruno Haible  <bruno@clisp.org>
50793
50794         * users.txt: Update entry about pspp.
50795
50796 2008-10-21  Bruno Haible  <bruno@clisp.org>
50797
50798         Simplification.
50799         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50800         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50801
50802         Simplification.
50803         * lib/ioctl.c (ioctl): Don't undefine.
50804         * lib/socket.c (socket): Don't undefine.
50805
50806         Remove unused module indicator macros.
50807         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50808         GNULIB_$1 as a C macro.
50809
50810         * doc/posix-functions/close.texi: Undo last change.
50811         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50812         Windows platforms.
50813
50814 2008-10-21  Bruno Haible  <bruno@clisp.org>
50815
50816         Add gethostname() declaration to <unistd.h>.
50817         * lib/unistd.in.h (gethostname): New declaration.
50818         * lib/gethostname.c: Include <unistd.h>.
50819         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50820         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50822         and HAVE_GETHOSTNAME.
50823         * modules/gethostname (Depends-on): Add unistd.
50824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50825         (Include): Specify <unistd.h>.
50826         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50827         HAVE_GETHOSTNAME.
50828         * tests/test-gethostname.c: Include <unistd.h> first.
50829
50830 2008-10-21  Bruno Haible  <bruno@clisp.org>
50831
50832         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50833         * modules/select-tests (Depends-on): Likewise.
50834         Reported by Simon Josefsson.
50835
50836 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50837
50838         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50839         * lib/accept.c: New file, based on winsock.c.
50840         * lib/bind.c: New file, based on winsock.c.
50841         * lib/connect.c: New file, based on winsock.c.
50842         * lib/getpeername.c: New file, based on winsock.c.
50843         * lib/getsockname.c: New file, based on winsock.c.
50844         * lib/getsockopt.c: New file, based on winsock.c.
50845         * lib/ioctl.c: New file, based on winsock.c.
50846         * lib/listen.c: New file, based on winsock.c.
50847         * lib/recv.c: New file, based on winsock.c.
50848         * lib/recvfrom.c: New file, based on winsock.c.
50849         * lib/send.c: New file, based on winsock.c.
50850         * lib/sendto.c: New file, based on winsock.c.
50851         * lib/setsockopt.c: New file, based on winsock.c.
50852         * lib/shutdown.c: New file, based on winsock.c.
50853         * lib/socket.c: New file, based on winsock.c.
50854         * lib/w32sock.h: New file, based on winsock.c.
50855         * lib/winsock.c: Remove file.
50856         * modules/accept: Likewise.
50857         * modules/bind: Likewise.
50858         * modules/connect: Likewise.
50859         * modules/getpeername: Likewise.
50860         * modules/getsockname: Likewise.
50861         * modules/getsockopt: Likewise.
50862         * modules/ioctl: Likewise.
50863         * modules/listen: Likewise.
50864         * modules/recv: Likewise.
50865         * modules/recvfrom: Likewise.
50866         * modules/send: Likewise.
50867         * modules/sendto: Likewise.
50868         * modules/setsockopt: Likewise.
50869         * modules/shutdown: Likewise.
50870         * modules/socket: Use socket.c instead of winsock.c.
50871         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50872         * doc/posix-functions/accept.texi: Doc fix.
50873         * doc/posix-functions/bind.texi: Doc fix.
50874         * doc/posix-functions/close.texi: Doc fix.
50875         * doc/posix-functions/connect.texi: Doc fix.
50876         * doc/posix-functions/getpeername.texi: Doc fix.
50877         * doc/posix-functions/getsockname.texi: Doc fix.
50878         * doc/posix-functions/getsockopt.texi: Doc fix.
50879         * doc/posix-functions/ioctl.texi: Doc fix.
50880         * doc/posix-functions/listen.texi: Doc fix.
50881         * doc/posix-functions/recv.texi: Doc fix.
50882         * doc/posix-functions/recvfrom.texi: Doc fix.
50883         * doc/posix-functions/send.texi: Doc fix.
50884         * doc/posix-functions/sendto.texi: Doc fix.
50885         * doc/posix-functions/setsockopt.texi: Doc fix.
50886         * doc/posix-functions/shutdown.texi: Doc fix.
50887         * doc/posix-functions/socket.texi: Doc fix.
50888
50889 2008-10-20  Bruno Haible  <bruno@clisp.org>
50890
50891         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50892         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50893         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50894         as an alias for SIGABRT.
50895         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50896         (sigaction): Map it to SIGABRT.
50897         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50898
50899 2008-10-20  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/fts.c: Don't include lstat.h.
50902         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50903
50904         Move the lstat() declaration to <sys/stat.h>.
50905         * lib/lstat.h: Remove file.
50906         * lib/sys_stat.in.h: Add special invocation convention.
50907         (lstat): New declaration.
50908         * lib/lstat.c (orig_lstat): New function.
50909         (rpl_lstat): Use orig_lstat instead of lstat.
50910         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50911         AC_C_INLINE. Set REPLACE_LSTAT.
50912         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50913         and REPLACE_LSTAT.
50914         * modules/lstat (Files): Remove lib/lstat.h.
50915         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50916         (Include): Specify <sys/stat.h> instead of lstat.h.
50917         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50918         REPLACE_LSTAT.
50919         * NEWS: Mention the change.
50920
50921 2008-10-20  Bruno Haible  <bruno@clisp.org>
50922
50923         * modules/posix_spawn-tests: New file.
50924         * tests/test-posix_spawn3.c: New file.
50925
50926 2008-10-20  Bruno Haible  <bruno@clisp.org>
50927
50928         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50929         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50930         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50931         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50932         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50933
50934 2008-10-20  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50937         of posix_spawn on AIX 5.3.
50938
50939 2008-10-20  Bruno Haible  <bruno@clisp.org>
50940
50941         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50942
50943 2008-10-20  Bruno Haible  <bruno@clisp.org>
50944
50945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50946         of AC_LANG_PROGRAM.
50947
50948 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50949
50950         * lib/netdb.in.h: Don't define GNU specific constants until they
50951         are supported or needed.  Reported by Bruno Haible
50952         <bruno@clisp.org>.
50953
50954 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50955
50956         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50957
50958 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50959
50960         * lib/getaddrinfo.h: Remove file.
50961         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50962         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50963         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50964         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50965         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50966         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50967         * tests/test-getaddrinfo.c: Likewise.
50968         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50969         * NEWS: Mention change.
50970
50971 2008-10-19  Bruno Haible  <bruno@clisp.org>
50972
50973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50974
50975 2008-10-19  Bruno Haible  <bruno@clisp.org>
50976
50977         * lib/wait-process.c: Include simply <sys/wait.h>.
50978         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50979         WIFSTOPPED): Remove fallback definitions.
50980         * modules/wait-process (Depends-on): Add sys_wait.
50981
50982         New module 'sys_wait'.
50983         * modules/sys_wait: New file.
50984         * lib/sys_wait.in.h: New file, partially copied from
50985         lib/wait-process.c.
50986         * m4/sys_wait_h.m4: New file.
50987         * doc/posix-headers/sys_wait.texi: Mention the new module.
50988
50989 2008-10-19  Bruno Haible  <bruno@clisp.org>
50990
50991         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50992
50993 2008-10-19  Bruno Haible  <bruno@clisp.org>
50994
50995         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50996         * lib/wait-process.c (WAIT_T): Remove type.
50997         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50998         (wait_subprocess): Update.
50999
51000 2008-10-19  Bruno Haible  <bruno@clisp.org>
51001
51002         New module 'atoll'.
51003         * modules/atoll: New file.
51004         * lib/stdlib.in.h (atoll): New declaration.
51005         * lib/atoll.c: New file, from glibc with modifications.
51006         * m4/atoll.m4: New file.
51007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51008         HAVE_ATOLL.
51009         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51010         * doc/posix-functions/atoll.texi: Mention the new module.
51011
51012 2008-10-19  Bruno Haible  <bruno@clisp.org>
51013
51014         Add strtoull() declaration to <stdlib.h>.
51015         * lib/stdlib.in.h (strtoull): New declaration.
51016         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51017         Set HAVE_STRTOULL.
51018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51019         HAVE_STRTOULL.
51020         * modules/strtoull (Depends-on): Add stdlib.
51021         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51022         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51023         HAVE_STRTOULL.
51024
51025 2008-10-19  Bruno Haible  <bruno@clisp.org>
51026
51027         Add strtoll() declaration to <stdlib.h>.
51028         * lib/stdlib.in.h (strtoll): New declaration.
51029         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51030         Set HAVE_STRTOLL.
51031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51032         HAVE_STRTOLL.
51033         * modules/strtoll (Depends-on): Add stdlib.
51034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51035         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51036
51037 2008-10-19  Bruno Haible  <bruno@clisp.org>
51038
51039         * modules/bcopy (Depends-on): Add strings.
51040         (Include): Specify <strings.h>.
51041
51042 2008-10-19  Bruno Haible  <bruno@clisp.org>
51043
51044         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51045
51046 2008-10-19  Bruno Haible  <bruno@clisp.org>
51047
51048         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51049         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51050         mingw.
51051
51052 2008-10-19  Bruno Haible  <bruno@clisp.org>
51053
51054         * lib/atanl.c: Don't include isnanl.h.
51055         * lib/cosl.c: Likewise.
51056         * lib/ldexpl.c: Likewise.
51057         * lib/logl.c: Likewise.
51058         * lib/sinl.c: Likewise.
51059         * lib/sqrtl.c: Likewise.
51060         * lib/tanl.c: Likewise.
51061
51062         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51063         * lib/isnanf.h: Remove file.
51064         * lib/isnand.h: Remove file.
51065         * lib/isnanl.h: Remove file.
51066         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51067         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51068         macros.
51069         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51070         HAVE_ISNANF, don't define it as a C macro.
51071         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51072         HAVE_ISNAND, don't define it as a C macro.
51073         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51074         HAVE_ISNANL, don't define it as a C macro.
51075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51076         HAVE_ISNAN[FDL].
51077         * modules/isnanf (Files): Remove lib/isnanf.h.
51078         (Depends-on): Add math.
51079         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51080         (Include): Specify <math.h> instead of isnanf.h.
51081         * modules/isnand (Files): Remove lib/isnand.h.
51082         (Depends-on): Add math.
51083         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51084         (Include): Specify <math.h> instead of isnand.h.
51085         * modules/isnanl (Files): Remove lib/isnanl.h.
51086         (Depends-on): Add math.
51087         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51088         (Include): Specify <math.h> instead of isnanl.h.
51089         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51090         HAVE_ISNAN[FDL].
51091         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51092         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51093         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51094         * NEWS: Mention the change.
51095
51096 2008-10-18  Bruno Haible  <bruno@clisp.org>
51097
51098         Add getusershell(), setusershell(), endusershell() declarations to
51099         <unistd.h>.
51100         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51101         declarations.
51102         * lib/getusershell.c: Include unistd.h.
51103         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51104         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51105         HAVE_GETUSERSHELL.
51106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51107         and HAVE_GETUSERSHELL.
51108         * modules/getusershell (Depends-on): Add unistd, extensions.
51109         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51110         (Include): Specify <unistd.h>.
51111         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51112         HAVE_GETUSERSHELL.
51113
51114 2008-10-18  Bruno Haible  <bruno@clisp.org>
51115
51116         Add a getloadavg() declaration to <stdlib.h>.
51117         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51118         getloadavg declaration.
51119         (getloadavg): New declaration.
51120         * lib/getloadavg.c: Include <stdlib.h> first.
51121         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51122         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51123         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51125         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51126         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51127         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51128         (Include): Specify <stdlib.h>.
51129         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51130         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51131
51132 2008-10-18  Bruno Haible  <bruno@clisp.org>
51133
51134         * lib/dirchownmod.c: Don't include lchmod.h.
51135
51136         Move the lchmod() declaration to <sys/stat.h>.
51137         * lib/lchmod.h: Remove file.
51138         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51139         (lchmod): New declaration, moved here from lib/lchown.h.
51140         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51141         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51142         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51143         and HAVE_LCHMOD.
51144         * modules/lchmod (Files): Remove lib/lchmod.h.
51145         (Depends-on): Add sys_stat, extensions.
51146         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51147         (Include): Specify <sys/stat.h> instead of lchmod.h.
51148         * modules/sys_stat (Depends-on): Add link-warning.
51149         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51150         definition of GL_LINK_WARNING.
51151         * NEWS: Mention the change.
51152
51153 2008-10-18  Bruno Haible  <bruno@clisp.org>
51154
51155         * lib/fchdir.c: Don't include dirfd.h.
51156         * lib/fts.c: Likewise.
51157         * lib/getcwd.c: Likewise.
51158         * lib/glob.c: Likewise.
51159
51160         Move the dirfd() declaration to <dirent.h>.
51161         * lib/dirfd.h: Remove file.
51162         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51163         (dirfd): New declaration.
51164         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51165         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51166         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51167         HAVE_DECL_DIRFD.
51168         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51169         HAVE_DECL_DIRFD.
51170         * modules/dirfd (Files): Remove lib/dirfd.h.
51171         (Depends-on): Add dirent, extensions.
51172         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51173         (Include): Specify <dirent.h> instead of dirfd.h.
51174         * modules/dirent (Depends-on): Add link-warning.
51175         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51176         definition of GL_LINK_WARNING.
51177         * NEWS: Mention the change.
51178
51179 2008-10-18  Bruno Haible  <bruno@clisp.org>
51180
51181         Move the euidaccess() declaration to <unistd.h>.
51182         * lib/euidaccess.h: Remove file.
51183         * lib/unistd.in.h (euidaccess): New declaration.
51184         * lib/euidaccess.c: Don't include euidaccess.h.
51185         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51186         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51188         and HAVE_EUIDACCESS.
51189         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51190         (Depends-on): Add unistd.
51191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51192         (Include): Specify <unistd.h> instead of euidaccess.h.
51193         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51194         HAVE_EUIDACCESS.
51195         * NEWS: Mention the change.
51196
51197 2008-10-18  Bruno Haible  <bruno@clisp.org>
51198
51199         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51200
51201         Move the getdomainname() declaration to <unistd.h>.
51202         * lib/getdomainname.h: Remove file.
51203         * lib/unistd.in.h (getdomainname): New declaration.
51204         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51205         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51206         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51207         HAVE_GETDOMAINNAME.
51208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51209         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51210         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51211         (Depends-on): Add unistd, extensions.
51212         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51213         (Includes): Specify <unistd.h> instead of getdomainname.h.
51214         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51215         HAVE_GETDOMAINNAME.
51216         * NEWS: Mention the change.
51217
51218 2008-10-18  Bruno Haible  <bruno@clisp.org>
51219
51220         * modules/dirent: New file.
51221         * m4/dirent_h.m4: New file.
51222         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51223         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51224         * modules/fchdir (Files): Remove lib/dirent.in.h.
51225         (Depends-on): Add dirent.
51226         (Makefile.am): Move rules to modules/dirent.
51227         * doc/posix-headers/dirent.texi: Mention the new module.
51228
51229 2008-10-18  Bruno Haible  <bruno@clisp.org>
51230
51231         Avoid -Wunused-parameter warnings in public gnulib header files.
51232         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51233         macro.
51234         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51235
51236 2008-10-18  Bruno Haible  <bruno@clisp.org>
51237
51238         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51239         * doc/glibc-functions/error.texi: Mention the module 'error'.
51240         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51241         * doc/glibc-functions/getdomainname.texi: Mention the module
51242         'getdomainname'.
51243         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51244         * doc/glibc-functions/getpagesize.texi: Mention the module
51245         'getpagesize'.
51246         * doc/glibc-functions/getusershell.texi: Mention the module
51247         'getusershell'.
51248         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51249         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51250         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51251         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51252         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51253         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51254         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51255         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51256         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51257         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51258         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51259         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51260         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51261         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51262
51263 2008-10-17  Bruno Haible  <bruno@clisp.org>
51264
51265         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51266         HP-UX and IRIX, use -0.0L.
51267         * tests/test-ceill.c (minus_zero): Likewise.
51268         * tests/test-floorl.c (minus_zero): Likewise.
51269         * tests/test-frexpl.c (minus_zero): Likewise.
51270         * tests/test-isnan.c (minus_zerol): Likewise.
51271         * tests/test-isnanl.h (minus_zero): Likewise.
51272         * tests/test-ldexpl.c (minus_zero): Likewise.
51273         * tests/test-roundl.c (minus_zero): Likewise.
51274         * tests/test-signbit.c (minus_zerol): Likewise.
51275         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51276         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51277         * tests/test-truncl.c (minus_zero): Likewise.
51278         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51279         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51280         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51281         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51282
51283 2008-10-17  Bruno Haible  <bruno@clisp.org>
51284
51285         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51286         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51287         that it gets activated only for gcc >= 3.0.
51288         * lib/dirent.in.h: Likewise.
51289         * lib/errno.in.h: Likewise.
51290         * lib/fcntl.in.h: Likewise.
51291         * lib/float.in.h: Likewise.
51292         * lib/iconv.in.h: Likewise.
51293         * lib/inttypes.in.h: Likewise.
51294         * lib/locale.in.h: Likewise.
51295         * lib/math.in.h: Likewise.
51296         * lib/netdb.in.h: Likewise.
51297         * lib/netinet_in.in.h: Likewise.
51298         * lib/search.in.h: Likewise.
51299         * lib/signal.in.h: Likewise.
51300         * lib/spawn.in.h: Likewise.
51301         * lib/stdarg.in.h: Likewise.
51302         * lib/stdint.in.h: Likewise.
51303         * lib/stdio.in.h: Likewise.
51304         * lib/stdlib.in.h: Likewise.
51305         * lib/string.in.h: Likewise.
51306         * lib/strings.in.h: Likewise.
51307         * lib/sys_file.in.h: Likewise.
51308         * lib/sys_ioctl.in.h: Likewise.
51309         * lib/sys_select.in.h: Likewise.
51310         * lib/sys_socket.in.h: Likewise.
51311         * lib/sys_stat.in.h: Likewise.
51312         * lib/sys_time.in.h: Likewise.
51313         * lib/sysexits.in.h: Likewise.
51314         * lib/time.in.h: Likewise.
51315         * lib/unistd.in.h: Likewise.
51316         * lib/wchar.in.h: Likewise.
51317         * lib/wctype.in.h: Likewise.
51318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51319
51320 2008-10-17  Jim Meyering  <meyering@redhat.com>
51321
51322         ignore-value: don't depend on inline module
51323         * modules/ignore-value (Depends-on): Remove 'inline'.
51324         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51325         Suggestion from Bruno Haible.
51326
51327 2008-10-17  Bruno Haible  <bruno@clisp.org>
51328
51329         New implementation of condition variables for Win32.
51330         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51331         (gl_linked_waitqueue_t): New type.
51332         (gl_cond_t): Use it.
51333         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51334         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51335         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51336         (glthread_cond_init_func, glthread_cond_wait_func,
51337         glthread_cond_timedwait_func, glthread_cond_signal_func,
51338         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51339         Reimplemented on the basis of gl_linked_waitqueue_t.
51340         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51341         gl_waitqueue_t.
51342         (gl_rwlock_t): Update.
51343         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51344
51345 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51346
51347         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51348         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51349
51350 2008-10-17  Jim Meyering  <meyering@redhat.com>
51351
51352         ignore-value: new module
51353         * modules/ignore-value: New file.
51354         * lib/ignore-value.h: New file.
51355         * MODULES.html.sh (Compiler warning management): New section,
51356         just for this module.  More to come.
51357
51358 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51359
51360         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51361         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51362         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51363
51364 2008-10-16  Jim Meyering  <meyering@redhat.com>
51365
51366         openat-die.c: avoid 'no previous prototype' warning
51367         * lib/openat-die.c: Include "openat.h".
51368         Reported by Reuben Thomas <rrt@sc3d.org>.
51369
51370 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51371
51372         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51373         * lib/netdb.in.h: Fix typo.
51374         Reported by Bruno Haible  <bruno@clisp.org>
51375
51376         * lib/netdb.in.h: Include sys/socket.h for platforms without
51377         netdb.h, to get structures like hostent on MinGW.
51378         * modules/netdb (Depends-on): Add sys_socket.
51379
51380 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51381
51382         * modules/netdb, modules/netdb-tests: New file.
51383         * m4/netdb_h.m4: New file.
51384         * lib/netdb.in.h: Add, currently just an empty file pending
51385         definitions.
51386         * tests/test-netdb.c: New file.
51387         * doc/posix-headers/netdb.texi: Mention that we replace it if
51388         needed.
51389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51390         netdb.
51391
51392 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51393
51394         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51395         with code.
51396
51397 2008-10-13  Bruno Haible  <bruno@clisp.org>
51398
51399         * lib/glthread/cond.c (glthread_cond_wait_func,
51400         glthread_cond_timedwait_func): Add a comment.
51401
51402 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51403
51404         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51405         * tests/test-select.c: Likewise,
51406
51407 2008-10-13  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/glthread/cond.c (glthread_cond_wait_func,
51410         glthread_cond_timedwait_func): Fix variable name.
51411         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51412
51413 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51414
51415         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51416         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51417         struct sockaddr.sa_len.
51418         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51419
51420 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51421
51422         * build-aux/pmccabe2html: Add css and css_url parameters.
51423
51424 2008-10-12  Bruno Haible  <bruno@clisp.org>
51425
51426         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51427         calling aclx_get.
51428         Reported by Rainer Tammer <tammer@tammer.net>.
51429
51430 2008-10-12  Bruno Haible  <bruno@clisp.org>
51431
51432         Use msvcrt aware primitives for creation/termination of Win32 threads.
51433         * lib/glthread/thread.c: Include <process.h>.
51434         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51435         (wrapper_func): Update signature.
51436         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51437
51438 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51439             Bruno Haible  <bruno@clisp.org>
51440
51441         Provide a Win32 implementation of the 'cond' module.
51442         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51443         * lib/glthread/cond.c (glthread_cond_init_func,
51444         glthread_cond_wait_func, glthread_cond_timedwait_func,
51445         glthread_cond_signal_func, glthread_cond_broadcast_func,
51446         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51447         * modules/cond (Dependencies): Add gettimeofday.
51448
51449 2008-10-11  Bruno Haible  <bruno@clisp.org>
51450
51451         Make sleep work on older versions of mingw.
51452         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51453         only whether it exists.
51454         * doc/posix-functions/sleep.texi: Mention the problem with older
51455         versions of mingw.
51456
51457 2008-10-11  Bruno Haible  <bruno@clisp.org>
51458
51459         New module 'shutdown'.
51460         * modules/shutdown: New file.
51461         * lib/sys_socket.in.h (shutdown): New declaration.
51462         * lib/winsock.c (shutdown): New function.
51463         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51464         GNULIB_SHUTDOWN.
51465         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51466         * doc/posix-functions/shutdown.texi: Document the new module.
51467
51468 2008-10-11  Jim Meyering  <meyering@redhat.com>
51469
51470         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51471
51472 2008-10-11  Bruno Haible  <bruno@clisp.org>
51473
51474         New module 'fclose'.
51475         * modules/fclose: New file.
51476         * lib/stdio.in.h (fclose): New declaration.
51477         * lib/fclose.c: New file.
51478         * m4/fclose.m4: New file.
51479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51480         REPLACE_FCLOSE.
51481         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51482         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51483         REPLACE_FCLOSE.
51484         * modules/close (Depends-on): fclose.
51485         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51486
51487 2008-10-11  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51490         set errno and don't call _close.
51491
51492 2008-10-10  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51495         ACL, not afterwards. Fixes test failure on Cygwin.
51496
51497 2008-10-09  Ben Pfaff  <blp@gnu.org>
51498
51499         * build-aux/announce-gen: Fix gnulib version related part of usage
51500         message.  Die with a useful error message if no tarballs are
51501         found.
51502
51503 2008-10-10  Jim Meyering  <meyering@redhat.com>
51504
51505         bootstrap: use git's --depth=N option only if it's supported
51506         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51507         recognize the --depth option.  Reported by Pádraig Brady.
51508
51509 2008-10-09  Bruno Haible  <bruno@clisp.org>
51510
51511         New module 'ioctl'.
51512         * modules/ioctl: New file.
51513         * lib/sys_socket.in.h (ioctl): Remove declaration.
51514         * lib/winsock.c: Include <sys/ioctl.h>.
51515         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51516         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51517         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51518         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51519         * doc/posix-functions/ioctl.texi: Mention the new module.
51520
51521 2008-10-09  Bruno Haible  <bruno@clisp.org>
51522
51523         New module 'sys_ioctl'.
51524         * lib/sys_ioctl.in.h: New file.
51525         * m4/sys_ioctl_h.m4: New file.
51526         * modules/sys_ioctl: New file.
51527         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51528
51529 2008-10-09  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51532         * lib/winsock.c: Include <stdarg.h>.
51533         (rpl_ioctl): Change to second argument 'int' and then varargs.
51534
51535 2008-10-09  Bruno Haible  <bruno@clisp.org>
51536
51537         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51538         when the sys_socket module is present and the system has <winsock2.h>.
51539
51540 2008-10-09  Bruno Haible  <bruno@clisp.org>
51541
51542         * doc/posix-functions/close.texi: Mention module 'close' instead of
51543         module 'sys_socket'.
51544
51545 2008-10-09  Bruno Haible  <bruno@clisp.org>
51546
51547         * doc/glibc-headers/sys_ioctl.texi: New file.
51548         * doc/gnulib.texi: Include it.
51549
51550 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51551             Bruno Haible  <bruno@clisp.org>
51552
51553         Combine the two replacements of 'close'.
51554         * lib/sys_socket.in.h (close): Define to a reminder to include
51555         <unistd.h>.
51556         (_gl_close_fd_maybe_socket): New declaration.
51557         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51558         * lib/winsock.c (close): Remove undefinition.
51559         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51560         needed for the gnulib module 'close'.
51561         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51562         define to an error symbol or to a warning, if suitable.
51563         * lib/close.c: Include <sys/socket.h>.
51564         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51565         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51566         UNISTD_H_HAVE_WINSOCK2_H.
51567         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51569         UNISTD_H_HAVE_WINSOCK2_H.
51570         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51571         (configure.ac): Set a module indicator.
51572         (Makefile.am): Substitute GNULIB_CLOSE.
51573         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51574         * modules/poll-tests (Depends-on): Add close.
51575         * modules/select-tests (Depends-on): Likewise.
51576
51577 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51578             Bruno Haible  <bruno@clisp.org>
51579
51580         New module 'close'.
51581         * modules/close: New file.
51582         * lib/unistd.in.h (close): Move declaration out of the
51583         FCHDIR_REPLACEMENT scope.
51584         (_gl_unregister_fd): New declaration.
51585         * lib/close.c: New file.
51586         * lib/fchdir.c (rpl_close): Remove function.
51587         * m4/close.m4: New file.
51588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51589         close.
51590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51591         REPLACE_CLOSE.
51592         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51593         REPLACE_CLOSE.
51594         * modules/fchdir (Depends-on): Add close.
51595
51596 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51597             Bruno Haible  <bruno@clisp.org>
51598
51599         * lib/fcntl.in.h (open): Simplify conditionals.
51600         (_gl_register_fd): New declaration.
51601         * lib/fchdir.c (rpl_open): Remove function.
51602         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51603         also.
51604         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51606         open.
51607
51608 2008-10-09  Jim Meyering  <meyering@redhat.com>
51609
51610         GNUmakefile: use the more name-space-friendly "_version"
51611         * top/GNUmakefile (_dummy): Update.
51612         (_version): Rename from "version".
51613
51614 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51615             Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51618         rpl_close.
51619         (_gl_register_fd): New function, extracted from rpl_open.
51620         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51621         (rpl_open, rpl_opendir): Use _gl_register_fd.
51622
51623 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51624
51625         Fix organization of 'open' replacement.
51626         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51627         (gl_FUNC_OPEN): Use it.
51628         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51629
51630 2008-10-08  Bruno Haible  <bruno@clisp.org>
51631
51632         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51633
51634 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51635
51636         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51637         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51638         listen).
51639
51640 2008-10-08  Eric Blake  <ebb9@byu.net>
51641
51642         GNUmakefile: add 'make version' target
51643         * top/GNUmakefile (_curr-ver): Split version update rules...
51644         (version): ...into a target.
51645
51646 2008-10-07  Bruno Haible  <bruno@clisp.org>
51647
51648         Use a more portable replacement expression for -0.0L.
51649         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51650         instead of -0.0L. Fix m4 quotation.
51651
51652         * tests/test-signbit.c: Include <float.h>.
51653         (minus_zero): New variable.
51654         (test_signbitl): Use minus_zero instead of -zero.
51655         * modules/signbit-tests (Depends-on): Add float.
51656
51657         * tests/test-ceill.c: Include <float.h>.
51658         (zero): Remove variable.
51659         (minus_zero): New variable.
51660         (main): Use minus_zero instead of -zero.
51661         * modules/ceill-tests (Depends-on): Add float.
51662
51663         * tests/test-floorl.c: Include <float.h>.
51664         (zero): Remove variable.
51665         (minus_zero): New variable.
51666         (main): Use minus_zero instead of -zero.
51667         * modules/floorl-tests (Depends-on): Add float.
51668
51669         * tests/test-roundl.c: Include <float.h>.
51670         (zero): Remove variable.
51671         (minus_zero): New variable.
51672         (main): Use minus_zero instead of -zero.
51673         * modules/roundl-tests (Depends-on): Add float.
51674
51675         * tests/test-truncl.c: Include <float.h>.
51676         (zero): Remove variable.
51677         (minus_zero): New variable.
51678         (main): Use minus_zero instead of -zero.
51679         * modules/truncl-tests (Depends-on): Add float.
51680
51681         * tests/test-frexpl.c (zero): Remove variable.
51682         (minus_zero): New variable.
51683         (main): Use minus_zero instead of -zero.
51684         * modules/frexpl-tests (Depends-on): Add float.
51685
51686         * tests/test-isnan.c (zerol): Remove variable.
51687         (minus_zerol): New variable.
51688         (test_long_double): Use minus_zerol instead of -zerol.
51689         * modules/isnan-tests (Depends-on): Add float.
51690
51691         * tests/test-isnanl.h (zero): Remove variable.
51692         (minus_zero): New variable.
51693         (main): Use minus_zero instead of -zero.
51694         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51695         * modules/isnanl-tests (Depends-on): Add float.
51696
51697         * tests/test-ldexpl.c (zero): Remove variable.
51698         (minus_zero): New variable.
51699         (main): Use minus_zero instead of -zero.
51700         * modules/ldexpl-tests (Depends-on): Add float.
51701
51702         * tests/test-snprintf-posix.h (zerol): Remove variable.
51703         (minus_zerol): New variable.
51704         (test_function): Use minus_zerol instead of -zerol.
51705         * modules/snprintf-posix-tests (Depends-on): Add float.
51706         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51707
51708         * tests/test-sprintf-posix.h (zerol): Remove variable.
51709         (minus_zerol): New variable.
51710         (test_function): Use minus_zerol instead of -zerol.
51711         * modules/sprintf-posix-tests (Depends-on): Add float.
51712         * modules/vsprintf-posix-tests (Depends-on): Add float.
51713
51714         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51715         (minus_zerol): New variable.
51716         (test_function): Use minus_zerol instead of -zerol.
51717         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51718
51719         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51720         (minus_zerol): New variable.
51721         (test_function): Use minus_zerol instead of -zerol.
51722         * modules/vasprintf-posix-tests (Depends-on): Add float.
51723
51724 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51725
51726         * MODULES.html.sh (Support for building documentation): Mention
51727         pmccabe2html.  Sort entries.
51728
51729         Add pmccabe2html module, from gnupdf.
51730         * build-aux/pmccabe.css: New file.
51731         * build-aux/pmccabe2html: New file.
51732         * m4/pmccabe2html.m4: New file.
51733         * modules/pmccabe2html: New file.
51734
51735 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51736
51737         flock: new module
51738         * MODULES.html.sh: Add to list of modules.
51739         * lib/flock.c: flock implementation for Windows and Unix systems
51740         which have fcntl.
51741         * doc/glibc-functions/flock.texi: Update documentation.
51742         * lib/sys_file.in.h: <sys/file.h> header file.
51743         * m4/flock.m4: M4 macros.
51744         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51745         * modules/flock: flock module.
51746         * modules/flock-tests: flock tests module.
51747         * modules/sys_file: sys/file.h module.
51748         * tests/test-flock.c: test suite for flock.
51749
51750 2008-10-06  Jim Meyering  <meyering@redhat.com>
51751
51752         bootstrap: check for LT_INIT more portably still ;-)
51753         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51754         Spotted by Bruno Haible.
51755
51756 2008-10-06  Eric Blake  <ebb9@byu.net>
51757
51758         test-signbit: avoid tripping Irix cc bug on -0.0L
51759         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51760         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51761         entire testsuite consistent and avoids an Irix 6.2 bug.
51762
51763 2008-10-05  Bruno Haible  <bruno@clisp.org>
51764             Jim Meyering  <jim@meyering.net>
51765
51766         Add an option for ignoring EPIPE during close_stdout.
51767         * lib/closeout.h: Include <stdbool.h>.
51768         (close_stdout_set_ignore_EPIPE): New declaration.
51769         * lib/closeout.c: Include <stdbool.h>.
51770         (ignore_EPIPE): New variable.
51771         (close_stdout_set_ignore_EPIPE): New function.
51772         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51773         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51774         failure.
51775         * modules/closeout (Depends-on): Add stdbool.
51776
51777 2008-10-05  Bruno Haible  <bruno@clisp.org>
51778
51779         * modules/accept: New file.
51780         * modules/bind: New file.
51781         * modules/connect: New file.
51782         * modules/getpeername: New file.
51783         * modules/getsockname: New file.
51784         * modules/getsockopt: New file.
51785         * modules/listen: New file.
51786         * modules/recv: New file.
51787         * modules/recvfrom: New file.
51788         * modules/send: New file.
51789         * modules/sendto: New file.
51790         * modules/setsockopt: New file.
51791         * modules/socket: New file.
51792         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51793         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51794         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51795         the particular module is requested. Add a link warning when the
51796         particular module is not requested.
51797         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51798         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51799         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51800         the particular module is requested.
51801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51802         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51803         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51804         * modules/sys_socket (Depends-on): Add link-warning.
51805         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51806         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51807         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51808         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51809         GL_LINK_WARNING.
51810         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51811         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51812         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51813         * doc/posix-functions/getpeername.texi: Mention the new module
51814         'getpeername'.
51815         * doc/posix-functions/getsockname.texi: Mention the new module
51816         'getsockname'.
51817         * doc/posix-functions/getsockopt.texi: Mention the new module
51818         'getsockopt'.
51819         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51820         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51821         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51822         * doc/posix-functions/send.texi: Mention the new module 'send'.
51823         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51824         * doc/posix-functions/setsockopt.texi: Mention the new module
51825         'setsockopt'.
51826         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51827         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51828         listen, connect, accept.
51829         * modules/select-tests (Depends-on): Likewise.
51830
51831 2008-10-05  Bruno Haible  <bruno@clisp.org>
51832
51833         * lib/winsock.c (strerror): Remove unused #undef.
51834         (rpl_close): Remove unused local variable.
51835
51836         * modules/sys_socket (Depends-on); Add errno.
51837
51838 2008-10-05  Bruno Haible  <bruno@clisp.org>
51839
51840         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51841         (select): Add a link warning when the 'select' module is not used.
51842         * modules/sys_select (Depends-on): Add link-warning.
51843         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51844         Suggested by Paolo Bonzini.
51845
51846 2008-10-05  Jim Meyering  <meyering@redhat.com>
51847
51848         bootstrap: check for LT_INIT more portably
51849         * build-aux/bootstrap: Avoid using grep -E, since it's not
51850         portable enough.  Suggestion from Bruno Haible.
51851
51852 2008-10-05  Bruno Haible  <bruno@clisp.org>
51853
51854         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51855         as being fixed by gnulib.
51856
51857 2008-10-05  Bruno Haible  <bruno@clisp.org>
51858
51859         * modules/select-tests: New file, mostly copied from
51860         modules/sys_select-tests.
51861         * tests/test-select.c: New file, mostly copied from
51862         tests/test-sys_select.c.
51863         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51864         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51865         (Makefile.am): Remove test_sys_select_LDADD.
51866
51867         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51868         to an undefined symbol, for an error message.
51869         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51870         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51871         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51872         winsock-select.c here.
51873         * modules/sys_select (Files): Remove lib/winsock-select.c.
51874         (Depends-on): Remove alloca.
51875         (Makefile.am): Substitute GNULIB_SELECT.
51876         * modules/select: New file.
51877         * doc/posix-functions/select.texi: Update.
51878
51879 2008-10-05  Bruno Haible  <bruno@clisp.org>
51880
51881         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51882         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51883         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51884         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51885         getdtablesize.
51886         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51887         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51888
51889 2008-10-05  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/getdtablesize-tests: New file.
51892         * tests/test-getdtablesize.c: New file.
51893
51894         New module 'getdtablesize'.
51895         * lib/unistd.in.h (getdtablesize): New declaration.
51896         * lib/getdtablesize.c: New file.
51897         * m4/getdtablesize.m4: New file.
51898         * modules/getdtablesize: New file.
51899         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51900         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51901         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51902         HAVE_GETDTABLESIZE.
51903         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51904
51905 2008-10-05  Bruno Haible  <bruno@clisp.org>
51906
51907         * modules/sched (Makefile.am): Fix typo.
51908         Reported by Simon Josefsson.
51909
51910 2008-10-05  Jim Meyering  <meyering@redhat.com>
51911
51912         bootstrap: check for LT_INIT, too
51913         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51914         are deprecated.  Suggestion from Ralf Wildenhues.
51915
51916 2008-10-05  Bruno Haible  <bruno@clisp.org>
51917
51918         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51919         overriding them by ours.
51920         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51921
51922 2008-10-05  Jim Meyering  <meyering@redhat.com>
51923
51924         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51925         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51926         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51927
51928 2008-10-04  Bruno Haible  <bruno@clisp.org>
51929
51930         * modules/dup2 (License): Change to LGPLv2+.
51931         * modules/sleep (License): Likewise.
51932         * modules/perror (License): Likewise.
51933         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51934         Blake.
51935         * modules/signal (License): Likewise.
51936         * modules/sigprocmask (License): Likewise.
51937         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51938         Meyering.
51939
51940 2008-10-04  Bruno Haible  <bruno@clisp.org>
51941
51942         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51943         Reported by Rainer Tammer <tammer@tammer.net>.
51944
51945 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51946             Bruno Haible  <bruno@clisp.org>
51947
51948         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51949         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51950         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51951
51952 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51953
51954         filevercmp: new module
51955         * lib/filevercmp.h: New function filevercmp comparing version strings.
51956         * lib/filevercmp.c: Implementation of filevercmp function.
51957         * modules/filevercmp: Module metadata.
51958         * tests/test-filevercmp.c: Unit test for new module.
51959         * modules/filevercmp-tests: Unit test metadata.
51960         * MODULES.html.sh: Add filevercmp module.
51961
51962 2008-10-03  Bruno Haible  <bruno@clisp.org>
51963
51964         * lib/c-ctype.h: Add comment.
51965         Reported by Jim Meyering.
51966
51967 2008-10-02  Bruno Haible  <bruno@clisp.org>
51968
51969         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51970
51971 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51972
51973         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51974         name of bootstrap.conf accordingly.
51975
51976 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51977
51978         * build-aux/bootstrap: Install git-merge-changelog configuration
51979         items into .gitconfig if needed.
51980
51981 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51982
51983         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51984         git repository, and initialize/update it accordingly.
51985
51986 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51987
51988         * modules/fsync-tests: New file.
51989         * tests/test-fsync.c: New file.
51990
51991         New module 'fsync'.
51992         * lib/fsync.c: New file.
51993         * m4/fsync.m4: New file.
51994         * modules/fsync: New file.
51995         * lib/unistd.in.h (fsync): New declaration.
51996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51997         GNULIB_FSYNC and HAVE_FSYNC.
51998         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51999         * MODULES.html.sh (posix_functions): Add fsync.
52000         * doc/posix-functions/fsync.texi: Mention the new module.
52001
52002 2008-10-02  Jim Meyering  <meyering@redhat.com>
52003
52004         fts.c: sync with similar code from coreutils' remove.c
52005         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52006         Guard also with "#if defined __linux__", since for now at least,
52007         this code is Linux-kernel-specific.
52008
52009 2008-10-02  Jim Meyering  <meyering@redhat.com>
52010
52011         fts: bug fixes
52012         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52013         Include <sys/vfs.h>, not <sys/statfs.h>.
52014
52015         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52016         Include <sys/vfs.h>, not <sys/statfs.h>.
52017
52018 2008-10-01  Bruno Haible  <bruno@clisp.org>
52019
52020         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52022         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52023         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52024         * doc/posix-functions/posix_spawnp.texi: Likewise.
52025         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52026         whether posix_spawn actually works.
52027         * m4/pipe.m4 (gl_PIPE): Likewise.
52028         * modules/execute (Files): Add m4/posix_spawn.m4.
52029         * modules/pipe (Files): Add m4/posix_spawn.m4.
52030         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52031
52032 2008-10-01  Jim Meyering  <meyering@redhat.com>
52033
52034         remove trailing spaces
52035         * NEWS: Likewise.
52036         * lib/poll.c (poll): Likewise.
52037         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52038         * lib/winsock.c (rpl_close): Likewise.
52039         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52040         * modules/yield: Likewise.
52041         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52042         * tests/test-sys_select.c (connect_to_socket): Likewise.
52043
52044         fts.c: adjust a new interface to be more generally useful
52045         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52046         (fts_build): Adjust caller.
52047
52048 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52049
52050         * modules/cond-tests: New file.
52051         * tests/test-cond.c: New file.
52052
52053 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52054             Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/cond (Dependencies): Add errno, time.
52057         * lib/glthread/cond.h: Include <time.h>.
52058         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52059         across platforms.
52060
52061 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52062             Bruno Haible  <bruno@clisp.org>
52063
52064         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52065
52066 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52067             Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/tls-tests (Depends-on): Add thread, yield.
52070         (configure.ac): Remove all checks.
52071         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52072         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52073         gl_thread_self): Remove definitions. Include glthread/thread.h and
52074         glthread/yield.h instead.
52075         (test_tls): Pass an additional NULL argument to gl_thread_join.
52076
52077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52078             Bruno Haible  <bruno@clisp.org>
52079
52080         * modules/lock-tests (Depends-on): Add thread, yield.
52081         (configure.ac): Remove all checks.
52082         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52083         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52084         gl_thread_self): Remove definitions. Include glthread/thread.h and
52085         glthread/yield.h instead.
52086         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52087         additional NULL argument to gl_thread_join.
52088
52089 2008-09-30  Bruno Haible  <bruno@clisp.org>
52090
52091         Fix the Win32 implementation of the 'thread' module.
52092         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52093         pointer type.
52094         (gl_thread_self): Invoke gl_thread_self_func.
52095         (gl_thread_self_func): New declaration.
52096         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52097         (do_init_self_key, init_self_key): New functions.
52098         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52099         Remove some fields.
52100         (running_threads, running_lock): Remove variables.
52101         (get_current_thread_handle): New function.
52102         (gl_thread_self_func, wrapper_func, glthread_create_func,
52103         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52104         simplified.
52105
52106 2008-09-30  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52109         files.
52110
52111 2008-09-30  Jim Meyering  <meyering@redhat.com>
52112
52113         fts.m4: correct the test for statfs.f_type
52114         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52115         when checking for statfs.f_type.
52116
52117 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52118
52119         tests: avoid some compiler warnings
52120         * tests/test-memchr.c (main): Pass NULL indirectly.
52121         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52122
52123 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52124
52125         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52126         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52127         exactly specified dayshifts.
52128         (dayshift): New rule.
52129         (rel): Add dayshift.
52130         (relative_time_table) [tomorrow, yesterday, today, now]:
52131         Use tDAY_SHIFT in place of tDAY_UNIT.
52132         * tests/test-getdate.c: Add tests for now-disallowed countable
52133         dayshifts, e.g., "4 yesterday ago".
52134
52135 2008-09-29  Bruno Haible  <bruno@clisp.org>
52136
52137         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52138         * tests/test-posix_spawn1.in.sh: Renamed from
52139         tests/test-posix_spawn.in.sh.
52140         * tests/test-posix_spawn2.c: New file.
52141         * tests/test-posix_spawn2.in.sh: New file.
52142         * modules/posix_spawnp-tests (Files): Update.
52143         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52144
52145 2008-09-29  Bruno Haible  <bruno@clisp.org>
52146
52147         Propagate effects of putenv/setenv/unsetenv to child processes.
52148         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52149         * lib/pipe.c (create_pipe): Likewise.
52150
52151 2008-09-29  Bruno Haible  <bruno@clisp.org>
52152
52153         Enable use of shell scripts as executables in mingw.
52154         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52155         run the program as a shell script.
52156         * lib/pipe.c (create_pipe): Likewise.
52157         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52158         resulting array.
52159
52160 2008-09-29  Eric Blake  <ebb9@byu.net>
52161
52162         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52163
52164 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52165
52166         * doc/posix-functions/accept.texi: Update mingw problems.
52167         * doc/posix-functions/bind.texi: Update mingw problems.
52168         * doc/posix-functions/close.texi: Update mingw problems.
52169         * doc/posix-functions/connect.texi: Update mingw problems.
52170         * doc/posix-functions/getpeername.texi: Update mingw problems.
52171         * doc/posix-functions/getsockname.texi: Update mingw problems.
52172         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52173         * doc/posix-functions/ioctl.texi: Update mingw problems.
52174         * doc/posix-functions/listen.texi: Update mingw problems.
52175         * doc/posix-functions/recv.texi: Update mingw problems.
52176         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52177         * doc/posix-functions/select.texi: Update mingw problems.
52178         * doc/posix-functions/send.texi: Update mingw problems.
52179         * doc/posix-functions/sendto.texi: Update mingw problems.
52180         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52181         * doc/posix-functions/socket.texi: Update mingw problems.
52182
52183 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52184             Bruno Haible  <bruno@clisp.org>
52185
52186         * lib/sys_select.in.h: Include sys/time.h.
52187         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52188         * modules/sys_select: Depend on sys_time.
52189         * tests/test-sys_select.c: Test that sys/select.h defines struct
52190         timeval fully.
52191
52192 2008-09-29  Bruno Haible  <bruno@clisp.org>
52193
52194         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52195         * lib/sys_select.in.h: Likewise.
52196
52197 2008-09-29  Bruno Haible  <bruno@clisp.org>
52198
52199         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52200
52201 2008-09-29  Bruno Haible  <bruno@clisp.org>
52202
52203         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52204         Set LIBSOCKET instead of augmenting LIBS.
52205         * modules/sockets (Link): New section.
52206         * modules/sockets-tests (test_sockets_LDADD): New variable.
52207         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52208         * modules/poll-tests (test_poll_LDADD): New variable.
52209         * NEWS: Document the change.
52210
52211 2008-09-29  Bruno Haible  <bruno@clisp.org>
52212
52213         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52214         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52215         ARPA_INET_H directly.
52216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52217
52218 2008-09-28  Bruno Haible  <bruno@clisp.org>
52219
52220         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52221         from gl_HEADER_SYS_SOCKET.
52222         (gl_HEADER_SYS_SOCKET): Invoke it.
52223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52224
52225 2008-09-28  Bruno Haible  <bruno@clisp.org>
52226
52227         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52228         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52229         Needed on OSF/1 4.0.
52230
52231 2008-09-28  Bruno Haible  <bruno@clisp.org>
52232
52233         Override open more carefully.
52234         * lib/open.c (orig_open): New function.
52235         (rpl_open): Use orig_open instead of open.
52236         * lib/fcntl.in.h: Add special invocation convention.
52237         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52238         (gl_FUNC_OPEN): Invoke it.
52239
52240         Override freopen more carefully.
52241         * lib/freopen.c (orig_freopen): New function.
52242         (rpl_freopen): Use orig_freopen instead of freopen.
52243         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52244         (gl_FUNC_FREOPEN): Invoke it.
52245
52246         Override fopen more carefully.
52247         * lib/fopen.c (orig_fopen): New function.
52248         (rpl_fopen): Use orig_fopen instead of fopen.
52249         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52250         (gl_FUNC_FOPEN): Invoke it.
52251         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52252
52253 2008-09-28  Bruno Haible  <bruno@clisp.org>
52254
52255         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52256         SIGPIPE.
52257
52258 2008-09-28  Bruno Haible  <bruno@clisp.org>
52259
52260         * tests/test-sigaction.c (handler, main): Disable the check whether
52261         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52262         glibc systems with LinuxThreads.
52263
52264 2008-09-28  Bruno Haible  <bruno@clisp.org>
52265
52266         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52267
52268         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52269         with AIX xlc.
52270         * lib/fcntl.in.h (open): Likewise.
52271         Reported by Rainer Tammer <tammer@tammer.net>.
52272
52273 2008-09-28  Bruno Haible  <bruno@clisp.org>
52274
52275         * modules/posix_spawnp-tests: New file.
52276         * tests/test-posix_spawn.c: New file.
52277         * tests/test-posix_spawn.in.sh: New file.
52278
52279         New module 'posix_spawnp'.
52280         * modules/posix_spawnp: New file.
52281         * lib/spawnp.c: New file, from GNU libc with modifications.
52282         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52283
52284         New module 'posix_spawn'.
52285         * modules/posix_spawn: New file.
52286         * lib/spawn.c: New file, from GNU libc with modifications.
52287         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52288
52289         New module 'posix_spawnattr_destroy'.
52290         * modules/posix_spawnattr_destroy: New file.
52291         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52292         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52293         module.
52294
52295         New module 'posix_spawnattr_setsigmask'.
52296         * modules/posix_spawnattr_setsigmask: New file.
52297         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52298         modifications.
52299         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52300         new module.
52301
52302         New module 'posix_spawnattr_getsigmask'.
52303         * modules/posix_spawnattr_getsigmask: New file.
52304         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52305         modifications.
52306         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52307         new module.
52308
52309         New module 'posix_spawnattr_setsigdefault'.
52310         * modules/posix_spawnattr_setsigdefault: New file.
52311         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52312         modifications.
52313         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52314         new module.
52315
52316         New module 'posix_spawnattr_getsigdefault'.
52317         * modules/posix_spawnattr_getsigdefault: New file.
52318         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52319         modifications.
52320         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52321         new module.
52322
52323         New module 'posix_spawnattr_setschedpolicy'.
52324         * modules/posix_spawnattr_setschedpolicy: New file.
52325         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52326         modifications.
52327         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52328         new module.
52329
52330         New module 'posix_spawnattr_getschedpolicy'.
52331         * modules/posix_spawnattr_getschedpolicy: New file.
52332         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52333         modifications.
52334         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52335         new module.
52336
52337         New module 'posix_spawnattr_setschedparam'.
52338         * modules/posix_spawnattr_setschedparam: New file.
52339         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52340         modifications.
52341         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52342         new module.
52343
52344         New module 'posix_spawnattr_getschedparam'.
52345         * modules/posix_spawnattr_getschedparam: New file.
52346         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52347         modifications.
52348         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52349         new module.
52350
52351         New module 'posix_spawnattr_setpgroup'.
52352         * modules/posix_spawnattr_setpgroup: New file.
52353         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52354         modifications.
52355         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52356         module.
52357
52358         New module 'posix_spawnattr_getpgroup'.
52359         * modules/posix_spawnattr_getpgroup: New file.
52360         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52361         modifications.
52362         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52363         module.
52364
52365         New module 'posix_spawnattr_setflags'.
52366         * modules/posix_spawnattr_setflags: New file.
52367         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52368         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52369         module.
52370
52371         New module 'posix_spawnattr_getflags'.
52372         * modules/posix_spawnattr_getflags: New file.
52373         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52374         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52375         module.
52376
52377         New module 'posix_spawnattr_init'.
52378         * modules/posix_spawnattr_init: New file.
52379         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52380         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52381         module.
52382
52383         New module 'posix_spawn_file_actions_destroy'.
52384         * modules/posix_spawn_file_actions_destroy: New file.
52385         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52386         modifications.
52387         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52388         the new module.
52389
52390         New module 'posix_spawn_file_actions_addopen'.
52391         * modules/posix_spawn_file_actions_addopen: New file.
52392         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52393         modifications.
52394         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52395         the new module.
52396
52397         New module 'posix_spawn_file_actions_adddup2'.
52398         * modules/posix_spawn_file_actions_adddup2: New file.
52399         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52400         modifications.
52401         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52402         the new module.
52403
52404         New module 'posix_spawn_file_actions_addclose'.
52405         * modules/posix_spawn_file_actions_addclose: New file.
52406         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52407         modifications.
52408         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52409         the new module.
52410
52411         New module 'posix_spawn_file_actions_init'.
52412         * modules/posix_spawn_file_actions_init: New file.
52413         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52414         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52415         new module.
52416
52417         New module 'posix_spawn-internal'.
52418         * modules/posix_spawn-internal: New file.
52419         * lib/spawn_int.h: New file, from GNU libc with modifications.
52420         * lib/spawni.c: New file, from GNU libc with modifications.
52421         * m4/posix_spawn.m4: New file.
52422
52423         New module 'spawn'.
52424         * modules/spawn: New file.
52425         * lib/spawn.in.h: New file, from GNU libc with modifications.
52426         * m4/spawn_h.m4: New file.
52427         * doc/posix-headers/spawn.texi: Mention the new module.
52428
52429 2008-09-28  Bruno Haible  <bruno@clisp.org>
52430
52431         * modules/sched-tests: New file.
52432         * tests/test-sched.c: New file.
52433
52434         New module 'sched'.
52435         * modules/sched: New file.
52436         * lib/sched.in.h: New file.
52437         * m4/sched_h.m4: New file.
52438         * doc/posix-headers/sched.texi: Mention the new module.
52439
52440 2008-09-27  Eric Blake  <ebb9@byu.net>
52441
52442         Fix previous patch, and tweak references to $0.
52443         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52444         (func_version, func_gnulib_dir): Don't call this program
52445         gnulib-tool.
52446         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52447         with using $0 in function.
52448         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52449         (func_fatal_error): Reuse the name the user invoked us with.
52450
52451 2008-09-27  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52454         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52455         (gl_ICONV_H): Not here.
52456         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52457         instead of assigning ICONV_H directly.
52458
52459         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52461         WCHAR_H directly.
52462
52463 2008-09-27  Bruno Haible  <bruno@clisp.org>
52464
52465         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52466         * modules/arpa_inet (Depends-on): Add link-warning.
52467         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52468         * modules/unistd (Makefile.am): Likewise.
52469
52470 2008-09-26  Bruno Haible  <bruno@clisp.org>
52471
52472         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52473         variables.
52474         (func_version): Essentially copied from gnulib-tool.
52475         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52476         func_readlink): Copied from gnulib-tool.
52477
52478 2008-09-26  Bruno Haible  <bruno@clisp.org>
52479
52480         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52481         invoking git-version-gen.
52482
52483 2008-09-26  Bruno Haible  <bruno@clisp.org>
52484
52485         * posix-modules: Update to directory names changed on 2008-01-19.
52486         Remove commas in output before splitting into words. No more need to
52487         avoid 'ftruncate' since 2007-02-19.
52488
52489 2008-09-26  Bruno Haible  <bruno@clisp.org>
52490
52491         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52492
52493 2008-09-26  Bruno Haible  <bruno@clisp.org>
52494
52495         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52496         * modules/fwriteerror (Depends-on): Add errno.
52497
52498 2008-09-26  Bruno Haible  <bruno@clisp.org>
52499
52500         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52501         * tests/test-vc-list-files-cvs.sh: Likewise.
52502
52503 2008-09-26  Bruno Haible  <bruno@clisp.org>
52504
52505         * doc/posix-headers/sys_resource.texi: Reorder items.
52506
52507 2008-09-26  Jim Meyering  <meyering@redhat.com>
52508
52509         fts: tweak inode comparison function
52510         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52511         inode numbers, as documented.
52512
52513         fts: sort dirent entries on inode number before traversing
52514         This avoids a quadratic, seek-related performance penalty when
52515         operating on a directory containing many entries (measurable at 10k;
52516         3.5 hours at 2 million entries with a cold cache) on certain types
52517         of file systems, including ext3 and ext4, but not tmpfs.
52518         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52519         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52520         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52521         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52522         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52523         (fts_build): Set the stat.st_ino member from D_INO.
52524         If it is likely to be useful, sort dirent entries on inode number.
52525
52526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52527         and the struct statfs.f_type member.
52528         * modules/fts (Depends-on): Add d-ino.
52529
52530 2008-09-26  Bruno Haible  <bruno@clisp.org>
52531
52532         * modules/sigpipe-die (Depends-on): Add sigpipe.
52533
52534         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52535         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52536         and GNULIB_STDIO_H_SIGPIPE are set.
52537         * lib/stdio-write.c: New file.
52538         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52539         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52540         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52541         REPLACE_STDIO_WRITE_FUNCS.
52542         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52543         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52544         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52545         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52546         * modules/stdio (Files): Add lib/stdio-write.c.
52547         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52548         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52549         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52550         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52551         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52552         REPLACE_FPRINTF_POSIX.
52553         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52554         REPLACE_PRINTF_POSIX.
52555         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52556         REPLACE_VFPRINTF_POSIX.
52557         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52558         REPLACE_VPRINTF_POSIX.
52559         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52560         SIGPIPE issue.
52561         * doc/posix-functions/fputc.texi: Likewise.
52562         * doc/posix-functions/fputs.texi: Likewise.
52563         * doc/posix-functions/fwrite.texi: Likewise.
52564         * doc/posix-functions/printf.texi: Likewise.
52565         * doc/posix-functions/putc.texi: Likewise.
52566         * doc/posix-functions/putchar.texi: Likewise.
52567         * doc/posix-functions/puts.texi: Likewise.
52568         * doc/posix-functions/vfprintf.texi: Likewise.
52569         * doc/posix-functions/vprintf.texi: Likewise.
52570
52571         * modules/safe-write (Depends-on): Add write.
52572
52573         * modules/sigpipe-tests: New file.
52574         * tests/test-sigpipe.c: New file.
52575         * tests/test-sigpipe.sh: New file.
52576
52577         * modules/write: New file.
52578         * lib/unistd.in.h: Include <sys/types.h>.
52579         (write): New declaration.
52580         * lib/write.c: New file.
52581         * m4/write.m4: New file.
52582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52583         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52584         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52585         GNULIB_WRITE, REPLACE_WRITE.
52586         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52587         and the SIGPIPE issue.
52588
52589         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52590         (raise): New declaration.
52591         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52592         (ext_signal): New function.
52593         (rpl_raise): New function.
52594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52595         GNULIB_SIGNAL_H_SIGPIPE.
52596         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52597         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52598
52599         * modules/sigpipe: New file.
52600         * m4/sigpipe.m4: New file.
52601
52602 2008-09-25  Derek Price  <derek@ximbiot.com>
52603             Bruno Haible  <bruno@clisp.org>
52604
52605         * gnulib-tool (func_import): Report all license incompatibilities, not
52606         just the first one.
52607
52608 2008-09-25  Bruno Haible  <bruno@clisp.org>
52609
52610         * gnulib-tool (func_import): When computing the edits, consider not
52611         only the Makefile.ams that exist but also those that will be generated.
52612
52613 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52614
52615         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52616         fixes gnulib-tool --test warning about duplicate dependency.
52617
52618 2008-09-25  Bruno Haible  <bruno@clisp.org>
52619
52620         * gnulib-tool: Don't ask the user to perform edits in the generated
52621         Makefile.ams.
52622         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52623         apply to the Makefile.am being generated.
52624         (func_emit_tests_Makefile_am): Execute edits that apply to the
52625         Makefile.am being generated.
52626         (func_import): Setup list of Makefile.am edits before emitting the
52627         Makefile.ams, not at the end.
52628         (func_create_testdir): Update.
52629         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52630
52631 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52632
52633         * gnulib-tool (func_import): Store the --tests-base option in the
52634         comment in gnulib-cache.m4.
52635
52636 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52637
52638         * NEWS: Document increased portability that sys_select now provides.
52639
52640         * lib/sys_select.in.h: Install select wrapper.
52641         * lib/sys_socket.in.h: Use more descriptive name when there is no
52642         select wrapper.
52643         * lib/winsock-select.c: New.
52644         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52645         Require gl_HEADER_SYS_SOCKET.
52646         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52647         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52648         * tests/test-sys_select.c: Add functional tests.
52649
52650 2008-09-24  Eric Blake  <ebb9@byu.net>
52651
52652         open, fopen: close fd leak in last patch
52653         * lib/open.c (rpl_open): Close fd before returning error.
52654         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52655         * doc/posix-functions/open.texi (open): Document that Irix also
52656         has the bug.
52657         * doc/posix-functions/fopen.texi (fopen): Likewise.
52658         Reported by Paolo Bonzini.
52659
52660 2008-09-24  Bruno Haible  <bruno@clisp.org>
52661
52662         Ensure that a filename ending in a slash cannot be used to access a
52663         non-directory.
52664         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52665         to check whether it's really a directory.
52666         * lib/fopen.c: Include fcntl.h, unistd.h.
52667         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52668         and fdopen().
52669         * modules/fopen (Depends-on): Add unistd.
52670         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52671         * tests/test-fopen.c (main): Likewise.
52672         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52673         * doc/posix-functions/fopen.texi: Likewise.
52674         Reported by Eric Blake.
52675
52676 2008-09-23  Eric Blake  <ebb9@byu.net>
52677
52678         c-stack: avoid compiler optimizations when provoking overflow
52679         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52680         recursion harder to optimize, to ensure a stack overflow occurs.
52681         * tests/test-c-stack.c (recurse): Likewise.
52682         Borrowed from libsigsegv.
52683
52684         c-stack: work around Irix sigaltstack bug
52685         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52686         whether sigaltstack uses wrong end of stack_t (copied in part from
52687         libsigsegv).
52688         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52689         Irix bug, without requiring an over-allocation.
52690         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52691         bug.
52692
52693         fopen: document mingw bug on directories
52694         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52695         not allowing a stream visiting a directory, even though reading
52696         from such a stream is not portable.
52697
52698 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52699
52700         * lib/poll.c: Rewrite.
52701         * modules/poll: Depend on alloca.
52702
52703 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52704
52705         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52706         instead define prototypes for a full set of wrappers.  Ensure
52707         that Cygwin does not use the compatibility code, which is only
52708         for MinGW.
52709         * lib/winsock.c: New.
52710         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52711         * modules/sys_socket: Add lib/winsock.c.
52712
52713         * modules/poll-tests: Add errno and perror.
52714         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52715
52716 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52717
52718         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52719
52720 2008-09-23  Bruno Haible  <bruno@clisp.org>
52721
52722         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52723         * doc/glibc-functions/*: Likewise.
52724
52725 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52726
52727         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52728         success.
52729
52730 2008-09-22  Eric Blake  <ebb9@byu.net>
52731             Bruno Haible  <bruno@clisp.org>
52732
52733         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52734         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52735         supply %A but mishandle pseudo-NaN.
52736         Reported by Simon Josefsson.
52737
52738 2008-09-21  Bruno Haible  <bruno@clisp.org>
52739
52740         * tests/test-lock.c (main): Tweak skip message.
52741         * tests/test-tls.c (main): Likewise.
52742
52743 2008-09-21  Bruno Haible  <bruno@clisp.org>
52744
52745         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52746         whether 'struct sigaction' has sa_sigaction here...
52747         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52748         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52749
52750 2008-09-21  Bruno Haible  <bruno@clisp.org>
52751
52752         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52753         section.
52754         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52755         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52756         the new section.
52757         (Support for obsolete systems lacking POSIX:2001): New section.
52758         (String handling <string.h>): Move strdup to the new section.
52759         Suggested by Simon Josefsson and Paolo Bonzini.
52760
52761 2008-09-21  Bruno Haible  <bruno@clisp.org>
52762
52763         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52764         exponents in %e and %g results on 'long double'. Needed for mingw's
52765         improved *printf functions.
52766         * tests/test-vasprintf-posix.c (test_function): Likewise.
52767         * tests/test-snprintf-posix.h (test_function): Likewise.
52768         * tests/test-sprintf-posix.h (test_function): Likewise.
52769         Reported by Eric Blake.
52770
52771 2008-09-21  Bruno Haible  <bruno@clisp.org>
52772
52773         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52774         * tests/test-sprintf-posix.h (test_function): Likewise.
52775
52776 2008-09-21  Bruno Haible  <bruno@clisp.org>
52777
52778         * modules/getpass (Depends-on): Add strdup-posix.
52779
52780         New module 'strdup-posix'.
52781         * modules/strdup-posix: New file.
52782         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52783         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52784         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52785         REPLACE_STRDUP.
52786         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52787         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52789         strdup-posix.
52790
52791         * modules/strdup (Depends-on): Remove malloc-posix.
52792
52793 2008-09-20  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52796         Wildenhues.
52797
52798 2008-09-20  Bruno Haible  <bruno@clisp.org>
52799
52800         Ensure that wint_t gets defined on IRIX 5.3.
52801         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52802         * lib/wctype.in.h (wint_t): Likewise.
52803         (__wctype_wint_t): Remove type.
52804         (isw*): Use wint_t instead of __wctype_wint_t.
52805         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52806         * modules/wchar (Files): Add m4/wint_t.m4.
52807         (Makefile.am): Substitute HAVE_WINT_T.
52808         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52809         * tests/test-wctype.c: Check that wint_t is defined.
52810         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52811         * doc/posix-headers/wctype.texi: Likewise.
52812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52813
52814 2008-09-18  Bruno Haible  <bruno@clisp.org>
52815
52816         * gnulib-tool (func_exit): Update comment.
52817
52818 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52819
52820         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52821         assumes strdup exists and does not depend on strdup to return
52822         ENOMEM on out of memory conditions.
52823
52824 2008-09-18  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52827         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52828         digits for the exponent.
52829
52830 2008-09-18  Jim Meyering  <meyering@redhat.com>
52831             Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/vasnprintf.c (decimal_point_char): Define also if
52834         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52835
52836 2008-09-16  Bruno Haible  <bruno@clisp.org>
52837         and Eric Blake  <ebb9@byu.net>
52838
52839         vasnprintf: support Irix 5.3
52840         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52841         that mishandle long double infinity.
52842         Reported by Tom G. Christensen.
52843
52844 2008-09-16  Bruno Haible  <bruno@clisp.org>
52845
52846         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52847         Solaris 9.
52848         * doc/glibc-functions/alphasort.texi: Likewise.
52849         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52850
52851 2008-09-16  Jim Meyering  <meyering@redhat.com>
52852
52853         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52854         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52855         a umask modification leak out of a subshell.  Otherwise, the
52856         opensolaris /bin/sh would be accepted and thus cause unwarranted
52857         failures in the coreutils test suite.
52858
52859 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52860
52861         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52862         to succeed.
52863
52864 2008-09-16  Jim Meyering  <meyering@redhat.com>
52865
52866         avoid spurious test failure when library is built without ACL support
52867         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52868         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52869         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52870         * tests/test-copy-acl.sh: Likewise.
52871
52872 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52873
52874         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52875         based on character occurrence counts.
52876
52877 2008-09-15  Eric Blake  <ebb9@byu.net>
52878
52879         tests: avoid some compiler warnings
52880         * tests/test-memchr.c (main): Pass NULL indirectly.
52881         * tests/test-closein.c (main): Avoid unused variable.
52882
52883 2008-09-15  Bruno Haible  <bruno@clisp.org>
52884
52885         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52886         are missing on OpenBSD 4.0 individually.
52887         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52888
52889 2008-09-15  Bruno Haible  <bruno@clisp.org>
52890
52891         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52892         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52893         * doc/posix-functions/perror.texi: Likewise.
52894         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52895         is missing.
52896         Reported by Eric Blake.
52897
52898         * lib/errno.in.h: Use replacement values >= 2000.
52899         Reported by Eric Blake.
52900
52901 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52902
52903         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52904         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52905         limit.
52906         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52907         compareseq was aborted.
52908
52909 2008-09-14  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52912         yvec_edit_count.
52913         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52914         (fstrcmp_bounded): Simplify result computation accordingly.
52915
52916 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52917
52918         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52919         (fstrcmp): Define in terms of fstrcmp_bounded.
52920         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52921         lower_bound argument.
52922         Return quickly if the result is certainly < lower_bound.
52923         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52924
52925 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52926
52927         * lib/diffseq.h (EARLY_ABORT): New macro.
52928         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52929         evaluates to true.
52930
52931 2008-09-14  Bruno Haible  <bruno@clisp.org>
52932
52933         * modules/perror-tests: New file.
52934         * tests/test-perror.sh: New file.
52935         * tests/test-perror.c: New file.
52936
52937         New module 'perror'.
52938         * lib/stdio.in.h (perror): New declaration.
52939         * lib/perror.c: New file.
52940         * m4/perror.m4: New file.
52941         * modules/perror: New file.
52942         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52943         * doc/posix-functions/perror.texi: Mention the perror module.
52944         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52945         REPLACE_PERROR.
52946         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52947         REPLACE_PERROR.
52948
52949 2008-09-14  Bruno Haible  <bruno@clisp.org>
52950
52951         * modules/stdio (Makefile.am): Reorder to match the order in
52952         lib/stdio.in.h.
52953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52954
52955 2008-09-13  Bruno Haible  <bruno@clisp.org>
52956
52957         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52958
52959 2008-09-13  Bruno Haible  <bruno@clisp.org>
52960
52961         Extend strerror to cover the added errno values.
52962         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52963         (rpl_strerror): Provide error messages for the added errno values and
52964         for the WSA* values.
52965         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52966         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52967         strerror.
52968         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52969         * modules/strerror (Depends-on): Add errno.
52970         * doc/posix-functions/strerror.texi: Document the change.
52971         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52972         and EOVERFLOW.
52973
52974 2008-09-13  Bruno Haible  <bruno@clisp.org>
52975
52976         * modules/EOVERFLOW: Remove file.
52977         * m4/eoverflow.m4: Remove file.
52978         * modules/EOVERFLOW-tests: Remove file.
52979         * tests/test-EOVERFLOW.c: Remove file.
52980         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52981         * modules/ftell (Depends-on): Likewise.
52982         * modules/getdelim (Depends-on): Likewise.
52983         * modules/getugroups (Depends-on): Likewise.
52984         * modules/poll (Depends-on): Likewise.
52985         * modules/snprintf (Depends-on): Likewise.
52986         * modules/sprintf-posix (Depends-on): Likewise.
52987         * modules/vasnprintf (Depends-on): Likewise.
52988         * modules/vasprintf (Depends-on): Likewise.
52989         * modules/vfprintf-posix (Depends-on): Likewise.
52990         * modules/vsnprintf (Depends-on): Likewise.
52991         * modules/vsprintf-posix (Depends-on): Likewise.
52992         * modules/xvasprintf (Depends-on): Likewise.
52993         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52994         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52995         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52996         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52997         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52998         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52999         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53000         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53001         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53002         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53003         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53004         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53005         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53006         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53007         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53008         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53009         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53010         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53011         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53012         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53013         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53014         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53015         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53016         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53017         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53018         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53019         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53020         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53021         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53022         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53023         * MODULES.html.sh: Remove EOVERFLOW.
53024         * NEWS: Mention the change.
53025
53026 2008-09-13  Bruno Haible  <bruno@clisp.org>
53027
53028         * modules/errno-tests: New file.
53029         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53030
53031         * lib/errno.in.h: New file.
53032         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53033         * modules/errno: New file.
53034         * doc/posix-headers/errno.texi: Update documentation.
53035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53036
53037 2008-09-13  Bruno Haible  <bruno@clisp.org>
53038
53039         * tests/test-poll.c: Use #if for native Windows, rather than testing
53040         __MSVCRT__.
53041
53042 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53043             Bruno Haible  <bruno@clisp.org>
53044
53045         * lib/glob.c: Don't include <pwd.h> on native Windows.
53046         (WINDOWS32): New macro.
53047         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53048
53049 2008-09-13  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53052         (ETIMEDOUT): Remove macro.
53053         (glthread_cond_timedwait_multithreaded): New declaration.
53054         (glthread_cond_timedwait): Use it.
53055         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53056         (glthread_cond_timedwait_multithreaded): New function.
53057
53058 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53059
53060         * modules/poll-tests: Do not check for io.h.
53061         * tests/test-poll.c: Check for __MSVCRT__ instead.
53062
53063 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53064
53065         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53066         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53067         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53068
53069 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53070
53071         * modules/poll-tests: New.
53072         * tests/test-poll.c: New.
53073
53074 2008-09-12  Eric Blake  <ebb9@byu.net>
53075
53076         frexp: test for NetBSD failure on -0.0
53077         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53078         not all, bugs from NetBSD 3.0 have been fixed.
53079         * doc/posix-functions/frexp.texi (frexp): Document bug.
53080         Reported by Thomas Klausner.
53081
53082         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53083         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53084         literal -0.0.
53085         Reported by Jonathan C. Patschke <jp@centtech.com>.
53086
53087 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53088
53089         * lib/glthread/cond.h: Use dummy implementation also if
53090         USE_WIN32_THREADS.
53091
53092 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53093
53094         * modules/fnmatch-posix (License): Change to LGPLv2+.
53095         * modules/fnmatch-gnu (License): Likewise.
53096
53097 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53098
53099         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53100
53101 2008-09-11  Jim Meyering  <meyering@redhat.com>
53102
53103         * users.txt: Add gtk-vnc.
53104
53105 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53106
53107         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53108         rotate amounts.
53109
53110         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53111         required for 16-bit and 8-bit rotates.
53112         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53113         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53114         UINT8_MAX instead of hard-coded constants.
53115         Suggested by Paul Eggert.
53116
53117 2008-09-07  Bruno Haible  <bruno@clisp.org>
53118
53119         * tests/test-striconveh.c (main): Check behaviour when converting from
53120         UTF-7.
53121
53122         Make striconveh work better with stateful encodings.
53123         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53124         that iconv does not increment the inptr when returning -1/EINVAL.
53125
53126 2008-09-07  Bruno Haible  <bruno@clisp.org>
53127
53128         * build-aux/config.rpath: Update according to libtool-2.2.6.
53129         * build-aux/config.libpath: Likewise.
53130
53131 2008-09-06  Bruno Haible  <bruno@clisp.org>
53132
53133         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53134         * lib/freadptr.c (freadptr): Likewise.
53135         * lib/freadseek.c (freadptrinc): Likewise.
53136         Reported by Simon Josefsson.
53137
53138 2008-09-06  Bruno Haible  <bruno@clisp.org>
53139
53140         * modules/freadptr (License): Change to LGPLv2+.
53141         * modules/freadseek (License): Likewise.
53142         Suggested by Eric Blake.
53143
53144         * modules/memchr2 (License): Change to LGPLv2+.
53145         Approved by Eric Blake.
53146
53147 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53148             Bruno Haible  <bruno@clisp.org>
53149
53150         Make gnulib-tool work with native 'sed' on AIX.
53151         * gnulib-tool (sed_noop): New variable.
53152         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53153         func_add_or_update, func_create_testdir): Use it to initialize sed
53154         script variables.
53155         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53156
53157 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53158             Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53161         also works after #include directives.
53162
53163 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53164
53165         getdate.y: reject an out-of-range timezone value
53166         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53167         the range [-24...+24].  When specified with only one or two digits,
53168         * tests/test-getdate.c: Tests for the fix.
53169         * doc/getdate.texi: Document this change.
53170
53171 2008-09-03  Bruno Haible  <bruno@clisp.org>
53172
53173         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53174
53175 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53176
53177         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53178         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53179         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53180         Blake <ebb9@byu.net>.
53181
53182         * tests/test-bitrotate.c: Add more test vectors.
53183
53184 2008-09-02  Eric Blake  <ebb9@byu.net>
53185
53186         vasnprintf-posix: handle large precision via %.*d
53187         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53188         when handling it ourselves.
53189         * tests/test-vasnprintf-posix.c (test_function): Add test.
53190         * tests/test-snprintf-posix.h (test_function): Likewise.
53191         * tests/test-sprintf-posix.h (test_function): Likewise.
53192         * tests/test-vasprintf-posix.c (test_function): Likewise.
53193         Reported by Alain Guibert.
53194
53195 2008-09-01  Eric Blake  <ebb9@byu.net>
53196
53197         c-stack: make configure-time check more robust
53198         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53199         successful sigaction call.
53200         Reported by Tom G. Christensen.
53201
53202 2008-09-01  Bruno Haible  <bruno@clisp.org>
53203
53204         New module 'findprog-lgpl'.
53205         * modules/findprog-lgpl: New file.
53206         * lib/findprog-lgpl.c: New file.
53207         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53208         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53209         to decide whether to use strdup or xstrdup, concatenated_filename or
53210         xconcatenated_filename.
53211
53212 2008-09-01  Bruno Haible  <bruno@clisp.org>
53213
53214         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53215         'xconcat-filename' (GPL).
53216         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53217         (License): Change to LGPLv2+.
53218         * modules/xconcat-filename: New file.
53219         * lib/concat-filename.h (concatenated_filename): Change specification.
53220         (xconcatenated_filename): New declaration.
53221         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53222         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53223         memory situations.
53224         * lib/xconcat-filename.c: New file.
53225         * NEWS: Mention the change.
53226         * lib/findprog.c: Include concat-filename.h, not filename.h.
53227         (find_in_path): Use xconcatenated_filename instead of
53228         concatenated_filename.
53229         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53230         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53231         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53232         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53233         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53234         instead of concatenated_filename.
53235         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53236         (execute_java_class): Use xconcatenated_filename instead of
53237         concatenated_filename.
53238         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53239         * modules/javacomp (Depends-on): Likewise.
53240         * modules/javaexec (Depends-on): Likewise.
53241
53242 2008-09-01  Bruno Haible  <bruno@clisp.org>
53243
53244         Split module 'filename' into 'filename' and 'concat-filename'.
53245         * modules/filename: Keep only lib/filename.h.
53246         (License): Change to LGPLv2+.
53247         * modules/concat-filename: New file, extracted from modules/filename.
53248         * lib/filename.h (concatenated_filename): Remove declaration.
53249         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53250         * lib/concat-filename.c: Include concat-filename.h.
53251         * NEWS: Mention the change.
53252
53253 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53254
53255         * lib/bitrotate.h (rotl8, rotr8): Add.
53256
53257         * modules/bitrotate (configure.ac): Need
53258         AC_REQUIRE([AC_C_INLINE]).
53259         (Description): Mention stdint.h.  Reported by Bruno Haible
53260         <bruno@clisp.org>.
53261
53262         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53263         Paolo Bonzini <bonzini@gnu.org>.
53264
53265 2008-08-31  Bruno Haible  <bruno@clisp.org>
53266
53267         Assume Solaris specific bi-arch conventions on Solaris systems.
53268         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53269         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53270         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53271         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53272         like acl_libdirstem.
53273         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53274         acl_libdirstem.
53275         * NEWS: Mention the change.
53276         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53277
53278 2008-08-31  Jim Meyering  <meyering@redhat.com>
53279
53280         * lib/strftime.h: Add comments describing the two added arguments.
53281
53282         remove duplicate #include directives
53283         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53284         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53285
53286 2008-08-31  Bruno Haible  <bruno@clisp.org>
53287
53288         New module 'sigpipe-die'.
53289         * modules/sigpipe-die: New file.
53290         * lib/sigpipe-die.h: New file.
53291         * lib/sigpipe-die.c: New file.
53292         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53293
53294 2008-08-31  Bruno Haible  <bruno@clisp.org>
53295
53296         Don't override previously installed signal handlers.
53297         * lib/fatal-signal.c (saved_sigactions): New variable.
53298         (uninstall_handlers): Reset the signal to the saved handler, not
53299         to SIG_DFL (except when ignored).
53300         (install_handlers): Save the previous handlers.
53301
53302 2008-08-30  Bruno Haible  <bruno@clisp.org>
53303
53304         * gnulib-tool (func_reset_sigpipe): New function.
53305         (func_get_automake_snippet, func_modules_transitive_closure,
53306         func_import): Invoke it before a join command that reads from stdin,
53307         to avoid "echo: write error: Broken pipe" error messages on stderr.
53308         Reported by Sam Steingold <sds@gnu.org>.
53309
53310 2008-08-30  Bruno Haible  <bruno@clisp.org>
53311
53312         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53313         Code copied from m4/open.m4.
53314         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53315         access and the filename ends in a slash. Code copied from lib/open.c.
53316         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53317         * tests/test-fopen.c (main): Check against bug with trailing slash.
53318
53319 2008-08-29  Bruno Haible  <bruno@clisp.org>
53320
53321         Avoid some "gcc -pedantic" warnings.
53322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53323         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53324         * lib/dirent.in.h: Likewise.
53325         * lib/fcntl.in.h: Likewise.
53326         * lib/float.in.h: Likewise.
53327         * lib/iconv.in.h: Likewise.
53328         * lib/inttypes.in.h: Likewise.
53329         * lib/locale.in.h: Likewise.
53330         * lib/math.in.h: Likewise.
53331         * lib/netinet_in.in.h: Likewise.
53332         * lib/search.in.h: Likewise.
53333         * lib/signal.in.h: Likewise.
53334         * lib/stdarg.in.h: Likewise.
53335         * lib/stdint.in.h: Likewise.
53336         * lib/stdio.in.h: Likewise.
53337         * lib/stdlib.in.h: Likewise.
53338         * lib/string.in.h: Likewise.
53339         * lib/strings.in.h: Likewise.
53340         * lib/sys_select.in.h: Likewise.
53341         * lib/sys_socket.in.h: Likewise.
53342         * lib/sys_stat.in.h: Likewise.
53343         * lib/sys_time.in.h: Likewise.
53344         * lib/sysexits.in.h: Likewise.
53345         * lib/time.in.h: Likewise.
53346         * lib/unistd.in.h: Likewise.
53347         * lib/wchar.in.h: Likewise.
53348         * lib/wctype.in.h: Likewise.
53349         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53350         * modules/fchdir (Makefile.am): Likewise.
53351         * modules/fcntl (Makefile.am): Likewise.
53352         * modules/float (Makefile.am): Likewise.
53353         * modules/iconv_open (Makefile.am): Likewise.
53354         * modules/inttypes (Makefile.am): Likewise.
53355         * modules/locale (Makefile.am): Likewise.
53356         * modules/math (Makefile.am): Likewise.
53357         * modules/netinet_in (Makefile.am): Likewise.
53358         * modules/search (Makefile.am): Likewise.
53359         * modules/signal (Makefile.am): Likewise.
53360         * modules/stdarg (Makefile.am): Likewise.
53361         * modules/stdint (Makefile.am): Likewise.
53362         * modules/stdio (Makefile.am): Likewise.
53363         * modules/stdlib (Makefile.am): Likewise.
53364         * modules/string (Makefile.am): Likewise.
53365         * modules/strings (Makefile.am): Likewise.
53366         * modules/sys_select (Makefile.am): Likewise.
53367         * modules/sys_socket (Makefile.am): Likewise.
53368         * modules/sys_stat (Makefile.am): Likewise.
53369         * modules/sys_time (Makefile.am): Likewise.
53370         * modules/sysexits (Makefile.am): Likewise.
53371         * modules/time (Makefile.am): Likewise.
53372         * modules/unistd (Makefile.am): Likewise.
53373         * modules/wchar (Makefile.am): Likewise.
53374         * modules/wctype (Makefile.am): Likewise.
53375         Reported by Reuben Thomas <rrt@sc3d.org>.
53376
53377 2008-08-29  Bruno Haible  <bruno@clisp.org>
53378
53379         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53380         any more.
53381
53382 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53383
53384         * MODULES.html.sh (Misc): Add bitrotate.
53385
53386         * modules/bitrotate: New file.
53387
53388         * lib/bitrotate.h: New file.
53389
53390         * modules/bitrotate-tests: New file.
53391
53392         * tests/test-bitrotate.c: New file.
53393
53394         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53395         on the bitrotate module.
53396
53397         * lib/arctwo.c: Use new bitrotate module.
53398
53399 2008-08-29  Jim Meyering  <meyering@redhat.com>
53400
53401         bootstrap: merge changes from coreutils
53402         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53403         of copied files.  Remove a kludge, now that this is fixed.
53404         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53405         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53406         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53407
53408 2008-08-29  Bruno Haible  <bruno@clisp.org>
53409
53410         * MODULES.html.sh: Remove --cvs-urls option.
53411
53412 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53413
53414         maint.mk: adjust to file name change
53415         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53416
53417 2008-08-28  Jim Meyering  <meyering@redhat.com>
53418
53419         * modules/getndelim2 (License): Relicense to LGPLv2+.
53420         Approved by Richard Stallman for the version of 1995, and by
53421         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53422
53423 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53424
53425         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53426         dummy if one is not available.  Do not touch them if
53427         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53428         (getc_maybe_unlocked): New.
53429         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53430
53431 2008-08-26  Eric Blake  <ebb9@byu.net>
53432
53433         doc/INSTALL: resync from autoconf
53434         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53435         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53436         moving...
53437         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53438         * INSTALL: Regenerate.
53439         * INSTALL.ISO: New file.
53440         * INSTALL.UTF-8: Likewise.
53441
53442 2008-08-26  Jim Meyering  <meyering@redhat.com>
53443
53444         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53445         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53446         these definitions conditional, so that they may be overridden, too.
53447
53448 2008-08-26  Bruno Haible  <bruno@clisp.org>
53449
53450         Generate INSTALL file variants with prettier quotes.
53451         * doc/Makefile (INSTALL_PRELUDE): New macro.
53452         (INSTALL): Use it.
53453         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53454
53455 2008-08-26  Bruno Haible  <bruno@clisp.org>
53456
53457         Run makeinfo in an English locale.
53458         * doc/Makefile (MAKEINFO): New variable.
53459
53460 2008-08-26  Bruno Haible  <bruno@clisp.org>
53461
53462         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53463         Suggested by Eric Blake.
53464
53465 2008-08-25  Bruno Haible  <bruno@clisp.org>
53466
53467         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53468
53469 2008-08-25  Eric Blake  <ebb9@byu.net>
53470
53471         c-stack: test that stack overflow can be caught
53472         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53473         that platform allows handling stack overflow; at least OS/2 EMX
53474         has sigaltstack, but crashes before transferring control to
53475         handler on stack overflow.
53476         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53477         check for HAVE_STACK_OVERFLOW_HANDLING.
53478         Reported by Elbert Pol.
53479
53480 2008-08-25  Bruno Haible  <bruno@clisp.org>
53481
53482         * doc/posix-functions/strftime.texi: Fix description of strftime
53483         module.
53484
53485 2008-08-24  Bruno Haible  <bruno@clisp.org>
53486
53487         * tests/uniwidth/test-uc_width2.c: New file.
53488         * tests/uniwidth/test-uc_width2.sh: New file.
53489         * modules/uniwidth/width-tests (Files): Add the new files.
53490         (TESTS): Add uniwidth/test-uc_width2.sh.
53491         (TESTS_ENVIRONMENT): New variable.
53492         (check_PROGRAMS): Add test-uc_width2.
53493         (test_uc_width2_SOURCES): New variable.
53494
53495         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53496         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53497         not 0x00AB.
53498         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53499
53500 2008-08-22  Eric Blake  <ebb9@byu.net>
53501
53502         test-lock, test-tls: mention why a test is skipped
53503         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53504         skipped.
53505         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53506
53507         count-one-bits: relax license
53508         * modules/count-one-bits (License): Relicense to LGPLv2+.
53509         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53510
53511 2008-08-22  Andreas Schwab  <schwab@suse.de>
53512
53513         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53514         Remove spurious space in assignment.
53515
53516 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53517
53518         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53519         Paul Eggert <eggert@CS.UCLA.EDU>.
53520
53521 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53522
53523         * modules/gettext: Add m4/threadlib.m4.
53524
53525 2008-08-19  Eric Blake  <ebb9@byu.net>
53526
53527         test-c-stack: fix compilation failure on FreeBSD 5.0
53528         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53529         headers before <sys/resource.h>.
53530         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53531         the bug.
53532         Reported by Nelson H. F. Beebe.
53533
53534         strverscmp: migrate from "strverscmp.h" to <string.h>
53535         * modules/string (Makefile.am): Add new hooks.
53536         * modules/strverscmp (Files): Remove strverscmp.h.
53537         (Depends-on): Add string.
53538         (configure.ac): Add indicator.
53539         (Include): Mention new header.
53540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53541         defaults.
53542         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53543         results.
53544         * lib/strverscmp.h: Delete.
53545         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53546         * tests/test-strverscmp.c (includes): Adjust client.
53547         * lib/check-version.c (includes): Likewise.
53548         * NEWS: Document the change.
53549
53550         strverscmp: add unit test
53551         * modules/strverscmp-tests: New file.
53552         * tests/test-strverscmp.c: Likewise.
53553
53554 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53555
53556         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53557         regarding Windows crypto stuff, from Mono.
53558
53559 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53560
53561         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53562         if present, for intel RND.  Return error on failures.
53563
53564 2008-08-18  Ben Pfaff  <blp@gnu.org>
53565
53566         gitlog-to-changelog: give better diagnostic for failed pipe-open
53567         * build-aux/gitlog-to-changelog: Improve error message: suggest
53568         that the version of Git may be too old.
53569
53570 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53571
53572         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53573         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53574
53575 2008-08-18  Bruno Haible  <bruno@clisp.org>
53576
53577         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53578         pthread_in_use().
53579
53580 2008-08-18  Bruno Haible  <bruno@clisp.org>
53581
53582         * lib/glthread/threadlib.c: Include <pthread.h>.
53583
53584 2008-08-18  Bruno Haible  <bruno@clisp.org>
53585
53586         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53587         glthread_recursive_lock_* macros.
53588         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53589         Fix syntax error.
53590
53591 2008-08-18  Bruno Haible  <bruno@clisp.org>
53592
53593         * lib/glthread/thread.c: Avoid forcing a context switch right after
53594         thread creation.
53595
53596 2008-08-17  Bruno Haible  <bruno@clisp.org>
53597
53598         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53599         * lib/glthread/thread.h: Provide Win32 specific implementation.
53600         * modules/thread (Files): Add lib/glthread/thread.c.
53601         (Depends-on): Add lock.
53602         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53603
53604 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53605
53606         New module 'yield'.
53607         * modules/yield: New file.
53608         * lib/glthread/yield.h: New file.
53609         * m4/yield.m4: New file.
53610         * MODULES.html.sh (Multithreading): Add yield.
53611
53612 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53613
53614         New module 'thread'.
53615         * modules/thread: New file.
53616         * lib/glthread/thread.h: New file.
53617         * m4/thread.m4: New file.
53618         * MODULES.html.sh (Multithreading): Add thread.
53619
53620 2008-08-17  Bruno Haible  <bruno@clisp.org>
53621
53622         * lib/glthread/lock.h: Include <stdlib.h> always.
53623         * lib/glthread/tls.h: Likewise.
53624         * lib/glthread/cond.h: Likewise.
53625
53626 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53627
53628         New module 'cond'.
53629         * modules/cond: New file.
53630         * lib/glthread/cond.h: New file.
53631         * lib/glthread/cond.c: New file.
53632         * m4/cond.m4: New file.
53633         * MODULES.html.sh (Multithreading): Add cond.
53634
53635 2008-08-16  Eric Blake  <ebb9@byu.net>
53636
53637         c-stack: fix regression on Irix 5.3 from 2008-06-21
53638         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53639         sa_sigaction...
53640         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53641         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53642         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53643         * modules/signal (Makefile.am): Use the value.
53644         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53645         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53646         * doc/posix-headers/signal.texi (signal.h): Document this
53647         portability issue.
53648         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53649         Reported by Tom G. Christensen.
53650
53651 2008-08-17  Bruno Haible  <bruno@clisp.org>
53652
53653         New module 'threadlib'.
53654         * modules/threadlib: New file.
53655         * lib/glthread/threadlib.c: New file, extracted from
53656         lib/glthread/lock.c.
53657         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53658         functions.
53659         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53660         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53661         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53662         macros.
53663         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53664         (gl_DISABLE_THREADS): Remove macro.
53665         * modules/lock (Files): Remove build-aux/config.rpath.
53666         (Depends-on): Remove havelib. Add threadlib.
53667         (configure.ac-early): Remove section.
53668         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53669         * modules/tls (Depends-on): Remove lock. Add threadlib.
53670         (Link): New section, copied from threadlib.
53671         * MODULES.html.sh (Multithreading): Add threadlib.
53672
53673 2008-08-14  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53676         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53677         glthread_rwlock_unlock, glthread_rwlock_destroy,
53678         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53679         glthread_recursive_lock_destroy): Define as macros always.
53680         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53681         glthread_lock_lock.
53682         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53683         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53684         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53685         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53686         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53687         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53688         (glthread_recursive_lock_lock_func): Renamed from
53689         glthread_recursive_lock_lock.
53690         (glthread_recursive_lock_unlock_func): Renamed from
53691         glthread_recursive_lock_unlock.
53692         (glthread_recursive_lock_destroy_func): Renamed from
53693         glthread_recursive_lock_destroy.
53694
53695 2008-08-14  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/glthread/lock.h: Renamed from lib/lock.h.
53698         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53699         * lib/glthread/tls.h: Renamed from lib/tls.h.
53700         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53701         * lib/fstrcmp.c: Update includes.
53702         * lib/strsignal.c: Update includes.
53703         * modules/lock (Files, Makefile.am): Update.
53704         (Include): Change to "glthread/lock.h".
53705         * modules/tls (Files, Makefile.am): Update.
53706         (Include): Change to "glthread/tls.h".
53707         * tests/test-lock.c: Update includes.
53708         * tests/test-tls.c: Update includes.
53709         * NEWS: Mention the renamed header files.
53710
53711 2008-08-11  Jim Meyering  <meyering@redhat.com>
53712
53713         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53714
53715 2008-08-11  Eric Blake  <ebb9@byu.net>
53716
53717         test-c-stack: avoid C99-ism
53718         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53719         before statement.
53720         Reported by Alain Guibert.
53721
53722 2008-08-10  Jim Meyering  <meyering@redhat.com>
53723
53724         ensure that return value of uinttostr et al are not ignored
53725         * lib/inttostr.h (__GNUC_PREREQ): Define.
53726         (__attribute_warn_unused_result__): Define.
53727         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53728
53729 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53730
53731         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53732         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53733
53734 2008-08-07  Jim Meyering  <meyering@redhat.com>
53735
53736         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53737
53738         * modules/mkstemp (License): Relicense under LGPLv2+.
53739         * modules/tempname (License): Likewise.
53740
53741 2008-08-06  Bruno Haible  <bruno@clisp.org>
53742
53743         * lib/poll.c (poll): Further micro-optimization.
53744
53745 2008-08-06  Jim Meyering  <meyering@redhat.com>
53746
53747         inet_pton.c: use locale-independent tolower
53748         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53749         (inet_pton6): Use c_tolower rather than tolower.
53750         * modules/inet_pton (Depends-on): Add c-ctype.
53751
53752 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53753
53754         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53755         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53756
53757 2008-08-06  Jim Meyering  <meyering@redhat.com>
53758
53759         * modules/inet_pton (License): Relicense under LGPLv2+.
53760
53761 2008-08-03  Bruno Haible  <bruno@clisp.org>
53762
53763         Additional non-aborting API for lock and tls.
53764         * lib/lock.h: Include <errno.h>.
53765         (glthread_lock_init): New macro/function.
53766         (gl_lock_init): Define as wrapper around glthread_lock_init.
53767         (glthread_lock_lock): New macro/function.
53768         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53769         (glthread_lock_unlock): New macro/function.
53770         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53771         (glthread_lock_destroy): New macro/function.
53772         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53773         (glthread_rwlock_init): New macro/function.
53774         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53775         (glthread_rwlock_rdlock): New macro/function.
53776         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53777         (glthread_rwlock_wrlock): New macro/function.
53778         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53779         (glthread_rwlock_unlock): New macro/function.
53780         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53781         (glthread_rwlock_destroy): New macro/function.
53782         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53783         (glthread_recursive_lock_init): New macro/function.
53784         (gl_recursive_lock_init): Define as wrapper around
53785         glthread_recursive_lock_init.
53786         (glthread_recursive_lock_lock): New macro/function.
53787         (gl_recursive_lock_lock): Define as wrapper around
53788         glthread_recursive_lock_lock.
53789         (glthread_recursive_lock_unlock): New macro/function.
53790         (gl_recursive_lock_unlock): Define as wrapper around
53791         glthread_recursive_lock_unlock.
53792         (glthread_recursive_lock_destroy): New macro/function.
53793         (gl_recursive_lock_destroy): Define as wrapper around
53794         glthread_recursive_lock_destroy.
53795         (glthread_once): New macro/function.
53796         (gl_once): Define as wrapper around glthread_once.
53797         Update function declarations.
53798         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53799         glthread_rwlock_init. Return error code.
53800         (glthread_rwlock_rdlock_multithreaded): Renamed from
53801         glthread_rwlock_rdlock. Return error code.
53802         (glthread_rwlock_wrlock_multithreaded): Renamed from
53803         glthread_rwlock_wrlock. Return error code.
53804         (glthread_rwlock_unlock_multithreaded): Renamed from
53805         glthread_rwlock_unlock. Return error code.
53806         (glthread_rwlock_destroy_multithreaded): Renamed from
53807         glthread_rwlock_destroy. Return error code.
53808         (glthread_recursive_lock_init_multithreaded): Renamed from
53809         glthread_recursive_lock_init. Return error code.
53810         (glthread_recursive_lock_lock_multithreaded): Renamed from
53811         glthread_recursive_lock_lock. Return error code.
53812         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53813         glthread_recursive_lock_unlock. Return error code.
53814         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53815         glthread_recursive_lock_destroy. Return error code.
53816         (glthread_once_call): Make static.
53817         (glthread_once_multithreaded): Renamed from glthread_once.
53818         * lib/tls.h: Include <errno.h>.
53819         (glthread_tls_key_init): New macro/function.
53820         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53821         (glthread_tls_set): New macro/function.
53822         (gl_tls_set): Define as wrapper around glthread_tls_set.
53823         (glthread_tls_key_destroy): New macro/function.
53824         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53825         Update function declarations.
53826         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53827         glthread_tls_get.
53828         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53829
53830 2008-08-04  Eric Blake  <ebb9@byu.net>
53831
53832         gnumakefile: use space, not TAB, outside of targets
53833         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53834
53835 2008-08-02  Jim Meyering  <meyering@redhat.com>
53836
53837         getdate.y: avoid locale-dependent date parsing failure
53838         In Turkish locales, getdate would fail to recognize keywords
53839         containing a lowercase "i".  The solution is not to rely on
53840         locale-sensitive case-conversion.
53841         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53842         (lookup_word): Use c_toupper in place of toupper.
53843         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53844         Reported by Vefa Bicakci <bicave@superonline.com> in
53845         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53846         * modules/getdate (Depends-on): Add c-ctype.
53847
53848 2008-08-02  Bruno Haible  <bruno@clisp.org>
53849
53850         * gnulib-tool (func_import): When updating or creating a .gitignore
53851         file, prepend each added line with a slash, and ignore leading slashes
53852         from the existing lines.
53853         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53854
53855 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53856
53857         Portability fix for GNU make 3.79.1.
53858         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53859         versions do not understand.
53860
53861 2008-08-01  Bruno Haible  <bruno@clisp.org>
53862
53863         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53864         * tests/test-isnanf.h (zero): New variable.
53865         (main): Avoid literal -0.0f.
53866         * tests/test-isnand.h (zero): New variable.
53867         (main): Avoid literal -0.0.
53868         * tests/test-isnanl.h (zero): New variable.
53869         (main): Avoid literal -0.0L.
53870         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53871         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53872         -0.0, -0.0L.
53873         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53874         (test_signbitd): Avoid literal -0.0.
53875         (test_signbitl): Avoid literal -0.0L.
53876         * tests/test-ceilf1.c (zero): New variable.
53877         (main): Avoid literal -0.0f.
53878         * tests/test-ceill.c (zero): New variable.
53879         (main): Avoid literal -0.0L.
53880         * tests/test-floorf1.c (zero): New variable.
53881         (main): Avoid literal -0.0f.
53882         * tests/test-floorl.c (zero): New variable.
53883         (main): Avoid literal -0.0L.
53884         * tests/test-roundf1.c (zero): New variable.
53885         (main): Avoid literal -0.0f.
53886         * tests/test-round1.c (zero): New variable.
53887         (main): Avoid literal -0.0.
53888         * tests/test-roundl.c (zero): New variable.
53889         (main): Avoid literal -0.0L.
53890         * tests/test-truncf1.c (zero): New variable.
53891         (main): Avoid literal -0.0f.
53892         * tests/test-trunc1.c (zero): New variable.
53893         (main): Avoid literal -0.0.
53894         * tests/test-truncl.c (zero): New variable.
53895         (main): Avoid literal -0.0L.
53896         * tests/test-frexp.c (zero): New variable.
53897         (main): Avoid literal -0.0.
53898         * tests/test-frexpl.c (zero): New variable.
53899         (main): Avoid literal -0.0L.
53900         * tests/test-ldexpl.c (zero): New variable.
53901         (main): Avoid literal -0.0L.
53902         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53903         (zerod, zerol): New variables.
53904         (test_function): Avoid literals -0.0, -0.0L.
53905         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53906         (zerod, zerol): New variables.
53907         (test_function): Avoid literals -0.0, -0.0L.
53908         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53909         (zerod, zerol): New variables.
53910         (test_function): Avoid literals -0.0, -0.0L.
53911         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53912         (zerod, zerol): New variables.
53913         (test_function): Avoid literals -0.0, -0.0L.
53914         * tests/test-strtod.c (zero): New variable.
53915         (main): Avoid literal -0.0.
53916         Reported by Jonathan C. Patschke <jp@centtech.com>.
53917
53918 2008-07-31  Jim Meyering  <meyering@redhat.com>
53919
53920         sha256.h: correct definition of SHA224_DIGEST_SIZE
53921         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53922         Reported by Paulie Pena IV <paulie4@gmail.com>.
53923         Define as 224 / 8, rather than as a literal.
53924         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53925         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53926         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53927
53928 2008-07-31  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53931         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53932         Reported by Jonathan Patschke <jp@centtech.com>.
53933
53934 2008-07-31  Bruno Haible  <bruno@clisp.org>
53935
53936         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53937         Reported by Paolo Bonzini <bonzini@gnu.org>.
53938
53939 2008-07-30  Eric Blake  <ebb9@byu.net>
53940
53941         test-strtod: allow compilation without -lm
53942         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53943         Reported by Dennis Clarke <blastwave@gmail.com>.
53944
53945 2008-07-28  Jim Meyering  <meyering@redhat.com>
53946
53947         bootstrap: work also when there are no .po files in po/
53948         * build-aux/bootstrap (update_po_files): Complete the change
53949         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53950
53951 2008-07-27  Jim Meyering  <meyering@redhat.com>
53952
53953         * users.txt: Add zile.
53954
53955 2008-07-26  Ben Pfaff  <blp@gnu.org>
53956
53957         Add missing dependencies on new m4/exponent[fdl].m4 files.
53958         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53959         * modules/isnand-nolibm: Add m4/exponentd.m4.
53960         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53961         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53962         m4/isnan[fdl].m4, because the macros actually used moved.
53963         Reported by Jim Meyering.
53964
53965 2008-07-14  Ben Pfaff  <blp@gnu.org>
53966
53967         Add isinf module.
53968         * lib/isinf.c: New file.
53969         * lib/math.in.h: Define isinf macro if we have decided to replace
53970         it.
53971         * m4/isinf.m4: New file.
53972         * m4/math_h.m4: Initialize and substitute variables for isinf
53973         module.
53974         * modules/isinf: New file.
53975         * modules/isinf-tests: New file.
53976         * modules/math: Add substitutions for new module.
53977         * tests/test-isinf.c: New file.
53978         * doc/posix-functions/isinf.texi: Mention new module.
53979         * MODULES.html.sh: Mention new module.
53980
53981 2008-07-14  Ben Pfaff  <blp@gnu.org>
53982
53983         Factor out some macros for use by additional modules.
53984         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53985         exponentf.m4.
53986         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53987         exponentd.m4.
53988         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53989         file exponentl.m4.
53990         * m4/exponentf.m4: New file.
53991         * m4/exponentd.m4: New file.
53992         * m4/exponentl.m4: New file.
53993         * modules/isnanf: Use new file m4/exponentf.m4.
53994         * modules/isnand: Use new file m4/exponentd.m4.
53995         * modules/isnanl: Use new file m4/exponentl.m4.
53996
53997 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53998
53999         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54000         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54001         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54002         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54003
54004         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54005         readlink on platforms without PATH_MAX.
54006
54007 2008-07-21  Eric Blake  <ebb9@byu.net>
54008
54009         Warn, not fail, on stale version.
54010         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54011
54012         Don't allow installation with stale devel version number.
54013         * top/GNUmakefile (_is-install-target): New macro.
54014         (_curr-ver): Forbid installation with stale version number.
54015
54016 2008-07-20  Bruno Haible  <bruno@clisp.org>
54017
54018         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54019         TESTS_ENVIRONMENT.
54020         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54021
54022 2008-07-20  Bruno Haible  <bruno@clisp.org>
54023
54024         * lib/c-stack.h (c_stack_action): Add documentation.
54025         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54026
54027 2008-07-20  Bruno Haible  <bruno@clisp.org>
54028
54029         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54030         * modules/readlink (License): Likewise.
54031
54032 2008-07-17  Eric Blake  <ebb9@byu.net>
54033
54034         * modules/c-stack (Link): Fix typo.
54035
54036         Make c-stack use libsigsegv, when available.
54037         * modules/c-stack (Depends-on): Add libsigsegv.
54038         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54039         needed.
54040         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54041         (segv_handler, overflow_handler, c_stack_action)
54042         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54043         implementation when libsigsegv is available, but only when using
54044         the library is necessary.
54045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54046         comment, explaining why XSI check fails on Linux.
54047         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54048         * tests/test-c-stack2.sh: Tweak skip message.
54049         * NEWS: Document new link-time requirements.
54050
54051 2008-07-16  Eric Blake  <ebb9@byu.net>
54052
54053         c-stack: Expose false positives when not using libsigsegv.
54054         * modules/c-stack-tests (Files): Expand test.
54055         * tests/test-c-stack.c (main): Add means to conditionally trigger
54056         non-overflow SIGSEGV.
54057         * tests/test-c-stack2.sh: New file.
54058
54059 2008-07-14  Bruno Haible  <bruno@clisp.org>
54060
54061         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54062         Reported by Eric Blake.
54063
54064 2008-07-14  Sam Steingold  <sds@gnu.org>
54065             Bruno Haible  <bruno@clisp.org>
54066
54067         New module libsigsegv.
54068         * modules/libsigsegv: New file.
54069         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54070         modifications.
54071         * MODULES.html.sh (Signal handling): New section.
54072
54073 2008-07-14  Bruno Haible  <bruno@clisp.org>
54074
54075         * modules/unictype/ctype-* (Description): Add the word "function".
54076         Improves the resulting doc in MODULES.html.
54077
54078 2008-07-12  Ben Pfaff  <blp@gnu.org>
54079
54080         Add longlong module.
54081         * modules/longlong: New file.
54082
54083 2008-07-12  Bruno Haible  <bruno@clisp.org>
54084
54085         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54086         to empty.
54087
54088 2008-07-10  Ben Pfaff  <blp@gnu.org>
54089
54090         Add isnan module.
54091         * doc/posix-functions/isnan.texi: Mention new module.
54092         * lib/math.in.h: Define isnan macro if we have decided to replace
54093         it.
54094         * m4/isnan.m4: New file.
54095         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54096         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54097         also.
54098         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54099         redundancy.
54100         * m4/math_h.m4: Initialize and substitute variables for isnan
54101         module.
54102         * modules/isnan: New file.
54103         * modules/isnan-tests: New file.
54104         * modules/math: Add substitutions for new module.
54105         * tests/test-isnan.c: New file.
54106         * MODULES.html.sh: Mention new module.
54107
54108 2008-07-10  Ben Pfaff  <blp@gnu.org>
54109
54110         Add isnanf module.
54111         * lib/isnanf.m4: New file.
54112         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54113         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54114         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54115         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54116         * modules/isnanf: New file.
54117         * modules/isnanf-tests: New file.
54118         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54119         files.
54120         * tests/test-isnanf-nolibm.c: factored most of its contents into
54121         new file tests/test-isnanf.h.
54122         * tests/test-isnanf.h: New file.
54123         * tests/test-isnanf.c: New file.
54124         * MODULES.html.sh: Mention new module.
54125         * doc/glibc-functions/isnanf.texi: Mention new module.
54126
54127 2008-07-10  Ben Pfaff  <blp@gnu.org>
54128
54129         Add isnand module.
54130         * lib/isnand.h: New file.
54131         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54132         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54133         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54134         functionality also.
54135         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54136         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54137         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54138         * modules/isnand: New file.
54139         * modules/isnand-tests: New file.
54140         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54141         files.
54142         * tests/test-isnand-nolibm.c: factored most of its contents into
54143         new file tests/test-isnand.h.
54144         * tests/test-isnand.h: New file.
54145         * tests/test-isnand.c: New file.
54146         * MODULES.html.sh: Mention new module.
54147
54148 2008-07-10  Ben Pfaff  <blp@gnu.org>
54149
54150         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54151         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54152         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54153         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54154         * modules/isnanf-nolibm: Update references to renamed files.
54155         * modules/isnand-nolibm: Likewise.
54156         * modules/isnanf-nolibm-tests: Likewise.
54157         * modules/isnand-nolibm-tests: Likewise.
54158         * lib/frexp.c: Likewise.
54159         * lib/isfinite.c: Likewise.
54160         * lib/signbitd.c: Likewise.
54161         * lib/signbitf.c: Likewise.
54162         * lib/vasnprintf.c: Likewise.
54163         * tests/test-ceilf1.c: Likewise.
54164         * tests/test-ceilf2.c: Likewise.
54165         * tests/test-floorf1.c: Likewise.
54166         * tests/test-floorf2.c: Likewise.
54167         * tests/test-frexp.c: Likewise.
54168         * tests/test-round1.c: Likewise.
54169         * tests/test-round2.c: Likewise.
54170         * tests/test-roundf1.c: Likewise.
54171         * tests/test-strtod.c: Likewise.
54172         * tests/test-trunc1.c: Likewise.
54173         * tests/test-trunc2.c: Likewise.
54174         * tests/test-truncf1.c: Likewise.
54175         * tests/test-truncf2.c: Likewise.
54176         * NEWS: Mention the renamed header files.
54177
54178 2008-07-11  Jim Meyering  <meyering@redhat.com>
54179
54180         vc-list-files: make the last-resort awk code more portable
54181         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54182         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54183         does not support it.
54184
54185 2008-07-10  Eric Blake  <ebb9@byu.net>
54186
54187         Work with tar's bootstrap.
54188         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54189         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54190         an m4 comment.
54191
54192 2008-07-09  Jim Meyering  <meyering@redhat.com>
54193
54194         posix-shell.m4: fix typo that made this test malfunction
54195         * m4/posix-shell.m4: Remove capitalization in variable name.
54196
54197 2008-07-08  Bruno Haible  <bruno@clisp.org>
54198
54199         * m4/onceonly.m4: Update comments.
54200         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54201
54202 2008-07-04  Jim Meyering  <meyering@redhat.com>
54203
54204         * users.txt: Add vc-dwim.
54205         (bison, coreutils): Use the gitweb URL.
54206
54207 2008-07-03  Jim Meyering  <meyering@redhat.com>
54208
54209         * users.txt: Add libffcall.  From Sam Steingold.
54210
54211 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54212
54213         getdate.y: do not ignore TZ with relative day, month or year offset
54214         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54215         relative-date-handling, since otherwise, the latter would clobber the
54216         sole output (an updated Start value) of the tz-handling block.
54217         * tests/test-getdate.c: Tests for the fix
54218
54219 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54220
54221         Recognize 'foo_LIBRARIES += libgnu.a'.
54222         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54223         makefile snippet has already specified an installation location,
54224         also using '+='.
54225
54226 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54227
54228         getdate.y: factor out common actions
54229         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54230         Use them in place of open-coded actions.
54231
54232 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54233
54234         Add self-test for getdate module.
54235         * modules/getdate-tests: New file.
54236         * tests/test-getdate.c: New file.
54237
54238 2008-06-29  Bruno Haible  <bruno@clisp.org>
54239
54240         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54241         .gitignore.
54242         Reported by Sylvain Beucler <beuc@beuc.net>.
54243
54244 2008-06-29  Bruno Haible  <bruno@clisp.org>
54245
54246         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54247         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54248
54249 2008-06-29  Bruno Haible  <bruno@clisp.org>
54250
54251         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54252         EXTRA_DIST.
54253         Reported by Sylvain Beucler <beuc@beuc.net>.
54254
54255 2008-06-26  Jim Meyering  <meyering@redhat.com>
54256
54257         make several modules depend on the "open" module
54258         This provides slightly increased consistency when opening-for-write
54259         the name of a non-directory spelled with a trailing slash.
54260         * modules/chdir-safer: Likewise.
54261         * modules/chown: Likewise.
54262         * modules/clean-temp: Likewise.
54263         * modules/copy-file: Likewise.
54264         * modules/fchdir: Likewise.
54265         * modules/fcntl-safer: Likewise.
54266         * modules/pipe: Likewise.
54267         * modules/utime: Likewise.
54268         Prompted by Eric Blake and Bruno Haible.
54269
54270 2008-06-24  Andreas Schwab  <schwab@suse.de>
54271
54272         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54273         literals can be used as initializers for global variables.
54274
54275 2008-06-23  Eric Blake  <ebb9@byu.net>
54276
54277         Make gnulib-cache.m4 easier to diff.
54278         * gnulib-tool (func_import): Allow newlines when reading cached
54279         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54280
54281 2008-06-23  Bruno Haible  <bruno@clisp.org>
54282
54283         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54284         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54285         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54286         m4/signalblocking.m4.
54287         (gl_PREREQ_SIGACTION): Don't invoke it.
54288         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54289         gl_PREREQ_SIG_HANDLER_H.
54290         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54291         Don't check for sigaction here.
54292
54293 2008-06-23  Bruno Haible  <bruno@clisp.org>
54294
54295         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54296         (install_handlers): Don't set the SA_RESETHAND flag.
54297
54298 2008-06-23  Bruno Haible  <bruno@clisp.org>
54299
54300         * m4/sigaction.m4: Comment fixes.
54301         * lib/signal.in.h: Likewise.
54302
54303 2008-06-23  Eric Blake  <ebb9@byu.net>
54304
54305         Fix typo.
54306         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54307
54308         Avoid SA_ namespace.
54309         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54310         Reported by Ralf Wildenhues.
54311
54312         Avoid test failure due to SA_RESTORER.
54313         * tests/test-sigaction.c (SA_MASK): New macro.
54314         (main): Avoid failing due to extension flags being set.
54315         Reported by Jim Meyering.
54316
54317         Revert use of sig-handler.h in sigprocmask.c.
54318         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54319         it requires the existence of struct sigaction.
54320         * lib/sigprocmask.c (handler_t): Restore typedef.
54321         (rpl_signal, old_handlers): Use local type.
54322
54323 2008-06-22  Bruno Haible  <bruno@clisp.org>
54324
54325         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54326         conditionally.
54327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54328
54329 2008-06-22  Bruno Haible  <bruno@clisp.org>
54330
54331         * doc/posix-functions/siginterrupt.texi: Move note.
54332
54333         * lib/signal.in.h (SA_RESTART): New macro.
54334         * lib/sigaction.c: Update comment.
54335
54336         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54337
54338         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54339         (gl_PREREQ_SIGPROCMASK): Invoke it.
54340         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54341
54342         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54343
54344         * lib/sigprocmask.c: Update a comment.
54345
54346 2008-06-21  Eric Blake  <ebb9@byu.net>
54347
54348         Use sigaction module rather than signal().
54349         * modules/c-stack (Depends-on): Add sigaction.
54350         * modules/fatal-signal (Depends-on): Likewise.
54351         * modules/nanosleep (Depends-on): Likewise.
54352         * modules/sigprocmask (Files): Add sig-handler.h.
54353         * modules/sigaction (Files): Likewise.
54354         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54355         Eggert.
54356         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54357         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54358         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54359         (init_fatal_signals): Likewise.
54360         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54361         (siginterrupt): Delete fallback.
54362         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54363         instead.
54364         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54365         siginterrupt.
54366
54367         New module sigaction, for mingw.
54368         * modules/sigaction: New module...
54369         * modules/sigaction-tests: ...and its test.
54370         * m4/sigaction.m4: New file.
54371         * lib/sigaction.c: Likewise.
54372         * tests/test-sigaction.c: Likewise.
54373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54374         * modules/signal (Makefile.am): Likewise.
54375         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54376         needed.
54377         * doc/posix-headers/signal.texi (signal.h): Mention provided
54378         types.
54379         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54380         that sigaction is preferable.
54381         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54382         module.
54383         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54384         sigaction.
54385
54386         Improve robustness of sigprocmask by overriding signal.
54387         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54388         is in use.
54389         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54390         (SIGKILL, SIGSTOP): Provide fallbacks.
54391         (rpl_signal): Implement.
54392         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54393         signal can be called inside handlers.
54394
54395         Fix nanosleep module on mingw.
54396         * modules/nanosleep (Depends-on): Add sys_select.
54397         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54398
54399         Fix licensing of sigprocmask.
54400         * modules/raise (License): Relicense as LGPL.
54401
54402 2008-06-21  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54405         result if it contains question marks.
54406         Reported by Michael Geng <linux@michaelgeng.de>.
54407
54408 2008-06-19  Bruno Haible  <bruno@clisp.org>
54409
54410         Fix CVS-ism.
54411         * doc/gnulib.texi: Include updated-stamp.texi.
54412         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54413         (updated-stamp.texi): New rule.
54414         (gnulib.info): Depend on it.
54415         * doc/.gitignore: Add updated-stamp.texi.
54416         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54417
54418 2008-06-19  Bruno Haible  <bruno@clisp.org>
54419
54420         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54421         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54422
54423 2008-06-19  Eric Blake  <ebb9@byu.net>
54424
54425         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54426         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54427         Reported by Stepan Kasal.
54428
54429 2008-06-18  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54432         Reported by Eric Blake.
54433
54434 2008-06-18  Eric Blake  <ebb9@byu.net>
54435
54436         Work around cygwin 1.5.25 strsignal bug.
54437         * tests/test-strsignal.c: Allow for const char *.
54438         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54439
54440 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54441
54442         * users.txt: Update URL to article and add author/date
54443         information.
54444
54445 2008-06-17  Bruno Haible  <bruno@clisp.org>
54446
54447         New macro gl_DISABLE_THREADS.
54448         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54449         if the user did not pass --enable-threads or --disable-threads option.
54450         (gl_DISABLE_THREADS): New macro.
54451         Reported by Eric Blake <ebb9@byu.net>.
54452
54453 2008-06-17  Bruno Haible  <bruno@clisp.org>
54454
54455         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54456         when the macro ignores it.
54457         Based on a patch by Eric Blake <ebb9@byu.net>.
54458
54459 2008-06-17  Bruno Haible  <bruno@clisp.org>
54460
54461         * modules/tls (License): Change to LGPLv2+.
54462         Reported by Eric Blake.
54463
54464 2008-06-17  Eric Blake  <ebb9@byu.net>
54465
54466         Simplify c-stack prerequisites.
54467         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54468         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54469         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54470         check.
54471         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54472         <sys/resource.h>.
54473
54474         Move c-stack test into testsuite.
54475         * modules/c-stack-tests: New file.
54476         * lib/c-stack.c [DEBUG]: Move test program...
54477         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54478         fail test if sigaltstack is lacking.
54479         * tests/test-c-stack.sh: New driver file.
54480
54481 2008-06-16  Eric Blake  <ebb9@byu.net>
54482
54483         Use raise module consistently.
54484         * modules/fatal-signal (Depends-on): Add raise.
54485         * modules/sigprocmask (Depends-on): Likewise.
54486         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54487         * lib/sigprocmask.c (sigprocmask): Likewise.
54488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54489         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54490
54491         Fix compliance bug in sigpending.
54492         * lib/sigprocmask.c (sigpending): Return pending array via
54493         parameter, not return value.
54494
54495 2008-06-14  Eric Blake  <ebb9@byu.net>
54496
54497         Improve obstack-printf test code.
54498         * tests/test-obstack-printf.c (test_function): Fix comment, and
54499         simplify usage of obstack_* in macros.  Add a test for coverage.
54500         Reported by Bruno Haible.
54501
54502 2008-06-14  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54505         array size as a constant, not as a const variable.
54506         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54507         AC_USE_SYSTEM_EXTENSIONS.
54508         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54509         Test whether the obstack_printf function actually exists.
54510         * modules/obstack-printf (Depends-on): Add extensions.
54511         (Include): Remove obstack.h.
54512         * modules/obstack-printf-posix (Depends-on): Add extensions.
54513         (Include): Remove obstack.h.
54514
54515 2008-06-13  Eric Blake  <ebb9@byu.net>
54516
54517         Add obstack-printf and obstack-printf-posix modules.
54518         * modules/obstack-printf: New file.
54519         * modules/obstack-printf-posix: Likewise.
54520         * MODULES.html.sh (Misc): Mention them.
54521         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54522         Likewise.
54523         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54524         Likewise.
54525         * modules/stdio (Makefile.am): Accomodate new modules.
54526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54527         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54528         Declare.
54529         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54530         functions.
54531         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54532         (gl_REPLACE_OBSTACK_PRINTF): New macros
54533         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54534         * tests/test-obstack-printf.c: New file.
54535         * modules/obstack-printf-tests: Likewise.
54536         * modules/obstack-printf-posix-tests: Likewise.
54537
54538 2008-06-11  Bruno Haible  <bruno@clisp.org>
54539
54540         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54541         * lib/open.c: Include errno.h.
54542         (open): Fail when attempting to write to a file that has a trailing
54543         slash.
54544         * tests/test-open.c (main): Test against trailing slash bug.
54545         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54546
54547 2008-06-10  Bruno Haible  <bruno@clisp.org>
54548
54549         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54550         for $? to work inside the trap command, with various /bin/sh-s.
54551         * tests/test-vc-list-files-cvs.sh: Likewise.
54552
54553 2008-06-10  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/acl-internal.h: Don't include gettext.h here.
54556         * lib/set-mode-acl.c: Include gettext.h here.
54557         * lib/copy-acl.c: Likewise.
54558
54559 2008-06-10  Bruno Haible  <bruno@clisp.org>
54560
54561         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54562         * lib/wait-process.c (wait_subprocess): Likewise.
54563         * lib/execute.h (execute): Add termsigp argument.
54564         * lib/execute.c (execute): Likewise.
54565         * lib/csharpcomp.c (compile_csharp_using_pnet,
54566         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54567         * lib/csharpexec.c (execute_csharp_using_pnet,
54568         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54569         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54570         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54571         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54572         is_jikes_present): Update.
54573         * lib/javaexec.c (execute_java_class): Update.
54574         * lib/javaversion.c (execute_and_read_line): Update.
54575         * NEWS: Document the changes.
54576         Reported by Eric Blake.
54577
54578 2008-06-10  Eric Blake  <ebb9@byu.net>
54579
54580         Add missing include.
54581         * tests/test-strstr.c (includes): Add <signal.h>.
54582         * tests/test-strcasestr.c (includes): Likewise.
54583         * tests/test-memmem.c (includes): Likewise.
54584
54585 2008-06-10  Bruno Haible  <bruno@clisp.org>
54586
54587         * lib/wait-process.c (wait_subprocess): Add an assertion.
54588
54589 2008-06-10  Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54592
54593 2008-06-10  Bruno Haible  <bruno@clisp.org>
54594
54595         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54596         using alarm().
54597         * tests/test-strcasestr.c (main): Likewise.
54598         * tests/test-strstr.c (main): Likewise.
54599
54600 2008-06-09  Bruno Haible  <bruno@clisp.org>
54601
54602         Work around the Solaris 10 ACE ACLs ABI change.
54603         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54604         declare if ACL_NO_TRIVIAL is present.
54605         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54606         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54607         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54608         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54609         define if ACL_NO_TRIVIAL is present.
54610         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54611         and use the current ABI.
54612         (file_has_acl): Use same #if condition as elsewhere.
54613         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54614         in use, and use the current ABI.
54615         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54616         Reported by Jim Meyering.
54617
54618 2008-06-09  Eric Blake  <ebb9@byu.net>
54619
54620         Work around environments that (stupidly) ignore SIGALRM.
54621         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54622         before using alarm().
54623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54624         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54625         Reported by Ian Beckwith <ianb@erislabs.net>.
54626
54627         Produce autobuild blurb earlier in log.
54628         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54629
54630 2008-06-09  Jim Meyering  <meyering@redhat.com>
54631         and OndÅ™ej Vašík  <ovasik@redhat.com>
54632
54633         utimens.c: correct kernel bug work-around
54634         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54635         failure, not success, and the kernel bug we're trying to work
54636         around affects not just the utimensat call, but also the fallback
54637         futimens call.
54638         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54639         not success.
54640         [HAVE_FUTIMENS]: Use the same work-around, here.
54641
54642 2008-06-09  Jim Meyering  <meyering@redhat.com>
54643
54644         add more guards around definition of ACE_-related code
54645         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54646         ALLOW and ACE_OWNER are also defined.
54647
54648 2008-06-08  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/acl-internal.h: Add me as co-author.
54651         * lib/file-has-acl.c: Likewise.
54652         * lib/set-mode-acl.c: Likewise.
54653         * lib/copy-acl.c: Likewise.
54654
54655 2008-06-08  Bruno Haible  <bruno@clisp.org>
54656
54657         Add support for AIX ACLs.
54658         * lib/acl-internal.h (acl_nontrivial): New declaration.
54659         * lib/file-has-acl.c (acl_nontrivial): New function.
54660         (file_has_acl): Add implementation using AIX 4 ACL API.
54661         * lib/set-mode-acl.c (qset_acl): Likewise.
54662         * lib/copy-acl.c (qcopy_acl): Likewise.
54663
54664 2008-06-08  Bruno Haible  <bruno@clisp.org>
54665
54666         Add support for HP-UX ACLs.
54667         * lib/acl-internal.h (acl_nontrivial): New declaration.
54668         * lib/file-has-acl.c (acl_nontrivial): New function.
54669         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54670         * lib/set-mode-acl.c (qset_acl): Likewise.
54671         * lib/copy-acl.c (qcopy_acl): Likewise.
54672
54673 2008-06-08  Bruno Haible  <bruno@clisp.org>
54674
54675         Add support for Cygwin ACLs.
54676         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54677         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54678         the chmod_or_fchmod call.
54679         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54680
54681 2008-06-08  Bruno Haible  <bruno@clisp.org>
54682
54683         Fix bug with setuid modes in Solaris 10+ code.
54684         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54685         succeeded, when the mode contains some special bits.
54686
54687 2008-06-08  Bruno Haible  <bruno@clisp.org>
54688
54689         Add support for Solaris 7..10 ACLs.
54690         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54691         declarations.
54692         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54693         functions.
54694         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54695         * lib/set-mode-acl.c (qset_acl): Likewise.
54696         * lib/copy-acl.c (qcopy_acl): Likewise.
54697
54698 2008-06-08  Bruno Haible  <bruno@clisp.org>
54699
54700         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54701         declaration.
54702         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54703         (acl_access_nontrivial): Remove MacOS X case.
54704         (file_has_acl): Use acl_extended_nontrivial.
54705         * lib/copy-acl.c (qcopy_acl): Likewise.
54706
54707 2008-06-08  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54710
54711 2008-06-08  Jim Meyering  <meyering@redhat.com>
54712
54713         * modules/acl (Maintainer): Add Bruno Haible.
54714
54715 2008-06-07  Bruno Haible  <bruno@clisp.org>
54716
54717         Improve support for Tru64 ACLs.
54718         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54719         ACL on OSF/1.
54720
54721 2008-06-07  Bruno Haible  <bruno@clisp.org>
54722
54723         Add support for MacOS X ACLs.
54724         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54725         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54726         * lib/set-mode-acl.c (qset_acl): Likewise.
54727         * lib/copy-acl.c (qcopy_acl): Likewise.
54728
54729 2008-06-07  Bruno Haible  <bruno@clisp.org>
54730
54731         Fix memory leak introduced on 2008-05-22.
54732         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54733         use.
54734
54735 2008-06-07  Bruno Haible  <bruno@clisp.org>
54736
54737         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54738         to construct an empty ACL.
54739
54740 2008-06-07  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54743         precisely.
54744         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54745
54746 2008-06-07  Bruno Haible  <bruno@clisp.org>
54747
54748         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54749         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54750
54751 2008-06-07  Bruno Haible  <bruno@clisp.org>
54752
54753         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54754         regardless of POSIX.
54755         * doc/posix-functions/_longjmp.texi: Likewise.
54756         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54757         SystemV platform in this case.
54758
54759 2008-06-06  Eric Blake  <ebb9@byu.net>
54760
54761         Document abort() bugs.
54762         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54763
54764         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54765         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54766         sigsetjmp.
54767         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54768         siglongjmp, but only as a macro.
54769         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54770         is obsolete.
54771         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54772
54773         Tweak documentation to cover cygwin argz bugs.
54774         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54775         argz bug fix; no code change needed since no cygwin releases
54776         occurred between the last fix and the bug being tested.
54777         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54778         module and recently fixed cygwin bugs.
54779         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54780         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54781         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54782         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54783         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54784         Likewise.
54785         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54786         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54787         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54788         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54789         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54790         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54791         Likewise.
54792
54793         Avoid gcc warning on cygwin.
54794         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54795         !ACL_NO_TRIVIAL]: Avoid unused variable.
54796
54797 2008-06-05  Eric Blake  <ebb9@byu.net>
54798
54799         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54800         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54801         git-version-gen fails to come up with a version.
54802         Reported by Simon Josefsson.
54803
54804 2008-06-05  Jim Meyering  <meyering@redhat.com>
54805             Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         utimens.c: work around a probable Linux kernel bug
54808         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54809         appears to be a kernel bug that causes utimensat to return 280
54810         instead of 0, indicating success.
54811
54812 2008-06-04  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54815         2008-06-01 commit.
54816
54817 2008-06-04  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54820         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54821         (file_has_acl): Use it. Save errno afterwards.
54822         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54823
54824 2008-06-03  Bruno Haible  <bruno@clisp.org>
54825
54826         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54827         draft code. Simplify #ifs.
54828         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54829         Put Solaris code after POSIX-draft code. Fix comments regarding
54830         Solaris 10, HP-UX. Mention Cygwin.
54831         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54832
54833 2008-06-03  Eric Blake  <ebb9@byu.net>
54834
54835         Provide fallback for older kernels.
54836         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54837         Provide runtime fallback if kernel lacks support.
54838         Reported by Mike Frysinger.
54839
54840 2008-06-02  Bruno Haible  <bruno@clisp.org>
54841
54842         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54843         it exists.
54844
54845 2008-06-02  Bruno Haible  <bruno@clisp.org>
54846
54847         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54848         * lib/copy-acl.c (qcopy_acl): Update comment.
54849
54850 2008-06-02  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54853         like ACL APIs.
54854
54855 2008-06-02  Bruno Haible  <bruno@clisp.org>
54856
54857         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54858         * tests/test-set-mode-acl.sh: Likewise.
54859         * tests/test-copy-acl.sh: Likewise.
54860         * tests/test-copy-file.sh: Likewise.
54861
54862 2008-06-02  Bruno Haible  <bruno@clisp.org>
54863
54864         * tests/test-file-has-acl.sh: Remove unused code.
54865
54866 2008-06-01  Bruno Haible  <bruno@clisp.org>
54867
54868         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54869         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54870         messages.
54871         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54872
54873 2008-06-01  Bruno Haible  <bruno@clisp.org>
54874
54875         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54876         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54877         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54878         APIs.
54879         * modules/acl-tests (configure.ac): Remove tests now contained in
54880         m4/acl.m4.
54881
54882 2008-06-02  Jim Meyering  <meyering@redhat.com>
54883
54884         announce-gen: use a better key-server host name
54885         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54886         it may be more consistently reliable.  Suggested by Werner Koch
54887         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54888
54889 2008-06-01  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54892         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54893
54894 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54895
54896         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54897
54898 2008-06-01  Bruno Haible  <bruno@clisp.org>
54899
54900         New ACL tests.
54901         * tests/test-file-has-acl.sh: New file.
54902         * tests/test-file-has-acl.c: New file.
54903         * tests/test-set-mode-acl.sh: New file.
54904         * tests/test-set-mode-acl.c: New file.
54905         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54906         * tests/test-copy-acl.c: New file.
54907         * modules/acl-tests: New file, based on modules/copy-file-tests.
54908         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54909         (Depends-on): Add acl-tests.
54910         (configure.ac): Remove checks.
54911         (Makefile.am): Don't create test-sameacls program here any more.
54912
54913 2008-06-01  Bruno Haible  <bruno@clisp.org>
54914
54915         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54916         * tests/test-sameacls.c: Include progname.h.
54917         (main): Invoke set_program_name. Portability fixes for MacOS X,
54918         Solaris, HP-UX.
54919
54920 2008-06-01  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54923         function.
54924         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54925
54926 2008-06-01  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/rpmatch (Depends-on): Add strdup.
54929
54930 2008-06-01  Bruno Haible  <bruno@clisp.org>
54931
54932         * lib/pipe.c: Include unistd-safer.h.
54933         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54934         * modules/pipe (Depends-on): Add unistd-safer.
54935
54936 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54937
54938         * modules/autobuild (configure.ac): Call AB_INIT.
54939
54940 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54941
54942         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54943         Suggested by Bruno Haible <bruno@clisp.org>.
54944
54945 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54946
54947         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54948         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54949         <bruno@clisp.org>.
54950
54951 2008-05-29  Eric Blake  <ebb9@byu.net>
54952
54953         Prefer new POSIX 200x interfaces over futimesat.
54954         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54955         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54956         when available.
54957         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54958
54959 2008-05-28  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/stpcpy (License): Change to LGPLv2+.
54962         Requested by David Lutterkort <dlutter@redhat.com>.
54963
54964 2008-05-27  Bruno Haible  <bruno@clisp.org>
54965
54966         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54967         current mingw.
54968         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54969
54970 2008-05-27  Bruno Haible  <bruno@clisp.org>
54971
54972         * modules/iconv_open (Link): New section, from module 'iconv'.
54973         * modules/striconv (Link): Likewise.
54974         * modules/striconveh (Link): Likewise.
54975         * modules/xstriconv (Link): Likewise.
54976         * modules/unicodeio (Link): Likewise.
54977         * modules/propername (Link): Likewise.
54978         Reported by Jim Meyering.
54979
54980 2008-05-26  Jim Meyering  <meyering@redhat.com>
54981
54982         sha256: do not artificially restrict buffer length to be < 2^32
54983         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54984         uint32_t to size_t.
54985         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54986         to match.
54987
54988         avoid unaligned access errors, e.g., on sparc
54989         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54990         direct access through a possibly-unaligned uint64* pointer.
54991         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54992         direct access through a possibly-unaligned uint32* pointer.
54993         Prompted by this patch from Tom "spot" Callaway:
54994         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54995
54996         sha512.c: fix typo in comment
54997         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54998
54999 2008-05-25  Bruno Haible  <bruno@clisp.org>
55000
55001         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55002         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55003         (Makefile.am): Update lib_SOURCES.
55004
55005 2008-05-25  Bruno Haible  <bruno@clisp.org>
55006
55007         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55008
55009 2008-05-25  Jim Meyering  <meyering@redhat.com>
55010
55011         useless-if-before-free: freed expr may have white-space differences
55012         * build-aux/useless-if-before-free: Recognize cases in which the
55013         freed expression differs from the tested one in embedded white
55014         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55015         $1 was used, so we can't make any regexp shy.  Improved tests now
55016         detect this.
55017
55018         useless-if-before-free: accept white space in the expression.
55019         * build-aux/useless-if-before-free: For now, any white space
55020         in the expression must be identical in the free argument.
55021
55022         useless-if-before-free: efficiency tweak
55023         * build-aux/useless-if-before-free: Make the expression-matching
55024         regexp "shy".
55025         Make the *outer* regexp shy, not the expr-matching one.
55026
55027         update code-in-comment to accept cast of free arg
55028         * build-aux/useless-if-before-free: Update regexp.
55029
55030 2008-05-25  Bruno Haible  <bruno@clisp.org>
55031
55032         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55033         * modules/copy-file-tests (Files, Makefile.am): Update.
55034         * tests/test-copy-file.c (func_test_copy): Update.
55035
55036 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55037
55038         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55039
55040 2008-05-23  Bruno Haible  <bruno@clisp.org>
55041
55042         Improve support for ACLs on OSF/1.
55043         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55044         Remove fallback for unknown flavors of ACLs.
55045
55046 2008-05-22  Bruno Haible  <bruno@clisp.org>
55047
55048         Add support for ACLs on OSF/1.
55049         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55050         replacements.
55051         (acl_free_text): New macro fallback.
55052         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55053         acl_free.
55054         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55055         acl_free_text function. Require AC_C_INLINE.
55056
55057 2008-05-22  Bruno Haible  <bruno@clisp.org>
55058
55059         Make copy_acl work on MacOS X 10.5.
55060         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55061         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55062         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55063         If MODE_INSIDE_ACL, don't assume that every system has the same text
55064         representation for ACLs as FreeBSD.
55065         * lib/copy-acl.c (copy_acl): Add support for platforms with
55066         !MODE_INSIDE_ACL.
55067         * lib/file-has-acl.c (file_has_acl): Likewise.
55068         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55069         FreeBSD, MacOS X, or IRIX, respectively.
55070
55071 2008-05-22  Bruno Haible  <bruno@clisp.org>
55072
55073         * lib/acl.h: Don't include <sys/acl.h>.
55074         (GETACLCNT): Move fallback to lib/acl-internal.h.
55075         * lib/acl-internal.h: Include <sys/acl.h> here.
55076         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55077
55078 2008-05-22  Bruno Haible  <bruno@clisp.org>
55079
55080         Split off copy_acl function to separate file.
55081         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55082         * lib/acl.c (copy_acl): Moved function to separate file.
55083         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55084         * modules/acl (Files): Add lib/copy-acl.c.
55085         (Makefiles.am): Augment lib_SOURCES.
55086
55087 2008-05-22  Bruno Haible  <bruno@clisp.org>
55088
55089         * modules/copy-file-tests: New file.
55090         * tests/test-copy-file.sh: New file.
55091         * tests/test-copy-file.c: New file.
55092         * tests/test-copy-file-sameacls.c: New file.
55093
55094 2008-05-22  Eric Blake  <ebb9@byu.net>
55095
55096         Avoid gcc warning.
55097         * tests/test-memcmp.c (main): Pass NULL indirectly.
55098
55099 2008-05-21  Bruno Haible  <bruno@clisp.org>
55100
55101         Add reference doc about ACLs.
55102         * doc/acl-resources.txt: New file.
55103         * doc/acl-cygwin.txt: New file.
55104
55105 2008-05-21  Bruno Haible  <bruno@clisp.org>
55106
55107         Avoid one more warning from gcc.
55108         * lib/vasnprintf.c (IF_LINT): Update comments.
55109         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55110
55111 2008-05-21  Jim Meyering  <meyering@redhat.com>
55112
55113         avoid a warning from gcc
55114         * lib/vasnprintf.c (IF_LINT): Define.
55115         (scale10_round_decimal_long_double):
55116         Use it to avoid a "may be used uninitialized" warning.
55117         (scale10_round_decimal_double): Likewise.
55118
55119 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55120
55121         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55122         declared.
55123
55124 2008-05-20  Bruno Haible  <bruno@clisp.org>
55125
55126         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55127         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55128
55129 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55130
55131         * modules/memcmp-tests: New file.
55132         * tests/test-memcmp.c: New file.
55133
55134 2008-05-19  Bruno Haible  <bruno@clisp.org>
55135
55136         * modules/propername (Notice, configure.ac): Put quoted "..." into
55137         --keyword option.
55138         * lib/propername.h: Update comments accordingly.
55139         Reported by Eric Blake.
55140
55141 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55142
55143         * modules/getpass-gnu (Depends-on): Add fseeko.
55144
55145 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55146
55147         * modules/base64-tests: New file.
55148
55149 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55150
55151         * lib/base64.c (base64_decode_ctx): If a decode context structure
55152         was passed in use it to ignore newlines.  If a context structure
55153         was _not_ passed in, continue to treat newlines as garbage (this
55154         is the historical behavior).  Formerly base64_decode.
55155         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55156         takes a decode context structure.
55157         * lib/base64.h (base64_decode): Macro for four-argument calls.
55158         (base64_decode_alloc): Likewise.
55159         * lib/base64.c (base64_decode_ctx): If a decode context structure
55160         was passed in use it to ignore newlines.  If a context structure
55161         was _not_ passed in, continue to treat newlines as garbage (this
55162         is the historical behavior).  Formerly base64_decode.
55163         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55164         takes a decode context structure.
55165         * lib/base64.h (base64_decode): Macro for four-argument calls.
55166         (base64_decode_alloc): Likewise.
55167
55168 2008-05-19  Jim Meyering  <meyering@redhat.com>
55169
55170         avoid a warning from gcc
55171         * lib/trim.c (IF_LINT): Define.
55172         (trim2): Use it to avoid a "may be used uninitialized" warning.
55173
55174         Fix doc typo.
55175         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55176
55177 2008-05-19  Bruno Haible  <bruno@clisp.org>
55178
55179         * doc/glibc-functions/getpass.texi: Document limits of other
55180         implementations.
55181
55182 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55183             Bruno Haible <bruno@clisp.org>
55184
55185         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55186
55187 2008-05-18  Bruno Haible  <bruno@clisp.org>
55188
55189         * modules/propername: New file, from GNU gettext.
55190         * lib/propername.h: New file, from GNU gettext.
55191         * lib/propername.c: New file, from GNU gettext.
55192         * MODULES.html.sh (Internationalization functions): Add propername.
55193
55194 2008-05-16  Jim Meyering  <meyering@redhat.com>
55195             Bruno Haible  <bruno@clisp.org>
55196
55197         Avoid some warnings from "gcc -Wshadow".
55198         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55199
55200 2008-05-15  Eric Blake  <ebb9@byu.net>
55201
55202         Extend previous patch to cygwin 1.7.0.
55203         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55204         fast implementation in cygwin >= 1.7.0.
55205         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55207
55208 2008-05-15  Bruno Haible  <bruno@clisp.org>
55209
55210         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55211         implementation in glibc >= 2.9.
55212         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55214
55215 2008-05-15  Bruno Haible  <bruno@clisp.org>
55216
55217         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55218         (Unicode string functions): Add unilbrk/*.
55219         Reported by Karl Berry.
55220
55221 2008-05-15  Eric Blake  <ebb9@byu.net>
55222
55223         Fix violation of <stdbool.h> replacement in regex.
55224         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55225         * lib/regexec.c (re_search_internal): Likewise.
55226         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55227
55228 2008-05-15  Jim Meyering  <meyering@redhat.com>
55229
55230         avoid distracting test output when git or cvs is not found
55231         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55232         * tests/test-vc-list-files-git.sh: Likewise.
55233
55234 2008-05-15  Eric Blake  <ebb9@byu.net>
55235
55236         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55237         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55238         glibc version.
55239         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55240         * doc/posix-functions/strstr.texi (strstr): Likewise.
55241         * lib/str-two-way.h (MAX): Sychronize with glibc.
55242
55243 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55244
55245         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55246         opr.ctx_type.
55247         (calc_first): Initialize constraint field.
55248         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55249         Fix grammar.
55250         (duplicate_node): Merge constraint field for all node types.
55251         (calc_eclosure_iter): Look at constraint field for all node types.
55252         * lib/regex_internal.c (create_cd_newstate): Don't look at
55253         opr.ctx_type.
55254
55255 2008-05-14  Bruno Haible  <bruno@clisp.org>
55256
55257         Help GCC to do better code generation.
55258         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55259         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55260         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55261         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55262         Declare with attribute 'malloc' if supported.
55263
55264 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55265
55266         use "echo STR|wc -c" rather than unportable "expr length STR"
55267         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55268         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55269
55270 2008-05-14  Jim Meyering  <meyering@redhat.com>
55271
55272         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55273         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55274         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55275         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55276         via Collin Lasse.
55277
55278 2008-05-14  Eric Blake  <ebb9@byu.net>
55279
55280         Avoid quadratic growth in gl_LIBSOURCES.
55281         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55282         Suggested by Bruno Haible.
55283
55284         Test xmemdup0.
55285         * modules/xmemdup0-tests: New file.
55286         * tests/test-xmemdup0.c: Likewise.
55287
55288 2008-05-13  Eric Blake  <ebb9@byu.net>
55289
55290         Split xmemdup0 into its own module.
55291         * modules/xmemdup0: New file.
55292         * lib/xmemdup0.h: Likewise.
55293         * lib/xmemdup0.c: Likewise.
55294         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55295         * lib/xalloc.h (xmemdup0): Remove.
55296         * lib/xmalloc.c (xmemdup0): Likewise.
55297
55298 2008-05-13  Eric Blake  <ebb9@byu.net>
55299             Bruno Haible  <bruno@clisp.org>
55300
55301         Reduce number of forks required during autoconf.
55302         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55303         and gl_LIBSOURCES_DIR.
55304         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55305         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55306         m4_syscmd per file.
55307         <m4_foreach_w>: Move...
55308         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55309
55310 2008-05-13  Eric Blake  <ebb9@byu.net>
55311
55312         * gnulib-tool: Fix various comment typos.
55313
55314 2008-05-12  Bruno Haible  <bruno@clisp.org>
55315
55316         Tailor the linebreaking algorithm.
55317         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55318
55319 2008-05-12  Bruno Haible  <bruno@clisp.org>
55320
55321         Update to Unicode 5.0.0.
55322         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55323         LBP_JV, LBP_JT. Redistribute values.
55324         (unilbrk_table): Change size.
55325         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55326         Unicode TR#14 rev. 22.
55327         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55328         LBP_JV, LBP_JT. Redistribute values.
55329         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55330         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55331         Update.
55332         * lib/unilbrk/lbrkprop1.h: Regenerated.
55333         * lib/unilbrk/lbrkprop2.h: Regenerated.
55334         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55335         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55336         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55337         Likewise.
55338         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55339         Likewise.
55340         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55341         result.
55342         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55343         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55344         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55345         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55346         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55347         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55348
55349 2008-05-11  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55352
55353 2008-05-11  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55356         * modules/unilbrk/gen-lbrk: New file.
55357
55358 2008-05-11  Bruno Haible  <bruno@clisp.org>
55359
55360         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55361         * m4/sha512.m4 (gl_SHA512): Likewise.
55362
55363 2008-05-11  Jim Meyering  <meyering@redhat.com>
55364
55365         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55366         * modules/crypto/sha256: New file.
55367         * modules/crypto/sha512: Likewise.
55368         * lib/sha256.c: Likewise.
55369         * lib/sha256.h: Likewise.
55370         * lib/sha512.c: Likewise.
55371         * lib/sha512.h: Likewise.
55372         * lib/u64.h: Likewise.
55373         * m4/sha256.m4: Likewise.
55374         * m4/sha512.m4: Likewise.
55375         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55376
55377 2008-05-10  Bruno Haible  <bruno@clisp.org>
55378
55379         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55380         (Input/Output <stdio.h>): Add xprintf.
55381         (Signal handling <signal.h>): Add strsignal.
55382         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55383         (Core language properties): Add func.
55384         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55385         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55386         strings.
55387         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55388         (Input/output): New section.
55389         (File system functions): Add openat-die, stat-macros.
55390         (Networking functions): Add sockets.
55391         (Unicode string functions): Add unictype/*.
55392         (Support for building libraries and executables): Add gperf.
55393         (Support for building documentation): Add agpl-3.0.
55394         (Misc): Add nocrash.
55395
55396 2008-05-10  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/unictype/gen-ctype: New file.
55399
55400 2008-05-10  Jim Meyering  <meyering@redhat.com>
55401
55402         Make chdir-safer.c more efficient on a system with no symlinks.
55403         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55404         also if ELOOP is zero.  Suggested by Bruno Haible.
55405
55406         Make chdir-safer.c slightly safer.
55407         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55408         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55409
55410         Avoid compile failure on systems without ELOOP (like mingw).
55411         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55412         Reported by Bruno Haible.
55413
55414 2008-05-10  Bruno Haible  <bruno@clisp.org>
55415
55416         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55417         (is_utf8_encoding): Use a case-insensitive comparison.
55418         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55419         streq.
55420
55421 2008-05-10  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55424         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55425         * lib/unilbrk/ulc-common.h (iconv_string_length,
55426         iconv_string_keeping_offsets): Remove declarations.
55427         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55428         Don't include <iconv.h>, streq.h, xsize.h.
55429         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55430         conversion.
55431         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55432         <iconv.h>, streq.h, xsize.h.
55433         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55434         conversion.
55435         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55436         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55437         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55438         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55439
55440 2008-05-10  Bruno Haible  <bruno@clisp.org>
55441
55442         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55443         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55444
55445         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55446         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55447
55448         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55449         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55450
55451         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55452         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55453
55454         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55455         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55456
55457         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55458         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55459
55460         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55461         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55462
55463         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55464         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55465
55466 2008-05-10  Bruno Haible  <bruno@clisp.org>
55467
55468         Split up 'linebreak' module.
55469         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55470         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55471         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55472         modifications.
55473         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55474         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55475         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55476         lib/linebreak.c.
55477         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55478         lib/linebreak.c.
55479         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55480         lib/linebreak.c.
55481         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55482         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55483         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55484         lib/linebreak.c.
55485         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55486         lib/linebreak.c.
55487         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55488         lib/linebreak.c.
55489         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55490         lib/linebreak.c.
55491         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55492         lib/linebreak.c.
55493         * modules/unilbrk/base: New file.
55494         * modules/unilbrk/tables: New file.
55495         * modules/unilbrk/u8-possible-linebreaks: New file.
55496         * modules/unilbrk/u16-possible-linebreaks: New file.
55497         * modules/unilbrk/u32-possible-linebreaks: New file.
55498         * modules/unilbrk/ulc-common: New file.
55499         * modules/unilbrk/ulc-possible-linebreaks: New file.
55500         * modules/unilbrk/u8-width-linebreaks: New file.
55501         * modules/unilbrk/u16-width-linebreaks: New file.
55502         * modules/unilbrk/u32-width-linebreaks: New file.
55503         * modules/unilbrk/ulc-width-linebreaks: New file.
55504         * lib/linebreak.h: Remove file.
55505         * lib/linebreak.c: Remove file.
55506         * m4/linebreak.m4: Remove file.
55507         * modules/linebreak: Remove file.
55508         * NEWS: Mention the changes.
55509
55510 2008-05-09  Eric Blake  <ebb9@byu.net>
55511
55512         Add xmemdup0.
55513         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55514         implementation.
55515         * lib/xmalloc.c (xmemdup0): New C implementation.
55516
55517 2008-05-08  Bruno Haible  <bruno@clisp.org>
55518
55519         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55520
55521 2008-05-07  Eric Blake  <ebb9@byu.net>
55522
55523         Support cross-compilation of <wctype.h>.
55524         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55525         AC_CACHE_CHECK.
55526
55527 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55528
55529         * build-aux/vc-list-files: Add support for bzr.
55530
55531 2008-05-03  Jim Meyering  <meyering@redhat.com>
55532
55533         avoid failed assertion with tight malloc
55534         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55535
55536 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55537
55538         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55539         are needed from arpa/inet.h.
55540         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55541         Reported by Bruno Haible.
55542
55543 2008-05-02  Jim Meyering  <meyering@redhat.com>
55544
55545         avoid compilation error on FreeBSD 6
55546         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55547
55548 2008-05-01  Jim Meyering  <meyering@redhat.com>
55549
55550         useless-if-before-free: correct --help's exit status description
55551         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55552         for one or more matches, etc.  Reported by Bruno Haible.
55553
55554         vc-list-files: make the stand-alone gnulib test work
55555         * modules/vc-list-files-tests (configure.ac):
55556         Define and AC_SUBST abs_aux_dir.
55557         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55558         $(abs_top_srcdir) to each script and having each of them
55559         duplicate the work of setting PATH, set PATH here, using
55560         the new variable, abs_aux_dir instead.
55561         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55562         * tests/test-vc-list-files-git.sh: Likewise.
55563         Reported by Bruno Haible.
55564
55565 2008-05-01  Bruno Haible  <bruno@clisp.org>
55566
55567         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55568         reallocation. Rename 'done' to 'found_delimiter'.
55569
55570 2008-05-01  Jim Meyering  <meyering@redhat.com>
55571
55572         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55573         * build-aux/vc-list-files: Use `...`, not $(...).
55574
55575 2008-04-30  Jim Meyering  <meyering@redhat.com>
55576
55577         add tests for vc-list-files
55578         * modules/vc-list-files-tests: New module.
55579         * tests/test-vc-list-files-cvs.sh: New file.
55580         * tests/test-vc-list-files-git.sh: New file.
55581
55582         avoid a warning from gcc
55583         * lib/getndelim2.c (IF_LINT): Define.
55584         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55585
55586         vc-list-files: work properly with build-aux/cvsu, too
55587         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55588         to all cvs-based clauses.
55589
55590         vc-list-files: work properly in the CVS+awk case, too
55591         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55592
55593         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55594         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55595         take more than one file argument, so .  Add quotes, just in case $dir
55596         ever contains a shell meta-character.  Prompted by Soren Hansen in
55597         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55598
55599 2008-04-29  Eric Blake  <ebb9@byu.net>
55600
55601         Optimize getndelim2 to use block operations when possible.
55602         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55603         freadseek, and memchr2.
55604         * lib/getndelim2.c (getndelim2): Use them for block reads.
55605
55606 2008-04-29  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55609         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55610         * modules/inet_ntop (Depends-on): Add extensions.
55611         * modules/inet_pton (Depends-on): Likewise.
55612         Reported by Simon Josefsson.
55613
55614 2008-04-29  Jim Meyering  <meyering@redhat.com>
55615
55616         When the is more than one match in a block, match all of them.
55617         * build-aux/useless-if-before-free: Iterate through each block
55618         until there are no more matches.
55619
55620         Fix broken useless-if-before-free script.
55621         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55622         the expression to match cast of argument to free-like function.
55623
55624 2008-04-29  Eric Blake  <ebb9@byu.net>
55625
55626         Use new header.
55627         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55628
55629 2008-04-29  Jim Meyering  <meyering@redhat.com>
55630
55631         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55632         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55633         by gnulib to exist and to declare e.g., inet_ntop.
55634         Don't include "inet_ntop.h", now removed.
55635
55636         * m4/arpa_inet_h.m4: Remove trailing blanks.
55637
55638 2008-04-29  Eric Blake  <ebb9@byu.net>
55639
55640         Silence valgrind on safe reads beyond potential array bounds.
55641         * lib/rawmemchr.valgrind: New file.
55642         * lib/strchrnul.valgrind: Likewise.
55643         * modules/rawmemchr (Files): Distribute new file.
55644         * modules/strchrnul (Files): Likewise.
55645         Suggested by Bruno Haible.
55646
55647 2008-04-29  Bruno Haible  <bruno@clisp.org>
55648
55649         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55650         (inet_ntop, inet_pton): Change portability warning's wording.
55651         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55652         Invoke gl_CHECK_NEXT_HEADERS.
55653         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55654         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55655         set ARPA_INET_H.
55656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55657         * modules/arpa_inet (Description): No longer only for systems that
55658         lack it.
55659         (Depends-on): Add include_next.
55660         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55661         HAVE_ARPA_INET_H.
55662
55663 2008-04-29  Jim Meyering  <meyering@redhat.com>
55664
55665         * modules/mkdir (License): Re-license as LGPLv2+.
55666
55667 2008-04-29  Bruno Haible  <bruno@clisp.org>
55668
55669         * modules/rawmemchr (Maintainer): Set to Eric.
55670         * modules/strchrnul (Maintainer): Likewise.
55671
55672 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55673
55674         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55675         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55676
55677         * modules/arpa_inet (arpa/inet.h): Use them.
55678
55679 2008-04-28  Eric Blake  <ebb9@byu.net>
55680
55681         Test getndelim2.
55682         * modules/getndelim2-tests: New file.
55683         * tests/test-getndelim2.c: Likewise.
55684         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55685         stream.
55686         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55687
55688         * MODULES.html.sh: Document new module.
55689
55690 2008-04-20  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/c-stack.c (die): Use raise.
55693         * modules/c-stack (Depends-on): Add raise.
55694
55695 2008-04-28  Bruno Haible  <bruno@clisp.org>
55696
55697         Expect rpmatch to be declared.
55698         * lib/yesno.c (rpmatch): Remove declaration.
55699
55700         Declare rpmatch.
55701         * lib/stdlib.in.h (rpmatch): New declaration.
55702         * lib/rpmatch.c: Include <stdlib.h> first.
55703         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55704         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55706         HAVE_RPMATCH.
55707         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55708         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55709         (Include): Set to <stdlib.h>.
55710         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55711         HAVE_RPMATCH.
55712         * NEWS: Document the change.
55713
55714 2008-04-28  Bruno Haible  <bruno@clisp.org>
55715
55716         Change rpmatch to use nl_langinfo when appropriate.
55717         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55718         (N_): New macro.
55719         (localized_pattern): New function/macro.
55720         (try): Remove match, nomatch arguments. Copy the pattern into safe
55721         memory before caching it.
55722         (rpmatch): Use localized_pattern. Add translator comments.
55723         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55724         Suggested by Eric Blake.
55725         * modules/rpmatch (Depends-on): Add stdbool.
55726
55727 2008-04-28  Eric Blake  <ebb9@byu.net>
55728
55729         Add rawmemchr module, matching glibc.
55730         * modules/string (Makefile.am): New indicator.
55731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55732         * lib/string.in.h (rawmemchr): Declare when appropriate.
55733         * modules/rawmemchr: New file.
55734         * m4/rawmemchr.m4: Likewise.
55735         * lib/rawmemchr.c: Likewise.
55736         * modules/rawmemchr-tests: Likewise.
55737         * tests/test-rawmemchr.c: Likewise.
55738         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55739         module.
55740         * modules/strchrnul (Depends-on): Add rawmemchr.
55741         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55742
55743         Whitespace cleanup.
55744         * tests/test-strchrnul.c: Reindent.
55745         * lib/strchrnul.c: Likewise.
55746
55747         Optimize and test strchrnul.
55748         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55749         * modules/strchrnul-tests: New file.
55750         * tests/test-strchrnul.c: Likewise.
55751
55752         Remove intprops dependency.
55753         * modules/memchr (Depends-on): Remove intprops.
55754         * modules/memrchr (Depends-on): Likewise.
55755         * modules/memchr2 (Depends-on): Likewise.
55756         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55757         * lib/memrchr.c (__memrchr): Likewise.
55758         * lib/memrchr2.c (memchr2): Likewise.
55759         Reported by Simon Josefsson.
55760
55761 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55762
55763         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55764         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55765
55766 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55767
55768         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55769
55770         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55771
55772         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55773
55774         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55775         declarations.
55776         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55777
55778         * m4/inet_pton.m4: Don't check for header files.
55779
55780         * m4/inet_ntop.m4: Don't check for header files.
55781
55782 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55783
55784         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55785         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55786         trigger for cygwin).
55787         Reported by Bruno Haible  <bruno@clisp.org>.
55788
55789 2008-04-28  Bruno Haible  <bruno@clisp.org>
55790
55791         * doc/posix-functions/strdup.texi: Mention mingw problem.
55792
55793 2008-04-27  Bruno Haible  <bruno@clisp.org>
55794
55795         * modules/stat-time-tests (Depends-on): Add sleep.
55796         * tests/test-stat-time.c (force_unlink): New function.
55797         (cleanup): Use it.
55798         (test_mtime): Remove the ctime related tests.
55799         (test_ctime): New function, containing the ctime related tests.
55800         (main): Call test_ctime, except on native Windows platforms.
55801
55802 2008-04-27  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/rpmatch.c (rpmatch): Add some comments.
55805         Reported by James Youngman <jay@gnu.org>.
55806
55807 2008-04-27  Bruno Haible  <bruno@clisp.org>
55808
55809         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55810         quiet NaNs.
55811
55812 2008-04-27  Bruno Haible  <bruno@clisp.org>
55813
55814         Make test-yesno.sh work on mingw.
55815         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55816         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55817         (main): Set stdin to binary mode.
55818         * modules/yesno-tests (Depends-on): Add binary-io.
55819
55820 2008-04-27  Bruno Haible  <bruno@clisp.org>
55821
55822         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55823         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55824         argument that lie outside the IEEE 854 domain.
55825         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55826         (gl_ISFINITE): Use it.
55827         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55828
55829 2008-04-27  Bruno Haible  <bruno@clisp.org>
55830
55831         Allow local renaming in config.h.
55832         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55833
55834 2008-04-27  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/memchr.c (__memchr): Change type of 'i'.
55837         * lib/memchr2.c (memchr2): Likewise.
55838
55839 2008-04-26  Eric Blake  <ebb9@byu.net>
55840         and Bruno Haible  <bruno@clisp.org>
55841
55842         Optimize and test memrchr.
55843         * modules/memrchr (Depends-on): Add intprops.
55844         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55845         * modules/memrchr-tests: New file.
55846         * tests/test-memrchr.c: New file.
55847
55848 2008-04-26  Bruno Haible  <bruno@clisp.org>
55849
55850         Add tentative support for DragonFly BSD.
55851         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55852         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55853         fp.
55854         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55855         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55856         * lib/fpurge.c (fpurge): Likewise.
55857         * lib/freadable.c (freaadable): Likewise.
55858         * lib/freadahead.c (freadahead): Likewise.
55859         * lib/freading.c (freading): Likewise.
55860         * lib/freadptr.c (freadptr): Likewise.
55861         * lib/freadseek.c (freadptrinc): Likewise.
55862         * lib/fseeko.c (fseeko): Likewise.
55863         * lib/fseterr.c (fseterr): Likewise.
55864         * lib/fwritable.c (fwritable): Likewise.
55865         * lib/fwriting.c (fwriting): Likewise.
55866
55867 2008-04-26  Bruno Haible  <bruno@clisp.org>
55868
55869         * lib/stdio-impl.h: New file.
55870         * lib/fbufmode.c: Include stdio-impl.h.
55871         (fbufmode): Use fp_, remove redundant #defines.
55872         * lib/fflush.c: Include stdio-impl.h.
55873         (clear_ungetc_buffer): Remove redundant #defines.
55874         * lib/fpurge.c: Include stdio-impl.h.
55875         (fpurge): Remove redundant #defines.
55876         * lib/freadable.c: Include stdio-impl.h.
55877         (freadable): Remove redundant #defines.
55878         * lib/freadahead.c: Include stdio-impl.h.
55879         (freadahead): Remove redundant #defines.
55880         * lib/freading.c: Include stdio-impl.h.
55881         (freading): Remove redundant #defines.
55882         * lib/freadptr.c: Include stdio-impl.h.
55883         (freadptr): Remove redundant #defines.
55884         * lib/freadseek.c: Include stdio-impl.h.
55885         (freadptrinc): Remove redundant #defines.
55886         * lib/fseeko.c: Include stdio-impl.h.
55887         (rpl_fseeko): Remove redundant #defines.
55888         * lib/fseterr.c: Include stdio-impl.h.
55889         (fseterr): Remove redundant #defines.
55890         * lib/fwritable.c: Include stdio-impl.h.
55891         (fwritable: Remove redundant #defines.
55892         * lib/fwriting.c: Include stdio-impl.h.
55893         (fwriting): Remove redundant #defines.
55894         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55895         * modules/fflush (Files): Likewise.
55896         * modules/fpurge (Files): Likewise.
55897         * modules/freadable (Files): Likewise.
55898         * modules/freadahead (Files): Likewise.
55899         * modules/freading (Files): Likewise.
55900         * modules/freadptr (Files): Likewise.
55901         * modules/freadseek (Files): Likewise.
55902         * modules/fseeko (Files): Likewise.
55903         * modules/fseterr (Files): Likewise.
55904         * modules/fwritable (Files): Likewise.
55905         * modules/fwriting (Files): Likewise.
55906
55907 2008-04-26  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55910         restore_seek_optimization, update_fpos_cache): New functions, extracted
55911         from rpl_fflush.
55912         (rpl_fflush): Use them.
55913         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55914         (gl_REPLACE_FFLUSH): Use it.
55915
55916 2008-04-26  Bruno Haible  <bruno@clisp.org>
55917
55918         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55919         on Solaris.
55920         * tests/test-xstrtoimax.sh: Likewise.
55921         * tests/test-xstrtoumax.sh: Likewise.
55922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55923
55924 2008-04-26  Bruno Haible  <bruno@clisp.org>
55925
55926         * modules/memchr-tests: New file.
55927         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55928
55929 2008-04-26  Eric Blake  <ebb9@byu.net>
55930             Bruno Haible  <bruno@clisp.org>
55931
55932         * lib/memchr.c: Include intprops.h.
55933         (__memchr): Optimize parallel detection of matching bytes. Rename local
55934         variables. Add explanatory comments.
55935
55936 2008-04-26  Bruno Haible  <bruno@clisp.org>
55937
55938         Fix module 'memchr', broken since 2000-10-28.
55939         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55940
55941 2008-04-26  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55944         comments.
55945
55946 2008-04-25  Eric Blake  <ebb9@byu.net>
55947
55948         Use native fstatat on cygwin 1.7.0.
55949         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55950         first.
55951
55952 2008-04-23  Eric Blake  <ebb9@byu.net>
55953
55954         Improve memchr2 performance.
55955         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55956         NUL bytes.
55957         * modules/memchr2 (Depends-on): Use intprops.h.
55958
55959 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55960
55961         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55962         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55963         <blp@cs.stanford.edu>.
55964
55965 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55966
55967         * lib/arpa_inet.in.h: New file.
55968
55969         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55970         (Makefile.am): Sed in substitute header file.
55971
55972         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55973         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55974
55975         * modules/inet_ntop (configure.ac): Use
55976         gl_ARPA_INET_MODULE_INDICATOR.
55977
55978         * modules/inet_pton (configure.ac): Use
55979         gl_ARPA_INET_MODULE_INDICATOR.
55980
55981 2008-04-22  Jim Meyering  <meyering@redhat.com>
55982
55983         * modules/verify (License): Re-license as LGPLv2+.
55984
55985 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55986
55987         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55988         parameter to void* as per POSIX standard (MinGW uses char*).
55989
55990 2008-04-21  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55993         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55994         Define to replacements if REPLACE_ISWCNTRL is 1.
55995         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55996         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55997         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55998         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55999         what it fixes.
56000         * doc/posix-functions/iswalpha.texi: Likewise.
56001         * doc/posix-functions/iswblank.texi: Likewise.
56002         * doc/posix-functions/iswcntrl.texi: Likewise.
56003         * doc/posix-functions/iswdigit.texi: Likewise.
56004         * doc/posix-functions/iswgraph.texi: Likewise.
56005         * doc/posix-functions/iswlower.texi: Likewise.
56006         * doc/posix-functions/iswprint.texi: Likewise.
56007         * doc/posix-functions/iswpunct.texi: Likewise.
56008         * doc/posix-functions/iswspace.texi: Likewise.
56009         * doc/posix-functions/iswupper.texi: Likewise.
56010         * doc/posix-functions/iswxdigit.texi: Likewise.
56011         Reported by Alain Guibert.
56012
56013 2008-04-21  Bruno Haible  <bruno@clisp.org>
56014
56015         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56016         Patch by Alain Guibert.
56017
56018 2008-04-21  Bruno Haible  <bruno@clisp.org>
56019
56020         Fix test failures on mingw.
56021         * tests/test-xstrtol.c (print_no_progname): New function.
56022         (main): Install it in error_print_progname hook.
56023         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56024         * tests/test-xstrtoimax.sh: Likewise.
56025         * tests/test-xstrtoumax.sh: Likewise.
56026
56027 2008-04-21  Bruno Haible  <bruno@clisp.org>
56028
56029         Fix test failure on mingw.
56030         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56031
56032 2008-04-21  Bruno Haible  <bruno@clisp.org>
56033
56034         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56035         Actually assign a value.
56036
56037 2008-04-20  Bruno Haible  <bruno@clisp.org>
56038
56039         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56040         take 2.
56041         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56042         'canonicalize-lgpl' module is also used.
56043         * lib/canonicalize-lgpl.c: Undo last change.
56044         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56045
56046 2008-04-20  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56049         config.h. Provide _mkdir based fallback for mingw.
56050         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56051         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56052         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56053         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56054         rather than defining mkdir in config.h.
56055         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56056         (gl_SYS_STAT_H_DEFAULTS): New macro.
56057         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56058         HAVE_IO_H any more.
56059         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56060         HAVE_DECL_MKDIR and HAVE_IO_H.
56061
56062 2008-04-20  Bruno Haible  <bruno@clisp.org>
56063
56064         * lib/isapipe.c: Port to native Windows platforms.
56065
56066 2008-04-20  Bruno Haible  <bruno@clisp.org>
56067
56068         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56069
56070 2008-04-21  Eric Blake  <ebb9@byu.net>
56071
56072         Work around preprocessors that don't handle UINTMAX_MAX.
56073         * lib/memchr2.c (memchr2): Avoid embedded #if.
56074         Reported by Alain Guibert, fix suggested by Bruno Haible.
56075
56076 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56077
56078         * doc/posix-functions/strftime.texi (strftime): Explain better
56079         Windows incompatibility.  Suggested by Micah Cowan
56080         <micah@cowan.name>.
56081
56082 2008-04-20  Bruno Haible  <bruno@clisp.org>
56083
56084         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56085         unistr/u8-mblen.
56086
56087 2008-04-20  Bruno Haible  <bruno@clisp.org>
56088
56089         Fix test failure on platforms with non-GNU iconv.
56090         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56091         (U_TO_U8): Use it, rather than u16_to_u8.
56092         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56093         units at the end of the input string.
56094         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56095
56096 2008-04-20  Bruno Haible  <bruno@clisp.org>
56097
56098         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56099         when the resulting length is 0.
56100         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56101
56102 2008-04-20  Bruno Haible  <bruno@clisp.org>
56103
56104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56105         works.
56106         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56107
56108 2008-04-20  Bruno Haible  <bruno@clisp.org>
56109
56110         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56111         * modules/tsearch-tests (configure.ac): Test for initstate function.
56112
56113 2008-04-20  Bruno Haible  <bruno@clisp.org>
56114
56115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56116         for nlink_t if missing.
56117         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56118
56119 2008-04-19  Bruno Haible  <bruno@clisp.org>
56120
56121         Work around snprintf bug on Linux libc5.
56122         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56123         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56124         gl_SNPRINTF_SIZE1.
56125         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56126         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56127         that test failed.
56128         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56129         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56130         * modules/snprintf (Files): Add m4/printf.m4.
56131         * modules/vsnprintf (Files): Likewise.
56132         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56133         * doc/posix-functions/vsnprintf.texi: Likewise.
56134
56135 2008-04-19  Bruno Haible  <bruno@clisp.org>
56136
56137         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56138         from 0.0058 to less than 10^-7.
56139
56140 2008-04-19  Bruno Haible  <bruno@clisp.org>
56141
56142         Fix rounding when a precision is given.
56143         * lib/vasnprintf.c (is_borderline): New function.
56144         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56145         9...9x.
56146         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56147         %e, %g.
56148         * tests/test-vasprintf-posix.c (test_function): Likewise.
56149         * tests/test-snprintf-posix.h (test_function): Likewise.
56150         * tests/test-sprintf-posix.h (test_function): Likewise.
56151         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56152         * tests/test-printf-posix.h (test_function): Likewise.
56153         * tests/test-printf-posix.output: Update.
56154         Reported by John Darrington <john@darrington.wattle.id.au> via
56155         Ben Pfaff <blp@cs.stanford.edu>.
56156
56157 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56158
56159         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56160         Suggested by Bruno Haible <bruno@clisp.org>.
56161
56162 2008-04-17  Bruno Haible  <bruno@clisp.org>
56163
56164         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56165         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56166         implementation.
56167         Patch by Bruce Merry <bmerry@gmail.com>.
56168
56169 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56170
56171         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56172         doesn't work under Windows.
56173
56174 2008-04-16  Bruno Haible  <bruno@clisp.org>
56175
56176         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56177         New macros.
56178         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56179         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56180         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56181         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56182         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56183         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56184         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56185         macros.
56186         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56187         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56188         Northern Sotho, Uighur.
56189
56190 2008-04-16  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56193         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56194         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56195         Reported by Daniel Bergström <daniel@octocode.com>.
56196
56197 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56198             Bruno Haible  <bruno@clisp.org>
56199
56200         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56201         function.
56202         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56203         New functions, mostly extracted from gl_locale_name_default.
56204         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56205
56206 2008-04-16  Eric Blake  <ebb9@byu.net>
56207
56208         Adjust strtod detection to catch glibc 2.7 bug.
56209         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56210         Reported by John Gatewood Ham.
56211
56212 2008-04-16  Bruno Haible  <bruno@clisp.org>
56213
56214         Add tentative support for Linux libc5.
56215         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56216         * lib/fpurge.c (fpurge): Likewise.
56217         * lib/freadable.c (freadable): Likewise.
56218         * lib/freadahead.c (freadahead): Likewise.
56219         * lib/freading.c (freading): Likewise.
56220         * lib/freadptr.c (freadptr): Likewise.
56221         * lib/freadseek.c (freadptrinc): Likewise.
56222         * lib/fseeko.c (rpl_fseeko): Likewise.
56223         * lib/fseterr.c (fseterr): Likewise.
56224         * lib/fwritable.c (fwritable): Likewise.
56225         * lib/fwriting.c (fwriting): Likewise.
56226         Reported by Alain Guibert <alguibert+bts@free.fr>.
56227
56228 2008-04-15  Bruno Haible  <bruno@clisp.org>
56229
56230         * modules/mathl (configure.ac): Define module indicator.
56231
56232 2008-04-15  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/logl.c (logl): Remove unused variables.
56235
56236 2008-04-15  Bruno Haible  <bruno@clisp.org>
56237
56238         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56239         fails.
56240
56241 2008-04-15  Bruno Haible  <bruno@clisp.org>
56242
56243         * lib/trim.c (trim2): Fix argument of isspace() macro.
56244
56245 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56246
56247         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56248         to 0.
56249         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56250
56251 2008-04-14  Bruno Haible  <bruno@clisp.org>
56252
56253         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56254         AC_LANG_PROGRAM argument.
56255         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56256         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56257         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56258         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56259         * m4/math_h.m4 (gl_MATH_H): Likewise.
56260         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56262         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56263         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56264         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56265         * m4/regex.m4 (gl_REGEX): Likewise.
56266         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56267         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56268         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56269         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56270         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56271         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56273         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56274
56275 2008-04-14  Jim Meyering  <meyering@redhat.com>
56276
56277         test-strtod: fix typos: s/abs/fabs/
56278         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56279
56280 2008-04-13  Bruno Haible  <bruno@clisp.org>
56281
56282         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56283         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56284         module is also used and while not building the reloc-wrapper.
56285
56286 2008-04-13  Bruno Haible  <bruno@clisp.org>
56287
56288         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56289
56290 2008-04-13  Bruno Haible  <bruno@clisp.org>
56291
56292         Fix AIX compilation failure introduced on 2008-04-02.
56293         * tests/test-frexp.c (exp): Undefine before redefining.
56294         * tests/test-frexpl.c (exp): Likewise.
56295
56296 2008-04-13  Bruno Haible  <bruno@clisp.org>
56297
56298         Work around a HP-UX stdio bug.
56299         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56300         * tests/test-ftello.c (main): Likewise.
56301         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56302         * doc/posix-functions/ftello.texi: Likewise.
56303
56304 2008-04-13  Bruno Haible  <bruno@clisp.org>
56305
56306         Make test-signbit pass on HP-UX/hppa.
56307         * tests/test-signbit.c (minus_zerol): New variable.
56308         (test_signbitl): Use it.
56309
56310 2008-04-13  Bruno Haible  <bruno@clisp.org>
56311
56312         Make truncl work on OSF/1 4.0.
56313         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56314         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56315         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56317         HAVE_DECL_TRUNCL.
56318         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56319         HAVE_DECL_TRUNCL.
56320         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56321
56322 2008-04-13  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56325
56326 2008-04-13  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56329         expression, so as to avoid HP-UX 11 cc compiler bug.
56330
56331 2008-04-13  Bruno Haible  <bruno@clisp.org>
56332
56333         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56334
56335 2008-04-13  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/git-merge-changelog.c: Remove empty declaration outside of
56338         functions.
56339
56340 2008-04-13  Bruno Haible  <bruno@clisp.org>
56341
56342         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56343
56344 2008-04-13  Bruno Haible  <bruno@clisp.org>
56345
56346         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56347         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56348         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56349         also if it exists but lacks definitions of the SHUT_* macros.
56350         * modules/sys_socket (Description): Update.
56351         Reported by Elbert Pol <e.pol@chello.nl>.
56352
56353 2008-04-13  Bruno Haible  <bruno@clisp.org>
56354
56355         * lib/localcharset.c (OS2): Don't redefine if already defined.
56356         Reported by Elbert Pol <e.pol@chello.nl>.
56357
56358 2008-04-13  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/binary-io.h [__EMX__]: Include <io.h>.
56361         Reported by Elbert Pol <e.pol@chello.nl>.
56362
56363 2008-04-12  Bruno Haible  <bruno@clisp.org>
56364
56365         * lib/fpucw.h: Enable the definitions also for x86_64.
56366         Needed for NetBSD/x86_64.
56367         Reported by Thomas Klausner <tk@giga.or.at>.
56368
56369 2008-04-12  Bruno Haible  <bruno@clisp.org>
56370
56371         * tests/test-strtod.c: Include isnand.h.
56372         (main): Use isnand instead of isnan.
56373         Reported by Jim Meyering.
56374
56375 2008-04-12  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56378         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56379
56380 2008-04-12  Jim Meyering  <meyering@redhat.com>
56381
56382         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56383
56384 2008-04-12  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56387         Reported by Elbert Pol <e.pol@chello.nl>.
56388
56389 2008-04-12  Eric Blake  <ebb9@byu.net>
56390
56391         Work around Solaris 10 math.h bug.
56392         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56393         (gl_MATH_H_DEFAULTS): Set up default.
56394         * modules/math (Makefile.am): Replace new indicators.
56395         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56396         * tests/test-math.c (main): Test this.
56397         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56398         * doc/posix-headers/math.texi (math.h): Mention bug.
56399         Reported by Nelson H. F. Beebe and Jim Meyering.
56400
56401 2008-04-11  Bruno Haible  <bruno@clisp.org>
56402
56403         Adapt to future versions of Apple GCC.
56404         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56405         Reported by Peter O'Gorman <peter@pogma.com>.
56406
56407 2008-04-11  Bruno Haible  <bruno@clisp.org>
56408
56409         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56410
56411 2008-04-11  Bruno Haible  <bruno@clisp.org>
56412
56413         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56414
56415         * modules/getaddrinfo-tests (Makefile.am): Define
56416         test_getaddrinfo_LDADD.
56417
56418 2008-04-11  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56421         (init): Fix syntax error.
56422         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56423         is declared.
56424
56425 2008-04-11  Bruno Haible  <bruno@clisp.org>
56426
56427         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56428         * modules/glob (Depends-on): Add stdbool.
56429
56430 2008-04-11  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/trim.c: Include <string.h>.
56433
56434 2008-04-11  Eric Blake  <ebb9@byu.net>
56435
56436         Avoid compile failure on OS/2.
56437         * lib/regex_internal.h (internal_function): Disable optimization
56438         on OS/2 (__EMX__), where it caused compiler error.
56439         Reported by Elbert Pol.
56440
56441 2008-04-11  Bruno Haible  <bruno@clisp.org>
56442
56443         Flush the standard error stream before aborting. Needed on mingw.
56444         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56445         * tests/test-array_list.c (ASSERT): Likewise.
56446         * tests/test-array_oset.c (ASSERT): Likewise.
56447         * tests/test-avltree_list.c (ASSERT): Likewise.
56448         * tests/test-avltree_oset.c (ASSERT): Likewise.
56449         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56450         * tests/test-binary-io.c (ASSERT): Likewise.
56451         * tests/test-byteswap.c (ASSERT): Likewise.
56452         * tests/test-c-ctype.c (ASSERT): Likewise.
56453         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56454         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56455         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56456         * tests/test-c-strstr.c (ASSERT): Likewise.
56457         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56458         * tests/test-canonicalize.c (ASSERT): Likewise.
56459         * tests/test-carray_list.c (ASSERT): Likewise.
56460         * tests/test-ceilf1.c (ASSERT): Likewise.
56461         * tests/test-ceilf2.c (ASSERT): Likewise.
56462         * tests/test-ceill.c (ASSERT): Likewise.
56463         * tests/test-count-one-bits.c (ASSERT): Likewise.
56464         * tests/test-fbufmode.c (ASSERT): Likewise.
56465         * tests/test-fflush2.c (ASSERT): Likewise.
56466         * tests/test-floorf1.c (ASSERT): Likewise.
56467         * tests/test-floorf2.c (ASSERT): Likewise.
56468         * tests/test-floorl.c (ASSERT): Likewise.
56469         * tests/test-fopen.c (ASSERT): Likewise.
56470         * tests/test-fpending.c (ASSERT): Likewise.
56471         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56472         * tests/test-fpurge.c (ASSERT): Likewise.
56473         * tests/test-freadable.c (ASSERT): Likewise.
56474         * tests/test-freadahead.c (ASSERT): Likewise.
56475         * tests/test-freading.c (ASSERT): Likewise.
56476         * tests/test-freadptr.c (ASSERT): Likewise.
56477         * tests/test-freadptr2.c (ASSERT): Likewise.
56478         * tests/test-freadseek.c (ASSERT): Likewise.
56479         * tests/test-freopen.c (ASSERT): Likewise.
56480         * tests/test-frexp.c (ASSERT): Likewise.
56481         * tests/test-frexpl.c (ASSERT): Likewise.
56482         * tests/test-fseek.c (ASSERT): Likewise.
56483         * tests/test-fseeko.c (ASSERT): Likewise.
56484         * tests/test-fstrcmp.c (ASSERT): Likewise.
56485         * tests/test-ftell.c (ASSERT): Likewise.
56486         * tests/test-ftello.c (ASSERT): Likewise.
56487         * tests/test-func.c (ASSERT): Likewise.
56488         * tests/test-fwritable.c (ASSERT): Likewise.
56489         * tests/test-fwriting.c (ASSERT): Likewise.
56490         * tests/test-getdelim.c (ASSERT): Likewise.
56491         * tests/test-getline.c (ASSERT): Likewise.
56492         * tests/test-i-ring.c (ASSERT): Likewise.
56493         * tests/test-iconv-utf.c (ASSERT): Likewise.
56494         * tests/test-iconv.c (ASSERT): Likewise.
56495         * tests/test-isfinite.c (ASSERT): Likewise.
56496         * tests/test-isnand.c (ASSERT): Likewise.
56497         * tests/test-isnanf.c (ASSERT): Likewise.
56498         * tests/test-isnanl.h (ASSERT): Likewise.
56499         * tests/test-ldexpl.c (ASSERT): Likewise.
56500         * tests/test-linked_list.c (ASSERT): Likewise.
56501         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56502         * tests/test-localename.c (ASSERT): Likewise.
56503         * tests/test-lseek.c (ASSERT): Likewise.
56504         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56505         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56506         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56507         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56508         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56509         * tests/test-mbschr.c (ASSERT): Likewise.
56510         * tests/test-mbscspn.c (ASSERT): Likewise.
56511         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56512         * tests/test-mbspbrk.c (ASSERT): Likewise.
56513         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56514         * tests/test-mbsrchr.c (ASSERT): Likewise.
56515         * tests/test-mbsspn.c (ASSERT): Likewise.
56516         * tests/test-mbsstr1.c (ASSERT): Likewise.
56517         * tests/test-mbsstr2.c (ASSERT): Likewise.
56518         * tests/test-mbsstr3.c (ASSERT): Likewise.
56519         * tests/test-memchr2.c (ASSERT): Likewise.
56520         * tests/test-memmem.c (ASSERT): Likewise.
56521         * tests/test-open.c (ASSERT): Likewise.
56522         * tests/test-printf-frexp.c (ASSERT): Likewise.
56523         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56524         * tests/test-printf-posix.c (ASSERT): Likewise.
56525         * tests/test-quotearg.c (ASSERT): Likewise.
56526         * tests/test-rbtree_list.c (ASSERT): Likewise.
56527         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56528         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56529         * tests/test-round1.c (ASSERT): Likewise.
56530         * tests/test-roundf1.c (ASSERT): Likewise.
56531         * tests/test-roundl.c (ASSERT): Likewise.
56532         * tests/test-signbit.c (ASSERT): Likewise.
56533         * tests/test-sleep.c (ASSERT): Likewise.
56534         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56535         * tests/test-snprintf.c (ASSERT): Likewise.
56536         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56537         * tests/test-stat-time.c (ASSERT): Likewise.
56538         * tests/test-strcasestr.c (ASSERT): Likewise.
56539         * tests/test-strerror.c (ASSERT): Likewise.
56540         * tests/test-striconv.c (ASSERT): Likewise.
56541         * tests/test-striconveh.c (ASSERT): Likewise.
56542         * tests/test-striconveha.c (ASSERT): Likewise.
56543         * tests/test-strsignal.c (ASSERT): Likewise.
56544         * tests/test-strstr.c (ASSERT): Likewise.
56545         * tests/test-strtod.c (ASSERT): Likewise.
56546         * tests/test-trunc1.c (ASSERT): Likewise.
56547         * tests/test-trunc2.c (ASSERT): Likewise.
56548         * tests/test-truncf1.c (ASSERT): Likewise.
56549         * tests/test-truncf2.c (ASSERT): Likewise.
56550         * tests/test-truncl.c (ASSERT): Likewise.
56551         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56552         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56553         * tests/test-vasnprintf.c (ASSERT): Likewise.
56554         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56555         * tests/test-vasprintf.c (ASSERT): Likewise.
56556         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56557         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56558         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56559         * tests/test-vsnprintf.c (ASSERT): Likewise.
56560         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56561         * tests/test-wcwidth.c (ASSERT): Likewise.
56562         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56563         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56564         * tests/test-xvasprintf.c (ASSERT): Likewise.
56565         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56566         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56567         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56568         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56569         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56570         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56571         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56572         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56573         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56574         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56575         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56576         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56577         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56578         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56579         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56580         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56581         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56582         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56583         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56584         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56585         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56586         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56587         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56588         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56589         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56590         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56591         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56592         * tests/unictype/test-combining.c (ASSERT): Likewise.
56593         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56594         * tests/unictype/test-digit.c (ASSERT): Likewise.
56595         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56596         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56597         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56598         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56599         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56600         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56601         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56602         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56603         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56604         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56605         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56606         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56607         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56608         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56609         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56610         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56611         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56612         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56613         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56614         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56615         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56616         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56617         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56618         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56619         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56620         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56621         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56622         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56623         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56624         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56625         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56626         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56627         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56628         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56629         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56630         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56631         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56632         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56633         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56634         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56635         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56636         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56637         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56638         Reported by Eric Blake.
56639
56640 2008-04-11  Bruno Haible  <bruno@clisp.org>
56641
56642         * lib/wchar.in.h: Tweak comment.
56643
56644 2008-04-11  Bruno Haible  <bruno@clisp.org>
56645
56646         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56647         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56648         gl_COMMON.
56649         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56650
56651 2008-04-11  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56654
56655 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56656
56657         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56658         of attempting to use non-existing /dev/*random.  Based on patch
56659         from Adam Strzelecki <ono@java.pl> in
56660         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56661
56662 2008-04-08  Bruno Haible  <bruno@clisp.org>
56663
56664         Add tentative support for emx+gcc.
56665         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56666         * lib/fpurge.c (fpurge): Likewise.
56667         * lib/freadable.c (freadable): Likewise.
56668         * lib/freadahead.c (freadahead): Likewise.
56669         * lib/freading.c (freading): Likewise.
56670         * lib/freadptr.c (freadptr): Likewise.
56671         * lib/freadseek.c (freadptrinc): Likewise.
56672         * lib/fseeko.c (rpl_fseeko): Likewise.
56673         * lib/fseterr.c (fseterr): Likewise.
56674         * lib/fwritable.c (fwritable): Likewise.
56675         * lib/fwriting.c (fwriting): Likewise.
56676         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56677
56678 2008-04-09  Eric Blake  <ebb9@byu.net>
56679
56680         Avoid some autoconf warnings.
56681         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56682         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56683         * m4/afs.m4 (gl_AFS): Likewise.
56684         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56685         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56686         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56687         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56688         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56689         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56690         (AC_CHECK_DECLS_ONCE): Likewise.
56691         Rename file...
56692         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56693         gnulib-tool requires autoconf 2.59 or better.
56694         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56695
56696 2008-04-08  Eric Blake  <ebb9@byu.net>
56697
56698         Use 'git describe --match' if present (added in git 1.5.5).
56699         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56700         if possible.
56701
56702 2008-04-08  Bruno Haible  <bruno@clisp.org>
56703
56704         Add tentative support for OpenServer.
56705         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56706         _ptr, _cnt.
56707         * lib/fpurge.c (fpurge): Likewise.
56708         * lib/freadable.c (freadable): Likewise.
56709         * lib/freadahead.c (freadahead): Likewise.
56710         * lib/freading.c (freading): Likewise.
56711         * lib/freadptr.c (freadptr): Likewise.
56712         * lib/freadseek.c (freadptrinc): Likewise.
56713         * lib/fseeko.c (rpl_fseeko): Likewise.
56714         * lib/fseterr.c (fseterr): Likewise.
56715         * lib/fwritable.c (fwritable): Likewise.
56716         * lib/fwriting.c (fwriting): Likewise.
56717         Reported by Roger Cornelius <rac@tenzing.org> and
56718         Brian K. White <brian@aljex.com>.
56719
56720 2008-04-06  Jim Meyering  <meyering@redhat.com>
56721
56722         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56723
56724 2008-04-06  Bruno Haible  <bruno@clisp.org>
56725
56726         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56727         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56728         * tests/test-printf-posix.sh: Likewise.
56729         * tests/test-vfprintf-posix.sh: Likewise.
56730         * tests/test-vprintf-posix.sh: Likewise.
56731         * tests/test-xprintf-posix.sh: Likewise.
56732
56733 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56734
56735         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56736         hide error from 'ls', needed on OS/2.
56737         Report by Elbert Pol <elbert.pol@gmail.com>.
56738
56739 2008-04-04  Eric Blake  <ebb9@byu.net>
56740
56741         Make test-fseeko.c failures meaningful.
56742         * tests/test-fseeko.c: Print line number on failure.
56743         * tests/test-fseek.c: Likewise.
56744         Reported by Nelson H. F. Beebe.
56745
56746         Improve strtod bug detection check.
56747         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56748         required for Solaris 10.
56749         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56750
56751 2008-04-04  Bruno Haible  <bruno@clisp.org>
56752
56753         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56754         by m4/setenv.m4.
56755
56756 2008-04-03  Eric Blake  <ebb9@byu.net>
56757
56758         Ensure sane .version contents.
56759         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56760         version string.
56761         * build-aux/git-version-gen: Improve documentation.
56762
56763         Make GNU make output nicer.
56764         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56765         MAKECMDGOALS to enforce message for all command line targets.  Set
56766         srcdir for use in maint.mk.
56767
56768         Another maintainer tweak.
56769         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56770         a target that regenerates version.
56771
56772 2008-04-03  Jim Meyering  <meyering@redhat.com>
56773
56774         vc-list-files: don't cause coreutils "make po-check" failure
56775         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56776
56777 2008-04-03  Eric Blake  <ebb9@byu.net>
56778
56779         Allow VPATH usage of vc-list-files.
56780         * build-aux/vc-list-files (scriptversion): Add timestamp.
56781         (options): Add --help, --version, -C.
56782         (CVS): Support installed cvsu.
56783
56784 2008-04-02  Bruno Haible  <bruno@clisp.org>
56785
56786         Avoid some "statement with no effect" warnings from gcc.
56787         * tests/test-wctype.c (main): Explicitly ignore unused values.
56788         Reported by Jim Meyering.
56789
56790 2008-04-02  Jim Meyering  <meyering@redhat.com>
56791
56792         Avoid some warnings from "gcc -Wshadow".
56793         * tests/test-frexp.c (exp): Define to a different identifier.
56794         * tests/test-frexpl.c (exp): Likewise.
56795
56796 2008-04-03  Jim Meyering  <meyering@redhat.com>
56797
56798         bootstrap: remove dangling *.[ch] symlinks from lib
56799         * build-aux/bootstrap [dangling symlink removal]: Move find's
56800         -depth option to precede all others, to avoid a warning.
56801         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56802
56803 2008-04-02  Bruno Haible  <bruno@clisp.org>
56804
56805         Avoid some warnings from "gcc -Wshadow".
56806         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56807         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56808         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56809         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56810         Reported by Jim Meyering.
56811
56812 2008-04-01  Bruno Haible  <bruno@clisp.org>
56813
56814         Fix test to work on IRIX 6.5 with cc.
56815         * tests/test-math.c (numeric_equal): New function.
56816         (main): Use it.
56817
56818 2008-04-01  Bruno Haible  <bruno@clisp.org>
56819
56820         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56821
56822 2008-04-01  Bruno Haible  <bruno@clisp.org>
56823
56824         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56825         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56826         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56827         (Depends-on): Remove math.
56828
56829         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56830         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56831         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56832         (Depends-on): Remove math.
56833
56834         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56835         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56836         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56837         (Depends-on): Remove math.
56838         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56839         (Depends-on): Remove math.
56840
56841         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56842         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56843         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56844         (Depends-on): Remove math.
56845         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56846         (Depends-on): Remove math.
56847
56848         * tests/test-round1.c: Include nan.h.
56849         (main): Use NaNd instead of NAN.
56850         * modules/round-tests (Files): Add tests/nan.h.
56851
56852         * tests/test-trunc1.c: Include nan.h.
56853         (main): Use NaNd instead of NAN.
56854         * modules/trunc-tests (Files): Add tests/nan.h.
56855
56856         * tests/test-roundf1.c: Include nan.h.
56857         (main): Use NaNf instead of NAN.
56858         * modules/roundf-tests (Files): Add tests/nan.h.
56859
56860         * tests/test-truncf1.c: Include nan.h.
56861         (main): Use NaNf instead of NAN.
56862         * modules/truncf-tests (Files): Add tests/nan.h.
56863
56864         * tests/test-ceilf1.c: Include nan.h.
56865         (main): Use NaNf instead of NAN.
56866         * modules/ceilf-tests (Files): Add tests/nan.h.
56867
56868         * tests/test-floorf1.c: Include nan.h.
56869         (main): Use NaNf instead of NAN.
56870         * modules/floorf-tests (Files): Add tests/nan.h.
56871
56872         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56873         (main): Use NaNf instead of NAN.
56874         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56875
56876         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56877         (main): Use NaNd instead of NAN.
56878         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56879
56880         * tests/test-frexp.c: Include nan.h.
56881         (main): Use NaNd instead of NAN.
56882         * modules/frexp-tests (Files): Add tests/nan.h.
56883
56884         * lib/isnan.c: Don't include <math.h>.
56885         (FUNC): Don't use NAN macro.
56886         * modules/isnand-nolibm (Depends-on): Remove math.
56887         * modules/isnanf-nolibm (Depends-on): Remove math.
56888         * modules/isnanl (Depends-on): Remove math.
56889         * modules/isnanl-nolibm (Depends-on): Remove math.
56890
56891         * tests/nan.h: New file.
56892
56893 2008-04-01  Eric Blake  <ebb9@byu.net>
56894
56895         Fix typos.
56896         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56897         values to be the right type.
56898
56899         For now, cater to gnulib strtod inaccuracies.
56900         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56901         fractional results.  While not as nice from a QoI perspective, it
56902         is a quicker patch than correctly implementing decimal to binary
56903         rounding.
56904
56905 2008-03-31  Eric Blake  <ebb9@byu.net>
56906
56907         Guarantee a definition of NAN.
56908         * lib/math.in.h (NAN): Define if missing.
56909         * tests/test-math.c (main): Test it.
56910         * doc/posix-headers/math.texi (math.h): Document this.
56911         * lib/isnan.c (rpl_isnand): Use it.
56912         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56913         * tests/test-floorf1.c (NaN): Likewise.
56914         * tests/test-frexp.c (NaN): Likewise.
56915         * tests/test-isnand.c (NaN): Likewise.
56916         * tests/test-isnanf.c (NaN): Likewise.
56917         * tests/test-round1.c (NaN): Likewise.
56918         * tests/test-roundf1.c (NaN): Likewise.
56919         * tests/test-snprintf-posix.h (NaN): Likewise.
56920         * tests/test-sprintf-posix.h (NaN): Likewise.
56921         * tests/test-trunc1.c (NaN): Likewise.
56922         * tests/test-truncf1.c (NaN): Likewise.
56923         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56924         * tests/test-vasprintf-posix.c (NaN): Likewise.
56925         * modules/isnand-nolibm (Depends-on): Add math.
56926         * modules/isnanf-nolibm (Depends-on): Likewise.
56927         * modules/isnanl (Depends-on): Likewise.
56928         * modules/isnanl-nolibm (Depends-on): Likewise.
56929         * modules/snprintf-posix-tests (Depends-on): Likewise.
56930         * modules/sprintf-posix-tests (Depends-on): Likewise.
56931         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56932         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56933         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56934         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56935
56936 2008-03-31  Bruno Haible  <bruno@clisp.org>
56937
56938         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56939         * doc/posix-functions/strtod.texi: Likewise.
56940
56941 2008-03-31  Bruno Haible  <bruno@clisp.org>
56942
56943         * tests/test-strtod.c (main): Don't use C99 syntax.
56944
56945 2008-03-31  Bruno Haible  <bruno@clisp.org>
56946
56947         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56948         Reported by Eric Blake.
56949
56950 2008-03-31  Jim Meyering  <meyering@redhat.com>
56951
56952         Don't compare actual signbit return values.
56953         * tests/test-strtod.c (main): Rather, compare only their
56954         zero/non-zero nature.
56955
56956 2008-03-31  Eric Blake  <ebb9@byu.net>
56957
56958         More strtod documentation.
56959         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56960         failures as distinct bugs.
56961
56962 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56963
56964         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56965         Problem reported by Erik Benada in
56966         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56967
56968 2008-03-30  Bruno Haible  <bruno@clisp.org>
56969
56970         * tests/test-strtod.c: Add comments about which assertion fails on which
56971         platform.
56972         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56973
56974 2008-03-30  Eric Blake  <ebb9@byu.net>
56975
56976         Test signbit behavior on zeros.
56977         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56978         (test_signbitd, test_signbitl): Likewise.
56979
56980         More strtod touchups.
56981         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56982         sign of negative underflow, for now.  Use .5, not .1.
56983         * doc/posix-functions/strtod.texi (strtod): Mention these
56984         limitations.
56985         Reported by Jim Meyering.
56986
56987 2008-03-30  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56990         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56991
56992 2008-03-30  Bruno Haible  <bruno@clisp.org>
56993
56994         Avoid failure when attempting to return empty iconv results on some
56995         platforms.
56996         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56997         allocation, don't report ENOMEM when the resulting string is empty.
56998
56999 2008-03-30  Bruno Haible  <bruno@clisp.org>
57000
57001         Fix buffer overrun.
57002         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57003         Don't consider the width for tmp_length. Check count against tmp_length
57004         before doing the padding. Ensure enough allocation during padding.
57005
57006 2008-03-30  Eric Blake  <ebb9@byu.net>
57007
57008         strtod touchups.
57009         * lib/strtod.c (strtod): Avoid compiler warnings.
57010         Reported by Jim Meyering.
57011
57012 2008-03-30  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57015         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57016         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57017         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57018         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57019         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57020         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57021         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57022
57023         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57024         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57025         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57026         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57027         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57028         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57029         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57030         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57031
57032         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57033         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57034         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57035         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57036         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57037         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57038         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57039         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57040
57041         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57042         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57043
57044         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57045         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57046
57047         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57048         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57049
57050         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57052         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57053
57054         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57056         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57057
57058         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57059         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57060         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57061
57062         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57064         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57065
57066         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57067         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57069         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57070         (Depends-on): Add EOVERFLOW.
57071         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57072         (Depends-on): Add EOVERFLOW.
57073         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57074         (Depends-on): Add EOVERFLOW.
57075         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57076         (Depends-on): Add EOVERFLOW.
57077         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57078         (Depends-on): Add EOVERFLOW.
57079         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57080         (Depends-on): Add EOVERFLOW.
57081         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57082         (Depends-on): Add EOVERFLOW.
57083         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57084         (Depends-on): Add EOVERFLOW.
57085
57086         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57087         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57088         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57089
57090         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57091         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57092         * modules/snprintf (Depends-on): Add EOVERFLOW.
57093
57094         * lib/poll.c (EOVERFLOW): Remove fallback.
57095         * modules/poll (Depends-on): Add EOVERFLOW.
57096
57097         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57098         * modules/getugroups (Depends-on): Add EOVERFLOW.
57099
57100         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57101         * modules/getdelim (Depends-on): Add EOVERFLOW.
57102
57103         * lib/ftell.c (EOVERFLOW): Remove fallback.
57104         * modules/ftell (Depends-on): Add EOVERFLOW.
57105
57106         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57107         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57108         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57109
57110         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57111
57112         * modules/EOVERFLOW-tests: New file.
57113         * tests/test-EOVERFLOW.c: New file.
57114
57115         * modules/EOVERFLOW: New file.
57116         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57117
57118 2008-03-30  Bruno Haible  <bruno@clisp.org>
57119
57120         Fix bug introduced on 2007-06-10.
57121         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57122         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57123
57124 2008-03-30  Bruno Haible  <bruno@clisp.org>
57125
57126         Improve freadseek's efficiency after ungetc.
57127         * lib/freadseek.c: Include freadahead.h.
57128         (freadptrinc): New function, extracted from freadseek.
57129         (freadseek): Use it in a loop. Use freadahead to determine the number
57130         of loop iterations.
57131         * modules/freadseek (Depends-on): Add freadahead.
57132         (configure.ac): Require AC_C_INLINE.
57133
57134 2008-03-30  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/freadseek.c (freadseek): Don't ignore the return value of
57137         freadptr.
57138
57139 2008-03-29  Eric Blake  <ebb9@byu.net>
57140
57141         Add hex float support.
57142         * modules/strtod (Depends-on): Add c-ctype.
57143         (Link): Mention POW_LIB.
57144         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57145         whitespace between 'e' and exponent.
57146         * tests/test-strtod.c (main): Enable hex float tests.
57147         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57148         now provides.
57149
57150         Document various strtod bugs, with some fixes.
57151         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57152         "-0x", "inf", "nan", and hex constants.
57153         * doc/posix-functions/atof.texi (atof): Likewise.
57154         * modules/stdlib (Makefile.am): Support strtod.
57155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57156         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57157         detect additional strtod bugs.
57158         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57159         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57160         bool where appropriate.  Parse 'inf' and 'nan'.
57161         * tests/test-strtod.c: New file.
57162         * modules/strtod (Depends-on): Add stdbool, stdlib.
57163         (configure.ac): Turn on module indicator.
57164         * modules/strtod-tests: New module.
57165
57166 2008-03-29  Eric Blake  <ebb9@byu.net>
57167
57168         Fix ftell on mingw.
57169         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57170         * modules/ftell-tests (Depends-on): Add binary-io.
57171         * modules/ftello-tests (Depends-on): Likewise.
57172         * tests/test-ftell.c (main): Enhance test to cover behavior after
57173         ungetc.  Enforce binary mode.
57174         * tests/test-ftello.c (main): Likewise.
57175
57176         Pass test-freadseek on cygwin.
57177         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57178         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57179         ungetc buffer.
57180
57181         * tests/test-fflush2.c (main): Fix typo.
57182
57183 2008-03-29  Bruno Haible  <bruno@clisp.org>
57184
57185         * tests/test-fflush2.c (main): Temporarily disable the contents of
57186         this test.
57187         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57188         Reported by Eric Blake.
57189
57190 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57191
57192         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57193         (GC_SHA224_DIGEST_SIZE): Add.
57194
57195         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57196         (gc_hash_digest_length): Likewise.
57197         (gc_hash_buffer): Likewise.
57198
57199 2008-03-25  Bruno Haible  <bruno@clisp.org>
57200
57201         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57202         detail which gettext release to use.
57203         Reported by Simon Josefsson.
57204
57205 2008-03-26  Jim Meyering  <meyering@redhat.com>
57206
57207         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57208         * modules/gnumakefile (clean-GNUmakefile): Also, use
57209         test ... && ... || : syntax rather than if-then ... fi.
57210
57211         gnumakefile: Don't double-quote-expand $(VPATH) value.
57212         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57213
57214 2008-03-24  Eric Blake  <ebb9@byu.net>
57215
57216         Alter GNUmakefile to install into top directory.
57217         * modules/maintainer-makefile: Split, and add dependency...
57218         * modules/gnumakefile: to this new module.
57219         * build-aux/GNUmakefile: Move...
57220         * top/GNUmakefile: ...here.
57221         * build-aux/maint.mk: Move...
57222         * top/maint.mk: ...here.
57223         * MODULES.html.sh (Support for maintaining...): Document new
57224         module.
57225
57226 2008-03-23  Bruno Haible  <bruno@clisp.org>
57227
57228         * gnulib-tool: New options --vc-files, --no-vc-files.
57229         (func_usage): Document them.
57230         (vc_files): New variable.
57231         (func_import): Consider vc_files.
57232         (func_create_testdir): Set vc_files to empty.
57233         Suggested by Jim Meyering and Karl Berry.
57234
57235 2008-03-23  Bruno Haible  <bruno@clisp.org>
57236
57237         Fix regex compilation error on HP-UX 11.
57238         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57239         * modules/regex (Files): Add m4/mbstate_t.m4.
57240         Reported by Ton Voon <ton.voon@altinity.com>.
57241
57242 2008-03-23  Bruno Haible  <bruno@clisp.org>
57243
57244         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57245
57246 2008-03-23  Eric Blake  <ebb9@byu.net>
57247             Bruno Haible  <bruno@clisp.org>
57248
57249         Install files from top/ in the destination directory.
57250         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57251         augmentation also for the files from top/.
57252         (func_import, func_create_testdir): Rewrite file names:
57253         top/filename -> filename.
57254
57255 2008-03-23  Bruno Haible  <bruno@clisp.org>
57256
57257         Tweak "gnulib --version" output.
57258         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57259
57260 2008-03-23  Bruno Haible  <bruno@clisp.org>
57261
57262         Tweak "gnulib --version" output.
57263         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57264         rather than contents of ChangeLog, when possible.
57265
57266 2008-03-21  Eric Blake  <ebb9@byu.net>
57267
57268         More --version tweaks.
57269         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57270         date of last ChangeLog entry.
57271
57272 2008-03-21  Jim Meyering  <meyering@redhat.com>
57273
57274         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57275
57276 2008-03-20  Eric Blake  <ebb9@byu.net>
57277
57278         VPATH fix.
57279         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57280
57281 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57282
57283         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57284         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57285
57286 2008-03-20  Eric Blake  <ebb9@byu.net>
57287
57288         Sync GNUmakefile with coreutils.
57289         * build-aux/GNUmakefile (have-Makefile): Rename...
57290         (_have-Makefile): ...to this, for namespace consideration.
57291         (GNUmakefile.cfg): Include, if present.
57292         (_autoreconf): Define a default.
57293         (_is-dist-target): New rule for rebuilds to pick up intra-release
57294         version.
57295         (maint-cfg.mk): Rename...
57296         (cfg.mk): ...to this.
57297
57298 2008-03-18  Jim Meyering  <meyering@redhat.com>
57299
57300         New script and module: mktempd
57301         * MODULES.html.sh (maint+release support): Add mktempd.
57302         * build-aux/mktempd: New file.
57303         * modules/mktempd: New file.
57304
57305 2008-03-15  Jim Meyering  <meyering@redhat.com>
57306
57307         Undo last change.
57308         * lib/sha1.c, lib/md5.c: 63 != ~63.
57309         Reported by Andreas Schwab.
57310
57311         sha1.c, md5.c: Hoist a redundant expression.
57312         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57313         "ctx->buflen" only once, before calling *_process_block.
57314         * lib/md5.c (md5_process_bytes): Likewise.
57315
57316 2008-03-14  Eric Blake  <ebb9@byu.net>
57317
57318         Bump copyright year in files generated by gnulib-tool.
57319         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57320         gnulib-tool, rather than hard-coding it.
57321
57322         Fix 'gnulib-tool --version' output to work with git.
57323         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57324         (startup): ...here.
57325         (func_version): Use it to invoke git-version-gen, rather than
57326         relying on CVS keyword expansion.  Modernize wording.
57327         (cvsdatestamp, last_checkin_date, version): Kill unused
57328         variables.
57329
57330 2008-03-12  Jim Meyering  <meyering@redhat.com>
57331
57332         Recognize optional cast of the argument to free.
57333         * build-aux/useless-if-before-free: Update regexps.
57334
57335         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57336
57337 2008-03-11  Bruno Haible  <bruno@clisp.org>
57338
57339         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57340         by a single package.
57341         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57342         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57343         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57344         Reported by Sam Steingold <sds@gnu.org>.
57345
57346 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57347
57348         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57349         repositories.
57350
57351 2008-03-11  Bruno Haible  <bruno@clisp.org>
57352
57353         Avoid conflicts between local macro definitions.
57354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57355         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57356
57357 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57358             Bruno Haible  <bruno@clisp.org>
57359
57360         Make va_copy work with some version of xlc on AIX 5.1.
57361         * lib/stdarg.in.h: New file.
57362         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57363         On AIX, use a <stdarg.h> file substitute.
57364         * modules/stdarg (Files): Add lib/stdarg.in.h.
57365         (Depends-on): Add include_next.
57366         (Makefile.am): Build a stdarg.h substitute if requested.
57367         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57368
57369 2008-03-10  Bruno Haible  <bruno@clisp.org>
57370
57371         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57373         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57374
57375 2008-03-10  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/stdlib (Depends-on): Add include_next, remove
57378         absolute-header.
57379
57380 2008-03-09  Bruno Haible  <bruno@clisp.org>
57381
57382         * lib/freadahead.h (freadahead): Document more precisely.
57383         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57384         the sum of both buffer sizes.
57385         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57386         * NEWS: Document the change.
57387
57388 2008-03-09  Bruno Haible  <bruno@clisp.org>
57389
57390         Extend freadptr to return also the buffer size.
57391         * lib/freadptr.h (freadptr): Add sizep argument.
57392         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57393         (freadptr): Add sizep argument. Determine buffer size like freadahead
57394         does.
57395         * tests/test-freadptr.c: Don't include freadahead.h.
57396         (main): Adapt for new calling convention of freadptr.
57397         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57398         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57399         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57400         tests/test-freadptr2.sh.
57401         (Depends): Remove freadahead.
57402         (TESTS): Add test-freadptr2.sh.
57403         (check_PROGRAMS): Add test-freadptr2.
57404
57405 2008-03-09  Bruno Haible  <bruno@clisp.org>
57406
57407         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57408         Report and solution by Simon Josefsson.
57409
57410 2008-03-06  Bruno Haible  <bruno@clisp.org>
57411
57412         Make fflush after ungetc work on BSD platforms.
57413         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57414         * tests/test-fflush2.c: New file.
57415         * tests/test-fflush2.sh: New file.
57416         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57417         tests/test-fflush2.c.
57418         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57419         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57420
57421 2008-03-06  Eric Blake  <ebb9@byu.net>
57422
57423         Likewise for ftello.
57424         * modules/ftello (Dependencies): Add extensions.
57425         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57426
57427 2008-03-06  Bruno Haible  <bruno@clisp.org>
57428
57429         * modules/fseeko (Dependencies): Add extensions.
57430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57431         Needed on glibc systems.
57432
57433 2008-03-06  Bruno Haible  <bruno@clisp.org>
57434
57435         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57436         email address.
57437         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57438
57439 2008-03-06  Bruno Haible  <bruno@clisp.org>
57440
57441         * users.txt: Add libgnupdf.
57442
57443 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57444
57445         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57446         (Header File Substitutes, Function Substitutes,
57447         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57448         (Build robot for gnulib): Fix typo.
57449
57450 2008-03-06  Bruno Haible  <bruno@clisp.org>
57451
57452         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57453         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57454
57455 2008-03-06  Bruno Haible  <bruno@clisp.org>
57456
57457         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57458         * doc/gnulib.texi: Include it.
57459
57460 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57461
57462         * modules/func (License): Change license to unlimited; there was
57463         no LGPL parts in the module anyway.
57464
57465 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57466
57467         * modules/__func__: Renamed to modules/func.
57468         * modules/__func__-tests: Renamed to modules/func-tests.
57469         * tests/test-__func__.c: Renamed to tests/test-func.c.
57470         * m4/__func__.m4: Renamed to m4/func.m4.
57471         * doc/gnulib.texi (__func__): Section renamed to func.
57472         Suggested by Eric Blake <ebb9@byu.net>.
57473
57474 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57475
57476         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57477         about __func__.  Make example self-contained.  Suggested by Eric
57478         Blake <ebb9@byu.net>.
57479
57480         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57481         Suggested by Eric Blake <ebb9@byu.net>.
57482
57483 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57484
57485         * modules/__func__: New file.
57486         * modules/__func__-tests: New file.
57487         * tests/test-__func__.c: New file.
57488         * m4/__func__.m4: New file.
57489         * doc/gnulib.texi (__func__): Document __func__ module.
57490
57491 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57492
57493         * modules/byteswap (License): Re-license as LGPLv2+.
57494
57495 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57496
57497         * doc/Makefile: Add pdf target.
57498
57499 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57500
57501         * modules/inline (License): Use 'unlimited', since there are only
57502         *.m4 files in this module.
57503
57504 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57505             Bruno Haible  <bruno@clisp.org>
57506
57507         Add support for HP C 7.1 on OpenVMS 8.3.
57508         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57509
57510 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57511
57512         Update VMS specifics.
57513         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57514
57515 2008-03-02  Jim Meyering  <meyering@redhat.com>
57516
57517         Remove the last dependency on the "free" module.
57518         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57519         Reported by Bob Proulx.
57520
57521         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57522
57523         Remove useless "if" tests before free.  Deprecate "free" module.
57524         * doc/posix-functions/free.texi: Mention that this
57525         module is no longer useful.
57526         * modules/free (Notice): Say this module is obsolete.
57527         * modules/readutmp (Depends-on): Remove free.
57528         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57529         * lib/putenv.c (putenv): Likewise.
57530         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57531         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57532         * tests/test-c-strcasestr.c (main): Likewise.
57533         * tests/test-c-strstr.c (main): Likewise.
57534         * tests/test-mbscasestr1.c (main): Likewise.
57535         * tests/test-mbscasestr2.c (main): Likewise.
57536         * tests/test-mbsstr1.c (main): Likewise.
57537         * tests/test-mbsstr2.c (main): Likewise.
57538         * tests/test-memmem.c (main): Likewise.
57539         * tests/test-strcasestr.c (main): Likewise.
57540         * tests/test-striconv.c (main): Likewise.
57541         * tests/test-striconveh.c (main): Likewise.
57542         * tests/test-striconveha.c (main): Likewise.
57543         * tests/test-strstr.c (main): Likewise.
57544
57545         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57546
57547         bootstrap: sync from coreutils again
57548         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57549
57550 2008-03-01  Jim Meyering  <meyering@redhat.com>
57551
57552         bootstrap: sync from coreutils
57553         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57554         also when the target doesn't exist.
57555
57556 2008-03-01  Eric Blake  <ebb9@byu.net>
57557
57558         Fix bugs in last patch.
57559         * lib/memchr2.c (memchr2): Fix typo.
57560         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57561         extension.
57562         Reported by Bruce Korb.
57563
57564         New module 'memchr2'.
57565         * modules/memchr2: New file.
57566         * modules/memchr2-tests: Likewise.
57567         * lib/memchr2.h: Likewise.
57568         * lib/memchr2.c: Likewise, based on memchr.c.
57569         * tests/test-memchr2.c: New test.
57570         * MODULES.html.sh (String handling): Add memchr2.
57571
57572 2008-02-29  Bruno Haible  <bruno@clisp.org>
57573
57574         * modules/freadseek-tests: New file.
57575         * tests/test-freadseek.sh: New file.
57576         * tests/test-freadseek.c: New file.
57577
57578         New module 'freadseek'.
57579         * modules/freadseek: New file.
57580         * lib/freadseek.h: New file.
57581         * lib/freadseek.c: New file.
57582         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57583
57584 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57585
57586         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57587         wydawca.
57588
57589         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57590         program_invocation_name and program_invocation_short_name are
57591         present.
57592
57593 2008-02-28  Bruno Haible  <bruno@clisp.org>
57594
57595         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57596         * tests/test-freadptr.sh: Also test non-seekable stdin.
57597
57598 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57599
57600         * build-aux/bootstrap (source_base, m4_base)
57601         (doc_base, tests_base): New variables.
57602         (gnulib_tool_options): Do not hardcode base directories, use
57603         the above variables instead.
57604
57605 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57606
57607         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57608
57609 2008-02-28  Bruno Haible  <bruno@clisp.org>
57610
57611         * modules/freadptr-tests: New file.
57612         * tests/test-freadptr.sh: New file.
57613         * tests/test-freadptr.c: New file.
57614
57615         New module 'freadptr'.
57616         * modules/freadptr: New file.
57617         * lib/freadptr.h: New file.
57618         * lib/freadptr.c: New file.
57619         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57620
57621 2008-02-26  Karl Berry  <karl@freefriends.org>
57622
57623         Sync from Libtool:
57624         * libltdl/argz.c (argz_add, argz_count): New functions.
57625         * libltdl/argz.in.h: Declare them.
57626         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57627
57628 2008-02-22  Bruno Haible  <bruno@clisp.org>
57629
57630         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57631         is a pointer type.  Needed for HP-UX 10.
57632         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57633         * doc/posix-functions/gmtime_r.texi: Likewise.
57634         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57635
57636 2008-02-24  Bruno Haible  <bruno@clisp.org>
57637
57638         * modules/environ-tests: New file.
57639         * tests/test-environ.c: New file.
57640
57641         New module 'environ'.
57642         * modules/environ: New file.
57643         * lib/unistd.in.h (environ): New declaration.
57644         * m4/environ.m4: New file.
57645         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57646         after use.
57647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57648         HAVE_DECL_ENVIRON.
57649         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57650         HAVE_DECL_ENVIRON.
57651         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57652         wrong claim that 'environ' is missing on some systems.
57653         * modules/execute (Depends-on): Add environ.
57654         * lib/execute.c (environ): Remove fallback declaration.
57655         * modules/pipe (Depends-on): Add environ.
57656         * lib/pipe.c (environ): Remove fallback declaration.
57657         * modules/setenv (Depends-on): Add environ.
57658         * lib/setenv.c (environ): Remove fallback declaration.
57659         * modules/unsetenv (Depends-on): Add environ.
57660         * lib/unsetenv.c (environ): Remove fallback declaration.
57661         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57662         m4/environ.m4.
57663         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57664         (gl_PREREQ_UNSETENV): Likewise.
57665
57666 2008-02-24  Bruno Haible  <bruno@clisp.org>
57667
57668         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57669
57670 2008-02-20  Bob Proulx  <bob@proulx.com>
57671
57672         Enable use of older two part flavor 'git describe'.
57673         * build-aux/git-version-gen: If using the older two part flavor of
57674         git version then recreate the third part now present in the
57675         newer three part flavor of git describe.
57676
57677 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57678
57679         * lib/fts.c (fts_build): Typo correction to comment.
57680
57681 2008-02-17  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57684         generating no-op conflicts.
57685
57686 2008-02-17  Bruno Haible  <bruno@clisp.org>
57687
57688         Speed up by 10%.
57689         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57690         result_entries, rather than an index-based loop.
57691
57692 2008-02-17  Bruno Haible  <bruno@clisp.org>
57693
57694         Speed up by 25%.
57695         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57696         'hashcode_cached'.
57697         (entry_create): New function.
57698         (entry_hashcode): Use the cached hashcode if possible.
57699         (read_changelog_file, try_split_merged_entry): Use entry_create.
57700
57701 2008-02-17  Bruno Haible  <bruno@clisp.org>
57702
57703         Speed up from O(n^2) to O(n) for long ChangeLog files.
57704         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57705         (read_changelog_file): Change implementation of entries_reversed list
57706         to rbtreehash.
57707         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57708
57709 2008-02-17  Bruno Haible  <bruno@clisp.org>
57710
57711         New option --split-merged-entry.
57712         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57713         (find_paragraph_end, try_split_merged_entry): New functions.
57714         (long_options): Add option --split-merged-entry.
57715         (usage): Document option --split-merged-entry.
57716         (main): Implement option --split-merged-entry.
57717         Reported by Eric Blake.
57718
57719 2008-02-17  Bruno Haible  <bruno@clisp.org>
57720
57721         * lib/git-merge-changelog.c: Include c-strstr.h.
57722         (main): Support the "git pull --rebase" situation.
57723         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57724         Reported by Eric Blake.
57725
57726 2008-02-16  Eric Blake  <ebb9@byu.net>
57727
57728         Avoid doubling \ in common case of "c-maybe" quoting style.
57729         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57730         eliding outer quotes.
57731         * lib/quotearg.h: Document this.
57732         * tests/test-quotearg.c (result_strings, inputs, results_g)
57733         (flag_results, locale_results): Test it by adding a new string to
57734         each test group.
57735         (compare_strings): Test new string.
57736
57737 2008-02-13  Eric Blake  <ebb9@byu.net>
57738
57739         Avoid trigraph quoting in default output.
57740         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57741         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57742         unless explicitly requested.
57743         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57744
57745 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57746
57747         Don't rely on signed integer overflowing to negative value.
57748         * lib/getugroups.c (getugroups): Include <limits.h>.
57749         Instead, compare against INT_MAX, and increment only if the test passes.
57750
57751 2008-02-13  Jim Meyering  <meyering@redhat.com>
57752         and Eric Blake  <ebb9@byu.net>
57753
57754         Avoid shadowing warning and compile errors on Linux.
57755         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57756         forwarding macros on Linux.
57757         (dcgettext): Define a stub, for Linux.
57758         (results_g, main): Avoid warnings.
57759
57760 2008-02-12  Eric Blake  <ebb9@byu.net>
57761
57762         Silence warning in last patch.
57763         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57764
57765         Quotearg part 4: add tests, fix c-maybe colon quoting.
57766         * lib/quotearg.h: Improve documentation.
57767         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57768         escapes when adding outer quotes.  When quoting trigraphs, use
57769         valid C notation.  When quoting NUL, omit extra characters if next
57770         character is not digit.  Alter prototype.
57771         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57772         callers.
57773         * modules/quotearg-tests: New module.
57774         * tests/test-quotearg.c: New test.
57775
57776 2008-02-07  Eric Blake  <ebb9@byu.net>
57777
57778         Quotearg part 3: add flag to control outer quote elision.
57779         * lib/quotearg.h (c_maybe_quoting_style): New style.
57780         (enum quoting_flags): Better documentation of flags.
57781         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57782         c-maybe style.
57783         (quotearg_buffer_restyled): Handle new flag to elide outer
57784         quotes.
57785
57786         Quotearg part 2: add flag that can control NUL elision.
57787         * lib/quotearg.h (set_quoting_flags): New prototype.
57788         * lib/quotearg.c (struct quoting_options): Add flag field.
57789         (set_quoting_flags): New function.
57790         (quotearg_buffer_restyled): Add flags parameter.
57791         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57792         (quotearg_n_options): Set the flag, since length cannot be
57793         returned.
57794         (quoting_options_from_style): Default flags correctly.
57795
57796         Quotearg part 1: more wrappers, restore quotearg_char state.
57797         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57798         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57799         (quotearg_colon_mem): New wrappers.
57800         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57801         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57802         functions.
57803         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57804         (quotearg_colon_mem): New functions.
57805
57806 2008-02-11  Bruno Haible  <bruno@clisp.org>
57807
57808         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57809         library in the current directory: it does not work with parallel make.
57810         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57811
57812 2008-02-11  Bruno Haible  <bruno@clisp.org>
57813
57814         * .gitattributes: New file.
57815
57816 2008-02-11  Jim Meyering  <meyering@redhat.com>
57817
57818         useless-if-before-free: Fix reversed exit values.
57819         * build-aux/useless-if-before-free: Use correct values
57820         for EXIT_MATCH and EXIT_NO_MATCH.
57821
57822         * build-aux/useless-if-before-free: Close stdout carefully.
57823
57824 2008-02-10  Bruno Haible  <bruno@clisp.org>
57825
57826         New module 'git-merge-changelog'.
57827         * modules/git-merge-changelog: New file.
57828         * lib/git-merge-changelog.c: New file.
57829
57830 2008-02-10  Jim Meyering  <meyering@redhat.com>
57831
57832         useless-if-before-free: New option: --list (-l).
57833
57834         useless-if-before-free: Don't exit immediately upon open failure.
57835         * build-aux/useless-if-before-free: Exit 2 for errors.
57836         Upon failure to open a file, don't exit immediately.
57837         Rather, just warn and continue with any remaining files.
57838
57839 2008-02-10  Bruno Haible  <bruno@clisp.org>
57840
57841         New abstract list operation 'node_set_value'.
57842         * lib/gl_list.h (gl_list_node_set_value): New function.
57843         (struct gl_list_implementation): New field node_set_value.
57844         * lib/gl_list.c (gl_list_node_set_value): New function.
57845         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57846         (gl_array_list_implementation): Update.
57847         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57848         (gl_carray_list_implementation): Update.
57849         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57850         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57851         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57852         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57853         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57854         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57855         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57856         Update.
57857         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57858         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57859         (gl_sublist_list_implementation): Update.
57860
57861 2008-02-10  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57864         Needed when ELEMENT is #defined to 'some_type *'.
57865
57866 2008-02-10  Jim Meyering  <meyering@redhat.com>
57867
57868         New script and module: useless-if-before-free
57869         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57870         * build-aux/useless-if-before-free: New file.
57871         * modules/useless-if-before-free: New file.
57872
57873         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57874
57875         xstrtol_error: Fix typo.
57876         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57877         s/exit_failure/exit_status/.
57878
57879 2008-02-09  Jim Meyering  <meyering@redhat.com>
57880
57881         New script and module: gitlog-to-changelog
57882         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57883         * modules/gitlog-to-changelog: New file.
57884         * build-aux/gitlog-to-changelog: New file.
57885
57886 2008-02-08  Jim Meyering  <meyering@redhat.com>
57887
57888         Avoid two "parameter unused" warnings.
57889         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57890         Mark "st" as used.
57891
57892         Use "git COMMAND", not "git-COMMAND".
57893         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57894         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57895         * build-aux/git-version-gen: Use "git status", not "git-status".
57896
57897 2008-02-07  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57900         Avoids a crash on Windows Vista.
57901         Reported by Adam Strzelecki <ono@java.pl> via
57902         Simon Josefsson <simon@josefsson.org>.
57903
57904 2008-02-06  Bruno Haible  <bruno@clisp.org>
57905
57906         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57907         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57908         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57910         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57912         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57913         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57914         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57915         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57916         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57917         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57918         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57919         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57920         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57921         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57922         left-adjust flag.
57923         * tests/test-snprintf-posix.h (test_function): Likewise.
57924         * tests/test-sprintf-posix.h (test_function): Likewise.
57925         * tests/test-vasprintf-posix.c (test_function): Likewise.
57926         * doc/posix-functions/fprintf.texi: Update.
57927         * doc/posix-functions/printf.texi: Update.
57928         * doc/posix-functions/snprintf.texi: Update.
57929         * doc/posix-functions/sprintf.texi: Update.
57930         * doc/posix-functions/vfprintf.texi: Update.
57931         * doc/posix-functions/vprintf.texi: Update.
57932         * doc/posix-functions/vsnprintf.texi: Update.
57933         * doc/posix-functions/vsprintf.texi: Update.
57934         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57935
57936 2008-02-06  Bruno Haible  <bruno@clisp.org>
57937
57938         Fix bug introduced on 2008-01-26.
57939         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57940
57941 2008-02-06  Bruno Haible  <bruno@clisp.org>
57942
57943         Fix bug introduced on 2007-06-10.
57944         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57945         !NEED_PRINTF_FLAG_ZERO.
57946
57947 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57948
57949         getloadavg: use libperfstat on AIX5
57950         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57951
57952 2008-02-03  Bruno Haible  <bruno@clisp.org>
57953
57954         * lib/diffseq.h: Add comments about required #includes.
57955         Reported by Michael Biggs <gnulib@doubleplum.net>.
57956
57957 2008-02-01  Bruno Haible  <bruno@clisp.org>
57958
57959         * users.txt: Add gnuit.
57960
57961 2008-01-31  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/md4.c (set_uint32): Mark as inline.
57964         * lib/md5.c (set_uint32): Likewise.
57965         * lib/sha1.c (set_uint32): Likewise.
57966         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57967         * m4/md5.m4 (gl_MD5): Likewise.
57968         * m4/sha1.m4 (gl_SHA1): Likewise.
57969
57970 2008-01-31  Jim Meyering  <meyering@redhat.com>
57971
57972         Use "sizeof VAR", rather than a literal "4".
57973         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57974         * lib/md4.c (md4_read_ctx): Likewise.
57975         * lib/sha1.c (sha1_read_ctx): Likewise.
57976
57977 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57978
57979         * tests/test-sha1.c: New file, based on test-md5.c.
57980
57981         * modules/crypto/sha1-tests: New file.
57982
57983 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57984
57985         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57986
57987 2008-01-31  Jim Meyering  <meyering@redhat.com>
57988
57989         Prefer "sizeof v" over the equivalent "4".
57990         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57991         * lib/md5.c (set_uint32): Likewise.
57992         * lib/sha1.c (set_uint32): Likewise.
57993
57994 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57995
57996         * lib/sha1.c (set_uint32): Mark function as static.
57997
57998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57999
58000         md2: clarify comments to say that alignment is not required.
58001         * lib/md2.h: Remove warning about alignment in comment.
58002         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58003         never been required.
58004
58005 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58006
58007         md4: adapt alignment constraint fix from sha1.
58008         * lib/md4.c (set_uint32): New function, from sha1.c
58009         (md4_read_ctx): Use it.
58010         (md4_finish_ctx): Doc fix.
58011         * lib/md4.h: Doc fix.
58012
58013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58014
58015         md5: adapt alignment constraint fix from sha1.
58016         * lib/md5.c (set_uint32): New function, from sha1.c
58017         (md5_read_ctx): Use it.
58018         (md5_finish_ctx): Doc fix.
58019         * lib/md5.h: Doc fix.
58020
58021 2008-01-30  Peter Palfrader  <weasel@debian.org>
58022
58023         sha1: remove the result buffer alignment constraint
58024         * lib/sha1.c (set_uint32): New function.
58025         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58026         constraint.
58027         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58028         * lib/sha1.h: Likewise.
58029
58030 2008-01-30  Andreas Schwab  <schwab@suse.de>
58031             Bruno Haible  <bruno@clisp.org>
58032
58033         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58034         correct definition of LDBL_MIN_EXP.
58035
58036 2008-01-30  Karl Berry  <karl@gnu.org>
58037
58038         * config/srclist-update: try to preserve x bit on updates.
58039         * config/srclistvars.sh: update for karl.
58040
58041 2008-01-29  Jim Meyering  <meyering@redhat.com>
58042
58043         vasnprintf.c: Avoid warning about unused label
58044         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58045         "overflow" label definition and associated code with the
58046         same cpp condition that guards the sole use of that label.
58047
58048 2008-01-26  Bruno Haible  <bruno@clisp.org>
58049
58050         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58051         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58052         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58053         * lib/isnanl-nolibm.h (isnanl): Likewise.
58054         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58055
58056 2008-01-26  Bruno Haible  <bruno@clisp.org>
58057
58058         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58059         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58060
58061 2008-01-26  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58064         GCC >= 4.0 built-in.
58065         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58066
58067 2008-01-26  Bruno Haible  <bruno@clisp.org>
58068
58069         Rename isnan, applicable to 'double' only, to isnand.
58070         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58071         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58072         (configure.ac): Update.
58073         (Include): Replace "isnan.h" with "isnand.h".
58074         * m4/isnand.m4: Renamed from m4/isnan.m4.
58075         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58076         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58077         instead of isnan.c.
58078         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58079         instead of HAVE_ISNAN_IN_LIBC.
58080         (isnand): Renamed from isnan.
58081         * lib/isnand.c: New file.
58082         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58083         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58084         (Makefile.am): Update.
58085         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58086         Include isnand.h instead of isnan.h.
58087         (main): Test isnand instead of isnan.
58088         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58089         isnan-nolibm.
58090         * modules/frexp (Depends-on): Likewise.
58091         * modules/frexp-tests (Depends-on): Likewise.
58092         * modules/frexp-nolibm (Depends-on): Likewise.
58093         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58094         * modules/isfinite (Depends-on): Likewise.
58095         * modules/round-tests (Depends-on): Likewise.
58096         * modules/signbit (Depends-on): Likewise.
58097         * modules/signbit-tests (Depends-on): Likewise.
58098         * modules/snprintf-posix (Depends-on): Likewise.
58099         * modules/sprintf-posix (Depends-on): Likewise.
58100         * modules/trunc-tests (Depends-on): Likewise.
58101         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58102         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58103         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58104         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58105         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58106         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58107         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58108         * modules/vasnprintf-posix (Depends-on): Likewise.
58109         * modules/vasprintf-posix (Depends-on): Likewise.
58110         * modules/vfprintf-posix (Depends-on): Likewise.
58111         * modules/vsnprintf-posix (Depends-on): Likewise.
58112         * modules/vsprintf-posix (Depends-on): Likewise.
58113         * lib/frexp.c: Include isnand.h instead of isnan.h.
58114         (ISNAN): Set to isnand instead of isnan.
58115         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58116         (gl_isfinited): Use isnand instead of isnan.
58117         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58118         (gl_signbitd): Use isnand instead of isnan.
58119         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58120         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58121         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58122         (main): Use isnand instead of isnan.
58123         * tests/test-round1.c: Include isnand.h.
58124         (main): Use isnand instead of isnan.
58125         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58126         (ISNAN): Set to isnand instead of isnan.
58127         * tests/test-trunc1.c: Include isnand.h.
58128         (main): Use isnand instead of isnan.
58129         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58130         (equal): Use isnand instead of isnan.
58131         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58132         isnand-nolibm.
58133         * NEWS: Mention the change.
58134
58135 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58136             Bruno Haible  <bruno@clisp.org>
58137
58138         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58139         the GCC builtins for signbits are present and set
58140         REPLACE_SIGNBIT_USING_GCC if so.
58141         * lib/math.in.h (signbit): Define using GCC builtins if
58142         REPLACE_SIGNBIT_USING_GCC is set.
58143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58144         REPLACE_SIGNBIT_USING_GCC.
58145         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58146
58147 2008-01-25  Jim Meyering  <meyering@redhat.com>
58148
58149         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58150         * lib/poll.c: Include <config.h>, not "config.h".
58151         * tests/test-getaddrinfo.c: Likewise.
58152
58153 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58154
58155         * modules/sockets-tests: New file.
58156
58157 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58158
58159         * modules/sockets: New module, can be used to call WSA_Startup and
58160         WSA_Cleanup when needed.
58161
58162         * lib/sockets.h, lib/sockets.c: New files.
58163
58164         * m4/sockets.m4: New file.
58165
58166         * tests/test-sockets.c: New file.
58167
58168 2008-01-19  Bruno Haible  <bruno@clisp.org>
58169
58170         * doc/posix-headers: Renamed from doc/headers.
58171         * doc/posix-functions: Renamed from doc/functions.
58172         * doc/gnulib.texi: Update.
58173
58174 2008-01-19  Bruno Haible  <bruno@clisp.org>
58175
58176         * doc/glibc-functions/strcasestr.texi: Include contents of
58177         doc/functions/strcasestr.texi, fixing the list of platforms.
58178         * doc/functions/strcasestr.texi: Remove file.
58179
58180 2008-01-19  Bruno Haible  <bruno@clisp.org>
58181
58182         * doc/glibc-functions/memmem.texi: Include contents of
58183         doc/functions/memmem.texi.
58184         * doc/functions/memmem.texi: Remove file.
58185
58186 2008-01-18  Bruno Haible  <bruno@clisp.org>
58187
58188         * doc/glibc-functions/*.texi: New files.
58189         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58190         to use the new files.
58191
58192 2008-01-17  Bruno Haible  <bruno@clisp.org>
58193
58194         * tests/test-gethostname.c (main): Fix printf statement.
58195
58196 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58197
58198         * modules/gethostname-tests: New file.
58199
58200         * tests/test-gethostname.c: New file.
58201
58202 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58203
58204         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58205         used by the UNAME case.  Reported by Bruno Haible
58206         <bruno@clisp.org>.
58207
58208 2008-01-17  Eric Blake  <ebb9@byu.net>
58209
58210         Convert c-strcasestr to be more efficient.
58211         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58212         (Depends-on): Add c-strcase, remove malloca, strnlen.
58213         * tests/test-c-strcasestr.c (main): Enhance test.
58214         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58215
58216 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58217
58218         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58219         Use it in creating po/Makevars.
58220
58221 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58222
58223         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58224         Applications that requires it should initialize libgcrypt
58225         manually.
58226
58227 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58228
58229         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58230
58231 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         Fix problem with getdate on mingw32 reported by Simon Josefsson
58234         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58235         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58236         tzname", when deciding whether to declare tzname.
58237         * lib/strftime.c (tzname): Likewise.
58238
58239 2008-01-15  Bruno Haible  <bruno@clisp.org>
58240
58241         Work around a MacOS X 10.5 bug in frexpl().
58242         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58243         * doc/functions/frexpl.texi: Document the bug.
58244         Reported by Elias Pipping <pipping@gentoo.org>.
58245
58246 2008-01-14  Eric Blake  <ebb9@byu.net>
58247
58248         Touch up previous patch.
58249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58250         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58251
58252         Convert strcasestr module to use Two-Way algorithm.
58253         * modules/strcasestr-simple: New module, based on the old
58254         strcasestr, but with Two-Way rather than KMP.
58255         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58256         * lib/string.in.h (rpl_strcasestr): Declare.
58257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58258         performance.
58259         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58260         * modules/string (Makefile.am): Support strcasestr.
58261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58262         * modules/strcasestr-tests (Depends-on): Check for alarm.
58263         * tests/test-strcasestr.c: Augment test.
58264         * lib/str-two-way.h: Clean up stray macro.
58265         * NEWS: Document new module.
58266         * MODULES.html.sh (string handling): Likewise.
58267         * doc/functions/strcasestr.texi: New file.
58268         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58269         here, since it is not a POSIX function.
58270
58271 2008-01-14  Colin Watson  <cjwatson@debian.org>
58272             Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58275         works fine; if not, set REPLACE_STRSIGNAL.
58276         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58278         REPLACE_STRSIGNAL.
58279         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58280         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58281         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58282
58283 2008-01-14  Bruno Haible  <bruno@clisp.org>
58284
58285         * modules/strsignal (Include): Change to <string.h>.
58286
58287 2008-01-14  Colin Watson  <cjwatson@debian.org>
58288
58289         * modules/argp (Notice): Add a notice recommending to change
58290         XGETTEXT_OPTIONS.
58291         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58292
58293 2008-01-13  Colin Watson  <cjwatson@debian.org>
58294
58295         * modules/strsignal-tests: New file.
58296         * tests/test-strsignal.c: New file.
58297
58298         * lib/strsignal.c: New file, from glibc with modifications.
58299         * lib/siglist.h: New file, from glibc with modifications.
58300         * lib/string.in.h (strsignal): New declaration.
58301         * m4/strsignal.m4: New file.
58302         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58303         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58304         * modules/strsignal: New file.
58305         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58306         HAVE_DECL_STRSIGNAL.
58307
58308 2008-01-13  Bruno Haible  <bruno@clisp.org>
58309
58310         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58311         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58312         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58313         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58314
58315 2008-01-13  Bruno Haible  <bruno@clisp.org>
58316
58317         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58318         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58319         * lib/argp.h (__attribute__): Likewise.
58320         * lib/c-stack.c (__attribute__): Likewise.
58321         * lib/error.h (__attribute__): Likewise.
58322         * lib/fts.c (__attribute__): Likewise.
58323         * lib/openat.h (__attribute__): Likewise.
58324         * lib/stdio.in.h (__attribute__): Likewise.
58325         * lib/string.in.h (__attribute__): Likewise.
58326         * lib/utimens.c (__attribute__): Likewise.
58327         * lib/vasnprintf.h (__attribute__): Likewise.
58328         * lib/xalloc.h (__attribute__): Likewise.
58329         * lib/xprintf.h (__attribute__): Likewise.
58330         * lib/xstrtol.h (__attribute__): Likewise.
58331         * lib/xvasprintf.h (__attribute__): Likewise.
58332
58333 2008-01-12  Bruno Haible  <bruno@clisp.org>
58334
58335         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58336         * doc/glibc-headers/a.out.texi: New file.
58337         * doc/glibc-headers/aliases.texi: New file.
58338         * doc/glibc-headers/alloca.texi: New file.
58339         * doc/glibc-headers/ar.texi: New file.
58340         * doc/glibc-headers/argp.texi: New file.
58341         * doc/glibc-headers/argz.texi: New file.
58342         * doc/glibc-headers/byteswap.texi: New file.
58343         * doc/glibc-headers/crypt.texi: New file.
58344         * doc/glibc-headers/endian.texi: New file.
58345         * doc/glibc-headers/envz.texi: New file.
58346         * doc/glibc-headers/err.texi: New file.
58347         * doc/glibc-headers/error.texi: New file.
58348         * doc/glibc-headers/execinfo.texi: New file.
58349         * doc/glibc-headers/fpu_control.texi: New file.
58350         * doc/glibc-headers/fstab.texi: New file.
58351         * doc/glibc-headers/fts.texi: New file.
58352         * doc/glibc-headers/getopt.texi: New file.
58353         * doc/glibc-headers/ieee754.texi: New file.
58354         * doc/glibc-headers/ifaddrs.texi: New file.
58355         * doc/glibc-headers/libintl.texi: New file.
58356         * doc/glibc-headers/mcheck.texi: New file.
58357         * doc/glibc-headers/mntent.texi: New file.
58358         * doc/glibc-headers/obstack.texi: New file.
58359         * doc/glibc-headers/paths.texi: New file.
58360         * doc/glibc-headers/printf.texi: New file.
58361         * doc/glibc-headers/pty.texi: New file.
58362         * doc/glibc-headers/resolv.texi: New file.
58363         * doc/glibc-headers/shadow.texi: New file.
58364         * doc/glibc-headers/sysexits.texi: New file.
58365         * doc/glibc-headers/ttyent.texi: New file.
58366
58367 2008-01-12  Jim Meyering  <meyering@redhat.com>
58368
58369         announce-gen: emit Gnulib's git-based version string.
58370         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58371         New option --gnulib-version=V, where V is expected to be
58372         the output of running git describe in the gnulib directory.
58373         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58374         not useful, and plan to stop publishing an xdelta file with each
58375         coreutils release.
58376
58377         * build-aux/announce-gen: Also check for lzma-compressed files.
58378
58379 2008-01-11  Bruno Haible  <bruno@clisp.org>
58380
58381         * tests/test-memmem.c (main): Increase maximum allowed time.
58382         * tests/test-strstr.c (main): Likewise.
58383
58384 2008-01-11  Bruno Haible  <bruno@clisp.org>
58385
58386         * doc/functions/memmem.texi: Add more precisions about platforms.
58387         * doc/functions/strstr.texi: Likewise.
58388
58389 2008-01-10  Eric Blake  <ebb9@byu.net>
58390
58391         * m4/strstr.m4: Delete cruft from copy-n-paste.
58392         Reported by Bruno Haible.
58393
58394 2008-01-10  Bruno Haible  <bruno@clisp.org>
58395
58396         Make c-strstr rely on strstr.
58397         * lib/c-strstr.c: Don't include str-kmp.h.
58398         (c_strstr): Define in terms of strstr.
58399         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58400         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58401
58402 2008-01-10  Bruno Haible  <bruno@clisp.org>
58403
58404         * doc/gnulib.texi (String Functions in C Locale): New section.
58405         * doc/c-ctype.texi: New file.
58406         * doc/c-strcase.texi: New file.
58407         * doc/c-strcaseeq.texi: New file.
58408         * doc/c-strcasestr.texi: New file.
58409         * doc/c-strstr.texi: New file.
58410         * doc/c-strtod.texi: New file.
58411         * doc/c-strtold.texi: New file.
58412
58413 2008-01-10  Eric Blake  <ebb9@byu.net>
58414
58415         * lib/relocatable.h: Fix a comment.
58416
58417 2008-01-10  Eric Blake  <ebb9@byu.net>
58418
58419         Share two-way algorithm.
58420         * lib/str-two-way.h: New file, merged from...
58421         * lib/memmem.c: ...here...
58422         * lib/strstr.c: ...and here.
58423         * modules/memmem (Files): Use it.
58424         * modules/strstr (Files): Likewise.
58425
58426         Avoid quadratic strstr implementations.
58427         * lib/strstr.c: New file.
58428         * m4/strstr.m4: Likewise.
58429         * modules/strstr: Likewise.
58430         * modules/strstr-tests: Likewise.
58431         * tests/test-strstr.c: Likewise.
58432         * lib/string.in.h (rpl_strstr): Declare.
58433         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58434         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58435         * modules/string (Makefile.am): Likewise.
58436         * MODULES.html.sh (string handling): Mention new module.
58437         * doc/functions/strstr.texi (strstr): Document the bug.
58438
58439 2008-01-10  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/relocatable.h (relocate): State whether result is freshly
58442         allocated or not.
58443         * lib/relocatable.c (relocate): Return a freshly allocated string
58444         instead of a pointer to a privately held string.
58445         Reported by Sylvain Beucler <beuc@gnu.org>.
58446
58447 2008-01-10  Colin Watson  <cjwatson@debian.org>
58448
58449         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58450         s/S_ISNLK/S_ISLNK/.
58451
58452 2008-01-09  Bruno Haible  <bruno@clisp.org>
58453
58454         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58455         and other files.
58456         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58457         if it's only a guess.
58458         * modules/memmem: Simplify by depending on memmem-simple.
58459
58460 2008-01-09  Bruno Haible  <bruno@clisp.org>
58461
58462         Work around OpenBSD 4.0 tdelete() bug.
58463         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58464         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58465         macros and don't redefine the enum values.
58466         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58467         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58468         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58469
58470 2008-01-09  Bruno Haible  <bruno@clisp.org>
58471
58472         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58473         (main): Don't perform the tests if setlocale did not install a UTF-8
58474         locale. Needed on OpenBSD 4.0.
58475         * modules/wcwidth-tests (Depends-on): Add localcharset.
58476
58477 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58478
58479         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58480         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58481         * NEWS: announce this.
58482         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58483
58484 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58485         and Eric Blake  <ebb9@byu.net>
58486
58487         Add memmem-simple module.
58488         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58489         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58490         * modules/memmem-simple: New file.
58491         * modules/memmem (Description): Tweak.
58492         * MODULES.html.sh (string handling): Mention new module.
58493         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58494         addressed by memmem-simple.
58495         * NEWS: Document the difference.
58496
58497 2008-01-09  Eric Blake  <ebb9@byu.net>
58498
58499         Give gcc some memmem optimization hints.
58500         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58501         (strcasestr): Declare as pure.
58502         * modules/memmem (Maintainer): Claim my implementation.
58503
58504 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58505
58506         Support AIX 6.1 and higher.
58507         * build-aux/config.libpath: Likewise.
58508         * build-aux/config.rpath: Likewise.
58509
58510 2008-01-08  Jim Meyering  <meyering@redhat.com>
58511             Bruno Haible  <bruno@clisp.org>
58512
58513         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58514         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58515         Reported by Peter Fales in
58516         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58517
58518 2008-01-08  Bruno Haible  <bruno@clisp.org>
58519
58520         * modules/unictype/category-of (Depends-on): Add
58521         unictype/category-none.
58522         * modules/unictype/category-and-tests (Depends-on): Add
58523         unictype/category-{L,N,Lu,Nd}.
58524         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58525         * modules/unictype/category-or-tests (Depends-on): Add
58526         unictype/category-{L,N}.
58527         * modules/unictype/category-name-tests (Depends-on): Add
58528         unictype/category-{Z,Nl}.
58529         Reported by Simon Josefsson.
58530
58531 2008-01-08  Bruno Haible  <bruno@clisp.org>
58532
58533         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58534         convention better.
58535         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58536         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58537         Reported by Peter Miller <millerp@canb.auug.org.au>.
58538
58539 2008-01-08  Eric Blake  <ebb9@byu.net>
58540
58541         Rewrite memmem to guarantee linear complexity without malloc.
58542         * lib/memmem.c (memmem): Use Two-Way rather than
58543         Knuth-Morris-Pratt, to allow O(1) space usage.
58544         (critical_factorization, two_way_short_needle)
58545         (two_way_long_needle): New functions.
58546         (knuth_morris_pratt): Delete.
58547         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58548         Add stdint.
58549         * tests/test-memmem.c (main): Add tests for periodic needle and
58550         sublinear performance.
58551         * doc/functions/memmem.texi (memmem): Document other deficiencies
58552         in cygwin and older glibc.
58553
58554 2008-01-08  Bruno Haible  <bruno@clisp.org>
58555
58556         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58557         augmentation.
58558
58559 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58560
58561         Add a configure time option: --disable-acl.
58562         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58563         AC_ARG_ENABLE(acl).
58564
58565 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58566
58567         * tests/test-localename.c: Don't include obsolete "setenv.h".
58568
58569         * modules/localename-tests (Depends-on): Need unsetenv.
58570
58571 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58572
58573         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58574
58575 2008-01-06  Colin Watson  <cjwatson@debian.org>
58576
58577         * users.txt: Add man-db.
58578
58579 2008-01-07  Bruno Haible  <bruno@clisp.org>
58580
58581         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58582         previous section name.
58583
58584 2008-01-07  Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/progname.c (set_program_name): Don't strip off a leading
58587         "lt-" prefix outside a .libs directory.
58588         Suggested by Paul Eggert.
58589
58590 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58591             Bruno Haible  <bruno@clisp.org>
58592
58593         Improve memory cleanup in 'relocatable' module.
58594         * lib/relocatable.h (compute_curr_prefix): Change return type to
58595         'char *'.
58596         * lib/relocatable.c (compute_curr_prefix): Change return type to
58597         'char *'. Free curr_installdir after use.
58598         (relocate): Free curr_prefix_better after use.
58599         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58600
58601 2008-01-01  Bruno Haible  <bruno@clisp.org>
58602
58603         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58604         failure on older glibc systems.
58605         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58606
58607 2008-01-05  Eric Blake  <ebb9@byu.net>
58608
58609         Avoid quadratic system memmem.
58610         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58611         Reported by Ralf Wildenhues.
58612
58613         Fix memmem test for mingw.
58614         * modules/memmem-tests (configure.ac): Check for alarm.
58615         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58616         it.
58617         * doc/functions/memmem.texi: New file.
58618         * doc/gnulib.texi (Function Substitutes): Add memmem.
58619         Reported by Bruno Haible.
58620
58621 2008-01-04  Bruno Haible  <bruno@clisp.org>
58622
58623         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58624         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58625         gl_HEADER_STRING_H_DEFAULTS.
58626
58627 2008-01-04  Eric Blake  <ebb9@byu.net>
58628
58629         Shorten duration of memmem test.
58630         * tests/test-memmem.c (main): Use alarm to declare failure if test
58631         is taking too long.
58632         Reported by Ralf Wildenhues.
58633
58634 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58635
58636         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58637         string, needed by strerror.
58638
58639 2008-01-03  Colin Watson  <cjwatson@debian.org>
58640             Bruno Haible  <bruno@clisp.org>
58641
58642         * doc/gnulib-tool.texi (Localization): New section.
58643
58644 2008-01-02  Bruno Haible  <bruno@clisp.org>
58645
58646         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58647         variables to 'unsigned char *' type.
58648         Reported by Paul Eggert.
58649
58650 2008-01-02  Jim Meyering  <jim@meyering.net>
58651
58652         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58653
58654 2007-12-31  Jim Meyering  <jim@meyering.net>
58655
58656         Avoid use of private FTS type name.
58657         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58658
58659 2007-12-30  Karl Berry  <karl@gnu.org>
58660
58661         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58662         work around defect in Texinfo and/or the standalone Info browser.
58663
58664 2007-12-30  Bruno Haible  <bruno@clisp.org>
58665
58666         Unify 5 copies of the KMP code.
58667         * lib/str-kmp.h: New file.
58668         * lib/c-strcasestr.c: Include str-kmp.h.
58669         (knuth_morris_pratt): Remove function.
58670         (c_strcasestr): Update.
58671         * lib/c-strstr.c: Include str-kmp.h.
58672         (knuth_morris_pratt): Remove function.
58673         (c_strcasestr): Update.
58674         * lib/mbscasestr.c: Include str-kmp.h.
58675         (knuth_morris_pratt_unibyte): Remove function.
58676         * lib/mbsstr.c: Include str-kmp.h.
58677         (knuth_morris_pratt_unibyte): Remove function.
58678         * lib/strcasestr.c: Include str-kmp.h.
58679         (knuth_morris_pratt): Remove function.
58680         (strcasestr): Update.
58681         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58682         * modules/c-strstr (Files): Likewise.
58683         * modules/mbscasestr (Files): Likewise.
58684         * modules/mbsstr (Files): Likewise.
58685         * modules/strcasestr (Files): Likewise.
58686         Suggested by Paul Eggert.
58687
58688 2007-12-30  Bruno Haible  <bruno@clisp.org>
58689
58690         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58691         defined.
58692
58693 2007-12-30  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/xmalloca.h: Include xalloc.h.
58696         (xnmalloca): New macro.
58697
58698 2007-12-30  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/malloca.h (nmalloca): New macro.
58701         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58702         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58703         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58704         knuth_morris_pratt_multibyte): Likewise.
58705         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58706         knuth_morris_pratt_multibyte): Likewise.
58707         * lib/memmem.c (knuth_morris_pratt): Likewise.
58708         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58709
58710 2007-12-25  Bruno Haible  <bruno@clisp.org>
58711
58712         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58713         * lib/glob.c: Don't include openat.h.
58714         (link_exists2_p): Add back the code that deals with the
58715         !GLOB_ALTDIRFUNC case.
58716         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58717         let it do the filename concatenation.
58718         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58719         * modules/glob (Depends-on): Remove openat.
58720
58721 2007-12-31  Bruno Haible  <bruno@clisp.org>
58722
58723         * modules/dirfd (License): Change to LGPLv2+.
58724         Approved by Jim Meyering.
58725
58726 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58729         when multiplying M by sizeof (size_t).
58730
58731 2007-12-10  Martin Lambers  <marlam@marlam.de>
58732
58733         Override getpagesize on mingw.
58734         * lib/getpagesize.c: New file.
58735         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58736         * modules/getpagesize (Files): Add lib/getpagesize.c.
58737         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58739         REPLACE_GETPAGESIZE.
58740         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58741
58742 2007-12-25  Bruno Haible  <bruno@clisp.org>
58743
58744         * modules/localcharset (Notice): New field.
58745         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58746         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58747
58748 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58749             Bruno Haible  <bruno@clisp.org>
58750
58751         Avoid using the syntax symbol() in formatted documentation.
58752         * MODULES.html.sh (func_module): When replacing symbol() with a
58753         hyperlink, remove the parentheses. Show an error if some remain.
58754         Recognize and render the '...' syntax.
58755         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58756         Rework. Add paragraph about GCC's inlining.
58757         * doc/alloca.texi: Likewise.
58758         * doc/error.texi: Remove parentheses from symbol reference.
58759         * doc/gnulib-intro.texi: Likewise.
58760         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58761         * modules/fnmatch (Description): Reword to say "the ... function".
58762         * modules/full-read (Description): Likewise.
58763         * modules/full-write (Description): Likewise.
58764         * modules/safe-read (Description): Likewise.
58765         * modules/safe-write (Description): Likewise.
58766         * modules/strchrnul (Description): Likewise.
58767         * modules/trim (Description): Likewise.
58768         * modules/error (Description): Remove parentheses from symbol
58769         references.
58770         * modules/verror (Description): Likewise.
58771         Reported by Karl Berry.
58772
58773 2007-12-25  Bruno Haible  <bruno@clisp.org>
58774
58775         Fixup after 2007-10-16 commit.
58776         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58777
58778 2007-12-24  Bruno Haible  <bruno@clisp.org>
58779
58780         Make --enable-relocatable work with DESTDIR.
58781         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58782         to compute installdir from destprog.
58783         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58784         also set the RELOC_DESTDIR variable.
58785         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58786
58787 2007-12-24  Bruno Haible  <bruno@clisp.org>
58788
58789         Fix link error due to xalloc_die().
58790         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58791         of xreadlink.
58792         * lib/relocwrapper.c: Update comments.
58793         * build-aux/install-reloc: Remove xreadlink.c from file list.
58794         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58795         xreadlink.c.
58796         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58797
58798 2007-12-24  Bruno Haible  <bruno@clisp.org>
58799
58800         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58801         * lib/setenv.h: Remove file.
58802         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58803         lib/setenv.h.
58804         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58805         (Depends-on): Add stdlib.
58806         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58807         gl_FUNC_UNSETENV.
58808         (Include): Replace setenv.h with <stdlib.h>.
58809         * modules/unsetenv: New file.
58810         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58811         * lib/unsetenv.c: Include <stdlib.h> first.
58812         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58813         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58814         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58815         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58816         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58817         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58819         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58820         * doc/functions/unsetenv.texi: Update.
58821         * modules/xsetenv (Depends-on): Add unsetenv.
58822         * modules/getdate (Depends-on): Likewise.
58823         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58824         * lib/xsetenv.c: Don't include setenv.h.
58825         * lib/getdate.y: Likewise.
58826         * lib/relocwrapper.c: Likewise.
58827         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58828         (Depends-on): Add stdlib.
58829         * NEWS: Mention the changes.
58830         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58831
58832 2007-12-23  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58835         indentation.
58836
58837 2007-12-23  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/c-strcasestr.c: Add more comments.
58840         * lib/c-strstr.c: Likewise.
58841         * lib/mbscasestr.c: Likewise.
58842         * lib/mbsstr.c: Likewise.
58843         * lib/strcasestr.c: Likewise.
58844         * lib/memmem.c: Likewise.
58845
58846 2007-12-23  Bruno Haible  <bruno@clisp.org>
58847
58848         * tests/test-memmem.c: Include <string.h> first.
58849
58850 2007-12-22  Bruno Haible  <bruno@clisp.org>
58851
58852         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58853         the contents of $testsbase.
58854         Reported by Ralf Wildenhues.
58855
58856 2007-12-22  Bruno Haible  <bruno@clisp.org>
58857
58858         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58859         two variables local_ldadd_before, local_ldadd_last.
58860
58861 2007-12-20  Eric Blake  <ebb9@byu.net>
58862
58863         Work around circular library issue when cross-compiling.
58864         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58865         that progname.o does not need to pull in rpl_memcmp.
58866
58867 2007-12-19  Eric Blake  <ebb9@byu.net>
58868
58869         Fix memmem to avoid O(n^2) worst-case complexity.
58870         * lib/memmem.c (knuth_morris_pratt): New function.
58871         (memmem): Use it if first few naive iterations fail.
58872         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58873         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58874         * modules/memchr (License): Likewise.
58875         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58876         malloca.
58877         * tests/test-memmem.c: Rewrite, borrowing ideas from
58878         test-mbsstr1.c; the old version wouldn't even compile!
58879         * modules/memmem-tests: New file.
58880         * lib/string.in.h (rpl_memmem): Add declaration.
58881         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58883         REPLACE_MEMMEM.
58884
58885 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58888         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58889         before any system include files, and undef after them all.  This
58890         should fix a problem on VMS reported by John E. Malmberg in
58891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58892
58893 2007-12-17  Eric Blake  <ebb9@byu.net>
58894
58895         Revert addition of verify, for BSD/OS.
58896         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58897         can't handle large files, for the sake of obsolete platforms.
58898         * modules/fseeko (Depends-on): Remove verify.
58899         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58900         * doc/functions/ftello.texi (ftello): Likewise.
58901         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58902         Reported by Larry Jones.
58903
58904 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58905
58906         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58907         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58908
58909 2007-12-17  Jim Meyering  <meyering@redhat.com>
58910
58911         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58912         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58913         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58914         * modules/getcwd (Depends-on): Add openat.
58915         Reported by Petr Salinger.
58916
58917 2007-12-17  Bruno Haible  <bruno@clisp.org>
58918
58919         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58920         avoid a segmentation fault of the configure test on x86_64 systems.
58921
58922 2007-12-15  Jim Meyering  <meyering@redhat.com>
58923
58924         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58925
58926 2007-12-13  Eric Blake  <ebb9@byu.net>
58927
58928         Another fseek test.
58929         * tests/test-fseek.c (main): Also test ungetc handling.
58930         * tests/test-fseeko.c (main): Likewise.
58931         * modules/fseeko (Depends-on): Add verify.
58932         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58933         large.
58934         Reported by Larry Jones.
58935
58936         Fix fseeko on mingw.
58937         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58938         seek.
58939
58940         Beef up fseek tests.
58941         * tests/test-fseek.c (main): Also test eof handling.
58942         * tests/test-fseeko.c (main): Likewise.
58943         Reported by Larry Jones.
58944
58945 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58946
58947         Fix fseeko on BSD-based platforms.
58948         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58949         successful seek.
58950
58951 2007-12-12  Eric Blake  <ebb9@byu.net>
58952
58953         Allow circular dependency of separate libtests.a
58954         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58955         when use_libtests.
58956
58957 2007-12-11  Eric Blake  <ebb9@byu.net>
58958
58959         Fix bug with -0.0L in previous patch.
58960         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58961         * tests/test-isnan.c (main): Also test on zeroes.
58962         * tests/test-isnanf.c (main): Likewise.
58963         * tests/test-isnanl.h (main): Likewise.
58964
58965         Detect pseudo-denormals on x86 even when cross-compiling.
58966         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58967         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58968         invalid bit patterns that happen to satisfy ==.
58969
58970         Avoid link failures with separate libtests.a.
58971         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58972         last, to satisfy circular dependencies.
58973
58974 2007-12-11  Eric Blake  <ebb9@byu.net>
58975         and Bruno Haible  <bruno@clisp.org>
58976
58977         Fix OpenBSD 4.0 <float.h> handling of long double.
58978         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58979         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58980         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58981
58982 2007-12-11  Jim Meyering  <meyering@redhat.com>
58983
58984         * users.txt: Add libvirt.
58985
58986         Support versions of autoconf prior to 2.59c.
58987         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58988         if it is not already defined.
58989
58990 2007-12-09  Bruno Haible  <bruno@clisp.org>
58991
58992         Let 'gnulib-tool --import' collect sources needed for the tests in
58993         tests/ rather than in lib/.
58994         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58995         argument. If true, add rules to generate libtests.a, and put libtests.a
58996         into $(LDADD). Consider source files in subdirectories and set
58997         uses_subdirs.
58998         (func_emit_initmacro_start, func_emit_initmacro_end,
58999         func_emit_initmacro_done): Pass all arguments explicitly.
59000         (func_import): Determine two module lists main_modules,
59001         testsrelated_modules. Determine use_libtests. Determine two variables
59002         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59003         instead of just sed_transform_lib_file. Determine two variables
59004         main_files and testsrelated_files. Compute 'files' as the union of
59005         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59006         func_add_or_update. In the generated gnulib-comp.m4, collect the
59007         object files for tests/ in different variables than those for lib/.
59008         Substitute LIBTESTS_LIBDEPS.
59009         (func_create_testdir): Combine the uses_subdirs results from
59010         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59011
59012 2007-12-09  Bruno Haible  <bruno@clisp.org>
59013
59014         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59015         the build-aux directory.
59016
59017 2007-12-09  Bruno Haible  <bruno@clisp.org>
59018
59019         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59020         introduced on 2006-09-09.
59021
59022 2007-12-07  Jim Meyering  <meyering@redhat.com>
59023
59024         Let these macros work also with autoconf-2.59.
59025         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59026         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59028
59029 2007-12-06  Jim Meyering  <meyering@redhat.com>
59030
59031         Avoid a configure-time syntax error in gl_FUNC_ACL.
59032         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59033         function in each branch, before testing the cache variable.
59034
59035 2007-12-04  Eric Blake  <ebb9@byu.net>
59036
59037         Make scripts executable.
59038         * build-aux/config.guess: Add execute permissions.
59039         * build-aux/config.sub: Likewise.
59040         * build-aux/gendocs.sh: Likewise.
59041
59042         Fix frexp on mingw.
59043         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59044         cross-compiling.
59045         * doc/functions/frexp.texi (frexp): Document the bug.
59046
59047         Make cygwin fseeko check more reliable.
59048         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59049         version numbers, rather than unrelated feature check.
59050         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59051         * doc/functions/ftello.texi (ftello): Likewise.
59052         Reported by Bruno Haible.
59053
59054         * m4/strerror.m4: Bump version number.
59055
59056 2007-12-03  Bruno Haible  <bruno@clisp.org>
59057
59058         * doc/functions/mprotect.texi: Mention the mingw problem.
59059
59060 2007-12-03  Eric Blake  <ebb9@byu.net>
59061
59062         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59063         REPLACE_STRERROR is initialized before this macro.
59064
59065 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59066
59067         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59068         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59069         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59070         put -lsec in even for programs other than 'ls'.  This fixes a problem
59071         for gettext reported by Bruno Haible in
59072         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59073         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59074         Add support for Solaris 10.  This isn't efficient, but should get the
59075         job done for now.
59076
59077 2007-12-03  James Youngman  <jay@gnu.org>
59078
59079         * doc/regexprops-generic.texi: change "an close-group" to "a
59080         close-group" and "illegal" to "not allowed".
59081
59082 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59083
59084         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59085         pr_byname.h. Needed for the rare case when the maintainer has done
59086         "make maintainer-clean" in the source directory and then attempts a
59087         build outside the source directory.
59088         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59089         scripts_byname.h.
59090
59091 2007-12-02  Martin Lambers <marlam@marlam.de>
59092             Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/getpagesize.h: Remove file.
59095         * lib/unistd.in.h: Include declaration of getpagesize here.
59096         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59097         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59098         HAVE_SYS_PARAM_H.
59099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59100         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59101         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59102         (Depends-on): Add unistd.
59103         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59104         (Include): Use <unistd.h> instead of getpagesize.h.
59105         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59106         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59107         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59108         gl_GETPAGESIZE invocation, already handled by module dependency.
59109         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59110
59111 2007-12-02  Bruno Haible  <bruno@clisp.org>
59112
59113         * modules/strings-tests: New file.
59114         * tests/test-strings.c: New file.
59115
59116         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59117         * lib/strings.in.h: New file.
59118         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59119         * m4/strings_h.m4: New file.
59120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59121         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59122         * modules/strings: New file.
59123         * modules/string (Makefile.am): Update.
59124         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59125         Reported by Karl Berry.
59126
59127 2007-12-01  Eric Blake  <ebb9@byu.net>
59128
59129         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59130         accomodate fix in cygwin 1.5.25.
59131
59132 2007-12-01  Jim Meyering  <meyering@redhat.com>
59133
59134         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59135         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59136         that would inhibit utf8-optimization of a regexp containing line-
59137         or buffer-anchors, e.g., `^', `$'.
59138
59139 2007-11-30  Bruno Haible  <bruno@clisp.org>
59140
59141         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59142         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59143         glthread_recursive_lock_init.
59144         * lib/lock.c (glthread_recursive_lock_init)
59145         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59146         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59147
59148 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59149
59150         New function qset_acl, like set_acl but with syscall semantics.
59151         * lib/acl.h (qset_acl): New decl.
59152         * lib/acl.c (qset_acl): New function.
59153         (set_acl): Use new function.  Use more-consistent diagnostics.
59154
59155 2007-11-28  Jim Meyering  <meyering@redhat.com>
59156
59157         * modules/physmem (License): Change from GPL to LGPLv2+.
59158
59159 2007-11-26  Bruno Haible  <bruno@clisp.org>
59160
59161         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59162         'long double' type has excess precision.
59163         Reported by Jim Meyering in
59164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59165
59166 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59167
59168         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59169         Sync from <http://gnu.org/licenses>.
59170         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59171         with license text from same location.
59172         * doc/maintain.texi, doc/standards.texi:  Sync from
59173         <http://savannah.gnu.org/projects/gnustandards>.
59174
59175 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59176         and Jim Meyering  <meyering@redhat.com>
59177
59178         Adjust getdate' grammar to accept a slightly more regular language.
59179         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59180         Before, the former was rejected.
59181         * lib/getdate.y (digits_to_date_time): New function, factored
59182         out of ...
59183         (number): ...here.  Just call digits_to_date_time.
59184         (hybrid): New non-terminal to handle an <unsigned number,
59185         signed relative offset> sequence consistently.
59186
59187 2007-11-18  Jim Meyering  <meyering@redhat.com>
59188
59189         Pull my changes from coreutils:
59190         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59191         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59192         use of $gnulib_tool_option_extras, so that it's separated from the
59193         preceding argument.
59194
59195         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59196         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59197         parent destination directories before copying a file into place.
59198
59199 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59200
59201         bootstrap: work also with 4-argument variant of AC_INIT
59202         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59203
59204 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         Port test-getaddrinfo to Solaris.
59207         Problem reported by Bruno Haible in
59208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59209         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59210         explanation of setting 'hints'.
59211         Don't reject an implementation merely because it returns EAI_SERVICE.
59212         (EAI_SERVICE): Define to 0 if not defined.
59213
59214 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         The license of gnu-make and posix-shell is now "GPLed build tool".
59217         * modules/gnu-make (License): Likewise.
59218         * modules/posix-shell (License): Likewise.
59219
59220         New module posix-shell, for determining a POSIX shell
59221         or perhaps something that is close enough to a POSIX shell.
59222         * m4/posix-shell.m4: New file.
59223         * modules/posix-shell: New file.
59224
59225         * MODULES.html.sh: Mention new module.
59226
59227         New module gnu-make, for determining whether we're using GNU Make.
59228         * m4/gnu-make.m4: New file.
59229         * modules/gnu-make: New file.
59230         * MODULES.html.sh: Mention new module.
59231
59232 2007-11-14  Jim Meyering  <meyering@redhat.com>
59233
59234         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59235         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59236         use this macro to create a function _definition_.
59237         Remove useless "#undef ARGMATCH_DIE".
59238
59239 2007-11-14  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/config.charset: Update for OpenBSD 4.1.
59242         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59243
59244 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59245
59246         Document 64-bit #if problems in stdint.texi.
59247         * doc/headers/stdint.texi (stdint.h): Mention problems with
59248         64-bit-#if, and how to work around them.
59249
59250         Don't insist on 'long long int' support in the preprocessor.  It
59251         breaks too many things.  For example, PRIdMAX still uses a 'long
59252         long int' format with the latest Sun compiler, even though
59253         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59254         preprocessor problem.  This causes the latest coreutils to dump
59255         core on Solaris 10 sparc with the Sun C compiler.
59256         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59257         the troublesome expressions at configure-time, not at #if-time.
59258         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59259         preprocessor.
59260         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59261         compile-time C checks, done at 'configure'-time.
59262         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59263         * modules/inttypes (Makefile): Substitute the new symbols that
59264         gl_INTTYPES_H now generates.
59265         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59266
59267 2007-11-12  Bruno Haible  <bruno@clisp.org>
59268
59269         Tests for Unicode character classification functions.
59270
59271         * modules/unictype/bidicategory-byname-tests: New file.
59272         * modules/unictype/bidicategory-name-tests: New file.
59273         * modules/unictype/bidicategory-of-tests: New file.
59274         * modules/unictype/bidicategory-test-tests: New file.
59275         * modules/unictype/block-list-tests: New file.
59276         * modules/unictype/block-of-tests: New file.
59277         * modules/unictype/block-test-tests: New file.
59278         * modules/unictype/category-C-tests: New file.
59279         * modules/unictype/category-Cc-tests: New file.
59280         * modules/unictype/category-Cf-tests: New file.
59281         * modules/unictype/category-Cn-tests: New file.
59282         * modules/unictype/category-Co-tests: New file.
59283         * modules/unictype/category-Cs-tests: New file.
59284         * modules/unictype/category-L-tests: New file.
59285         * modules/unictype/category-Ll-tests: New file.
59286         * modules/unictype/category-Lm-tests: New file.
59287         * modules/unictype/category-Lo-tests: New file.
59288         * modules/unictype/category-Lt-tests: New file.
59289         * modules/unictype/category-Lu-tests: New file.
59290         * modules/unictype/category-M-tests: New file.
59291         * modules/unictype/category-Mc-tests: New file.
59292         * modules/unictype/category-Me-tests: New file.
59293         * modules/unictype/category-Mn-tests: New file.
59294         * modules/unictype/category-N-tests: New file.
59295         * modules/unictype/category-Nd-tests: New file.
59296         * modules/unictype/category-Nl-tests: New file.
59297         * modules/unictype/category-No-tests: New file.
59298         * modules/unictype/category-P-tests: New file.
59299         * modules/unictype/category-Pc-tests: New file.
59300         * modules/unictype/category-Pd-tests: New file.
59301         * modules/unictype/category-Pe-tests: New file.
59302         * modules/unictype/category-Pf-tests: New file.
59303         * modules/unictype/category-Pi-tests: New file.
59304         * modules/unictype/category-Po-tests: New file.
59305         * modules/unictype/category-Ps-tests: New file.
59306         * modules/unictype/category-S-tests: New file.
59307         * modules/unictype/category-Sc-tests: New file.
59308         * modules/unictype/category-Sk-tests: New file.
59309         * modules/unictype/category-Sm-tests: New file.
59310         * modules/unictype/category-So-tests: New file.
59311         * modules/unictype/category-Z-tests: New file.
59312         * modules/unictype/category-Zl-tests: New file.
59313         * modules/unictype/category-Zp-tests: New file.
59314         * modules/unictype/category-Zs-tests: New file.
59315         * modules/unictype/category-and-not-tests: New file.
59316         * modules/unictype/category-and-tests: New file.
59317         * modules/unictype/category-byname-tests: New file.
59318         * modules/unictype/category-name-tests: New file.
59319         * modules/unictype/category-none-tests: New file.
59320         * modules/unictype/category-of-tests: New file.
59321         * modules/unictype/category-or-tests: New file.
59322         * modules/unictype/category-test-withtable-tests: New file.
59323         * modules/unictype/combining-class-tests: New file.
59324         * modules/unictype/ctype-alnum-tests: New file.
59325         * modules/unictype/ctype-alpha-tests: New file.
59326         * modules/unictype/ctype-blank-tests: New file.
59327         * modules/unictype/ctype-cntrl-tests: New file.
59328         * modules/unictype/ctype-digit-tests: New file.
59329         * modules/unictype/ctype-graph-tests: New file.
59330         * modules/unictype/ctype-lower-tests: New file.
59331         * modules/unictype/ctype-print-tests: New file.
59332         * modules/unictype/ctype-punct-tests: New file.
59333         * modules/unictype/ctype-space-tests: New file.
59334         * modules/unictype/ctype-upper-tests: New file.
59335         * modules/unictype/ctype-xdigit-tests: New file.
59336         * modules/unictype/decimal-digit-tests: New file.
59337         * modules/unictype/digit-tests: New file.
59338         * modules/unictype/mirror-tests: New file.
59339         * modules/unictype/numeric-tests: New file.
59340         * modules/unictype/property-alphabetic-tests: New file.
59341         * modules/unictype/property-ascii-hex-digit-tests: New file.
59342         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59343         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59344         * modules/unictype/property-bidi-block-separator-tests: New file.
59345         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59346         * modules/unictype/property-bidi-common-separator-tests: New file.
59347         * modules/unictype/property-bidi-control-tests: New file.
59348         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59349         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59350         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59351         * modules/unictype/property-bidi-european-digit-tests: New file.
59352         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59353         * modules/unictype/property-bidi-left-to-right-tests: New file.
59354         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59355         * modules/unictype/property-bidi-other-neutral-tests: New file.
59356         * modules/unictype/property-bidi-pdf-tests: New file.
59357         * modules/unictype/property-bidi-segment-separator-tests: New file.
59358         * modules/unictype/property-bidi-whitespace-tests: New file.
59359         * modules/unictype/property-byname-tests: New file.
59360         * modules/unictype/property-combining-tests: New file.
59361         * modules/unictype/property-composite-tests: New file.
59362         * modules/unictype/property-currency-symbol-tests: New file.
59363         * modules/unictype/property-dash-tests: New file.
59364         * modules/unictype/property-decimal-digit-tests: New file.
59365         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59366         * modules/unictype/property-deprecated-tests: New file.
59367         * modules/unictype/property-diacritic-tests: New file.
59368         * modules/unictype/property-extender-tests: New file.
59369         * modules/unictype/property-format-control-tests: New file.
59370         * modules/unictype/property-grapheme-base-tests: New file.
59371         * modules/unictype/property-grapheme-extend-tests: New file.
59372         * modules/unictype/property-grapheme-link-tests: New file.
59373         * modules/unictype/property-hex-digit-tests: New file.
59374         * modules/unictype/property-hyphen-tests: New file.
59375         * modules/unictype/property-id-continue-tests: New file.
59376         * modules/unictype/property-id-start-tests: New file.
59377         * modules/unictype/property-ideographic-tests: New file.
59378         * modules/unictype/property-ids-binary-operator-tests: New file.
59379         * modules/unictype/property-ids-trinary-operator-tests: New file.
59380         * modules/unictype/property-ignorable-control-tests: New file.
59381         * modules/unictype/property-iso-control-tests: New file.
59382         * modules/unictype/property-join-control-tests: New file.
59383         * modules/unictype/property-left-of-pair-tests: New file.
59384         * modules/unictype/property-line-separator-tests: New file.
59385         * modules/unictype/property-logical-order-exception-tests: New file.
59386         * modules/unictype/property-lowercase-tests: New file.
59387         * modules/unictype/property-math-tests: New file.
59388         * modules/unictype/property-non-break-tests: New file.
59389         * modules/unictype/property-not-a-character-tests: New file.
59390         * modules/unictype/property-numeric-tests: New file.
59391         * modules/unictype/property-other-alphabetic-tests: New file.
59392         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59393         * modules/unictype/property-other-grapheme-extend-tests: New file.
59394         * modules/unictype/property-other-id-continue-tests: New file.
59395         * modules/unictype/property-other-id-start-tests: New file.
59396         * modules/unictype/property-other-lowercase-tests: New file.
59397         * modules/unictype/property-other-math-tests: New file.
59398         * modules/unictype/property-other-uppercase-tests: New file.
59399         * modules/unictype/property-paired-punctuation-tests: New file.
59400         * modules/unictype/property-paragraph-separator-tests: New file.
59401         * modules/unictype/property-pattern-syntax-tests: New file.
59402         * modules/unictype/property-pattern-white-space-tests: New file.
59403         * modules/unictype/property-private-use-tests: New file.
59404         * modules/unictype/property-punctuation-tests: New file.
59405         * modules/unictype/property-quotation-mark-tests: New file.
59406         * modules/unictype/property-radical-tests: New file.
59407         * modules/unictype/property-sentence-terminal-tests: New file.
59408         * modules/unictype/property-soft-dotted-tests: New file.
59409         * modules/unictype/property-space-tests: New file.
59410         * modules/unictype/property-terminal-punctuation-tests: New file.
59411         * modules/unictype/property-test-tests: New file.
59412         * modules/unictype/property-titlecase-tests: New file.
59413         * modules/unictype/property-unassigned-code-value-tests: New file.
59414         * modules/unictype/property-unified-ideograph-tests: New file.
59415         * modules/unictype/property-uppercase-tests: New file.
59416         * modules/unictype/property-variation-selector-tests: New file.
59417         * modules/unictype/property-white-space-tests: New file.
59418         * modules/unictype/property-xid-continue-tests: New file.
59419         * modules/unictype/property-xid-start-tests: New file.
59420         * modules/unictype/property-zero-width-tests: New file.
59421         * modules/unictype/scripts-tests: New file.
59422         * modules/unictype/syntax-c-ident-tests: New file.
59423         * modules/unictype/syntax-c-whitespace-tests: New file.
59424         * modules/unictype/syntax-java-ident-tests: New file.
59425         * modules/unictype/syntax-java-whitespace-tests: New file.
59426         * tests/unictype/test-bidi_byname.c: New file.
59427         * tests/unictype/test-bidi_name.c: New file.
59428         * tests/unictype/test-bidi_of.c: New file.
59429         * tests/unictype/test-bidi_test.c: New file.
59430         * tests/unictype/test-block_list.c: New file.
59431         * tests/unictype/test-block_of.c: New file.
59432         * tests/unictype/test-block_test.c: New file.
59433         * tests/unictype/test-categ_and.c: New file.
59434         * tests/unictype/test-categ_and_not.c: New file.
59435         * tests/unictype/test-categ_byname.c: New file.
59436         * tests/unictype/test-categ_name.c: New file.
59437         * tests/unictype/test-categ_none.c: New file.
59438         * tests/unictype/test-categ_of.c: New file.
59439         * tests/unictype/test-categ_or.c: New file.
59440         * tests/unictype/test-categ_test_withtable.c: New file.
59441         * tests/unictype/test-combining.c: New file.
59442         * tests/unictype/test-decdigit.c: New file.
59443         * tests/unictype/test-digit.c: New file.
59444         * tests/unictype/test-mirror.c: New file.
59445         * tests/unictype/test-numeric.c: New file.
59446         * tests/unictype/test-pr_byname.c: New file.
59447         * tests/unictype/test-pr_test.c: New file.
59448         * tests/unictype/test-predicate-part1.h: New file.
59449         * tests/unictype/test-predicate-part2.h: New file.
59450         * tests/unictype/test-scripts.c: New file.
59451         * tests/unictype/test-sy_c_ident.c: New file.
59452         * tests/unictype/test-sy_java_ident.c: New file.
59453
59454         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59455         for Unicode 5.0.0.
59456         * tests/unictype/test-categ_Cc.c: Likewise.
59457         * tests/unictype/test-categ_Cf.c: Likewise.
59458         * tests/unictype/test-categ_Cn.c: Likewise.
59459         * tests/unictype/test-categ_Co.c: Likewise.
59460         * tests/unictype/test-categ_Cs.c: Likewise.
59461         * tests/unictype/test-categ_L.c: Likewise.
59462         * tests/unictype/test-categ_Ll.c: Likewise.
59463         * tests/unictype/test-categ_Lm.c: Likewise.
59464         * tests/unictype/test-categ_Lo.c: Likewise.
59465         * tests/unictype/test-categ_Lt.c: Likewise.
59466         * tests/unictype/test-categ_Lu.c: Likewise.
59467         * tests/unictype/test-categ_M.c: Likewise.
59468         * tests/unictype/test-categ_Mc.c: Likewise.
59469         * tests/unictype/test-categ_Me.c: Likewise.
59470         * tests/unictype/test-categ_Mn.c: Likewise.
59471         * tests/unictype/test-categ_N.c: Likewise.
59472         * tests/unictype/test-categ_Nd.c: Likewise.
59473         * tests/unictype/test-categ_Nl.c: Likewise.
59474         * tests/unictype/test-categ_No.c: Likewise.
59475         * tests/unictype/test-categ_P.c: Likewise.
59476         * tests/unictype/test-categ_Pc.c: Likewise.
59477         * tests/unictype/test-categ_Pd.c: Likewise.
59478         * tests/unictype/test-categ_Pe.c: Likewise.
59479         * tests/unictype/test-categ_Pf.c: Likewise.
59480         * tests/unictype/test-categ_Pi.c: Likewise.
59481         * tests/unictype/test-categ_Po.c: Likewise.
59482         * tests/unictype/test-categ_Ps.c: Likewise.
59483         * tests/unictype/test-categ_S.c: Likewise.
59484         * tests/unictype/test-categ_Sc.c: Likewise.
59485         * tests/unictype/test-categ_Sk.c: Likewise.
59486         * tests/unictype/test-categ_Sm.c: Likewise.
59487         * tests/unictype/test-categ_So.c: Likewise.
59488         * tests/unictype/test-categ_Z.c: Likewise.
59489         * tests/unictype/test-categ_Zl.c: Likewise.
59490         * tests/unictype/test-categ_Zp.c: Likewise.
59491         * tests/unictype/test-categ_Zs.c: Likewise.
59492         * tests/unictype/test-ctype_alnum.c: Likewise.
59493         * tests/unictype/test-ctype_alpha.c: Likewise.
59494         * tests/unictype/test-ctype_blank.c: Likewise.
59495         * tests/unictype/test-ctype_cntrl.c: Likewise.
59496         * tests/unictype/test-ctype_digit.c: Likewise.
59497         * tests/unictype/test-ctype_graph.c: Likewise.
59498         * tests/unictype/test-ctype_lower.c: Likewise.
59499         * tests/unictype/test-ctype_print.c: Likewise.
59500         * tests/unictype/test-ctype_punct.c: Likewise.
59501         * tests/unictype/test-ctype_space.c: Likewise.
59502         * tests/unictype/test-ctype_upper.c: Likewise.
59503         * tests/unictype/test-ctype_xdigit.c: Likewise.
59504         * tests/unictype/test-decdigit.h: Likewise.
59505         * tests/unictype/test-digit.h: Likewise.
59506         * tests/unictype/test-numeric.h: Likewise.
59507         * tests/unictype/test-pr_alphabetic.c: Likewise.
59508         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59509         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59510         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59511         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59512         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59513         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59514         * tests/unictype/test-pr_bidi_control.c: Likewise.
59515         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59516         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59517         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59518         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59519         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59520         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59521         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59522         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59523         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59524         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59525         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59526         * tests/unictype/test-pr_combining.c: Likewise.
59527         * tests/unictype/test-pr_composite.c: Likewise.
59528         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59529         * tests/unictype/test-pr_dash.c: Likewise.
59530         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59531         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59532         * tests/unictype/test-pr_deprecated.c: Likewise.
59533         * tests/unictype/test-pr_diacritic.c: Likewise.
59534         * tests/unictype/test-pr_extender.c: Likewise.
59535         * tests/unictype/test-pr_format_control.c: Likewise.
59536         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59537         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59538         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59539         * tests/unictype/test-pr_hex_digit.c: Likewise.
59540         * tests/unictype/test-pr_hyphen.c: Likewise.
59541         * tests/unictype/test-pr_id_continue.c: Likewise.
59542         * tests/unictype/test-pr_id_start.c: Likewise.
59543         * tests/unictype/test-pr_ideographic.c: Likewise.
59544         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59545         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59546         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59547         * tests/unictype/test-pr_iso_control.c: Likewise.
59548         * tests/unictype/test-pr_join_control.c: Likewise.
59549         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59550         * tests/unictype/test-pr_line_separator.c: Likewise.
59551         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59552         * tests/unictype/test-pr_lowercase.c: Likewise.
59553         * tests/unictype/test-pr_math.c: Likewise.
59554         * tests/unictype/test-pr_non_break.c: Likewise.
59555         * tests/unictype/test-pr_not_a_character.c: Likewise.
59556         * tests/unictype/test-pr_numeric.c: Likewise.
59557         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59558         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59559         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59560         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59561         * tests/unictype/test-pr_other_id_start.c: Likewise.
59562         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59563         * tests/unictype/test-pr_other_math.c: Likewise.
59564         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59565         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59566         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59567         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59568         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59569         * tests/unictype/test-pr_private_use.c: Likewise.
59570         * tests/unictype/test-pr_punctuation.c: Likewise.
59571         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59572         * tests/unictype/test-pr_radical.c: Likewise.
59573         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59574         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59575         * tests/unictype/test-pr_space.c: Likewise.
59576         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59577         * tests/unictype/test-pr_titlecase.c: Likewise.
59578         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59579         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59580         * tests/unictype/test-pr_uppercase.c: Likewise.
59581         * tests/unictype/test-pr_variation_selector.c: Likewise.
59582         * tests/unictype/test-pr_white_space.c: Likewise.
59583         * tests/unictype/test-pr_xid_continue.c: Likewise.
59584         * tests/unictype/test-pr_xid_start.c: Likewise.
59585         * tests/unictype/test-pr_zero_width.c: Likewise.
59586         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59587         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59588
59589 2007-11-12  Bruno Haible  <bruno@clisp.org>
59590
59591         Unicode character classification functions.
59592         * lib/unictype.h: New file.
59593         * modules/unictype/base: New file.
59594         * modules/unictype/category-L: New file.
59595         * modules/unictype/category-Lu: New file.
59596         * modules/unictype/category-Ll: New file.
59597         * modules/unictype/category-Lt: New file.
59598         * modules/unictype/category-Lm: New file.
59599         * modules/unictype/category-Lo: New file.
59600         * modules/unictype/category-M: New file.
59601         * modules/unictype/category-Mn: New file.
59602         * modules/unictype/category-Mc: New file.
59603         * modules/unictype/category-Me: New file.
59604         * modules/unictype/category-N: New file.
59605         * modules/unictype/category-Nd: New file.
59606         * modules/unictype/category-Nl: New file.
59607         * modules/unictype/category-No: New file.
59608         * modules/unictype/category-P: New file.
59609         * modules/unictype/category-Pc: New file.
59610         * modules/unictype/category-Pd: New file.
59611         * modules/unictype/category-Ps: New file.
59612         * modules/unictype/category-Pe: New file.
59613         * modules/unictype/category-Pi: New file.
59614         * modules/unictype/category-Pf: New file.
59615         * modules/unictype/category-Po: New file.
59616         * modules/unictype/category-S: New file.
59617         * modules/unictype/category-Sm: New file.
59618         * modules/unictype/category-Sc: New file.
59619         * modules/unictype/category-Sk: New file.
59620         * modules/unictype/category-So: New file.
59621         * modules/unictype/category-Z: New file.
59622         * modules/unictype/category-Zs: New file.
59623         * modules/unictype/category-Zl: New file.
59624         * modules/unictype/category-Zp: New file.
59625         * modules/unictype/category-C: New file.
59626         * modules/unictype/category-Cc: New file.
59627         * modules/unictype/category-Cf: New file.
59628         * modules/unictype/category-Cs: New file.
59629         * modules/unictype/category-Co: New file.
59630         * modules/unictype/category-Cn: New file.
59631         * modules/unictype/category-or: New file.
59632         * modules/unictype/category-of: New file.
59633         * modules/unictype/category-test: New file.
59634         * modules/unictype/category-test-withtable: New file.
59635         * modules/unictype/category-byname: New file.
59636         * modules/unictype/category-none: New file.
59637         * modules/unictype/category-and: New file.
59638         * modules/unictype/category-and-not: New file.
59639         * modules/unictype/category-name: New file.
59640         * modules/unictype/combining-class: New file.
59641         * modules/unictype/category-all: New file.
59642         * modules/unictype/bidicategory-all: New file.
59643         * modules/unictype/bidicategory-byname: New file.
59644         * modules/unictype/bidicategory-name: New file.
59645         * modules/unictype/bidicategory-of: New file.
59646         * modules/unictype/bidicategory-test: New file.
59647         * modules/unictype/decimal-digit: New file.
59648         * modules/unictype/digit: New file.
59649         * modules/unictype/numeric: New file.
59650         * modules/unictype/mirror: New file.
59651         * modules/unictype/property-white-space: New file.
59652         * modules/unictype/property-alphabetic: New file.
59653         * modules/unictype/property-other-alphabetic: New file.
59654         * modules/unictype/property-not-a-character: New file.
59655         * modules/unictype/property-default-ignorable-code-point: New file.
59656         * modules/unictype/property-other-default-ignorable-code-point: New
59657         file.
59658         * modules/unictype/property-deprecated: New file.
59659         * modules/unictype/property-logical-order-exception: New file.
59660         * modules/unictype/property-variation-selector: New file.
59661         * modules/unictype/property-private-use: New file.
59662         * modules/unictype/property-unassigned-code-value: New file.
59663         * modules/unictype/property-uppercase: New file.
59664         * modules/unictype/property-other-uppercase: New file.
59665         * modules/unictype/property-lowercase: New file.
59666         * modules/unictype/property-other-lowercase: New file.
59667         * modules/unictype/property-titlecase: New file.
59668         * modules/unictype/property-soft-dotted: New file.
59669         * modules/unictype/property-id-start: New file.
59670         * modules/unictype/property-other-id-start: New file.
59671         * modules/unictype/property-id-continue: New file.
59672         * modules/unictype/property-other-id-continue: New file.
59673         * modules/unictype/property-xid-start: New file.
59674         * modules/unictype/property-xid-continue: New file.
59675         * modules/unictype/property-pattern-white-space: New file.
59676         * modules/unictype/property-pattern-syntax: New file.
59677         * modules/unictype/property-join-control: New file.
59678         * modules/unictype/property-grapheme-base: New file.
59679         * modules/unictype/property-grapheme-extend: New file.
59680         * modules/unictype/property-other-grapheme-extend: New file.
59681         * modules/unictype/property-grapheme-link: New file.
59682         * modules/unictype/property-bidi-control: New file.
59683         * modules/unictype/property-bidi-left-to-right: New file.
59684         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59685         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59686         * modules/unictype/property-bidi-european-digit: New file.
59687         * modules/unictype/property-bidi-eur-num-separator: New file.
59688         * modules/unictype/property-bidi-eur-num-terminator: New file.
59689         * modules/unictype/property-bidi-arabic-digit: New file.
59690         * modules/unictype/property-bidi-common-separator: New file.
59691         * modules/unictype/property-bidi-block-separator: New file.
59692         * modules/unictype/property-bidi-segment-separator: New file.
59693         * modules/unictype/property-bidi-whitespace: New file.
59694         * modules/unictype/property-bidi-non-spacing-mark: New file.
59695         * modules/unictype/property-bidi-boundary-neutral: New file.
59696         * modules/unictype/property-bidi-pdf: New file.
59697         * modules/unictype/property-bidi-embedding-or-override: New file.
59698         * modules/unictype/property-bidi-other-neutral: New file.
59699         * modules/unictype/property-hex-digit: New file.
59700         * modules/unictype/property-ascii-hex-digit: New file.
59701         * modules/unictype/property-ideographic: New file.
59702         * modules/unictype/property-unified-ideograph: New file.
59703         * modules/unictype/property-radical: New file.
59704         * modules/unictype/property-ids-binary-operator: New file.
59705         * modules/unictype/property-ids-trinary-operator: New file.
59706         * modules/unictype/property-zero-width: New file.
59707         * modules/unictype/property-space: New file.
59708         * modules/unictype/property-non-break: New file.
59709         * modules/unictype/property-iso-control: New file.
59710         * modules/unictype/property-format-control: New file.
59711         * modules/unictype/property-dash: New file.
59712         * modules/unictype/property-hyphen: New file.
59713         * modules/unictype/property-punctuation: New file.
59714         * modules/unictype/property-line-separator: New file.
59715         * modules/unictype/property-paragraph-separator: New file.
59716         * modules/unictype/property-quotation-mark: New file.
59717         * modules/unictype/property-sentence-terminal: New file.
59718         * modules/unictype/property-terminal-punctuation: New file.
59719         * modules/unictype/property-currency-symbol: New file.
59720         * modules/unictype/property-math: New file.
59721         * modules/unictype/property-other-math: New file.
59722         * modules/unictype/property-paired-punctuation: New file.
59723         * modules/unictype/property-left-of-pair: New file.
59724         * modules/unictype/property-combining: New file.
59725         * modules/unictype/property-composite: New file.
59726         * modules/unictype/property-decimal-digit: New file.
59727         * modules/unictype/property-numeric: New file.
59728         * modules/unictype/property-diacritic: New file.
59729         * modules/unictype/property-extender: New file.
59730         * modules/unictype/property-ignorable-control: New file.
59731         * modules/unictype/property-test: New file.
59732         * modules/unictype/property-byname: New file.
59733         * modules/unictype/property-all: New file.
59734         * modules/unictype/scripts: New file.
59735         * modules/unictype/scripts-all: New file.
59736         * modules/unictype/block-of: New file.
59737         * modules/unictype/block-test: New file.
59738         * modules/unictype/block-list: New file.
59739         * modules/unictype/block-all: New file.
59740         * modules/unictype/syntax-c-whitespace: New file.
59741         * modules/unictype/syntax-java-whitespace: New file.
59742         * modules/unictype/syntax-c-ident: New file.
59743         * modules/unictype/syntax-java-ident: New file.
59744         * modules/unictype/ctype-alnum: New file.
59745         * modules/unictype/ctype-alpha: New file.
59746         * modules/unictype/ctype-cntrl: New file.
59747         * modules/unictype/ctype-digit: New file.
59748         * modules/unictype/ctype-graph: New file.
59749         * modules/unictype/ctype-lower: New file.
59750         * modules/unictype/ctype-print: New file.
59751         * modules/unictype/ctype-punct: New file.
59752         * modules/unictype/ctype-space: New file.
59753         * modules/unictype/ctype-upper: New file.
59754         * modules/unictype/ctype-xdigit: New file.
59755         * modules/unictype/ctype-blank: New file.
59756         * lib/unictype/bidi_byname.c: New file.
59757         * lib/unictype/bidi_name.c: New file.
59758         * lib/unictype/bidi_of.c: New file.
59759         * lib/unictype/bidi_test.c: New file.
59760         * lib/unictype/bitmap.h: New file.
59761         * lib/unictype/block_test.c: New file.
59762         * lib/unictype/blocks.c: New file.
59763         * lib/unictype/categ_C.c: New file.
59764         * lib/unictype/categ_Cc.c: New file.
59765         * lib/unictype/categ_Cf.c: New file.
59766         * lib/unictype/categ_Cn.c: New file.
59767         * lib/unictype/categ_Co.c: New file.
59768         * lib/unictype/categ_Cs.c: New file.
59769         * lib/unictype/categ_L.c: New file.
59770         * lib/unictype/categ_Ll.c: New file.
59771         * lib/unictype/categ_Lm.c: New file.
59772         * lib/unictype/categ_Lo.c: New file.
59773         * lib/unictype/categ_Lt.c: New file.
59774         * lib/unictype/categ_Lu.c: New file.
59775         * lib/unictype/categ_M.c: New file.
59776         * lib/unictype/categ_Mc.c: New file.
59777         * lib/unictype/categ_Me.c: New file.
59778         * lib/unictype/categ_Mn.c: New file.
59779         * lib/unictype/categ_N.c: New file.
59780         * lib/unictype/categ_Nd.c: New file.
59781         * lib/unictype/categ_Nl.c: New file.
59782         * lib/unictype/categ_No.c: New file.
59783         * lib/unictype/categ_P.c: New file.
59784         * lib/unictype/categ_Pc.c: New file.
59785         * lib/unictype/categ_Pd.c: New file.
59786         * lib/unictype/categ_Pe.c: New file.
59787         * lib/unictype/categ_Pf.c: New file.
59788         * lib/unictype/categ_Pi.c: New file.
59789         * lib/unictype/categ_Po.c: New file.
59790         * lib/unictype/categ_Ps.c: New file.
59791         * lib/unictype/categ_S.c: New file.
59792         * lib/unictype/categ_Sc.c: New file.
59793         * lib/unictype/categ_Sk.c: New file.
59794         * lib/unictype/categ_Sm.c: New file.
59795         * lib/unictype/categ_So.c: New file.
59796         * lib/unictype/categ_Z.c: New file.
59797         * lib/unictype/categ_Zl.c: New file.
59798         * lib/unictype/categ_Zp.c: New file.
59799         * lib/unictype/categ_Zs.c: New file.
59800         * lib/unictype/categ_and.c: New file.
59801         * lib/unictype/categ_and_not.c: New file.
59802         * lib/unictype/categ_byname.c: New file.
59803         * lib/unictype/categ_name.c: New file.
59804         * lib/unictype/categ_none.c: New file.
59805         * lib/unictype/categ_of.c: New file.
59806         * lib/unictype/categ_or.c: New file.
59807         * lib/unictype/categ_test.c: New file.
59808         * lib/unictype/combining.c: New file.
59809         * lib/unictype/ctype_alnum.c: New file.
59810         * lib/unictype/ctype_alpha.c: New file.
59811         * lib/unictype/ctype_blank.c: New file.
59812         * lib/unictype/ctype_cntrl.c: New file.
59813         * lib/unictype/ctype_digit.c: New file.
59814         * lib/unictype/ctype_graph.c: New file.
59815         * lib/unictype/ctype_lower.c: New file.
59816         * lib/unictype/ctype_print.c: New file.
59817         * lib/unictype/ctype_punct.c: New file.
59818         * lib/unictype/ctype_space.c: New file.
59819         * lib/unictype/ctype_upper.c: New file.
59820         * lib/unictype/ctype_xdigit.c: New file.
59821         * lib/unictype/decdigit.c: New file.
59822         * lib/unictype/digit.c: New file.
59823         * lib/unictype/identsyntaxmap.h: New file.
59824         * lib/unictype/mirror.c: New file.
59825         * lib/unictype/numeric.c: New file.
59826         * lib/unictype/pr_alphabetic.c: New file.
59827         * lib/unictype/pr_ascii_hex_digit.c: New file.
59828         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59829         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59830         * lib/unictype/pr_bidi_block_separator.c: New file.
59831         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59832         * lib/unictype/pr_bidi_common_separator.c: New file.
59833         * lib/unictype/pr_bidi_control.c: New file.
59834         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59835         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59836         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59837         * lib/unictype/pr_bidi_european_digit.c: New file.
59838         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59839         * lib/unictype/pr_bidi_left_to_right.c: New file.
59840         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59841         * lib/unictype/pr_bidi_other_neutral.c: New file.
59842         * lib/unictype/pr_bidi_pdf.c: New file.
59843         * lib/unictype/pr_bidi_segment_separator.c: New file.
59844         * lib/unictype/pr_bidi_whitespace.c: New file.
59845         * lib/unictype/pr_byname.c: New file.
59846         * lib/unictype/pr_byname.gperf: New file.
59847         * lib/unictype/pr_combining.c: New file.
59848         * lib/unictype/pr_composite.c: New file.
59849         * lib/unictype/pr_currency_symbol.c: New file.
59850         * lib/unictype/pr_dash.c: New file.
59851         * lib/unictype/pr_decimal_digit.c: New file.
59852         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59853         * lib/unictype/pr_deprecated.c: New file.
59854         * lib/unictype/pr_diacritic.c: New file.
59855         * lib/unictype/pr_extender.c: New file.
59856         * lib/unictype/pr_format_control.c: New file.
59857         * lib/unictype/pr_grapheme_base.c: New file.
59858         * lib/unictype/pr_grapheme_extend.c: New file.
59859         * lib/unictype/pr_grapheme_link.c: New file.
59860         * lib/unictype/pr_hex_digit.c: New file.
59861         * lib/unictype/pr_hyphen.c: New file.
59862         * lib/unictype/pr_id_continue.c: New file.
59863         * lib/unictype/pr_id_start.c: New file.
59864         * lib/unictype/pr_ideographic.c: New file.
59865         * lib/unictype/pr_ids_binary_operator.c: New file.
59866         * lib/unictype/pr_ids_trinary_operator.c: New file.
59867         * lib/unictype/pr_ignorable_control.c: New file.
59868         * lib/unictype/pr_iso_control.c: New file.
59869         * lib/unictype/pr_join_control.c: New file.
59870         * lib/unictype/pr_left_of_pair.c: New file.
59871         * lib/unictype/pr_line_separator.c: New file.
59872         * lib/unictype/pr_logical_order_exception.c: New file.
59873         * lib/unictype/pr_lowercase.c: New file.
59874         * lib/unictype/pr_math.c: New file.
59875         * lib/unictype/pr_non_break.c: New file.
59876         * lib/unictype/pr_not_a_character.c: New file.
59877         * lib/unictype/pr_numeric.c: New file.
59878         * lib/unictype/pr_other_alphabetic.c: New file.
59879         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59880         * lib/unictype/pr_other_grapheme_extend.c: New file.
59881         * lib/unictype/pr_other_id_continue.c: New file.
59882         * lib/unictype/pr_other_id_start.c: New file.
59883         * lib/unictype/pr_other_lowercase.c: New file.
59884         * lib/unictype/pr_other_math.c: New file.
59885         * lib/unictype/pr_other_uppercase.c: New file.
59886         * lib/unictype/pr_paired_punctuation.c: New file.
59887         * lib/unictype/pr_paragraph_separator.c: New file.
59888         * lib/unictype/pr_pattern_syntax.c: New file.
59889         * lib/unictype/pr_pattern_white_space.c: New file.
59890         * lib/unictype/pr_private_use.c: New file.
59891         * lib/unictype/pr_punctuation.c: New file.
59892         * lib/unictype/pr_quotation_mark.c: New file.
59893         * lib/unictype/pr_radical.c: New file.
59894         * lib/unictype/pr_sentence_terminal.c: New file.
59895         * lib/unictype/pr_soft_dotted.c: New file.
59896         * lib/unictype/pr_space.c: New file.
59897         * lib/unictype/pr_terminal_punctuation.c: New file.
59898         * lib/unictype/pr_test.c: New file.
59899         * lib/unictype/pr_titlecase.c: New file.
59900         * lib/unictype/pr_unassigned_code_value.c: New file.
59901         * lib/unictype/pr_unified_ideograph.c: New file.
59902         * lib/unictype/pr_uppercase.c: New file.
59903         * lib/unictype/pr_variation_selector.c: New file.
59904         * lib/unictype/pr_white_space.c: New file.
59905         * lib/unictype/pr_xid_continue.c: New file.
59906         * lib/unictype/pr_xid_start.c: New file.
59907         * lib/unictype/pr_zero_width.c: New file.
59908         * lib/unictype/scripts.c: New file.
59909         * lib/unictype/sy_c_ident.c: New file.
59910         * lib/unictype/sy_c_whitespace.c: New file.
59911         * lib/unictype/sy_java_ident.c: New file.
59912         * lib/unictype/sy_java_whitespace.c: New file.
59913
59914         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59915         Unicode 5.0.0.
59916         * lib/unictype/blocks.h: Likewise.
59917         * lib/unictype/categ_C.h: Likewise.
59918         * lib/unictype/categ_Cc.h: Likewise.
59919         * lib/unictype/categ_Cf.h: Likewise.
59920         * lib/unictype/categ_Cn.h: Likewise.
59921         * lib/unictype/categ_Co.h: Likewise.
59922         * lib/unictype/categ_Cs.h: Likewise.
59923         * lib/unictype/categ_L.h: Likewise.
59924         * lib/unictype/categ_Ll.h: Likewise.
59925         * lib/unictype/categ_Lm.h: Likewise.
59926         * lib/unictype/categ_Lo.h: Likewise.
59927         * lib/unictype/categ_Lt.h: Likewise.
59928         * lib/unictype/categ_Lu.h: Likewise.
59929         * lib/unictype/categ_M.h: Likewise.
59930         * lib/unictype/categ_Mc.h: Likewise.
59931         * lib/unictype/categ_Me.h: Likewise.
59932         * lib/unictype/categ_Mn.h: Likewise.
59933         * lib/unictype/categ_N.h: Likewise.
59934         * lib/unictype/categ_Nd.h: Likewise.
59935         * lib/unictype/categ_Nl.h: Likewise.
59936         * lib/unictype/categ_No.h: Likewise.
59937         * lib/unictype/categ_P.h: Likewise.
59938         * lib/unictype/categ_Pc.h: Likewise.
59939         * lib/unictype/categ_Pd.h: Likewise.
59940         * lib/unictype/categ_Pe.h: Likewise.
59941         * lib/unictype/categ_Pf.h: Likewise.
59942         * lib/unictype/categ_Pi.h: Likewise.
59943         * lib/unictype/categ_Po.h: Likewise.
59944         * lib/unictype/categ_Ps.h: Likewise.
59945         * lib/unictype/categ_S.h: Likewise.
59946         * lib/unictype/categ_Sc.h: Likewise.
59947         * lib/unictype/categ_Sk.h: Likewise.
59948         * lib/unictype/categ_Sm.h: Likewise.
59949         * lib/unictype/categ_So.h: Likewise.
59950         * lib/unictype/categ_Z.h: Likewise.
59951         * lib/unictype/categ_Zl.h: Likewise.
59952         * lib/unictype/categ_Zp.h: Likewise.
59953         * lib/unictype/categ_Zs.h: Likewise.
59954         * lib/unictype/categ_of.h: Likewise.
59955         * lib/unictype/combining.h: Likewise.
59956         * lib/unictype/ctype_alnum.h: Likewise.
59957         * lib/unictype/ctype_alpha.h: Likewise.
59958         * lib/unictype/ctype_blank.h: Likewise.
59959         * lib/unictype/ctype_cntrl.h: Likewise.
59960         * lib/unictype/ctype_digit.h: Likewise.
59961         * lib/unictype/ctype_graph.h: Likewise.
59962         * lib/unictype/ctype_lower.h: Likewise.
59963         * lib/unictype/ctype_print.h: Likewise.
59964         * lib/unictype/ctype_punct.h: Likewise.
59965         * lib/unictype/ctype_space.h: Likewise.
59966         * lib/unictype/ctype_upper.h: Likewise.
59967         * lib/unictype/ctype_xdigit.h: Likewise.
59968         * lib/unictype/decdigit.h: Likewise.
59969         * lib/unictype/digit.h: Likewise.
59970         * lib/unictype/mirror.h: Likewise.
59971         * lib/unictype/numeric.h: Likewise.
59972         * lib/unictype/pr_alphabetic.h: Likewise.
59973         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59974         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59975         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59976         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59977         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59978         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59979         * lib/unictype/pr_bidi_control.h: Likewise.
59980         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59981         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59982         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59983         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59984         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59985         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59986         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59987         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59988         * lib/unictype/pr_bidi_pdf.h: Likewise.
59989         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59990         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59991         * lib/unictype/pr_combining.h: Likewise.
59992         * lib/unictype/pr_composite.h: Likewise.
59993         * lib/unictype/pr_currency_symbol.h: Likewise.
59994         * lib/unictype/pr_dash.h: Likewise.
59995         * lib/unictype/pr_decimal_digit.h: Likewise.
59996         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59997         * lib/unictype/pr_deprecated.h: Likewise.
59998         * lib/unictype/pr_diacritic.h: Likewise.
59999         * lib/unictype/pr_extender.h: Likewise.
60000         * lib/unictype/pr_format_control.h: Likewise.
60001         * lib/unictype/pr_grapheme_base.h: Likewise.
60002         * lib/unictype/pr_grapheme_extend.h: Likewise.
60003         * lib/unictype/pr_grapheme_link.h: Likewise.
60004         * lib/unictype/pr_hex_digit.h: Likewise.
60005         * lib/unictype/pr_hyphen.h: Likewise.
60006         * lib/unictype/pr_id_continue.h: Likewise.
60007         * lib/unictype/pr_id_start.h: Likewise.
60008         * lib/unictype/pr_ideographic.h: Likewise.
60009         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60010         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60011         * lib/unictype/pr_ignorable_control.h: Likewise.
60012         * lib/unictype/pr_iso_control.h: Likewise.
60013         * lib/unictype/pr_join_control.h: Likewise.
60014         * lib/unictype/pr_left_of_pair.h: Likewise.
60015         * lib/unictype/pr_line_separator.h: Likewise.
60016         * lib/unictype/pr_logical_order_exception.h: Likewise.
60017         * lib/unictype/pr_lowercase.h: Likewise.
60018         * lib/unictype/pr_math.h: Likewise.
60019         * lib/unictype/pr_non_break.h: Likewise.
60020         * lib/unictype/pr_not_a_character.h: Likewise.
60021         * lib/unictype/pr_numeric.h: Likewise.
60022         * lib/unictype/pr_other_alphabetic.h: Likewise.
60023         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60024         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60025         * lib/unictype/pr_other_id_continue.h: Likewise.
60026         * lib/unictype/pr_other_id_start.h: Likewise.
60027         * lib/unictype/pr_other_lowercase.h: Likewise.
60028         * lib/unictype/pr_other_math.h: Likewise.
60029         * lib/unictype/pr_other_uppercase.h: Likewise.
60030         * lib/unictype/pr_paired_punctuation.h: Likewise.
60031         * lib/unictype/pr_paragraph_separator.h: Likewise.
60032         * lib/unictype/pr_pattern_syntax.h: Likewise.
60033         * lib/unictype/pr_pattern_white_space.h: Likewise.
60034         * lib/unictype/pr_private_use.h: Likewise.
60035         * lib/unictype/pr_punctuation.h: Likewise.
60036         * lib/unictype/pr_quotation_mark.h: Likewise.
60037         * lib/unictype/pr_radical.h: Likewise.
60038         * lib/unictype/pr_sentence_terminal.h: Likewise.
60039         * lib/unictype/pr_soft_dotted.h: Likewise.
60040         * lib/unictype/pr_space.h: Likewise.
60041         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60042         * lib/unictype/pr_titlecase.h: Likewise.
60043         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60044         * lib/unictype/pr_unified_ideograph.h: Likewise.
60045         * lib/unictype/pr_uppercase.h: Likewise.
60046         * lib/unictype/pr_variation_selector.h: Likewise.
60047         * lib/unictype/pr_white_space.h: Likewise.
60048         * lib/unictype/pr_xid_continue.h: Likewise.
60049         * lib/unictype/pr_xid_start.h: Likewise.
60050         * lib/unictype/pr_zero_width.h: Likewise.
60051         * lib/unictype/scripts.h: Likewise.
60052         * lib/unictype/scripts_byname.gperf: Likewise.
60053         * lib/unictype/sy_c_ident.h: Likewise.
60054         * lib/unictype/sy_c_whitespace.h: Likewise.
60055         * lib/unictype/sy_java_ident.h: Likewise.
60056         * lib/unictype/sy_java_whitespace.h: Likewise.
60057
60058         * lib/unictype/Makefile: New file.
60059         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60060         glibc.
60061         * lib/unictype/3level.h: New file, copied from glibc.
60062         * lib/unictype/3levelbit.h: New file.
60063
60064 2007-11-11  Bruno Haible  <bruno@clisp.org>
60065
60066         * modules/gperf: New file.
60067         * modules/iconv_open (Depends-on): Add it.
60068         (Makefile.am): Remove the GPERF definition.
60069
60070 2007-11-11  Bruno Haible  <bruno@clisp.org>
60071
60072         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60073         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60074
60075 2007-11-11  Bruno Haible  <bruno@clisp.org>
60076
60077         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60078         (usage): Remove function.
60079
60080 2007-11-11  Bruno Haible  <bruno@clisp.org>
60081
60082         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60083         gl_FUNC_CEILF_LIBS.
60084         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60085         gl_FUNC_CEIL_LIBS.
60086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60087         gl_FUNC_CEILL_LIBS.
60088         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60089         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60090         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60091
60092 2007-11-11  Bruno Haible  <bruno@clisp.org>
60093
60094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60095         roundf were declared but do not exist on functions.
60096         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60097         roundl were declared but do not exist on functions.
60098         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60099         HAVE_FLOORL_AND_CEILL, respectively.
60100         Needed for Sun C on Solaris 10.
60101
60102 2007-11-11  Bruno Haible  <bruno@clisp.org>
60103
60104         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60105         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60106         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60107         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60109         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60110         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60111         HAVE_DECL_ROUNDF.
60112         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60113         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60115         of HAVE_DECL_ROUND*.
60116         * modules/math (Makefile.am): Update.
60117
60118 2007-11-10  Bruno Haible  <bruno@clisp.org>
60119
60120         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60121         ptrdiff_t as m4/intl.m4.
60122
60123 2007-11-10  Jim Meyering  <meyering@redhat.com>
60124
60125         Avoid link failure for the argmatch test.
60126         * tests/test-argmatch.c (usage): Define function to avoid a link
60127         failure: argmatch_die requires a usage function.
60128
60129 2007-11-09  Bruno Haible  <bruno@clisp.org>
60130
60131         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60132         * doc/functions/vsnprintf.texi: Likewise.
60133         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60134         with a size argument < 2.
60135
60136 2007-11-09  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60139         buffer. Fixes an inefficiency introduced on 2007-11-03.
60140
60141 2007-11-09  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60144         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60145
60146 2007-11-08  Jim Meyering  <meyering@redhat.com>
60147
60148         Change cache variable name prefix "jm_" to "gl_" everywhere.
60149         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60150         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60151         * m4/uptime.m4: s/gl_/jm_/
60152
60153 2007-11-07  Bruno Haible  <bruno@clisp.org>
60154
60155         Update to GNU gettext 0.17.
60156         * m4/intl.m4: Update to GNU gettext 0.17.
60157         * m4/po.m4: Likewise.
60158         * modules/gettext (Files): Remove m4/ulonglong.m4.
60159         (configure.ac): Require gettext infrastructure from version 0.17.
60160
60161 2007-11-06  Bruno Haible  <bruno@clisp.org>
60162
60163         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60164         symbolic values are not defined in a public header.
60165         * lib/freadable.c (freadable) [QNX]: Likewise.
60166         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60167         * lib/freading.c (freading) [QNX]: Likewise.
60168         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60169         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60170         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60171         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60172         Reported by Alain Magloire.
60173
60174         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60175
60176 2007-11-05  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60179         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60180         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60181         Reported by Eric Blake.
60182
60183 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60184             Bruno Haible  <bruno@clisp.org>
60185
60186         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60187         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60188         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60189         (malloc): Undefine also before including <stdlib.h>.
60190         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60191         Needed on OSF/1 4.0.
60192
60193 2007-11-05  Jim Meyering  <meyering@redhat.com>
60194
60195         git-version-gen: sync from coreutils.
60196         * build-aux/git-version-gen: Add comments.
60197         Change the first '-' to '.' in the snapshot version string,
60198         e.g., 6.9-377-08144 -> 6.9.377-08144
60199         Remove first parameter.
60200         Don't declare a version "-dirty" merely because a time
60201         stamp has changed.
60202
60203 2007-11-04  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/lock.h: Protect all macro definitions containing an 'if'
60206         statement through a "do { ... } while (0)".
60207         * lib/tls.h: Likewise.
60208
60209 2007-11-04  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60212
60213 2007-11-04  Bruno Haible  <bruno@clisp.org>
60214
60215         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60216         * modules/fprintf-posix (Depends-on): Add nocrash.
60217         * modules/snprintf-posix (Depends-on): Likewise.
60218         * modules/sprintf-posix (Depends-on): Likewise.
60219         * modules/vasnprintf-posix (Depends-on): Likewise.
60220         * modules/vasprintf-posix (Depends-on): Likewise.
60221         * modules/vfprintf-posix (Depends-on): Likewise.
60222         * modules/vsnprintf-posix (Depends-on): Likewise.
60223         * modules/vsprintf-posix (Depends-on): Likewise.
60224         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60225         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60226         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60227         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60228         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60229         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60230         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60231
60232 2007-11-04  Bruno Haible  <bruno@clisp.org>
60233
60234         * modules/nocrash: New file.
60235         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60236         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60237
60238 2007-11-04  Bruno Haible  <bruno@clisp.org>
60239
60240         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60241         precision handling.
60242         * tests/test-vasprintf-posix.c (test_function): Likewise.
60243         * tests/test-snprintf-posix.h (test_function): Likewise.
60244         * tests/test-sprintf-posix.h (test_function): Likewise.
60245
60246         Fix *printf behaviour for large precisions on mingw and BeOS.
60247         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60248         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60250         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60251         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60252         gl_PRINTF_PRECISION and test its result. Invoke
60253         gl_PREREQ_VASNPRINTF_PRECISION.
60254         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60256         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60259         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60260         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60261         * doc/functions/fprintf.texi: Update.
60262         * doc/functions/printf.texi: Update.
60263         * doc/functions/snprintf.texi: Update.
60264         * doc/functions/sprintf.texi: Update.
60265         * doc/functions/vfprintf.texi: Update.
60266         * doc/functions/vprintf.texi: Update.
60267         * doc/functions/vsnprintf.texi: Update.
60268         * doc/functions/vsprintf.texi: Update.
60269
60270 2007-11-04  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60273
60274 2007-11-04  Bruno Haible  <bruno@clisp.org>
60275
60276         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60277         Reported by Sylvain Beucler <beuc@gnu.org>.
60278
60279 2007-11-03  Bruno Haible  <bruno@clisp.org>
60280
60281         * tests/test-fprintf-posix2.sh: New file.
60282         * tests/test-fprintf-posix2.c: New file.
60283         * modules/fprintf-posix-tests (Files): Add them.
60284         (TESTS): Add test-fprintf-posix2.sh.
60285         (configure.ac): Check for getrlimit and setrlimit.
60286         (check_PROGRAMS): Add test-fprintf-posix2.
60287
60288         * tests/test-printf-posix2.sh: New file.
60289         * tests/test-printf-posix2.c: New file.
60290         * modules/printf-posix-tests (Files): Add them.
60291         (TESTS): Add test-printf-posix2.sh.
60292         (configure.ac): Check for getrlimit and setrlimit.
60293         (check_PROGRAMS): Add test-printf-posix2.
60294
60295         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60296         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60297         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60298         (decode_double): New function, copied from decode_long_double.
60299         (scale10_round_decimal_decoded): New function, extracted from
60300         scale10_round_decimal_long_double.
60301         (scale10_round_decimal_long_double): Use it.
60302         (scale10_round_decimal_double): New function.
60303         (floorlog10): New function.
60304         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60306         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60308         gl_PRINTF_ENOMEM and test its result. Invoke
60309         gl_PREREQ_VASNPRINTF_ENOMEM.
60310         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60311         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60312         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60313         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60314         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60316         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60317         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60318         * modules/snprintf-posix (Depends-on): Likewise.
60319         * modules/sprintf-posix (Depends-on): Likewise.
60320         * modules/vasnprintf-posix (Depends-on): Likewise.
60321         * modules/vasprintf-posix (Depends-on): Likewise.
60322         * modules/vfprintf-posix (Depends-on): Likewise.
60323         * modules/vsnprintf-posix (Depends-on): Likewise.
60324         * modules/vsprintf-posix (Depends-on): Likewise.
60325         * doc/functions/fprintf.texi: Update.
60326         * doc/functions/printf.texi: Update.
60327         * doc/functions/snprintf.texi: Update.
60328         * doc/functions/sprintf.texi: Update.
60329         * doc/functions/vfprintf.texi: Update.
60330         * doc/functions/vprintf.texi: Update.
60331         * doc/functions/vsnprintf.texi: Update.
60332         * doc/functions/vsprintf.texi: Update.
60333
60334 2007-11-03  Bruno Haible  <bruno@clisp.org>
60335
60336         * modules/frexp-nolibm-tests: New file.
60337
60338         * modules/frexp-nolibm: New file.
60339         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60340
60341 2007-11-03  Bruno Haible  <bruno@clisp.org>
60342
60343         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60344         value is C99 compliant.
60345         Needed for OSF/1 5.1.
60346
60347 2007-11-03  Bruno Haible  <bruno@clisp.org>
60348
60349         Fix out-of-memory handling of vasnprintf.
60350         * lib/printf-parse.c: Include <errno.h>.
60351         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60352         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60353         is already set.
60354
60355 2007-11-02  Eric Blake  <ebb9@byu.net>
60356
60357         Fix tests on cygwin.
60358         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60359
60360 2007-11-01  Bruno Haible  <bruno@clisp.org>
60361
60362         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60363         warning.
60364         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60365         needed for POSIX compatibility.
60366
60367 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60368
60369         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60370         for compatibility with GNU.
60371
60372 2007-11-01  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60375         (putenv): Renamed from rpl_putenv. Change argument type from
60376         'const char *' to 'char *'.
60377         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60378         of defining putenv in config.h, just set REPLACE_PUTENV.
60379         * modules/putenv (Depends-on): Add stdlib.
60380         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60381         (Include): Use <stdlib.h>.
60382         * lib/stdlib.in.h (putenv): New declaration.
60383         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60384         REPLACE_PUTENV.
60385         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60386         REPLACE_PUTENV.
60387         Needed for MacOS X 10.5.0.
60388         Reported by Peter O'Gorman <peter@pogma.com>.
60389
60390 2007-11-01  Jim Meyering  <meyering@redhat.com>
60391
60392         Treat an empty date string exactly like "0".
60393         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60394         if the remaining date string (to be parsed) is empty, use "0".
60395         Reported by Mischa Molhoek and discussed in this thread:
60396         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60397
60398 2007-10-31  Bruno Haible  <bruno@clisp.org>
60399
60400         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60401         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60402         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60403         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60404         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60405         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60406
60407 2007-10-31  Bruno Haible  <bruno@clisp.org>
60408
60409         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60410         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60411         (AC_TYPE_LONG_LONG_INT): Use it.
60412         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60413         it as well.
60414         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60415         to m4/longlong.m4.
60416         * modules/stdint (Files): Remove m4/ulonglong.m4.
60417         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60418         m4/ulonglong.m4.
60419         * modules/strtoumax (Files): Likewise.
60420
60421 2007-10-30  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/xvasprintf-posix: New file.
60424         Suggested by Eric Blake.
60425
60426 2007-10-30  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/xprintf-posix-tests: New file.
60429         * tests/test-xprintf-posix.sh: New file.
60430         * tests/test-xprintf-posix.c: New file.
60431         * tests/test-xfprintf-posix.c: New file.
60432
60433         * modules/xprintf-posix: New file.
60434
60435 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60436
60437         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60438         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60439         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60440
60441 2007-10-29  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60444         contain the special marker '_cv_'.
60445         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60446         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60447         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60448         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60449         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60450         Reported by Ralf Wildenhues.
60451
60452 2007-10-29  Bruno Haible  <bruno@clisp.org>
60453
60454         * gnulib-tool (func_import): When --lgpl is not specified, set
60455         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60456         GPLv3.
60457         Reported by Simon Josefsson.
60458
60459 2007-10-28  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60462         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60463         HAVE_DECL_ISFINITE.
60464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60465         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60466         HAVE_DECL_ISFINITE.
60467
60468 2007-10-28  Bruno Haible  <bruno@clisp.org>
60469
60470         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60471         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60472
60473 2007-10-28  Bruno Haible  <bruno@clisp.org>
60474
60475         Fix link errors with Sun C 5.0 on Solaris 10.
60476         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60477         function is declared but not present in the compiler's libm.
60478         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60479         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60480         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60481         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60482         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60483         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60484         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60486         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60487         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60488         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60489         HAVE_DECL_FLOORL.
60490
60491 2007-10-28  Bruno Haible  <bruno@clisp.org>
60492
60493         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60494         gl_FUNC_FLOORL. Cache the result.
60495         (gl_FUNC_FLOORL): Use it.
60496         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60497         gl_FUNC_CEILL. Cache the result.
60498         (gl_FUNC_CEILL): Use it.
60499
60500         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60501         gl_FUNC_FLOOR. Cache the result.
60502         (gl_FUNC_FLOOR): Use it.
60503         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60504         gl_FUNC_CEIL. Cache the result.
60505         (gl_FUNC_CEIL): Use it.
60506
60507         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60508         gl_FUNC_FLOORF. Cache the result.
60509         (gl_FUNC_FLOORF): Use it.
60510         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60511         gl_FUNC_CEILF. Cache the result.
60512         (gl_FUNC_CEILF): Use it.
60513
60514 2007-10-28  Bruno Haible  <bruno@clisp.org>
60515
60516         * gnulib-tool: Allow specifying the LGPL version number through
60517         --lgpl=2 or --lgpl=3.
60518         (func_usage): Document --lgpl with argument.
60519         Handle --lgpl=... arguments.
60520         (func_import): Recognize also gl_LGPL calls with an argument. When
60521         --lgpl=2 is used and the module's license is just LGPL, report an
60522         error. Set sed_transform_lib_file according to the lgpl variable. In
60523         the generated files, use --lgpl or gl_LGPL invocations with argument,
60524         if necessary.
60525         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60526         an LGPv2+ license.
60527         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60528         gl_LGPL macro.
60529
60530 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60531             Bruno Haible  <bruno@clisp.org>
60532
60533         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60534         (u16_uctomb_aux): Likewise.
60535         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60536         !HAVE_INLINE.
60537         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60538
60539 2007-10-28  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60542         Invoke AM_GETTEXT_OPTION if it exists.
60543         * modules/vasprintf: Likewise.
60544         * modules/verror: Likewise.
60545         * modules/xprintf: Likewise.
60546         * modules/xvasprintf: Likewise.
60547
60548 2007-10-27  Ben Pfaff  <blp@gnu.org>
60549
60550         * lib/math.in.h: Define isfinite macro and prototypes for
60551         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60552         implementations.
60553         * m4/math_h.m4: New substitutions for isfinite module.
60554         * lib/isfinite.c: New file.
60555         * m4/isfinite.m4: New file.
60556         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60557         * modules/isfinite: New file.
60558         * modules/isfinite-tests: New file.
60559         * tests/tests-isfinite.c: New file.
60560         * doc/functions/isfinite.texi: Mention isfinite module.
60561         * MODULES.html.sh: Mention new module.
60562
60563 2007-10-27  Ben Pfaff  <blp@gnu.org>
60564
60565         Ralf Wildenhues reported that Tru64 4.0D declares the round
60566         functions but does not have definitions.
60567         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60568         cannot be found in any library, set the output variable to
60569         "missing" instead of "".
60570         * m4/round.m4: Also use our substitute if we cannot find round in
60571         any library, even if it is declared.
60572         * m4/roundf.m4: Likewise for roundf.
60573         * m4/roundl.m4: Likewise for roundl.
60574         * lib/math.in.h: Undefine roundf, round, roundl before defining
60575         their replacements, to allow for hypothetical systems where these
60576         may be defined as macros but not available in libraries.
60577
60578 2007-10-27  Bruno Haible  <bruno@clisp.org>
60579
60580         * doc/gnulib.texi: Invoke @firstparagraphindent.
60581         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60582         changes in gnulib.
60583         (Source changes): New section.
60584
60585 2007-10-26  Bruno Haible  <bruno@clisp.org>
60586
60587         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60588         borrowed from autoconf.
60589
60590 2007-10-26  Bruno Haible  <bruno@clisp.org>
60591
60592         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60593         strerror returned the empty string. Needed on HP-UX 11.00.
60594
60595 2007-10-24  Micah Cowan  <micah@cowan.name>
60596
60597         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60598         * build-aux/bootstrap: Remove support for now-unnecessary option,
60599         --cvs-user, and envvars CVS_USER, CVS_RSH.
60600
60601 2007-10-24  Jim Meyering  <meyering@redhat.com>
60602
60603         Avoid diagnostics from sha1sum when there is no cached checksum.
60604         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60605         if the po.s1 file hasn't been created yet.
60606
60607         * build-aux/bootstrap: Sync from coreutils:
60608         2007-10-24  Jim Meyering  <meyering@redhat.com>
60609         Get gnulib from the git repository, not from an obsolete cvs one.
60610         * build-aux/bootstrap: Suggestion from Micah Cowan.
60611         2007-10-04  Jim Meyering  <jim@meyering.net>
60612         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60613         (update_po_files): Work also when there are no .po files in po/.
60614
60615 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         * README: Append ".git" to git and cg examples.
60618         Problem reported by Benoit Sigoure.
60619
60620 2007-10-23  Micah Cowan  <micah@cowan.name>
60621
60622         * users.txt: Add wget.
60623
60624 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60625
60626         Fix linking of some unistdio tests on FreeBSD.
60627         * modules/unistdio/u16-vsnprintf-tests
60628         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60629         * modules/unistdio/u16-vsprintf-tests
60630         (test_u16_vsnprintf1_LDADD): Likewise.
60631         * modules/unistdio/u32-vsnprintf-tests
60632         (test_u32_vsnprintf1_LDADD): Likewise.
60633         * modules/unistdio/u32-vsprintf-tests
60634         (test_u32_vsprintf1_LDADD): Likewise.
60635         * modules/unistdio/u8-vsnprintf-tests
60636         (test_u8_vsnprintf1_LDADD): Likewise.
60637         * modules/unistdio/u8-vsprintf-tests
60638         (test_u8_vsprintf1_LDADD): Likewise.
60639         * modules/unistdio/ulc-vsnprintf-tests
60640         (test_ulc_vsnprintf1_LDADD): Likewise.
60641         * modules/unistdio/ulc-vsprintf-tests
60642         (test_ulc_vsprintf1_LDADD): Likewise.
60643
60644         Fix linking of some uniconv tests on FreeBSD.
60645         * modules/uniconv/u16-conv-from-enc-tests
60646         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60647         * modules/uniconv/u16-conv-to-enc-tests
60648         (test_u16_conv_to_enc_LDADD): Likewise.
60649         * modules/uniconv/u16-strconv-from-enc-tests
60650         (test_u16_strconv_from_enc_LDADD): Likewise.
60651         * modules/uniconv/u16-strconv-to-enc-tests
60652         (test_u16_strconv_to_enc_LDADD): Likewise.
60653         * modules/uniconv/u32-conv-from-enc-tests
60654         (test_u32_conv_from_enc_LDADD): Likewise.
60655         * modules/uniconv/u32-conv-to-enc-tests
60656         (test_u32_conv_to_enc_LDADD): Likewise.
60657         * modules/uniconv/u32-strconv-from-enc-tests
60658         (test_u32_strconv_from_enc_LDADD): Likewise.
60659         * modules/uniconv/u32-strconv-to-enc-tests
60660         (test_u32_strconv_to_enc_LDADD): Likewise.
60661         * modules/uniconv/u8-conv-from-enc-tests
60662         (test_u8_conv_from_enc_LDADD): Likewise.
60663         * modules/uniconv/u8-conv-to-enc-tests
60664         (test_u8_conv_to_enc_LDADD): Likewise.
60665         * modules/uniconv/u8-strconv-from-enc-tests
60666         (test_u8_strconv_from_enc_LDADD): Likewise.
60667         * modules/uniconv/u8-strconv-to-enc-tests
60668         (test_u8_strconv_to_enc_LDADD): Likewise.
60669
60670 2007-10-22  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60673         size.
60674
60675 2007-10-22  Eric Blake  <ebb9@byu.net>
60676
60677         Tweak x*printf documentation.
60678         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60679         variable name and comments.
60680         Suggested by Bruno Haible.
60681
60682 2007-10-22  Bruno Haible  <bruno@clisp.org>
60683
60684         * lib/acl.c (copy_acl): Fix file name in comment.
60685
60686 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60687
60688         Fix Tru64 problem with stdbool.h.
60689         * lib/stdbool.in.h (false, true):
60690         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60691         Don't declare as an enum in this situation; it runs afoul of Tru64.
60692         Problem reported by Steven M. Schweda in
60693         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60694
60695 2007-10-22  Eric Blake  <ebb9@byu.net>
60696
60697         Also wrap vf?printf.
60698         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60699         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60700         (xvprintf, xvfprintf): New functions.
60701
60702 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60703
60704         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60705         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60706
60707         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60708         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60709
60710 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60711
60712         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60713         by Bruno Haible.
60714
60715 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60716
60717         * lib/getloadavg.c
60718         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60719         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60720
60721         * tests/test-i-ring.c: Work for C89.
60722
60723 2007-10-22  Bruno Haible  <bruno@clisp.org>
60724
60725         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60726         -1u, in preprocessor expression, so that we don't test for the bug
60727         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60728         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60729
60730 2007-10-22  Eric Blake  <ebb9@byu.net>
60731
60732         * tests/test-yesno.sh: Silence stderr during test.
60733
60734 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60735
60736         * modules/crypto/gc-camellia: New file.
60737
60738         * m4/gc-camellia.m4: New file.
60739
60740         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60741
60742         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60743
60744 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60745
60746         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60747         --help to stdout.  Reported by sms@antinode.org (Steven
60748         M. Schweda).
60749
60750 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60751
60752         * users.txt: Fix link to libksba.
60753
60754 2007-10-21  Ben Pfaff  <blp@gnu.org>
60755
60756         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60757         round.c roundf implementation that depends on floorf and ceilf to
60758         be tested unconditionally.
60759
60760 2007-10-21  Ben Pfaff  <blp@gnu.org>
60761
60762         * m4/check-libm-func.m4: Removed.
60763         * m4/check-math-lib.m4: New file.
60764         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60765         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60766         definition and lack of AC_LIBOBJ([roundf]).
60767         * m4/roundl.m4: Ditto, and similarly for roundl.
60768         * modules/round: Reference new m4 file.
60769         * modules/roundf: Ditto.
60770         * modules/roundl: Ditto.
60771         * tests/test-round2.c (main): Use ROUND instead of round.
60772         Bug report from Bruno Haible.
60773
60774 2007-10-21  Bruno Haible  <bruno@clisp.org>
60775
60776         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60777         context.
60778
60779 2007-10-21  Bruno Haible  <bruno@clisp.org>
60780
60781         * tests/test-wcwidth.c (main): Allow negative result for some control
60782         characters.
60783
60784         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60785         Needed on OSF/1 5.1.
60786
60787 2007-10-21  Bruno Haible  <bruno@clisp.org>
60788
60789         * tests/test-floorf1.c: Include isnanf.h.
60790         (main): Use isnanf() instead of isnan().
60791         * tests/test-ceilf1.c: Include isnanf.h.
60792         (main): Use isnanf() instead of isnan().
60793         * tests/test-truncf1.c: Include isnanf.h.
60794         (main): Use isnanf() instead of isnan().
60795         * tests/test-roundf1.c: Include isnanf.h.
60796         (main): Use isnanf() instead of isnan().
60797
60798 2007-10-21  Eric Blake  <ebb9@byu.net>
60799
60800         * users.txt: Update URL for m4.
60801
60802 2007-10-21  Bruno Haible  <bruno@clisp.org>
60803
60804         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60805
60806 2007-10-21  Bruno Haible  <bruno@clisp.org>
60807
60808         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60809         Git's management files if the CVS files are not present.
60810
60811 2007-10-20  Bruno Haible  <bruno@clisp.org>
60812
60813         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60814         gcc-3.4.x.
60815
60816 2007-10-20  Ben Pfaff  <blp@gnu.org>
60817
60818         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60819         implementations.
60820         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60821         * lib/round.c: New file.
60822         * lib/roundf.c: New file.
60823         * lib/roundl.c: New file.
60824         * m4/round.m4: New file.
60825         * m4/roundf.m4: New file.
60826         * m4/roundl.m4: New file.
60827         * m4/check-libm-func-m4: New file.
60828         * modules/math: Replace round, roundf, roundl related @VARS@ in
60829         math.in.h.
60830         * modules/round: New file.
60831         * modules/round-tests: New file.
60832         * modules/roundf: New file.
60833         * modules/roundf-tests: New file.
60834         * modules/roundl: New file.
60835         * modules/roundl-tests: New file.
60836         * tests/test-round1.c: New file.
60837         * tests/test-round2.c: New file.
60838         * tests/test-roundf1.c: New file.
60839         * tests/test-roundf2.c: New file.
60840         * tests/test-roundl.c: New file.
60841         * doc/functions/round.texi: Mention round module.
60842         * doc/functions/roundf.texi: Mention roundf module.
60843         * doc/functions/roundl.texi: Mention roundl module.
60844         * MODULES.html.sh: Mention new modules.
60845         Thanks to Bruno Haible for suggestions.
60846
60847 2007-10-20  Jim Meyering  <meyering@redhat.com>
60848
60849         * lib/xprintf.c: Include <config.h> unconditionally.
60850
60851         Change xprintf's license to GPL.
60852         * modules/xprintf (License): s/LGPL/GPL/, since this module
60853         depends on modules (exit and exitfail) which are GPL.
60854         Suggestion from Bruno Haible.
60855
60856         xprintf fixes.
60857         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60858         Use a clearer diagnostic.
60859         Patch from Bruno Haible.
60860
60861 2007-10-20  Bruno Haible  <bruno@clisp.org>
60862
60863         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60864         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60866
60867 2007-10-20  Bruno Haible  <bruno@clisp.org>
60868
60869         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60870         precision in the comparison result > x - 1 or similar.
60871         * tests/test-ceilf2.c (correct_result_p): Likewise.
60872         * tests/test-truncf2.c (correct_result_p): Likewise.
60873         * tests/test-trunc2.c (correct_result_p): Likewise.
60874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60875
60876 2007-10-20  Bruno Haible  <bruno@clisp.org>
60877
60878         * modules/ceil: New file.
60879         * m4/ceil.m4: New file.
60880         * doc/functions/ceil.texi: Mention the 'ceil' module.
60881
60882 2007-10-20  Bruno Haible  <bruno@clisp.org>
60883
60884         * modules/floor: New file.
60885         * m4/floor.m4: New file.
60886         * doc/functions/floor.texi: Mention the 'floor' module.
60887
60888 2007-10-20  Bruno Haible  <bruno@clisp.org>
60889
60890         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60891         of %a.
60892         * modules/floorf-tests (Depends-on): Likewise.
60893         * modules/truncf-tests (Depends-on): Likewise.
60894         * modules/trunc-tests (Depends-on): Likewise.
60895         Reported by Ben Pfaff.
60896
60897 2007-10-19  Jim Meyering  <meyering@redhat.com>
60898
60899         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60900         Don't bother testing specific errno values.  Just test ferror.
60901
60902         New module: xprintf
60903         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60904
60905 2007-10-19  Bruno Haible  <bruno@clisp.org>
60906
60907         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60908         syntax.
60909         * modules/javaexec (Makefile.am): Likewise.
60910         * modules/relocatable-prog (Makefile.am): Likewise.
60911         Suggested by Jim Meyering.
60912
60913 2007-10-18  Bruno Haible  <bruno@clisp.org>
60914
60915         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60916         Reported by Jim Meyering.
60917
60918 2007-10-18  Eric Blake  <ebb9@byu.net>
60919
60920         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60921
60922 2007-10-18  Bruno Haible  <bruno@clisp.org>
60923
60924         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60925         the format string into writable memory. Needed in Fortify conditions.
60926
60927 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60928             Bruno Haible  <bruno@clisp.org>
60929
60930         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60931         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60932         * modules/trim (Depends-on): Add mbchar.
60933         (configure.ac): Add gl_FUNC_MBRTOWC.
60934         (Makefile.am): Augment lib_SOURCES.
60935
60936 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         Modify glob.c to use fstatat and dirfd, to simplify it.
60939         Suggested by Eric Blake.
60940         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60941         Don't include <stdbool.h>; not used.
60942         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60943         (link_exists_p): Simplify implementation, since we can now assume
60944         dirfd and fstatat.
60945         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60946
60947 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60948
60949         * gnulib-tool (func_get_dependencies): Fix sed script to
60950         match only tests.
60951
60952 2007-10-17  Bruno Haible  <bruno@clisp.org>
60953
60954         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60955         allow locale names without encoding suffix.
60956         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60958
60959 2007-10-16  Bruno Haible  <bruno@clisp.org>
60960
60961         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60962         * lib/getgroups.c (getgroups): Likewise.
60963         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60964
60965 2007-10-16  Bruno Haible  <bruno@clisp.org>
60966
60967         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60968         * modules/malloc-posix (License): Likewise.
60969         * modules/realloc-posix (License): Likewise.
60970         * modules/calloc-posix (License): Likewise.
60971         * modules/intprops (License): Change from GPL to LGPL, with
60972         Paul Eggert's approval.
60973
60974 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60975
60976         Merge glibc changes into lib/glob.c.
60977
60978         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60979         2007-10-15 04:59:03 UTC.  Here are the changes:
60980
60981         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60982
60983         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60984
60985         * lib/glob.c: Add some branch prediction throughout.
60986
60987         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60988
60989         [BZ #5103]
60990         * lib/glob.c (glob): Recognize patterns starting \/.
60991
60992         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60993
60994         [BZ #3996]
60995         * lib/glob.c (attribute_hidden): Define if not defined.
60996         (glob): Unescape dirname, filename or username when needed and not
60997         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60998         is NULL.  Handle unescaped [ in pattern without closing ].
60999         Don't pass GLOB_CHECK down to recursive glob for directories.
61000         (__glob_pattern_type): New function.
61001         (__glob_pattern_p): Implement using __glob_pattern_type.
61002         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61003         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61004         Remove unreachable code.
61005
61006         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61007
61008         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61009         explain why there are no leaks.
61010
61011         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61012
61013         [BZ #3253]
61014         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61015         time, rather allocate increasingly bigger arrays of pointers, if
61016         possible with alloca, if too large with malloc.
61017
61018 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61021         Problem reported by H.Merijn Brand in
61022         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61024         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61025
61026 2007-10-15  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61029         with explicit rpl_ prefix.
61030         * lib/fopen.c (fopen): Likewise.
61031         * lib/freopen.c (freopen): Likewise.
61032         * lib/iconv.c (iconv): Likewise.
61033         * lib/iconv_close.c (iconv_close): Likewise.
61034
61035 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61036
61037         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61038
61039 2007-10-15  Bruno Haible  <bruno@clisp.org>
61040
61041         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61042         <stddef.h> instead of <stdlib.h> since we only need NULL.
61043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61044
61045 2007-10-15  Bruno Haible  <bruno@clisp.org>
61046
61047         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61048         Replace paragraph talking about LIBOBJS.
61049         Reported by Colin Watson <cjwatson@debian.org>.
61050
61051 2007-10-15  Bruno Haible  <bruno@clisp.org>
61052
61053         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61054         <stdlib.h> before using NULL.
61055
61056 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61057
61058         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61059         Reported by Albert Chin <china@thewrittenword.com>.
61060
61061 2007-10-14  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/iconv_open-utf-tests: New file.
61064         * tests/test-iconv-utf.c: New file.
61065
61066         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61067         * modules/iconv_open-utf: New file.
61068         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61069         (iconv, iconv_close): New declarations.
61070         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61071         be defined.
61072         (iconv_open): Add special handling of conversion between UTF-8 and
61073         UTF-{16,32}{BE,LE}.
61074         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61075         * lib/iconv_close.c: New file.
61076         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61077         gl_FUNC_ICONV_OPEN.
61078         (gl_FUNC_ICONV_OPEN): Use it.
61079         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61080         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61081         and REPLACE_ICONV_UTF.
61082         * modules/iconv_open (Depends-on): Add c-strcase.
61083         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61084         ICONV_CONST.
61085         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61086
61087 2007-10-13  Albert Chin  <china@thewrittenword.com>
61088             Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61091         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61092
61093 2007-10-13  Bruno Haible  <bruno@clisp.org>
61094
61095         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61096         defined, use the ISO C99 inline semantics.
61097         * lib/argp.h (ARGP_EI): Likewise.
61098
61099 2007-10-13  Bruno Haible  <bruno@clisp.org>
61100
61101         Handle 'inline' change in gcc 4.3.0.
61102         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61103         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61104         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61105         argp_fmtstream_point): Disable 'extern' declaration if the function
61106         definition is going to be provided inline.
61107         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61108         semantics, not the ISO C99 inline semantics.
61109         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61110         'extern' declaration if the function definition is going to be provided
61111         inline.
61112         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61113         the GNU C inline semantics, not the ISO C99 inline semantics. With
61114         GCC 4.2, avoid a warning.
61115
61116 2007-10-13  Bruno Haible  <bruno@clisp.org>
61117
61118         * lib/freading.h (freading): Enable the use of __freading for
61119         glibc >= 2.7.
61120         * lib/freading.c (freading): Likewise.
61121
61122 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61123
61124         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61125         "warning: C99 inline functions are not supported; using GNU89".
61126
61127 2007-10-12  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61130         of 2.
61131         * tests/test-ceilf2.c: New file.
61132         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61133
61134         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61135         * modules/ceilf-tests: Update.
61136
61137 2007-10-12  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61140         of 2.
61141         * tests/test-floorf2.c: New file.
61142         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61143
61144         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61145         * modules/floorf-tests: Update.
61146
61147 2007-10-12  Bruno Haible  <bruno@clisp.org>
61148
61149         * tests/test-trunc2.c: New file.
61150         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61151
61152         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61153         * modules/trunc-tests: Update.
61154
61155 2007-10-12  Bruno Haible  <bruno@clisp.org>
61156
61157         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61158         of 2.
61159         * tests/test-truncf2.c: New file.
61160         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61161
61162         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61163         * modules/truncf-tests: Update.
61164
61165 2007-10-11  Eric Blake  <ebb9@byu.net>
61166
61167         Don't claim strerror is broken on Interix.
61168         * doc/functions/strerror.texi (strerror): Known broken systems are
61169         now Solaris 8, and not Interix.
61170         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61171         Interix on cross-compile.
61172         Reported by Martin Koeppe in
61173         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61174
61175 2007-10-11  Bruno Haible  <bruno@clisp.org>
61176
61177         * modules/i-ring-tests: New file.
61178         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61179         instead of assert.
61180
61181 2007-10-11  Bruno Haible  <bruno@clisp.org>
61182
61183         * modules/filenamecat-tests: New file.
61184         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61185         * lib/filenamecat.c: Remove test code.
61186
61187 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61188
61189         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61190
61191         * lib/strerror.c: Include <string.h> always, to test interface,
61192         and to remove the need for the dummy.
61193         Include intprops.h to compute width instead of doing it ourselves
61194         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61195         (strerror): Define it to return NULL if there's no system strerror.
61196         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61197         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61198         ancient pre-strerror Unix systems well any more.  Saying "unknown
61199         system error" is enough.
61200         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61201         simpler strerror.c implementation.
61202         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61203         Simplify the tests to reflect the simpler strerror implementation.
61204         * modules/strerror (Depends-on): Add intprops.
61205
61206 2007-10-09  Eric Blake  <ebb9@byu.net>
61207
61208         Silence test-fpending.
61209         * modules/fpending-tests (Files): Add wrapper script.
61210         * tests/test-fpending.sh: New file.
61211
61212 2007-10-09  Bruno Haible  <bruno@clisp.org>
61213
61214         * MODULES.html.sh (func_module): Don't create a hyperlink for
61215         function names like 'printf_frexp'.
61216         (Misc): Add crc, memxor.
61217         (Characteristics of floating types): New section.
61218         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61219         isnanf-nolibm, signbit, trunc, truncf, truncl.
61220         (Enhancements for ISO C 99 functions): New subsection Input/output.
61221         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61222         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61223         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61224         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61225         (Enhancements for POSIX:2001 functions): Add chdir-long.
61226         (File system functions): Add areadlink, chdir-safer, read-file.
61227         Remove cycle-check.
61228         (File system as inode set): New section.
61229         (Date and time): Add gethrxtime.
61230         (Multithreading): Add openmp.
61231         (Internationalization functions): Add localename.
61232         (Unicode string functions): Add unistr/u*-mbsnlen.
61233         (Support for maintaining and releasing projects): Add git-version-gen.
61234         (Lone files): Remove directories.
61235
61236 2007-10-08  Ben Pfaff  <blp@gnu.org>
61237
61238         * lib/xmalloca.h: Fix typo in comment.
61239
61240 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61241
61242         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61243         when avoiding problems with integer overflow.  Use a portable test
61244         instead.
61245
61246 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61247
61248         * modules/dummy (License): Change to LGPLv2+.
61249         * modules/float (License): Likewise
61250         * modules/realloc (License): Likewise
61251         * modules/stdlib (License): Likewise
61252
61253 2007-10-07  Bruno Haible  <bruno@clisp.org>
61254
61255         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61256         * floor.c (TWO_MANT_DIG): Likewise.
61257         * ceil.c (TWO_MANT_DIG): Likewise.
61258         Reported by Ben Pfaff.
61259
61260 2007-10-07  Bruno Haible  <bruno@clisp.org>
61261
61262         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61263         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61264         * lib/frexp.c (FUNC): Likewise.
61265         * lib/printf-frexp.h (printf_frexp): Likewise.
61266         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61267         * lib/printf-frexp.c (FUNC): Likewise.
61268         Suggested by Jim Meyering.
61269
61270 2007-10-07  Jim Meyering  <meyering@redhat.com>
61271
61272         Make xnanosleep's integer overflow test more robust.
61273         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61274         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61275
61276 2007-10-07  Bruno Haible  <bruno@clisp.org>
61277
61278         * NEWS: Mention the license change.
61279
61280         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61281         abbreviations in the modules files.
61282
61283         Change copyright notice from GPLv2+ to GPLv3+.
61284         * README: Change copyright notice.
61285         * MODULES.html.sh: Likewise.
61286         * build-aux/bootstrap.conf: Likewise.
61287         * build-aux/config.libpath: Likewise.
61288         * build-aux/csharpcomp.sh.in: Likewise.
61289         * build-aux/csharpexec.sh.in: Likewise.
61290         * build-aux/install-reloc: Likewise.
61291         * build-aux/javacomp.sh.in: Likewise.
61292         * build-aux/javaexec.sh.in: Likewise.
61293         * build-aux/ldd.sh.in: Likewise.
61294         * build-aux/reloc-ldflags: Likewise.
61295         * build-aux/relocatable.sh.in: Likewise.
61296         * build-aux/x-to-1.in: Likewise.
61297         * check-module: Likewise.
61298         * config/srclistvars.sh: Likewise.
61299         * gnulib-tool: Likewise.
61300         * lib/acl-internal.h: Likewise.
61301         * lib/acl.c: Likewise.
61302         * lib/acl.h: Likewise.
61303         * lib/acl_entries.c: Likewise.
61304         * lib/areadlink-with-size.c: Likewise.
61305         * lib/areadlink.c: Likewise.
61306         * lib/areadlink.h: Likewise.
61307         * lib/argmatch.c: Likewise.
61308         * lib/argmatch.h: Likewise.
61309         * lib/argp-ba.c: Likewise.
61310         * lib/argp-eexst.c: Likewise.
61311         * lib/argp-fmtstream.c: Likewise.
61312         * lib/argp-fmtstream.h: Likewise.
61313         * lib/argp-fs-xinl.c: Likewise.
61314         * lib/argp-help.c: Likewise.
61315         * lib/argp-namefrob.h: Likewise.
61316         * lib/argp-parse.c: Likewise.
61317         * lib/argp-pin.c: Likewise.
61318         * lib/argp-pv.c: Likewise.
61319         * lib/argp-pvh.c: Likewise.
61320         * lib/argp-xinl.c: Likewise.
61321         * lib/argp.h: Likewise.
61322         * lib/at-func.c: Likewise.
61323         * lib/atanl.c: Likewise.
61324         * lib/backupfile.c: Likewise.
61325         * lib/backupfile.h: Likewise.
61326         * lib/basename.c: Likewise.
61327         * lib/binary-io.h: Likewise.
61328         * lib/byteswap.in.h: Likewise.
61329         * lib/c-stack.c: Likewise.
61330         * lib/c-stack.h: Likewise.
61331         * lib/c-strcasestr.c: Likewise.
61332         * lib/c-strcasestr.h: Likewise.
61333         * lib/c-strstr.c: Likewise.
61334         * lib/c-strstr.h: Likewise.
61335         * lib/c-strtod.c: Likewise.
61336         * lib/calloc.c: Likewise.
61337         * lib/canon-host.c: Likewise.
61338         * lib/canon-host.h: Likewise.
61339         * lib/canonicalize-lgpl.c: Likewise.
61340         * lib/canonicalize.c: Likewise.
61341         * lib/canonicalize.h: Likewise.
61342         * lib/ceil.c: Likewise.
61343         * lib/ceilf.c: Likewise.
61344         * lib/ceill.c: Likewise.
61345         * lib/chdir-long.c: Likewise.
61346         * lib/chdir-long.h: Likewise.
61347         * lib/chdir-safer.c: Likewise.
61348         * lib/chdir-safer.h: Likewise.
61349         * lib/chown.c: Likewise.
61350         * lib/classpath.c: Likewise.
61351         * lib/classpath.h: Likewise.
61352         * lib/clean-temp.c: Likewise.
61353         * lib/clean-temp.h: Likewise.
61354         * lib/cloexec.c: Likewise.
61355         * lib/close-stream.c: Likewise.
61356         * lib/closein.c: Likewise.
61357         * lib/closein.h: Likewise.
61358         * lib/closeout.c: Likewise.
61359         * lib/closeout.h: Likewise.
61360         * lib/concat-filename.c: Likewise.
61361         * lib/copy-file.c: Likewise.
61362         * lib/copy-file.h: Likewise.
61363         * lib/count-one-bits.h: Likewise.
61364         * lib/crc.c: Likewise.
61365         * lib/crc.h: Likewise.
61366         * lib/creat-safer.c: Likewise.
61367         * lib/csharpcomp.c: Likewise.
61368         * lib/csharpcomp.h: Likewise.
61369         * lib/csharpexec.c: Likewise.
61370         * lib/csharpexec.h: Likewise.
61371         * lib/cycle-check.c: Likewise.
61372         * lib/cycle-check.h: Likewise.
61373         * lib/diacrit.c: Likewise.
61374         * lib/diacrit.h: Likewise.
61375         * lib/diffseq.h: Likewise.
61376         * lib/dirchownmod.c: Likewise.
61377         * lib/dirent.in.h: Likewise.
61378         * lib/dirfd.c: Likewise.
61379         * lib/dirfd.h: Likewise.
61380         * lib/dirname.c: Likewise.
61381         * lib/dirname.h: Likewise.
61382         * lib/dummy.c: Likewise.
61383         * lib/dup-safer.c: Likewise.
61384         * lib/dup2.c: Likewise.
61385         * lib/eealloc.h: Likewise.
61386         * lib/error.c: Likewise.
61387         * lib/error.h: Likewise.
61388         * lib/euidaccess.c: Likewise.
61389         * lib/exclude.c: Likewise.
61390         * lib/exclude.h: Likewise.
61391         * lib/execute.c: Likewise.
61392         * lib/execute.h: Likewise.
61393         * lib/exitfail.c: Likewise.
61394         * lib/exitfail.h: Likewise.
61395         * lib/expl.c: Likewise.
61396         * lib/fatal-signal.c: Likewise.
61397         * lib/fatal-signal.h: Likewise.
61398         * lib/fbufmode.c: Likewise.
61399         * lib/fbufmode.h: Likewise.
61400         * lib/fchdir.c: Likewise.
61401         * lib/fchmodat.c: Likewise.
61402         * lib/fchownat.c: Likewise.
61403         * lib/fcntl--.h: Likewise.
61404         * lib/fcntl-safer.h: Likewise.
61405         * lib/fcntl.in.h: Likewise.
61406         * lib/fd-safer.c: Likewise.
61407         * lib/fflush.c: Likewise.
61408         * lib/file-has-acl.c: Likewise.
61409         * lib/file-set.c: Likewise.
61410         * lib/file-type.c: Likewise.
61411         * lib/file-type.h: Likewise.
61412         * lib/fileblocks.c: Likewise.
61413         * lib/filemode.c: Likewise.
61414         * lib/filemode.h: Likewise.
61415         * lib/filename.h: Likewise.
61416         * lib/filenamecat.c: Likewise.
61417         * lib/filenamecat.h: Likewise.
61418         * lib/findprog.c: Likewise.
61419         * lib/findprog.h: Likewise.
61420         * lib/float.in.h: Likewise.
61421         * lib/floor.c: Likewise.
61422         * lib/floorf.c: Likewise.
61423         * lib/floorl.c: Likewise.
61424         * lib/fopen-safer.c: Likewise.
61425         * lib/fopen.c: Likewise.
61426         * lib/fpending.c: Likewise.
61427         * lib/fpending.h: Likewise.
61428         * lib/fprintf.c: Likewise.
61429         * lib/fprintftime.h: Likewise.
61430         * lib/fpucw.h: Likewise.
61431         * lib/fpurge.c: Likewise.
61432         * lib/fpurge.h: Likewise.
61433         * lib/freadable.c: Likewise.
61434         * lib/freadable.h: Likewise.
61435         * lib/freadahead.c: Likewise.
61436         * lib/freadahead.h: Likewise.
61437         * lib/freading.c: Likewise.
61438         * lib/freading.h: Likewise.
61439         * lib/free.c: Likewise.
61440         * lib/freopen.c: Likewise.
61441         * lib/frexp.c: Likewise.
61442         * lib/frexpl.c: Likewise.
61443         * lib/fseek.c: Likewise.
61444         * lib/fseterr.c: Likewise.
61445         * lib/fseterr.h: Likewise.
61446         * lib/fstatat.c: Likewise.
61447         * lib/fstrcmp.c: Likewise.
61448         * lib/fstrcmp.h: Likewise.
61449         * lib/fsusage.c: Likewise.
61450         * lib/fsusage.h: Likewise.
61451         * lib/ftell.c: Likewise.
61452         * lib/ftello.c: Likewise.
61453         * lib/fts-cycle.c: Likewise.
61454         * lib/fts.c: Likewise.
61455         * lib/fts_.h: Likewise.
61456         * lib/full-read.c: Likewise.
61457         * lib/full-read.h: Likewise.
61458         * lib/full-write.c: Likewise.
61459         * lib/full-write.h: Likewise.
61460         * lib/fwritable.c: Likewise.
61461         * lib/fwritable.h: Likewise.
61462         * lib/fwriteerror.c: Likewise.
61463         * lib/fwriteerror.h: Likewise.
61464         * lib/fwriting.c: Likewise.
61465         * lib/fwriting.h: Likewise.
61466         * lib/gcd.c: Likewise.
61467         * lib/gcd.h: Likewise.
61468         * lib/getcwd.c: Likewise.
61469         * lib/getdate.h: Likewise.
61470         * lib/getdate.y: Likewise.
61471         * lib/getdomainname.c: Likewise.
61472         * lib/getdomainname.h: Likewise.
61473         * lib/getgroups.c: Likewise.
61474         * lib/gethostname.c: Likewise.
61475         * lib/gethrxtime.c: Likewise.
61476         * lib/gethrxtime.h: Likewise.
61477         * lib/getloadavg.c: Likewise.
61478         * lib/getndelim2.c: Likewise.
61479         * lib/getndelim2.h: Likewise.
61480         * lib/getnline.c: Likewise.
61481         * lib/getnline.h: Likewise.
61482         * lib/getopt.c: Likewise.
61483         * lib/getopt.in.h: Likewise.
61484         * lib/getopt1.c: Likewise.
61485         * lib/getopt_int.h: Likewise.
61486         * lib/getpagesize.h: Likewise.
61487         * lib/getsubopt.c: Likewise.
61488         * lib/gettime.c: Likewise.
61489         * lib/getugroups.c: Likewise.
61490         * lib/getugroups.h: Likewise.
61491         * lib/getusershell.c: Likewise.
61492         * lib/gl_anyavltree_list1.h: Likewise.
61493         * lib/gl_anyavltree_list2.h: Likewise.
61494         * lib/gl_anyhash_list1.h: Likewise.
61495         * lib/gl_anyhash_list2.h: Likewise.
61496         * lib/gl_anylinked_list1.h: Likewise.
61497         * lib/gl_anylinked_list2.h: Likewise.
61498         * lib/gl_anyrbtree_list1.h: Likewise.
61499         * lib/gl_anyrbtree_list2.h: Likewise.
61500         * lib/gl_anytree_list1.h: Likewise.
61501         * lib/gl_anytree_list2.h: Likewise.
61502         * lib/gl_anytree_oset.h: Likewise.
61503         * lib/gl_anytreehash_list1.h: Likewise.
61504         * lib/gl_anytreehash_list2.h: Likewise.
61505         * lib/gl_array_list.c: Likewise.
61506         * lib/gl_array_list.h: Likewise.
61507         * lib/gl_array_oset.c: Likewise.
61508         * lib/gl_array_oset.h: Likewise.
61509         * lib/gl_avltree_list.c: Likewise.
61510         * lib/gl_avltree_list.h: Likewise.
61511         * lib/gl_avltree_oset.c: Likewise.
61512         * lib/gl_avltree_oset.h: Likewise.
61513         * lib/gl_avltreehash_list.c: Likewise.
61514         * lib/gl_avltreehash_list.h: Likewise.
61515         * lib/gl_carray_list.c: Likewise.
61516         * lib/gl_carray_list.h: Likewise.
61517         * lib/gl_linked_list.c: Likewise.
61518         * lib/gl_linked_list.h: Likewise.
61519         * lib/gl_linkedhash_list.c: Likewise.
61520         * lib/gl_linkedhash_list.h: Likewise.
61521         * lib/gl_list.c: Likewise.
61522         * lib/gl_list.h: Likewise.
61523         * lib/gl_oset.c: Likewise.
61524         * lib/gl_oset.h: Likewise.
61525         * lib/gl_rbtree_list.c: Likewise.
61526         * lib/gl_rbtree_list.h: Likewise.
61527         * lib/gl_rbtree_oset.c: Likewise.
61528         * lib/gl_rbtree_oset.h: Likewise.
61529         * lib/gl_rbtreehash_list.c: Likewise.
61530         * lib/gl_rbtreehash_list.h: Likewise.
61531         * lib/gl_sublist.c: Likewise.
61532         * lib/gl_sublist.h: Likewise.
61533         * lib/group-member.c: Likewise.
61534         * lib/group-member.h: Likewise.
61535         * lib/hard-locale.c: Likewise.
61536         * lib/hard-locale.h: Likewise.
61537         * lib/hash-pjw.c: Likewise.
61538         * lib/hash-pjw.h: Likewise.
61539         * lib/hash-triple.c: Likewise.
61540         * lib/hash.c: Likewise.
61541         * lib/hash.h: Likewise.
61542         * lib/human.c: Likewise.
61543         * lib/human.h: Likewise.
61544         * lib/i-ring.c: Likewise.
61545         * lib/i-ring.h: Likewise.
61546         * lib/idcache.c: Likewise.
61547         * lib/imaxabs.c: Likewise.
61548         * lib/imaxdiv.c: Likewise.
61549         * lib/inet_pton.c: Likewise.
61550         * lib/inet_pton.h: Likewise.
61551         * lib/intprops.h: Likewise.
61552         * lib/inttostr.c: Likewise.
61553         * lib/inttostr.h: Likewise.
61554         * lib/inttypes.in.h: Likewise.
61555         * lib/isapipe.c: Likewise.
61556         * lib/isdir.c: Likewise.
61557         * lib/isnan.c: Likewise.
61558         * lib/isnan.h: Likewise.
61559         * lib/isnanf.c: Likewise.
61560         * lib/isnanf.h: Likewise.
61561         * lib/isnanl-nolibm.h: Likewise.
61562         * lib/isnanl.c: Likewise.
61563         * lib/isnanl.h: Likewise.
61564         * lib/javacomp.c: Likewise.
61565         * lib/javacomp.h: Likewise.
61566         * lib/javaexec.c: Likewise.
61567         * lib/javaexec.h: Likewise.
61568         * lib/javaversion.c: Likewise.
61569         * lib/javaversion.h: Likewise.
61570         * lib/javaversion.java: Likewise.
61571         * lib/lbrkprop.h: Likewise.
61572         * lib/lchmod.h: Likewise.
61573         * lib/lchown.c: Likewise.
61574         * lib/ldexpl.c: Likewise.
61575         * lib/linebreak.c: Likewise.
61576         * lib/linebreak.h: Likewise.
61577         * lib/linebuffer.c: Likewise.
61578         * lib/linebuffer.h: Likewise.
61579         * lib/locale.in.h: Likewise.
61580         * lib/logl.c: Likewise.
61581         * lib/long-options.c: Likewise.
61582         * lib/long-options.h: Likewise.
61583         * lib/lstat.c: Likewise.
61584         * lib/lstat.h: Likewise.
61585         * lib/math.in.h: Likewise.
61586         * lib/mbchar.c: Likewise.
61587         * lib/mbchar.h: Likewise.
61588         * lib/mbfile.h: Likewise.
61589         * lib/mbiter.h: Likewise.
61590         * lib/mbscasecmp.c: Likewise.
61591         * lib/mbscasestr.c: Likewise.
61592         * lib/mbschr.c: Likewise.
61593         * lib/mbscspn.c: Likewise.
61594         * lib/mbslen.c: Likewise.
61595         * lib/mbsncasecmp.c: Likewise.
61596         * lib/mbsnlen.c: Likewise.
61597         * lib/mbspbrk.c: Likewise.
61598         * lib/mbspcasecmp.c: Likewise.
61599         * lib/mbsrchr.c: Likewise.
61600         * lib/mbssep.c: Likewise.
61601         * lib/mbsspn.c: Likewise.
61602         * lib/mbsstr.c: Likewise.
61603         * lib/mbstok_r.c: Likewise.
61604         * lib/mbswidth.c: Likewise.
61605         * lib/mbswidth.h: Likewise.
61606         * lib/mbuiter.h: Likewise.
61607         * lib/memcasecmp.c: Likewise.
61608         * lib/memcasecmp.h: Likewise.
61609         * lib/memchr.c: Likewise.
61610         * lib/memcmp.c: Likewise.
61611         * lib/memcoll.c: Likewise.
61612         * lib/memcoll.h: Likewise.
61613         * lib/memcpy.c: Likewise.
61614         * lib/memrchr.c: Likewise.
61615         * lib/mkancesdirs.c: Likewise.
61616         * lib/mkdir-p.c: Likewise.
61617         * lib/mkdir-p.h: Likewise.
61618         * lib/mkdir.c: Likewise.
61619         * lib/mkdirat.c: Likewise.
61620         * lib/mkdtemp.c: Likewise.
61621         * lib/mkstemp-safer.c: Likewise.
61622         * lib/mkstemp.c: Likewise.
61623         * lib/modechange.c: Likewise.
61624         * lib/modechange.h: Likewise.
61625         * lib/mountlist.c: Likewise.
61626         * lib/mountlist.h: Likewise.
61627         * lib/mpsort.c: Likewise.
61628         * lib/nanosleep.c: Likewise.
61629         * lib/obstack.c: Likewise.
61630         * lib/obstack.h: Likewise.
61631         * lib/open-safer.c: Likewise.
61632         * lib/open.c: Likewise.
61633         * lib/openat-die.c: Likewise.
61634         * lib/openat-priv.h: Likewise.
61635         * lib/openat-proc.c: Likewise.
61636         * lib/openat.c: Likewise.
61637         * lib/openat.h: Likewise.
61638         * lib/pagealign_alloc.c: Likewise.
61639         * lib/pagealign_alloc.h: Likewise.
61640         * lib/physmem.c: Likewise.
61641         * lib/physmem.h: Likewise.
61642         * lib/pipe-safer.c: Likewise.
61643         * lib/pipe.c: Likewise.
61644         * lib/pipe.h: Likewise.
61645         * lib/posixtm.c: Likewise.
61646         * lib/posixtm.h: Likewise.
61647         * lib/posixver.c: Likewise.
61648         * lib/printf-frexp.c: Likewise.
61649         * lib/printf-frexp.h: Likewise.
61650         * lib/printf-frexpl.c: Likewise.
61651         * lib/printf-frexpl.h: Likewise.
61652         * lib/printf.c: Likewise.
61653         * lib/progname.c: Likewise.
61654         * lib/progname.h: Likewise.
61655         * lib/progreloc.c: Likewise.
61656         * lib/putenv.c: Likewise.
61657         * lib/quote.c: Likewise.
61658         * lib/quote.h: Likewise.
61659         * lib/quotearg.c: Likewise.
61660         * lib/quotearg.h: Likewise.
61661         * lib/raise.c: Likewise.
61662         * lib/readline.c: Likewise.
61663         * lib/readline.h: Likewise.
61664         * lib/readlink.c: Likewise.
61665         * lib/readtokens.c: Likewise.
61666         * lib/readtokens.h: Likewise.
61667         * lib/readtokens0.c: Likewise.
61668         * lib/readtokens0.h: Likewise.
61669         * lib/readutmp.c: Likewise.
61670         * lib/readutmp.h: Likewise.
61671         * lib/realloc.c: Likewise.
61672         * lib/relocwrapper.c: Likewise.
61673         * lib/rename-dest-slash.c: Likewise.
61674         * lib/rename.c: Likewise.
61675         * lib/rmdir.c: Likewise.
61676         * lib/rpmatch.c: Likewise.
61677         * lib/safe-read.c: Likewise.
61678         * lib/safe-read.h: Likewise.
61679         * lib/safe-write.c: Likewise.
61680         * lib/safe-write.h: Likewise.
61681         * lib/same-inode.h: Likewise.
61682         * lib/same.c: Likewise.
61683         * lib/same.h: Likewise.
61684         * lib/save-cwd.c: Likewise.
61685         * lib/save-cwd.h: Likewise.
61686         * lib/savedir.c: Likewise.
61687         * lib/savedir.h: Likewise.
61688         * lib/savewd.c: Likewise.
61689         * lib/savewd.h: Likewise.
61690         * lib/search.in.h: Likewise.
61691         * lib/setenv.c: Likewise.
61692         * lib/setenv.h: Likewise.
61693         * lib/settime.c: Likewise.
61694         * lib/sh-quote.c: Likewise.
61695         * lib/sh-quote.h: Likewise.
61696         * lib/sig2str.c: Likewise.
61697         * lib/sig2str.h: Likewise.
61698         * lib/signal.in.h: Likewise.
61699         * lib/signbitd.c: Likewise.
61700         * lib/signbitf.c: Likewise.
61701         * lib/signbitl.c: Likewise.
61702         * lib/sigprocmask.c: Likewise.
61703         * lib/sincosl.c: Likewise.
61704         * lib/sleep.c: Likewise.
61705         * lib/sprintf.c: Likewise.
61706         * lib/sqrtl.c: Likewise.
61707         * lib/stat-time.h: Likewise.
61708         * lib/stdio--.h: Likewise.
61709         * lib/stdio-safer.h: Likewise.
61710         * lib/stdlib--.h: Likewise.
61711         * lib/stdlib-safer.h: Likewise.
61712         * lib/stdlib.in.h: Likewise.
61713         * lib/stpcpy.c: Likewise.
61714         * lib/stpncpy.c: Likewise.
61715         * lib/strchrnul.c: Likewise.
61716         * lib/strcspn.c: Likewise.
61717         * lib/strerror.c: Likewise.
61718         * lib/strftime.c: Likewise.
61719         * lib/strftime.h: Likewise.
61720         * lib/striconveh.c: Likewise.
61721         * lib/striconveh.h: Likewise.
61722         * lib/striconveha.c: Likewise.
61723         * lib/striconveha.h: Likewise.
61724         * lib/stripslash.c: Likewise.
61725         * lib/strnlen1.c: Likewise.
61726         * lib/strnlen1.h: Likewise.
61727         * lib/strtod.c: Likewise.
61728         * lib/strtoimax.c: Likewise.
61729         * lib/strtok_r.c: Likewise.
61730         * lib/strtol.c: Likewise.
61731         * lib/strtoll.c: Likewise.
61732         * lib/strtoul.c: Likewise.
61733         * lib/strtoull.c: Likewise.
61734         * lib/sysexits.in.h: Likewise.
61735         * lib/tempname.c: Likewise.
61736         * lib/tempname.h: Likewise.
61737         * lib/timespec.h: Likewise.
61738         * lib/tls.c: Likewise.
61739         * lib/tls.h: Likewise.
61740         * lib/tmpdir.c: Likewise.
61741         * lib/tmpdir.h: Likewise.
61742         * lib/tmpfile-safer.c: Likewise.
61743         * lib/tmpfile.c: Likewise.
61744         * lib/trigl.c: Likewise.
61745         * lib/trigl.h: Likewise.
61746         * lib/trim.c: Likewise.
61747         * lib/trim.h: Likewise.
61748         * lib/trunc.c: Likewise.
61749         * lib/truncf.c: Likewise.
61750         * lib/truncl.c: Likewise.
61751         * lib/tsearch.c: Likewise.
61752         * lib/unicodeio.c: Likewise.
61753         * lib/unicodeio.h: Likewise.
61754         * lib/unistd--.h: Likewise.
61755         * lib/unistd-safer.h: Likewise.
61756         * lib/unistdio/ulc-fprintf.c: Likewise.
61757         * lib/unistdio/ulc-vfprintf.c: Likewise.
61758         * lib/unlinkdir.c: Likewise.
61759         * lib/unlinkdir.h: Likewise.
61760         * lib/unlocked-io.h: Likewise.
61761         * lib/unsetenv.c: Likewise.
61762         * lib/userspec.c: Likewise.
61763         * lib/utime.c: Likewise.
61764         * lib/utimecmp.c: Likewise.
61765         * lib/utimecmp.h: Likewise.
61766         * lib/utimens.c: Likewise.
61767         * lib/verify.h: Likewise.
61768         * lib/verror.c: Likewise.
61769         * lib/verror.h: Likewise.
61770         * lib/version-etc-fsf.c: Likewise.
61771         * lib/version-etc.c: Likewise.
61772         * lib/version-etc.h: Likewise.
61773         * lib/vfprintf.c: Likewise.
61774         * lib/vprintf.c: Likewise.
61775         * lib/vsprintf.c: Likewise.
61776         * lib/w32spawn.h: Likewise.
61777         * lib/wait-process.c: Likewise.
61778         * lib/wait-process.h: Likewise.
61779         * lib/wcwidth.c: Likewise.
61780         * lib/write-any-file.c: Likewise.
61781         * lib/xalloc-die.c: Likewise.
61782         * lib/xalloc.h: Likewise.
61783         * lib/xasprintf.c: Likewise.
61784         * lib/xgetcwd.c: Likewise.
61785         * lib/xgetcwd.h: Likewise.
61786         * lib/xgetdomainname.c: Likewise.
61787         * lib/xgetdomainname.h: Likewise.
61788         * lib/xgethostname.c: Likewise.
61789         * lib/xmalloc.c: Likewise.
61790         * lib/xmalloca.c: Likewise.
61791         * lib/xmalloca.h: Likewise.
61792         * lib/xmemcoll.c: Likewise.
61793         * lib/xnanosleep.c: Likewise.
61794         * lib/xreadlink.c: Likewise.
61795         * lib/xreadlink.h: Likewise.
61796         * lib/xsetenv.c: Likewise.
61797         * lib/xsetenv.h: Likewise.
61798         * lib/xstriconv.c: Likewise.
61799         * lib/xstriconv.h: Likewise.
61800         * lib/xstrndup.c: Likewise.
61801         * lib/xstrndup.h: Likewise.
61802         * lib/xstrtod.c: Likewise.
61803         * lib/xstrtod.h: Likewise.
61804         * lib/xstrtol-error.c: Likewise.
61805         * lib/xstrtol.c: Likewise.
61806         * lib/xstrtol.h: Likewise.
61807         * lib/xtime.h: Likewise.
61808         * lib/xvasprintf.c: Likewise.
61809         * lib/xvasprintf.h: Likewise.
61810         * lib/yesno.c: Likewise.
61811         * lib/yesno.h: Likewise.
61812         * posix-modules: Likewise.
61813         * tests/test-alloca-opt.c: Likewise.
61814         * tests/test-arcfour.c: Likewise.
61815         * tests/test-arctwo.c: Likewise.
61816         * tests/test-argmatch.c: Likewise.
61817         * tests/test-argp-2.sh: Likewise.
61818         * tests/test-argp.c: Likewise.
61819         * tests/test-arpa_inet.c: Likewise.
61820         * tests/test-array_list.c: Likewise.
61821         * tests/test-array_oset.c: Likewise.
61822         * tests/test-atexit.c: Likewise.
61823         * tests/test-avltree_list.c: Likewise.
61824         * tests/test-avltree_oset.c: Likewise.
61825         * tests/test-avltreehash_list.c: Likewise.
61826         * tests/test-base64.c: Likewise.
61827         * tests/test-binary-io.c: Likewise.
61828         * tests/test-byteswap.c: Likewise.
61829         * tests/test-c-ctype.c: Likewise.
61830         * tests/test-c-strcasecmp.c: Likewise.
61831         * tests/test-c-strcasestr.c: Likewise.
61832         * tests/test-c-strncasecmp.c: Likewise.
61833         * tests/test-c-strstr.c: Likewise.
61834         * tests/test-canonicalize-lgpl.c: Likewise.
61835         * tests/test-canonicalize.c: Likewise.
61836         * tests/test-carray_list.c: Likewise.
61837         * tests/test-ceilf.c: Likewise.
61838         * tests/test-ceill.c: Likewise.
61839         * tests/test-count-one-bits.c: Likewise.
61840         * tests/test-crc.c: Likewise.
61841         * tests/test-dirname.c: Likewise.
61842         * tests/test-fbufmode.c: Likewise.
61843         * tests/test-fcntl.c: Likewise.
61844         * tests/test-fflush.c: Likewise.
61845         * tests/test-floorf.c: Likewise.
61846         * tests/test-floorl.c: Likewise.
61847         * tests/test-fopen.c: Likewise.
61848         * tests/test-fprintf-posix.c: Likewise.
61849         * tests/test-fprintf-posix.h: Likewise.
61850         * tests/test-fpurge.c: Likewise.
61851         * tests/test-freadable.c: Likewise.
61852         * tests/test-freadahead.c: Likewise.
61853         * tests/test-freading.c: Likewise.
61854         * tests/test-freopen.c: Likewise.
61855         * tests/test-frexp.c: Likewise.
61856         * tests/test-frexpl.c: Likewise.
61857         * tests/test-fseek.c: Likewise.
61858         * tests/test-fseeko.c: Likewise.
61859         * tests/test-fseterr.c: Likewise.
61860         * tests/test-fstrcmp.c: Likewise.
61861         * tests/test-ftell.c: Likewise.
61862         * tests/test-ftello.c: Likewise.
61863         * tests/test-fwritable.c: Likewise.
61864         * tests/test-fwriting.c: Likewise.
61865         * tests/test-getaddrinfo.c: Likewise.
61866         * tests/test-getpass.c: Likewise.
61867         * tests/test-gettimeofday.c: Likewise.
61868         * tests/test-hmac-md5.c: Likewise.
61869         * tests/test-hmac-sha1.c: Likewise.
61870         * tests/test-iconv.c: Likewise.
61871         * tests/test-iconvme.c: Likewise.
61872         * tests/test-inttypes.c: Likewise.
61873         * tests/test-isnan.c: Likewise.
61874         * tests/test-isnanf.c: Likewise.
61875         * tests/test-isnanl-nolibm.c: Likewise.
61876         * tests/test-isnanl.c: Likewise.
61877         * tests/test-isnanl.h: Likewise.
61878         * tests/test-ldexpl.c: Likewise.
61879         * tests/test-linked_list.c: Likewise.
61880         * tests/test-linkedhash_list.c: Likewise.
61881         * tests/test-locale.c: Likewise.
61882         * tests/test-localename.c: Likewise.
61883         * tests/test-lock.c: Likewise.
61884         * tests/test-lseek.c: Likewise.
61885         * tests/test-malloca.c: Likewise.
61886         * tests/test-math.c: Likewise.
61887         * tests/test-mbscasecmp.c: Likewise.
61888         * tests/test-mbscasestr1.c: Likewise.
61889         * tests/test-mbscasestr2.c: Likewise.
61890         * tests/test-mbscasestr3.c: Likewise.
61891         * tests/test-mbscasestr4.c: Likewise.
61892         * tests/test-mbschr.c: Likewise.
61893         * tests/test-mbscspn.c: Likewise.
61894         * tests/test-mbsncasecmp.c: Likewise.
61895         * tests/test-mbspbrk.c: Likewise.
61896         * tests/test-mbspcasecmp.c: Likewise.
61897         * tests/test-mbsrchr.c: Likewise.
61898         * tests/test-mbsspn.c: Likewise.
61899         * tests/test-mbsstr1.c: Likewise.
61900         * tests/test-mbsstr2.c: Likewise.
61901         * tests/test-mbsstr3.c: Likewise.
61902         * tests/test-md5.c: Likewise.
61903         * tests/test-memmem.c: Likewise.
61904         * tests/test-netinet_in.c: Likewise.
61905         * tests/test-open.c: Likewise.
61906         * tests/test-printf-frexp.c: Likewise.
61907         * tests/test-printf-frexpl.c: Likewise.
61908         * tests/test-printf-posix.c: Likewise.
61909         * tests/test-printf-posix.h: Likewise.
61910         * tests/test-rbtree_list.c: Likewise.
61911         * tests/test-rbtree_oset.c: Likewise.
61912         * tests/test-rbtreehash_list.c: Likewise.
61913         * tests/test-read-file.c: Likewise.
61914         * tests/test-rijndael.c: Likewise.
61915         * tests/test-search.c: Likewise.
61916         * tests/test-signbit.c: Likewise.
61917         * tests/test-sleep.c: Likewise.
61918         * tests/test-snprintf-posix.c: Likewise.
61919         * tests/test-snprintf-posix.h: Likewise.
61920         * tests/test-snprintf.c: Likewise.
61921         * tests/test-sprintf-posix.c: Likewise.
61922         * tests/test-sprintf-posix.h: Likewise.
61923         * tests/test-stat-time.c: Likewise.
61924         * tests/test-stdbool.c: Likewise.
61925         * tests/test-stdint.c: Likewise.
61926         * tests/test-stdio.c: Likewise.
61927         * tests/test-stdlib.c: Likewise.
61928         * tests/test-stpncpy.c: Likewise.
61929         * tests/test-strcasestr.c: Likewise.
61930         * tests/test-striconv.c: Likewise.
61931         * tests/test-striconveh.c: Likewise.
61932         * tests/test-striconveha.c: Likewise.
61933         * tests/test-string.c: Likewise.
61934         * tests/test-sys_select.c: Likewise.
61935         * tests/test-sys_socket.c: Likewise.
61936         * tests/test-sys_stat.c: Likewise.
61937         * tests/test-sys_time.c: Likewise.
61938         * tests/test-sysexits.c: Likewise.
61939         * tests/test-time.c: Likewise.
61940         * tests/test-tls.c: Likewise.
61941         * tests/test-trunc.c: Likewise.
61942         * tests/test-truncf.c: Likewise.
61943         * tests/test-truncl.c: Likewise.
61944         * tests/test-unistd.c: Likewise.
61945         * tests/test-vasnprintf-posix.c: Likewise.
61946         * tests/test-vasnprintf-posix2.c: Likewise.
61947         * tests/test-vasnprintf.c: Likewise.
61948         * tests/test-vasprintf-posix.c: Likewise.
61949         * tests/test-vasprintf.c: Likewise.
61950         * tests/test-verify.c: Likewise.
61951         * tests/test-vfprintf-posix.c: Likewise.
61952         * tests/test-vprintf-posix.c: Likewise.
61953         * tests/test-vsnprintf-posix.c: Likewise.
61954         * tests/test-vsnprintf.c: Likewise.
61955         * tests/test-vsprintf-posix.c: Likewise.
61956         * tests/test-wchar.c: Likewise.
61957         * tests/test-wctype.c: Likewise.
61958         * tests/test-wcwidth.c: Likewise.
61959         * tests/test-xstrtol.c: Likewise.
61960         * tests/test-xvasprintf.c: Likewise.
61961         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61962         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61963         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61964         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61965         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61966         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61967         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61968         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61969         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61970         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61971         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61972         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61973         * tests/uniname/test-uninames.c: Likewise.
61974         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61975         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61976         * tests/unistdio/test-u16-printf1.h: Likewise.
61977         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61978         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61979         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61980         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61981         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61982         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61983         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61984         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61985         * tests/unistdio/test-u32-printf1.h: Likewise.
61986         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61987         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61988         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61989         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61990         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61991         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61992         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61993         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61994         * tests/unistdio/test-u8-printf1.h: Likewise.
61995         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61996         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61997         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61998         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61999         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62000         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62001         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62002         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62003         * tests/unistdio/test-ulc-printf1.h: Likewise.
62004         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62005         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62006         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62007         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62008         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62009         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62010         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62011         * tests/uniwidth/test-u16-width.c: Likewise.
62012         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62013         * tests/uniwidth/test-u32-width.c: Likewise.
62014         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62015         * tests/uniwidth/test-u8-width.c: Likewise.
62016         * tests/uniwidth/test-uc_width.c: Likewise.
62017         * config/srclist-update: Likewise.
62018         (fixlicense): Update to GPLv3+.
62019
62020         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62021         * tests/test-tsearch.c: Change copyright notice.
62022
62023         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62024         * lib/c-strcaseeq.h: Change copyright notice.
62025         * lib/streq.h: Likewise.
62026         * lib/uniconv.h: Likewise.
62027         * lib/uniconv/u-conv-from-enc.h: Likewise.
62028         * lib/uniconv/u-conv-to-enc.h: Likewise.
62029         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62030         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62031         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62032         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62033         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62034         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62035         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62036         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62037         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62038         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62039         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62040         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62041         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62042         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62043         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62044         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62045         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62046         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62047         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62048         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62049         * lib/uniname.h: Likewise.
62050         * lib/uniname/uniname.c: Likewise.
62051         * lib/unistdio.h: Likewise.
62052         * lib/unistdio/u-asnprintf.h: Likewise.
62053         * lib/unistdio/u-asprintf.h: Likewise.
62054         * lib/unistdio/u-printf-args.c: Likewise.
62055         * lib/unistdio/u-printf-args.h: Likewise.
62056         * lib/unistdio/u-printf-parse.h: Likewise.
62057         * lib/unistdio/u-snprintf.h: Likewise.
62058         * lib/unistdio/u-sprintf.h: Likewise.
62059         * lib/unistdio/u-vasprintf.h: Likewise.
62060         * lib/unistdio/u-vsnprintf.h: Likewise.
62061         * lib/unistdio/u-vsprintf.h: Likewise.
62062         * lib/unistdio/u16-asnprintf.c: Likewise.
62063         * lib/unistdio/u16-asprintf.c: Likewise.
62064         * lib/unistdio/u16-printf-parse.c: Likewise.
62065         * lib/unistdio/u16-snprintf.c: Likewise.
62066         * lib/unistdio/u16-sprintf.c: Likewise.
62067         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62068         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62069         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62070         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62071         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62072         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62073         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62074         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62075         * lib/unistdio/u16-vasnprintf.c: Likewise.
62076         * lib/unistdio/u16-vasprintf.c: Likewise.
62077         * lib/unistdio/u16-vsnprintf.c: Likewise.
62078         * lib/unistdio/u16-vsprintf.c: Likewise.
62079         * lib/unistdio/u32-asnprintf.c: Likewise.
62080         * lib/unistdio/u32-asprintf.c: Likewise.
62081         * lib/unistdio/u32-printf-parse.c: Likewise.
62082         * lib/unistdio/u32-snprintf.c: Likewise.
62083         * lib/unistdio/u32-sprintf.c: Likewise.
62084         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62085         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62086         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62087         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62088         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62089         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62090         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62091         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62092         * lib/unistdio/u32-vasnprintf.c: Likewise.
62093         * lib/unistdio/u32-vasprintf.c: Likewise.
62094         * lib/unistdio/u32-vsnprintf.c: Likewise.
62095         * lib/unistdio/u32-vsprintf.c: Likewise.
62096         * lib/unistdio/u8-asnprintf.c: Likewise.
62097         * lib/unistdio/u8-asprintf.c: Likewise.
62098         * lib/unistdio/u8-printf-parse.c: Likewise.
62099         * lib/unistdio/u8-snprintf.c: Likewise.
62100         * lib/unistdio/u8-sprintf.c: Likewise.
62101         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62102         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62103         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62104         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62105         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62106         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62107         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62108         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62109         * lib/unistdio/u8-vasnprintf.c: Likewise.
62110         * lib/unistdio/u8-vasprintf.c: Likewise.
62111         * lib/unistdio/u8-vsnprintf.c: Likewise.
62112         * lib/unistdio/u8-vsprintf.c: Likewise.
62113         * lib/unistdio/ulc-asnprintf.c: Likewise.
62114         * lib/unistdio/ulc-asprintf.c: Likewise.
62115         * lib/unistdio/ulc-printf-parse.c: Likewise.
62116         * lib/unistdio/ulc-snprintf.c: Likewise.
62117         * lib/unistdio/ulc-sprintf.c: Likewise.
62118         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62119         * lib/unistdio/ulc-vasprintf.c: Likewise.
62120         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62121         * lib/unistdio/ulc-vsprintf.c: Likewise.
62122         * lib/unistr.h: Likewise.
62123         * lib/unistr/u-cpy-alloc.h: Likewise.
62124         * lib/unistr/u-cpy.h: Likewise.
62125         * lib/unistr/u-endswith.h: Likewise.
62126         * lib/unistr/u-move.h: Likewise.
62127         * lib/unistr/u-set.h: Likewise.
62128         * lib/unistr/u-startswith.h: Likewise.
62129         * lib/unistr/u-stpcpy.h: Likewise.
62130         * lib/unistr/u-stpncpy.h: Likewise.
62131         * lib/unistr/u-strcat.h: Likewise.
62132         * lib/unistr/u-strcpy.h: Likewise.
62133         * lib/unistr/u-strcspn.h: Likewise.
62134         * lib/unistr/u-strdup.h: Likewise.
62135         * lib/unistr/u-strlen.h: Likewise.
62136         * lib/unistr/u-strncat.h: Likewise.
62137         * lib/unistr/u-strncpy.h: Likewise.
62138         * lib/unistr/u-strnlen.h: Likewise.
62139         * lib/unistr/u-strpbrk.h: Likewise.
62140         * lib/unistr/u-strspn.h: Likewise.
62141         * lib/unistr/u-strstr.h: Likewise.
62142         * lib/unistr/u-strtok.h: Likewise.
62143         * lib/unistr/u16-check.c: Likewise.
62144         * lib/unistr/u16-chr.c: Likewise.
62145         * lib/unistr/u16-cmp.c: Likewise.
62146         * lib/unistr/u16-cpy-alloc.c: Likewise.
62147         * lib/unistr/u16-cpy.c: Likewise.
62148         * lib/unistr/u16-endswith.c: Likewise.
62149         * lib/unistr/u16-mblen.c: Likewise.
62150         * lib/unistr/u16-mbsnlen.c: Likewise.
62151         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62152         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62153         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62154         * lib/unistr/u16-mbtouc.c: Likewise.
62155         * lib/unistr/u16-mbtoucr.c: Likewise.
62156         * lib/unistr/u16-move.c: Likewise.
62157         * lib/unistr/u16-next.c: Likewise.
62158         * lib/unistr/u16-prev.c: Likewise.
62159         * lib/unistr/u16-set.c: Likewise.
62160         * lib/unistr/u16-startswith.c: Likewise.
62161         * lib/unistr/u16-stpcpy.c: Likewise.
62162         * lib/unistr/u16-stpncpy.c: Likewise.
62163         * lib/unistr/u16-strcat.c: Likewise.
62164         * lib/unistr/u16-strchr.c: Likewise.
62165         * lib/unistr/u16-strcmp.c: Likewise.
62166         * lib/unistr/u16-strcpy.c: Likewise.
62167         * lib/unistr/u16-strcspn.c: Likewise.
62168         * lib/unistr/u16-strdup.c: Likewise.
62169         * lib/unistr/u16-strlen.c: Likewise.
62170         * lib/unistr/u16-strmblen.c: Likewise.
62171         * lib/unistr/u16-strmbtouc.c: Likewise.
62172         * lib/unistr/u16-strncat.c: Likewise.
62173         * lib/unistr/u16-strncmp.c: Likewise.
62174         * lib/unistr/u16-strncpy.c: Likewise.
62175         * lib/unistr/u16-strnlen.c: Likewise.
62176         * lib/unistr/u16-strpbrk.c: Likewise.
62177         * lib/unistr/u16-strrchr.c: Likewise.
62178         * lib/unistr/u16-strspn.c: Likewise.
62179         * lib/unistr/u16-strstr.c: Likewise.
62180         * lib/unistr/u16-strtok.c: Likewise.
62181         * lib/unistr/u16-to-u32.c: Likewise.
62182         * lib/unistr/u16-to-u8.c: Likewise.
62183         * lib/unistr/u16-uctomb-aux.c: Likewise.
62184         * lib/unistr/u16-uctomb.c: Likewise.
62185         * lib/unistr/u32-check.c: Likewise.
62186         * lib/unistr/u32-chr.c: Likewise.
62187         * lib/unistr/u32-cmp.c: Likewise.
62188         * lib/unistr/u32-cpy-alloc.c: Likewise.
62189         * lib/unistr/u32-cpy.c: Likewise.
62190         * lib/unistr/u32-endswith.c: Likewise.
62191         * lib/unistr/u32-mblen.c: Likewise.
62192         * lib/unistr/u32-mbsnlen.c: Likewise.
62193         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62194         * lib/unistr/u32-mbtouc.c: Likewise.
62195         * lib/unistr/u32-mbtoucr.c: Likewise.
62196         * lib/unistr/u32-move.c: Likewise.
62197         * lib/unistr/u32-next.c: Likewise.
62198         * lib/unistr/u32-prev.c: Likewise.
62199         * lib/unistr/u32-set.c: Likewise.
62200         * lib/unistr/u32-startswith.c: Likewise.
62201         * lib/unistr/u32-stpcpy.c: Likewise.
62202         * lib/unistr/u32-stpncpy.c: Likewise.
62203         * lib/unistr/u32-strcat.c: Likewise.
62204         * lib/unistr/u32-strchr.c: Likewise.
62205         * lib/unistr/u32-strcmp.c: Likewise.
62206         * lib/unistr/u32-strcpy.c: Likewise.
62207         * lib/unistr/u32-strcspn.c: Likewise.
62208         * lib/unistr/u32-strdup.c: Likewise.
62209         * lib/unistr/u32-strlen.c: Likewise.
62210         * lib/unistr/u32-strmblen.c: Likewise.
62211         * lib/unistr/u32-strmbtouc.c: Likewise.
62212         * lib/unistr/u32-strncat.c: Likewise.
62213         * lib/unistr/u32-strncmp.c: Likewise.
62214         * lib/unistr/u32-strncpy.c: Likewise.
62215         * lib/unistr/u32-strnlen.c: Likewise.
62216         * lib/unistr/u32-strpbrk.c: Likewise.
62217         * lib/unistr/u32-strrchr.c: Likewise.
62218         * lib/unistr/u32-strspn.c: Likewise.
62219         * lib/unistr/u32-strstr.c: Likewise.
62220         * lib/unistr/u32-strtok.c: Likewise.
62221         * lib/unistr/u32-to-u16.c: Likewise.
62222         * lib/unistr/u32-to-u8.c: Likewise.
62223         * lib/unistr/u32-uctomb.c: Likewise.
62224         * lib/unistr/u8-check.c: Likewise.
62225         * lib/unistr/u8-chr.c: Likewise.
62226         * lib/unistr/u8-cmp.c: Likewise.
62227         * lib/unistr/u8-cpy-alloc.c: Likewise.
62228         * lib/unistr/u8-cpy.c: Likewise.
62229         * lib/unistr/u8-endswith.c: Likewise.
62230         * lib/unistr/u8-mblen.c: Likewise.
62231         * lib/unistr/u8-mbsnlen.c: Likewise.
62232         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62233         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62234         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62235         * lib/unistr/u8-mbtouc.c: Likewise.
62236         * lib/unistr/u8-mbtoucr.c: Likewise.
62237         * lib/unistr/u8-move.c: Likewise.
62238         * lib/unistr/u8-next.c: Likewise.
62239         * lib/unistr/u8-prev.c: Likewise.
62240         * lib/unistr/u8-set.c: Likewise.
62241         * lib/unistr/u8-startswith.c: Likewise.
62242         * lib/unistr/u8-stpcpy.c: Likewise.
62243         * lib/unistr/u8-stpncpy.c: Likewise.
62244         * lib/unistr/u8-strcat.c: Likewise.
62245         * lib/unistr/u8-strchr.c: Likewise.
62246         * lib/unistr/u8-strcmp.c: Likewise.
62247         * lib/unistr/u8-strcpy.c: Likewise.
62248         * lib/unistr/u8-strcspn.c: Likewise.
62249         * lib/unistr/u8-strdup.c: Likewise.
62250         * lib/unistr/u8-strlen.c: Likewise.
62251         * lib/unistr/u8-strmblen.c: Likewise.
62252         * lib/unistr/u8-strmbtouc.c: Likewise.
62253         * lib/unistr/u8-strncat.c: Likewise.
62254         * lib/unistr/u8-strncmp.c: Likewise.
62255         * lib/unistr/u8-strncpy.c: Likewise.
62256         * lib/unistr/u8-strnlen.c: Likewise.
62257         * lib/unistr/u8-strpbrk.c: Likewise.
62258         * lib/unistr/u8-strrchr.c: Likewise.
62259         * lib/unistr/u8-strspn.c: Likewise.
62260         * lib/unistr/u8-strstr.c: Likewise.
62261         * lib/unistr/u8-strtok.c: Likewise.
62262         * lib/unistr/u8-to-u16.c: Likewise.
62263         * lib/unistr/u8-to-u32.c: Likewise.
62264         * lib/unistr/u8-uctomb-aux.c: Likewise.
62265         * lib/unistr/u8-uctomb.c: Likewise.
62266         * lib/unitypes.h: Likewise.
62267         * lib/uniwidth.h: Likewise.
62268         * lib/uniwidth/cjk.h: Likewise.
62269         * lib/uniwidth/u16-strwidth.c: Likewise.
62270         * lib/uniwidth/u16-width.c: Likewise.
62271         * lib/uniwidth/u32-strwidth.c: Likewise.
62272         * lib/uniwidth/u32-width.c: Likewise.
62273         * lib/uniwidth/u8-strwidth.c: Likewise.
62274         * lib/uniwidth/u8-width.c: Likewise.
62275         * lib/uniwidth/width.c: Likewise.
62276
62277 2007-10-07  Bruno Haible  <bruno@clisp.org>
62278
62279         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62280         The file is still under LGPL (see modules/inttypes).
62281
62282 2007-10-06  Bruno Haible  <bruno@clisp.org>
62283
62284         * modules/trunc (Dependencies): Add 'extensions'.
62285         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62286         Reported by Ben Pfaff <blp@gnu.org>.
62287
62288 2007-10-06  Bruno Haible  <bruno@clisp.org>
62289
62290         * modules/freopen-tests: New file.
62291         * tests/test-freopen.c: New file.
62292
62293         * modules/fopen-tests: New file.
62294         * tests/test-fopen.c: New file.
62295
62296         * modules/fopen: New file.
62297         * lib/fopen.c: New file.
62298         * m4/fopen.m4: New file.
62299         * modules/freopen: New file.
62300         * lib/freopen.c: New file.
62301         * m4/freopen.m4: New file.
62302         * lib/stdio.in.h (fopen, freopen): New declarations.
62303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62304         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62305         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62306         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62307         * doc/functions/fopen.texi: Mention the 'fopen' module.
62308         * doc/functions/freopen.texi: Mention the 'freopen' module.
62309
62310 2007-10-06  Bruno Haible  <bruno@clisp.org>
62311
62312         * modules/open-tests: New file.
62313         * tests/test-open.c: New file.
62314
62315         * modules/open: New file.
62316         * lib/open.c: New file.
62317         * m4/open.m4: New file.
62318         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62319         lib/open.c does.
62320         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62321         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62322         macros.
62323         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62324         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62325         REPLACE_OPEN.
62326         * doc/functions/open.texi: Mention the 'open' module.
62327
62328 2007-10-04  Bruno Haible  <bruno@clisp.org>
62329
62330         * modules/ceill-tests: New file.
62331         * tests/test-ceill.c: New file.
62332
62333         * modules/ceill: New file.
62334         * lib/ceill.c: Replace entire file.
62335         * m4/ceill.m4: New file.
62336         * lib/math.in.h (ceill): Replace declaration.
62337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62338         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62339         * doc/functions/ceill.texi: Mention the 'ceill' module.
62340         * modules/mathl (Files): Remove lib/ceill.c.
62341         (Depends-on): Add ceill.
62342
62343 2007-10-04  Bruno Haible  <bruno@clisp.org>
62344
62345         * modules/ceilf-tests: New file.
62346         * tests/test-ceilf.c: New file.
62347
62348         * modules/ceilf: New file.
62349         * lib/ceil.c: New file.
62350         * lib/ceilf.c: New file.
62351         * m4/ceilf.m4: New file.
62352         * lib/math.in.h (ceilf): New declaration.
62353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62354         HAVE_DECL_CEILF.
62355         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62356         HAVE_DECL_CEILF.
62357         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62358
62359 2007-10-04  Bruno Haible  <bruno@clisp.org>
62360
62361         * modules/floorl-tests: New file.
62362         * tests/test-floorl.c: New file.
62363
62364         * modules/floorl: New file.
62365         * lib/floorl.c: Replace entire file.
62366         * m4/floorl.m4: New file.
62367         * lib/math.in.h (floorl): Replace declaration.
62368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62369         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62370         * doc/functions/floorl.texi: Mention the 'floorl' module.
62371         * modules/mathl (Files): Remove lib/floorl.c.
62372         (Depends-on): Add floorl.
62373
62374 2007-10-04  Bruno Haible  <bruno@clisp.org>
62375
62376         * modules/floorf-tests: New file.
62377         * tests/test-floorf.c: New file.
62378
62379         * modules/floorf: New file.
62380         * lib/floor.c: New file.
62381         * lib/floorf.c: New file.
62382         * m4/floorf.m4: New file.
62383         * lib/math.in.h (floorf): New declaration.
62384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62385         HAVE_DECL_FLOORF.
62386         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62387         HAVE_DECL_FLOORF.
62388         * doc/functions/floorf.texi: Mention the 'floorf' module.
62389
62390 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62391             Bruno Haible  <bruno@clisp.org>
62392
62393         Advertise for the Git server instead of the CVS server.
62394         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62395         repository instead of the CVS one.
62396         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62397         about all VCS systems generically.
62398         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62399
62400 2007-10-04  Bruno Haible  <bruno@clisp.org>
62401
62402         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62403         means.
62404         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62405
62406 2007-10-04  Bruno Haible  <bruno@clisp.org>
62407
62408         * modules/truncl-tests: New file.
62409         * tests/test-truncl.c: New file.
62410
62411         * modules/truncl: New file.
62412         * lib/truncl.c: New file.
62413         * m4/truncl.m4: New file.
62414         * lib/math.in.h (truncl): New declaration.
62415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62416         HAVE_DECL_TRUNCL.
62417         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62418         HAVE_DECL_TRUNCL.
62419         * doc/functions/truncl.texi: Mention the 'truncl' module.
62420
62421 2007-10-04  Bruno Haible  <bruno@clisp.org>
62422
62423         * modules/truncf-tests: New file.
62424         * tests/test-truncf.c: New file.
62425
62426         * modules/truncf: New file.
62427         * lib/trunc.c: Make paramerizable through USE_* macros.
62428         * lib/truncf.c: New file.
62429         * m4/truncf.m4: New file.
62430         * lib/math.in.h (truncf): New declaration.
62431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62432         HAVE_DECL_TRUNCF.
62433         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62434         HAVE_DECL_TRUNCF.
62435         * doc/functions/truncf.texi: Mention the 'truncf' module.
62436
62437 2007-10-03  Bruno Haible  <bruno@clisp.org>
62438
62439         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62440         augmentation also for tests modules.
62441         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62442         * modules/atexit-tests (Makefile.am): Likewise.
62443         * modules/binary-io-tests (Makefile.am): Likewise.
62444         * modules/c-strcase-tests (Makefile.am): Likewise.
62445         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62446         * modules/canonicalize-tests (Makefile.am): Likewise.
62447         * modules/closein-tests (Makefile.am): Likewise.
62448         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62449         * modules/freadahead-tests (Makefile.am): Likewise.
62450         * modules/fseek-tests (Makefile.am): Likewise.
62451         * modules/fseeko-tests (Makefile.am): Likewise.
62452         * modules/ftell-tests (Makefile.am): Likewise.
62453         * modules/ftello-tests (Makefile.am): Likewise.
62454         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62455         * modules/isnanl-tests (Makefile.am): Likewise.
62456         * modules/lseek-tests (Makefile.am): Likewise.
62457         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62458         * modules/mbscasestr-tests (Makefile.am): Likewise.
62459         * modules/mbschr-tests (Makefile.am): Likewise.
62460         * modules/mbscspn-tests (Makefile.am): Likewise.
62461         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62462         * modules/mbspbrk-tests (Makefile.am): Likewise.
62463         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62464         * modules/mbsrchr-tests (Makefile.am): Likewise.
62465         * modules/mbsspn-tests (Makefile.am): Likewise.
62466         * modules/mbsstr-tests (Makefile.am): Likewise.
62467         * modules/printf-posix-tests (Makefile.am): Likewise.
62468         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62469         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62470         * modules/tsearch-tests (Makefile.am): Likewise.
62471         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62472         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62473         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62474         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62475         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62476         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62477         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62478         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62479         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62480         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62481         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62482         * modules/xstrtol-tests (Makefile.am): Likewise.
62483         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62484         * modules/yesno-tests (Makefile.am): Likewise.
62485
62486 2007-10-03  Bruno Haible  <bruno@clisp.org>
62487
62488         * modules/trunc-tests: New file.
62489         * tests/test-trunc.c: New file.
62490
62491         * modules/trunc: New file.
62492         * lib/trunc.c: New file.
62493         * m4/trunc.m4: New file.
62494         * lib/math.in.h (trunc): New declaration.
62495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62496         HAVE_DECL_TRUNC.
62497         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62498         HAVE_DECL_TRUNC.
62499         * doc/functions/trunc.texi: Mention the 'trunc' module.
62500
62501 2007-10-03  Bruno Haible  <bruno@clisp.org>
62502
62503         * tests/test-fpending.c: New file, mostly copied
62504         from coreutils/lib/t-fpending.c.
62505         * modules/fpending-tests: New file.
62506
62507 2007-10-03  Bruno Haible  <bruno@clisp.org>
62508
62509         Port the stdio extensions to QNX (untested).
62510         * lib/fseterr.c (fseterr): Add support for QNX.
62511         * lib/fbufmode.c (fbufmode): Likewise.
62512         * lib/freadable.c (freadable): Likewise.
62513         * lib/fwritable.c (fwritable): Likewise.
62514         * lib/freading.c (freading): Likewise.
62515         * lib/fwriting.c (fwriting): Likewise.
62516         * lib/freadahead.c (freadahed): Likewise.
62517         * lib/fpurge.c (fpurge): Likewise.
62518         * lib/fseeko.c (rpl_fseeko): Likewise.
62519
62520 2007-10-03  Bruno Haible  <bruno@clisp.org>
62521             Jim Meyering  <jim@meyering.net>
62522             Eric Blake  <ebb9@byu.net>
62523
62524         * doc/relocatable.texi: Use @command instead of @program.
62525
62526 2007-10-02  Jim Meyering  <jim@meyering.net>
62527
62528         Perform one more "_.h" -> ".in.h" substitution.
62529         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62530         instead of unistd_.h here, too.
62531
62532 2007-10-01  Bruno Haible  <bruno@clisp.org>
62533
62534         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62535         Needed for the alloca-opt module.
62536
62537 2007-09-30  Bruno Haible  <bruno@clisp.org>
62538
62539         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62540         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62541         alloca_.h.
62542         * lib/argz.in.h: Renamed from lib/argz_.h.
62543         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62544         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62545         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62546         byteswap_.h.
62547         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62548         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62549         dirent_.h.
62550         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62551         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62552         fcntl_.h.
62553         * lib/float.in.h: Renamed from lib/float_.h.
62554         * modules/float (Files, Makefile.am): Use float.in.h instead of
62555         float_.h.
62556         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62557         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62558         fnmatch_.h.
62559         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62560         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62561         getopt_.h.
62562         * lib/glob.in.h: Renamed from lib/glob_.h.
62563         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62564         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62565         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62566         iconv_.h.
62567         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62568         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62569         inttypes_.h.
62570         * lib/locale.in.h: Renamed from lib/locale_.h.
62571         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62572         locale_.h.
62573         * lib/math.in.h: Renamed from lib/math_.h.
62574         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62575         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62576         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62577         of netinet_in_.h. Add dependency.
62578         * lib/poll.in.h: Renamed from lib/poll_.h.
62579         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62580         * lib/search.in.h: Renamed from lib/search_.h.
62581         * modules/search (Files, Makefile.am): Use search.in.h instead of
62582         search_.h.
62583         * lib/signal.in.h: Renamed from lib/signal_.h.
62584         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62585         _signal.h.
62586         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62587         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62588         stdbool_.h.
62589         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62590         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62591         stdint_.h.
62592         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62593         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62594         stdio_.h.
62595         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62596         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62597         stdlib_.h.
62598         * lib/string.in.h: Renamed from lib/string_.h.
62599         * modules/string (Files, Makefile.am): Use string.in.h instead of
62600         string_.h.
62601         * doc/gnulib-tool.texi (Initial import): Update.
62602         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62603         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62604         of sys_select_.h. Add dependency.
62605         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62606         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62607         of sys_socket_.h.
62608         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62609         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62610         sys_stat_.h.
62611         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62612         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62613         sys_time_.h.
62614         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62615         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62616         sysexits_.h.
62617         * lib/time.in.h: Renamed from lib/time_.h.
62618         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62619         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62620         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62621         unistd_.h.
62622         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62623         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62624         wchar_.h.
62625         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62626         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62627         wctype_.h.
62628         * build-aux/bootstrap (slurp): Update.
62629         * lib/.cppi-disable: Update.
62630
62631 2007-09-30  Bruno Haible  <bruno@clisp.org>
62632
62633         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62634         Needed on BeOS.
62635
62636 2007-09-30  Bruno Haible  <bruno@clisp.org>
62637
62638         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62639
62640 2007-09-29  Bruno Haible  <bruno@clisp.org>
62641
62642         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62643
62644 2007-09-29  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62647         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62648         * build-aux/install-reloc: Compile also areadlink.c.
62649         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62650
62651 2007-09-29  Bruno Haible  <bruno@clisp.org>
62652
62653         * gnulib-tool (func_emit_initmacro_done): Indentation.
62654
62655 2007-09-29  Bruno Haible  <bruno@clisp.org>
62656
62657         * README: Add CVS checkout update instructions.
62658         Info from Bob Proulx <bob@proulx.com>.
62659
62660 2007-09-28  Eric Blake  <ebb9@byu.net>
62661
62662         Provide move-if-change.
62663         * build-aux/move-if-change: New file, based on best practice
62664         rather than any canonical upstream location.
62665
62666 2007-09-28  Jim Meyering  <jim@meyering.net>
62667
62668         Fix canonicalize loop-detection corner case.
62669         Do not attempt to stat the symlink values stored via seen_triple.
62670         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62671         on linux-2.6.18, (but not 2.6.22).
62672         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62673         triple_compare.  The former compares dev,ino,filename, while the latter
62674         would actually stat dirname(filename) when dev and ino were equal.
62675         * lib/hash-triple.c: Install <string.h>.
62676         (STREQ): Define.
62677         (triple_compare_ino_str): New function.
62678         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62679
62680 2007-09-28  Eric Blake  <ebb9@byu.net>
62681
62682         Enforce that AC_REPLACE_FUNCS files exist.
62683         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62684         override check for typos.
62685
62686         Fix test-closein on Solaris 10.
62687         * tests/test-closein.c (main): Don't assume stdin can be inherited
62688         closed on all systems.
62689         * tests/test-closein.sh: Likewise.
62690         Reported by Piotr Tarnowski.
62691
62692 2007-09-28  Jim Meyering  <jim@meyering.net>
62693
62694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62695
62696 2007-09-27  Jim Meyering  <jim@meyering.net>
62697
62698         canonicalize: Avoid a false-positive cycle failure.
62699         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62700         Sort.  Remove cycle-check.
62701         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62702         not cycle-check.h.
62703         (seen_triple): New function.
62704         (canonicalize_filename_mode): Use it instead of cycle-check.
62705         * tests/test-canonicalize.c: Add a test for this bug.
62706         * tests/test-canonicalize.sh: Set up and run the test.
62707
62708         New module, file-set, from coreutils.
62709         * modules/file-set: Define it.
62710         * lib/file-set.c, lib/file-set.h: Implement.
62711
62712         New module, hash-triple, from coreutils.
62713         * modules/hash-triple: Define it.
62714         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62715
62716 2007-09-25  Eric Blake  <ebb9@byu.net>
62717
62718         Fix strerror on Interix.
62719         * lib/string_.h (strerror): Declare replacement.
62720         * doc/functions/strerror.texi (strerror): Document the Interix
62721         shortcoming.
62722         * modules/string (Makefile.am): Support new hooks.
62723         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62724         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62725         gl_FUNC_STRERROR_SEPARATE.
62726         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62727         * lib/strerror.c (rpl_strerror): Provide replacement.
62728         * modules/strerror (Depends-on): Add string.
62729         (configure.ac): Detect use of module.
62730         * tests/test-strerror.c: New file.
62731         * modules/strerror-tests: New test module.
62732         * modules/argp (Depends-on): Add strerror.
62733         * modules/error (Depends-on): Likewise.
62734         Reported by Martin Koeppe.
62735
62736 2007-09-24  Bruno Haible  <bruno@clisp.org>
62737
62738         * README: Update git instructions.
62739
62740 2007-09-24  Eric Blake  <ebb9@byu.net>
62741
62742         Revert fpending breakage from 2007-09-08.
62743         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62744         __fpending.c.
62745
62746 2007-09-24  Jim Meyering  <jim@meyering.net>
62747
62748         filenamecat.c: Add a test.
62749         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62750         showing how the function works when DIR is the empty string.
62751
62752 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62753
62754         * tests/test-canonicalize.sh: Turn on executable bit.
62755
62756 2007-09-19  Eric Blake  <ebb9@byu.net>
62757
62758         * README: Update CVS instructions.
62759
62760 2007-09-18  Bruno Haible  <bruno@clisp.org>
62761
62762         * modules/areadlink: New file.
62763         * lib/areadlink.h (areadlink): New declaration.
62764         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62765
62766 2007-09-17  Jim Meyering  <jim@meyering.net>
62767
62768         * lib/savewd.c (ESTALE) [!defined]: Define.
62769         Reported to be required on Interix by Martin Koeppe.
62770
62771 2007-09-17  Bruno Haible  <bruno@clisp.org>
62772
62773         * gnulib-tool (func_version): Use $version.
62774
62775 2007-09-16  Bruno Haible  <bruno@clisp.org>
62776
62777         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62778         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62779         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62780         Reported by Greg Schafer <gschafer@zip.com.au>.
62781
62782 2007-09-15  Bruno Haible  <bruno@clisp.org>
62783
62784         * gnulib-tool (sed): Try a little harder to make bash understand the
62785         alias.
62786         Reported by Bruce Korb <bruce.korb@gmail.com>.
62787
62788 2007-09-13  Eric Blake  <ebb9@byu.net>
62789
62790         * ChangeLog: Remove conflict markers.
62791
62792 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62793
62794         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62795         Reported by Bruno Haible <bruno@clisp.org>.
62796
62797 2007-09-12  Bruno Haible  <bruno@clisp.org>
62798
62799         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62800         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62801         is not defined.
62802
62803 2007-09-12  Eric Blake  <ebb9@byu.net>
62804
62805         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62806         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62807         Autoconf definition.
62808         * modules/euidaccess (Depends-on): Add extensions, for
62809         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62810         * modules/fnmatch (Depends-on): Likewise.
62811         * modules/getaddrinfo (Depends-on): Likewise.
62812         * modules/getdelim (Depends-on): Likewise.
62813         * modules/getline (Depends-on): Likewise.
62814         * modules/getsubopt (Depends-on): Likewise.
62815         * modules/gettext (Depends-on): Likewise.
62816         * modules/group-member (Depends-on): Likewise.
62817         * modules/mbchar (Depends-on): Likewise.
62818         * modules/memmem (Depends-on): Likewise.
62819         * modules/mempcpy (Depends-on): Likewise.
62820         * modules/memrchr (Depends-on): Likewise.
62821         * modules/pagealign_alloc (Depends-on): Likewise.
62822         * modules/readutmp (Depends-on): Likewise.
62823         * modules/stpcpy (Depends-on): Likewise.
62824         * modules/stpncpy (Depends-on): Likewise.
62825         * modules/strchrnul (Depends-on): Likewise.
62826         * modules/strndup (Depends-on): Likewise.
62827         * modules/strsep (Depends-on): Likewise.
62828         * modules/strverscmp (Depends-on): Likewise.
62829         * modules/vasprintf (Depends-on): Likewise.
62830         * modules/wcwidth (Depends-on): Likewise.
62831         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62832         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62833         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62835         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62836         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62837         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62838         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62839         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62840         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62841         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62842         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62843         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62845         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62846         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62847         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62848         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62850         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62851         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62852         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62853         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62854         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62855         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62857         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62858         so that lock.m4 can be used in gettext without extensions module.
62859
62860 2007-09-11  Bruno Haible  <bruno@clisp.org>
62861
62862         * m4/isc-posix.m4: Remove file.
62863         Suggested by Eric Blake.
62864
62865 2007-09-11  Eric Blake  <ebb9@byu.net>
62866
62867         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62868
62869 2007-09-10  Bruno Haible  <bruno@clisp.org>
62870
62871         * posix-modules: Fix typo in error message.
62872         Reported by Matt <mkraai@beckman.com>.
62873
62874 2007-09-09  Bruno Haible  <bruno@clisp.org>
62875
62876         * doc/functions/getdelim.texi: Update list of platforms lacking the
62877         function.
62878         * doc/functions/getline.texi: Likewise.
62879
62880 2007-09-09  Jim Meyering  <jim@meyering.net>
62881
62882         * lib/hash.c (hash_initialize): Detect calloc failure.
62883         Reported by Bruno Haible.
62884
62885 2007-09-09  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62888         malloc or realloc fails.
62889
62890 2007-09-09  Bruno Haible  <bruno@clisp.org>
62891
62892         * modules/getcwd (Depends-on): Add malloc-posix.
62893         * modules/glob (Depends-on): Likewise.
62894         * modules/putenv (Depends-on): Likewise.
62895         * modules/strdup (Depends-on): Likewise.
62896         * modules/getdelim (Depends-on): Add realloc-posix.
62897         * modules/read-file (Depends-on): Likewise.
62898
62899 2007-09-09  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62902         (gl_FUNC_MALLOC_POSIX): Require it.
62903         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62904         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62905         * modules/realloc (Files): Add m4/malloc.m4.
62906         * modules/calloc (Files): Likewise.
62907
62908 2007-09-09  Bruno Haible  <bruno@clisp.org>
62909
62910         * modules/malloc-posix: New file.
62911         * modules/malloc (Depends-on): Add malloc-posix.
62912         * lib/malloc.c: Include errno.h.
62913         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62914         and a POSIX-compatible malloc into a single function. Set ENOMEM
62915         when returning NULL.
62916         * m4/malloc.m4: New file.
62917         * doc/functions/malloc.texi: Mention the malloc-posix module.
62918         * lib/stdlib_.h (malloc): New declaration.
62919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62920         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62921         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62922         and HAVE_MALLOC_POSIX.
62923
62924 2007-09-09  Bruno Haible  <bruno@clisp.org>
62925
62926         * modules/realloc-posix: New file.
62927         * modules/realloc (Depends-on): Add realloc-posix.
62928         * lib/realloc.c: Include errno.h.
62929         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62930         and a POSIX-compatible realloc into a single function. Set ENOMEM
62931         when returning NULL.
62932         * m4/realloc.m4: New file.
62933         * doc/functions/realloc.texi: Mention the realloc-posix module.
62934         * lib/stdlib_.h (realloc): New declaration.
62935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62936         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62937         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62938         and HAVE_REALLOC_POSIX.
62939
62940 2007-09-09  Bruno Haible  <bruno@clisp.org>
62941
62942         * modules/calloc-posix: New file.
62943         * modules/calloc (Depends-on): Add calloc-posix.
62944         * lib/calloc.c: Include errno.h.
62945         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62946         and a POSIX-compatible calloc into a single function. Set ENOMEM
62947         when returning NULL.
62948         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62949         * doc/functions/calloc.texi: Mention the calloc-posix module.
62950         * lib/stdlib_.h (calloc): New declaration.
62951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62952         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62953         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62954         and HAVE_CALLOC_POSIX.
62955
62956 2007-09-09  Bruno Haible  <bruno@clisp.org>
62957
62958         Allow for modules to show an arbitrary notice.
62959         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62960         * gnulib-tool: New option --extract-notice.
62961         (func_usage): Document it.
62962         (sed_extract_prog): Update.
62963         (func_get_notice): New function.
62964         (func_modules_notice): New function.
62965         (func_import, func_create_testdir): Invoke it.
62966         Suggested by Jim Meyering.
62967
62968 2007-09-09  Bruno Haible  <bruno@clisp.org>
62969
62970         * gnulib-tool: New options --verbose, --quiet.
62971         (func_usage): Document them.
62972         (verbose): New variable.
62973         (func_execute_command): New function.
62974         (func_import): Don't show the module list and the file list if
62975         $verbose < 0.
62976         (func_create_testdir): Likewise. Use func_execute_command.
62977         (func_create_megatestdir): Use func_execute_command.
62978
62979 2007-09-08  Bruno Haible  <bruno@clisp.org>
62980
62981         * gnulib-tool (func_import): Prefer rsync over wget when available,
62982         for fetching the PO files.
62983
62984 2007-09-08  Bruno Haible  <bruno@clisp.org>
62985
62986         * posix-modules: New file. Portions copied from gnulib-tool.
62987         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62988
62989 2007-09-08  Jim Meyering  <jim@meyering.net>
62990
62991         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62992         * lib/fpending.h: Rename from __fpending.h.
62993         * lib/fpending.c: Rename from __fpending.c.
62994         Include "fpending.h", not "__fpending.h".
62995         * lib/__fpending.h, lib/__fpending.c: Remove files.
62996         * modules/fpending (Files): Reflect new file names.
62997         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62998
62999 2007-09-08  Bruno Haible  <bruno@clisp.org>
63000
63001         * m4/inttypes-h.m4: Remove stub file.
63002
63003 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63004
63005         * doc/headers/stdint.texi: Discuss #include_next issue.
63006
63007 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63010
63011 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63012
63013         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63014         in variable name.
63015
63016 2007-09-03  Jim Meyering  <jim@meyering.net>
63017
63018         New module: git-version-gen.
63019         * modules/git-version-gen: New file.
63020
63021         Import changes from coreutils for bootstrap script.
63022
63023         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63024
63025         bootstrap: uses rsync to download the .po files
63026         * build-aux/bootstrap (po_download_command_format): New global.
63027         (download_po_files): Use rsync.
63028         (update_po_files): Don't remove .po files after download,
63029         so future rsync runs can take advantage of the copies.
63030
63031         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63032
63033         Solve the unnecessary-.po-file-regeneration problem once and for all.
63034         * build-aux/bootstrap (download_po_files): New function, renamed from
63035         get_translations.  Now, downloads, but doesn't update LINGUAS.
63036         (update_po_files): New function.
63037
63038         bootstrap: Ignore more.
63039         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63040         uniwidth to e.g., lib/.gitignore.
63041         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63042
63043         * build-aux/bootstrap: New setting: vc_ignore.
63044         (insert_sorted_if_absent): Create $file if absent.
63045         Adapt to new, possibly empty, list: $vc_ignore.
63046
63047         bootstrap: generate more ignorable names
63048         * build-aux/bootstrap (slurp): When generating ignorable names,
63049         also map .sin to .sed, .gperf to .c, and .y to .c.
63050
63051 2007-09-03  Jim Meyering  <jim@meyering.net>
63052
63053         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63054         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63055
63056 2007-09-02  Bruno Haible  <bruno@clisp.org>
63057
63058         Fix mis-recognition of 'mcs' on QNX 6.
63059         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63060         output contains the string "Mono".
63061         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63062         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63063
63064 2007-09-01  Bruno Haible  <bruno@clisp.org>
63065
63066         Fix collision between uniwidth/* and linebreak modules.
63067         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63068         u32_width): Remove declarations.
63069         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63070         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63071         streq3, streq2, streq1, streq0): Remove functions.
63072         (STREQ): Remove macro.
63073         (is_cjk_encoding): Remove function.
63074         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63075         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63076         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63077         * NEWS: Document the change.
63078
63079 2007-09-01  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/streq.h: Add double-inclusion guard.
63082
63083 2007-09-01  Karl Berry  <karl@gnu.org>
63084
63085         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63086
63087 2007-08-28  Jim Meyering  <jim@meyering.net>
63088
63089         Rename mreadlink_with_size to areadlink_with_size.
63090         * NEWS: Document the change.
63091         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63092         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63093         * lib/mreadlink.h: Rename this to...
63094         * lib/areadlink.h: ...this.
63095         * modules/mreadlink-with-size: Rename this to...
63096         * modules/areadlink-with-size: ...this.
63097         * lib/canonicalize.c: Reflect the renaming.
63098         * modules/canonicalize: Likewise.
63099
63100 2007-08-26  Bruno Haible  <bruno@clisp.org>
63101
63102         * gnulib-tool (func_import): When deciding which files to remove,
63103         consider also dangling symbolic links.
63104         Reported by Eric Blake.
63105
63106 2007-08-26  Bruno Haible  <bruno@clisp.org>
63107
63108         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63109
63110 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63111
63112         * lib/readline.c: Don't include getline.h, the prototype is now
63113         found in stdio.h.
63114
63115 2007-08-23  Jim Meyering  <jim@meyering.net>
63116
63117         Getdelim touchup.
63118         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63119         around the funlockfile call, since funlockfile never sets errno.
63120         Don't set errno upon failed realloc.
63121
63122 2007-08-22  Eric Blake  <ebb9@byu.net>
63123
63124         Getline touchups.
63125         * lib/getdelim.c (getdelim): Revert regression that required *n to
63126         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63127         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63128         getdelim, rather than whether implementation is missing.
63129         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63130         * lib/stdio_.h (getline): Also declare if replacement is
63131         required.
63132         * doc/functions/getdelim.texi: New file.
63133         * doc/functions/getline.texi: Likewise.
63134         * doc/gnulib.texi (Function Substitutes): Add new files.
63135         Reported by Bruno Haible.
63136
63137 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63138
63139         * users.txt: Add Guile.
63140
63141 2007-08-22  Eric Blake  <ebb9@byu.net>
63142
63143         * tests/test-getdelim.c (main): Use remove, not unlink.
63144         * tests/test-getline.c (main): Likewise.
63145
63146         Move getline and getdelim into stdio.h, per POSIX 200x.
63147         * modules/getline (Files): Remove getline.h.
63148         (Depends-on): Add stdio.
63149         (configure.ac): Add module indicator.
63150         * modules/getdelim (Files): Remove getdelim.h.
63151         (Depends-on): Add stdio.
63152         (configure.ac): Add module indicator.
63153         * modules/stdio (Makefile.am): Work with new indicators.
63154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63155         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63156         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63157         * lib/getdelim.h: Delete.
63158         * lib/getline.h: Delete.
63159         * lib/stdio_.h (getdelim, getline): Declare.
63160         * modules/getdelim-tests: New module.
63161         * modules/getline-tests: Likewise.
63162         * tests/test-getdelim.c: New file.
63163         * tests/test-getline.c: Likewise.
63164         * NEWS: Document the change.
63165         * lib/getline.c: Update choice of header.
63166         * lib/csharpcomp.c: Likewise.
63167         * lib/getpass.c: Likewise.
63168         * lib/javacomp.c: Likewise.
63169         * lib/javaversion.c: Likewise.
63170         * lib/yesno.c: Likewise.
63171         * lib/getdelim.c: Likewise.
63172         (getdelim): Set errno on failure, and avoid memory leak.
63173
63174 2007-08-19  Bruno Haible  <bruno@clisp.org>
63175
63176         * modules/closein (Depends-on): Add freadahead.
63177         * lib/closein.c: Include freadahead.h.
63178         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63179         is zero.
63180
63181 2007-08-19  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/freadahead-tests: New file.
63184         * tests/test-freadahead.sh: New file.
63185         * tests/test-freadahead.c: New file.
63186
63187         * modules/freadahead: New file.
63188         * lib/freadahead.h: New file.
63189         * lib/freadahead.c: New file.
63190         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63191         fbufmode, fpurge, freadable, fwritable.
63192
63193 2007-08-19  Eric Blake  <ebb9@byu.net>
63194
63195         Test yesno in combination with closein.
63196         * lib/yesno.c (yesno): Document use of stdin.
63197         * modules/yesno-tests (Files): New module.
63198         * tests/test-yesno.c (main): New file.
63199         * tests/test-yesno.sh: Likewise.
63200
63201 2007-08-19  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63204         * lib/fseeko.c (rpl_fseeko): Likewise.
63205         * lib/fseterr.c (fseterr): Likewise.
63206
63207 2007-08-19  Bruno Haible  <bruno@clisp.org>
63208
63209         * tests/test-lseek.c (main): Disable a test for BeOS.
63210         * doc/functions/lseek.texi: Document the BeOS bug.
63211
63212 2007-08-19  Bruno Haible  <bruno@clisp.org>
63213             Eric Blake  <ebb9@byu.net>
63214
63215         * lib/lseek.c: Include <sys/stat.h>.
63216         (rpl_lseek): Add workaround code also for Unix platforms.
63217         Needed for BeOS.
63218         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63219         * doc/functions/lseek.texi: Document BeOS definiency.
63220
63221 2007-08-18  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/fstrcmp-tests: New file.
63224         * tests/test-fstrcmp.c: New file.
63225
63226 2007-08-18  Bruno Haible  <bruno@clisp.org>
63227
63228         * modules/fstrcmp: New file, from GNU gettext with modifications.
63229         * lib/fstrcmp.h: New file, from GNU gettext.
63230         * lib/fstrcmp.c: New file, from GNU gettext.
63231         * MODULES.html.sh (String handling): Add fstrcmp.
63232
63233 2007-08-18  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63236         'bool'.
63237         (diag, compareseq): Remove const from the ctxt argument.
63238         (USE_HEURISTIC): Undefine at the end.
63239
63240 2007-08-18  Jim Meyering  <jim@meyering.net>
63241
63242         New file: lib/idcache.h
63243         * NEWS: Mention the addition.
63244         * modules/idcache (Files): Add lib/idcache.h
63245         * lib/idcache.c: Include "idcache.h".
63246         Don't include <sys/types.h>.
63247         Add a FIXME comment.
63248         Move file-scoped "static" declarations to the top.
63249         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63250
63251 2007-08-17  Bruno Haible  <bruno@clisp.org>
63252         and Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * MODULES.html.sh: Add diffseq.
63255         * modules/diffseq: New file.
63256         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63257         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63258
63259 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63260
63261         Import changes from coreutils for bootstrap script.
63262
63263         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * build-aux/bootstrap (slurp): Work even in environments where
63266         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63267         current code does not slurp files whose names start with ".", and
63268         this looks like it might be a troublesome area.
63269
63270         2007-07-11  Jim Meyering  <jim@meyering.net>
63271
63272         If there's a GPL vN copyright comment, require that N == 3.
63273
63274         2007-07-08  Jim Meyering  <jim@meyering.net>
63275
63276         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63277         * build-aux/bootstrap (mam_template): Move definition out of loop.
63278
63279         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63280
63281         * build-aux/bootstrap (symlink_to_dir): Rename function from
63282         symlink_to_gnulib.  Add a directory parameter.  Update all
63283         callers.
63284         (cp_mark_as_generated): Also check for -- and link to -- files in
63285         gl/.
63286
63287         2007-07-08  Jim Meyering  <jim@meyering.net>
63288
63289         Adapt to deeper hierarchy in gnulib.
63290         * build-aux/bootstrap (symlink_to_dir): If the destination
63291         directory doesn't exist, create it. This is required at least for
63292         "lib/uniwidth/cjk.h".
63293
63294         2007-05-15  Jim Meyering  <jim@meyering.net>
63295
63296         * build-aux/bootstrap: Now that generated Makefile.am files
63297         are no longer under version control, they must be created at
63298         bootstrap time.
63299
63300 2007-08-14  Ben Pfaff  <blp@gnu.org>
63301
63302         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63303
63304 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63305
63306         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63307         given the changes below.
63308         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63309         even on hosts that have padding bits beyond the supported 64.
63310
63311 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63312
63313         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63314         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63315         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63316         depends on it.
63317         (xstrtol_error): Remove.
63318         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63319         but with a different signature.
63320         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63321         * lib/xstrtol-error.c: Include exitfail.h.
63322         (xstrtol_fatal): New function, with a different signature from the
63323         old xstrtol_error, so that the caller need not worry about passing
63324         in an exit status, or about storage management of the option argument.
63325         (xstrtol_error): Now a static function.  Redo signature to
63326         implement xstrtol_fatal.  Output the correct number of hyphens in
63327         front of the option so that the caller need not worry about
63328         storage management.
63329         (N_): New macro.
63330         (_): Remove; not used now.
63331         * modules/xstrtol: Depend on getopt.
63332         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63333         of old STRTOL_FATAL_ERROR macro.
63334         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63335         of test program.
63336         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63337         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63338
63339 2007-08-08  Eric Blake  <ebb9@byu.net>
63340
63341         * lib/xstrtol-error.c: Add missing include.
63342
63343         Move xstrtol messages into gnulib domain, when --pobase is used.
63344         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63345         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63346         * modules/xstrtol (Files): Distribute new file.
63347         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63348         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63349         * tests/test-xstrtol.c: ...into new file.
63350         * tests/test-xstrtoul.c: Also test xstrtoul.
63351         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63352         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63353         * tests/test-xstrtol.sh: Drive the tests.
63354         * tests/test-xstrtoimax.sh: Likewise.
63355         * tests/test-xstrtoumax.sh: Likewise.
63356         * modules/xstrtol-tests: New module.
63357         * modules/xstrtoimax-tests: Likewise.
63358         * modules/xstrtoumax-tests: Likewise.
63359
63360 2007-08-08  Jim Meyering  <jim@meyering.net>
63361
63362         New function: mfile_name_concat.
63363         * lib/filenamecat.c (mfile_name_concat): New function, just like
63364         file_name_concat, but return NULL upon failure rather than exiting
63365         with a diagnostic.
63366         * lib/filenamecat.h: Declare it.
63367
63368 2007-08-07  Bruno Haible  <bruno@clisp.org>
63369
63370         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63371         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63372         warning from gcc.
63373         Reported by Eric Blake.
63374
63375 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63376
63377         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63378         * modules/crypto/arcfour (License): Likewise.
63379         * modules/crypto/des-tests (License): Likewise.
63380         * modules/crypto/gc-arctwo-tests (License): Likewise.
63381         * modules/crypto/gc-des-tests (License): Likewise.
63382         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63383         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63384         * modules/crypto/gc-md2-tests (License): Likewise.
63385         * modules/crypto/gc-md4-tests (License): Likewise.
63386         * modules/crypto/gc-md5-tests (License): Likewise.
63387         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63388         * modules/crypto/gc-rijndael-tests (License): Likewise.
63389         * modules/crypto/gc-sha1-tests (License): Likewise.
63390         * modules/crypto/gc-tests (License): Likewise.
63391         * modules/crypto/hmac-md5 (License): Likewise.
63392         * modules/crypto/hmac-sha1 (License): Likewise.
63393         * modules/crypto/md2-tests (License): Likewise.
63394         * modules/crypto/md4-tests (License): Likewise.
63395         * modules/crypto/md5 (License): Likewise.
63396         * modules/crypto/rijndael (License): Likewise.
63397         * modules/crypto/sha1 (License): Likewise.
63398         * modules/memxor (License): Likewise.
63399
63400 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63401         and Bruno Haible  <bruno@clisp.org>
63402
63403         * NEWS: Describe interface changes to human, xstrtol.
63404         * lib/human.h: Include <xstrtol.h>.
63405         (human_options): Return enum strtol_error, not int.  Remove
63406         bool arg; take int * instead.
63407         * lib/human.c: Don't include "gettext.h".
63408         (_): Remove; no longer used.
63409         Don't include <xstrtol.h>, since human.h does it.
63410         (human_options): Adjust to abovementioned interface changes.
63411         Do not report error to stderr; that's now the caller's
63412         responsibility.
63413         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63414         interface change.
63415         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63416         Str, Argument_type_string.  All uses changed.  Put " argument"
63417         in diagnostics to make them clearer.  Change wording of suffix
63418         message for clarity.
63419         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63420         Argument_type_string.
63421         (STRTOL_FATAL_WARN): Remove; no longer used.
63422         * modules/human (Depends-on): Remove gettext-h.
63423
63424 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63425
63426         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63427
63428 2007-07-31  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63431         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63432         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63433
63434 2007-07-31  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63437         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63438
63439 2007-07-30  Bruno Haible  <bruno@clisp.org>
63440
63441         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63442         * modules/c-ctype (License): Likewise.
63443         * modules/c-strcase (License): Likewise.
63444         * modules/check-version (License): Likewise.
63445         * modules/iconv (License): Likewise.
63446         * modules/iconv_open (License): Likewise.
63447         * modules/read-file (License): Likewise.
63448         * modules/striconv (License): Likewise.
63449         * modules/strverscmp (License): Likewise.
63450         * modules/vasprintf (License): Likewise.
63451         * modules/crypto/des (License): Likewise.
63452         * modules/crypto/gc (License): Likewise.
63453         * modules/crypto/gc-arcfour (License): Likewise.
63454         * modules/crypto/gc-arctwo (License): Likewise.
63455         * modules/crypto/gc-des (License): Likewise.
63456         * modules/crypto/gc-hmac-md5 (License): Likewise.
63457         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63458         * modules/crypto/gc-md2 (License): Likewise.
63459         * modules/crypto/gc-md4 (License): Likewise.
63460         * modules/crypto/gc-md5 (License): Likewise.
63461         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63462         * modules/crypto/gc-random (License): Likewise.
63463         * modules/crypto/gc-rijndael (License): Likewise.
63464         * modules/crypto/gc-sha1 (License): Likewise.
63465         * modules/crypto/md2 (License): Likewise.
63466         * modules/crypto/md4 (License): Likewise.
63467
63468 2007-07-30  Jim Meyering  <jim@meyering.net>
63469
63470         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63471         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63472         it has valid stat data.  This bug would cause du not to count the
63473         sizes of inaccessible directories.
63474         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63475         in <http://bugzilla.redhat.com/250077>.
63476
63477 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63478             Bruno Haible  <bruno@clisp.org>
63479
63480         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63481         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63482         #include_next, gives a diagnostic about it, but reports no error in
63483         the exit code.
63484         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63485
63486 2007-07-24  Ben Pfaff  <blp@gnu.org>
63487
63488         Improve name: "count-one-bits" is better than "popcount".
63489         * MODULES.html.sh: Update name.
63490         * lib/popcount.h: Renamed lib/count-one-bits.h.
63491         (popcount): Renamed count_one_bits.
63492         (popcountl): Renamed count_one_bits_l.
63493         (popcountll): Renamed count_one_bits_ll.
63494         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63495         * modules/popcount: Renamed module/count-one-bits.
63496         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63497         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63498
63499 2007-07-23  Ben Pfaff  <blp@gnu.org>
63500
63501         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63502         better code generation, and add U to large constants to avoid
63503         warnings, in non-GCC case.
63504         Suggested by Bruno Haible.
63505
63506 2007-07-23  Ben Pfaff  <blp@gnu.org>
63507
63508         * lib/popcount.h: Use verify_true instead of if...abort.
63509         * modules/popcount: Depend on verify module.
63510         Suggested by Jim Meyering.
63511
63512 2007-07-23  Bruno Haible  <bruno@clisp.org>
63513
63514         * gnulib-tool (func_import): Create a .cvsignore file also when the
63515         directory is not yet in CVS but the toplevel directory is. When
63516         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63517         Reported by Karl Berry.
63518
63519 2007-07-22  Ben Pfaff  <blp@gnu.org>
63520
63521         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63522         case.
63523         Suggested by Eric Blake.
63524
63525 2007-07-22  Ben Pfaff  <blp@gnu.org>
63526
63527         New module: popcount.
63528         * MODULES.html.sh: Add popcount.
63529         * modules/popcount: New file.
63530         * modules/popcount-tests: New file.
63531         * tests/test-popcount.c: New file.
63532         * lib/popcount.h: New file.
63533         * m4/popcount.m4: New file.
63534
63535 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63536
63537         * build-aux/announce-gen: Update to GPLv3.
63538
63539         * build-aux/config.guess: Update from config.
63540
63541 2007-07-21  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63544         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63545
63546 2007-07-20  Jim Meyering  <jim@meyering.net>
63547
63548         * check-module: Diagnose a self-dependency.
63549
63550 2007-07-19  Bruno Haible  <bruno@clisp.org>
63551
63552         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63553         empty.
63554         Reported by Eric Blake.
63555
63556 2007-07-18  Bruno Haible  <bruno@clisp.org>
63557
63558         * gnulib-tool: New options --po-base, --po-domain.
63559         (func_usage): Document them.
63560         (pobase, po_domain): New variables.
63561         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63562         DEFAULT_TEXT_DOMAIN.
63563         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63564         (func_import): Consider pobase and po_domain. Create a po/ directory.
63565         (func_create_testdir): Set pobase and po_domain to empty.
63566         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63567         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63568
63569 2007-07-18  Bruno Haible  <bruno@clisp.org>
63570
63571         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63572         EXTRA_DIST augmentation for files in build-aux/.
63573
63574 2007-07-16  Bruno Haible  <bruno@clisp.org>
63575
63576         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63577         * modules/getdelim (License): Likewise.
63578
63579 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63580
63581         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63582         * modules/d-type (License): Likewise.
63583         * modules/extensions (License): Likewise.
63584         * modules/fnmatch (License): Likewise.
63585         * modules/fseeko (License): Likewise.
63586         * modules/getaddrinfo (License): Likewise.
63587         * modules/getline (License): Likewise.
63588         * modules/getlogin_r (License): Likewise.
63589         * modules/getpass (License): Likewise.
63590         * modules/gettimeofday (License): Likewise.
63591         * modules/glob (License): Likewise.
63592         * modules/inet_ntop (License): Likewise.
63593         * modules/malloc (License): Likewise.
63594         * modules/malloca (License): Likewise.
63595         * modules/memmem (License): Likewise.
63596         * modules/mempcpy (License): Likewise.
63597         * modules/memset (License): Likewise.
63598         * modules/minmax (License): Likewise.
63599         * modules/mktime (License): Likewise.
63600         * modules/netinet_in (License): Likewise.
63601         * modules/pathmax (License): Likewise.
63602         * modules/poll (License): Likewise.
63603         * modules/regex (License): Likewise.
63604         * modules/snprintf (License): Likewise.
63605         * modules/stdbool (License): Likewise.
63606         * modules/stdint (License): Likewise.
63607         * modules/stdio (License): Likewise.
63608         * modules/strcase (License): Likewise.
63609         * modules/strcasestr (License): Likewise.
63610         * modules/strdup (License): Likewise.
63611         * modules/string (License): Likewise.
63612         * modules/strndup (License): Likewise.
63613         * modules/strnlen (License): Likewise.
63614         * modules/strpbrk (License): Likewise.
63615         * modules/strptime (License): Likewise.
63616         * modules/strsep (License): Likewise.
63617         * modules/sys_select (License): Likewise.
63618         * modules/sys_socket (License): Likewise.
63619         * modules/sys_stat (License): Likewise.
63620         * modules/sys_time (License): Likewise.
63621         * modules/time (License): Likewise.
63622         * modules/time_r (License): Likewise.
63623         * modules/timegm (License): Likewise.
63624         * modules/unistd (License): Likewise.
63625         * modules/vsnprintf (License): Likewise.
63626         * modules/wctype (License): Likewise.
63627
63628 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63629
63630         * modules/argz (License): LGPLv2+.
63631
63632 2007-07-15  Karl Berry  <karl@gnu.org>
63633
63634         * doc/gnulib.texi: revise node structure per new fdl.texi.
63635
63636 2007-07-14  Bruno Haible  <bruno@clisp.org>
63637
63638         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63639         the output file.
63640         * lib/uniname/uninames.h: Regenerated.
63641
63642 2007-07-14  Karl Berry  <karl@gnu.org>
63643
63644         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63645         omitting sectioning and index commands.
63646
63647 2007-07-13  Bruno Haible  <bruno@clisp.org>
63648
63649         New gnulib-tool option --more-symlinks.
63650         * gnulib-tool (func_usage): Document --more-symlinks.
63651         (do_copyrights): New variable.
63652         Recognize option --more-symlinks.
63653         (func_import): Don't add a copyright notice transform to
63654         sed_transform_lib_file if do_copyrights is empty.
63655
63656 2007-07-13  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/vasnprintf.c (decimal_point_char): Define also if
63659         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63660         && !NEED_PRINTF_DIRECTIVE_A.
63661         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63662         Gary V. Vaughan <gary@gnu.org>.
63663
63664 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * lib/inttypes_.h: Undo previous change, since it was fixed
63667         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63668
63669 2007-07-13  Bruno Haible  <bruno@clisp.org>
63670
63671         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63672         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63673
63674 2007-07-13  Jim Meyering  <jim@meyering.net>
63675
63676         df: Don't fail for Tru64's "file-on-file mount".
63677         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63678         so we fall through and use statfs instead.  Details here:
63679         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63680         Reported by Albert Chin.
63681
63682 2007-07-13  Bruno Haible  <bruno@clisp.org>
63683
63684         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63685         * modules/configmake (License): Likewise.
63686         * modules/gettext (License): Likewise.
63687         * modules/gettext-h (License): Likewise.
63688         * modules/include_next (License): Likewise.
63689         * modules/link-warning (License): Likewise.
63690         * modules/localcharset (License): Likewise.
63691         * modules/localename (License): Likewise.
63692         * modules/lock (License): Likewise.
63693         * modules/relocatable-lib-lgpl (License): Likewise.
63694         * modules/size_max (License): Likewise.
63695         * modules/vasnprintf (License): Likewise.
63696         * modules/wchar (License): Likewise.
63697         * modules/xsize (License): Likewise.
63698
63699 2007-07-13  Bruno Haible  <bruno@clisp.org>
63700
63701         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63702         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63703
63704 2007-07-12  Bruno Haible  <bruno@clisp.org>
63705
63706         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63707         in the modules files.
63708
63709 2007-07-11  Karl Berry  <karl@gnu.org>
63710
63711         * MODULES.html.sh (func_module): use
63712          sed -e '\|^'"${includefile}"'$|d'
63713          instead of /.../d, to avoid errors on $includefile's containing /.
63714
63715 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63716
63717         * gnulib-tool (func_import): Avoid duplication of --avoid
63718         statements
63719         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63720         names to `_' in variable names.
63721
63722 2007-07-10  Eric Blake  <ebb9@byu.net>
63723
63724         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63725         * NEWS: Document this change.
63726
63727 2007-07-08  Bruno Haible  <bruno@clisp.org>
63728
63729         Update to Unicode 5.0.
63730         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63731         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63732         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63733         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63734         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63735         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63736         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63737         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63738         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63739         U+10A3F, U+1D242..U+1D244.
63740         (nonspacing_table_ind): Update.
63741         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63742         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63743
63744 2007-07-08  Bruno Haible  <bruno@clisp.org>
63745
63746         Update to Unicode 5.0.
63747         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63748         code transform. Extend the name index field of unicode_name_to_code and
63749         unicode_code_to_name from 16 to 24 bits.
63750         * lib/uniname/uniname.c (unicode_character_name,
63751         unicode_name_character): Add the range 0x12xxx to the code transform.
63752         * lib/uniname/uninames.h: Regenerated.
63753         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63754
63755 2007-07-07  Bruno Haible  <bruno@clisp.org>
63756
63757         * modules/wcwidth-tests: New file.
63758         * tests/test-wcwidth.c: New file.
63759
63760         Work around MacOS X wcwidth() bug.
63761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63762         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63763         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63764         original wcwidth in non-UTF-8 locales.
63765         * modules/wcwidth (Depends-on): Add localcharset, streq,
63766         uniwidth/width.
63767         * doc/functions/wcwidth.texi: Update.
63768
63769 2007-07-07  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63772         (wcwidth): New declaration.
63773         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63774         macros.
63775         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63776         here. Prepare for creating <wchar.h> unconditionally.
63777         * modules/wchar (Depends-on): Add link-warning.
63778         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63779         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63780         * lib/wcwidth.h: Remove file.
63781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63782         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63783         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63784         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63785         (Include): Replace wcwidth.h with <wchar.h>.
63786         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63787         * lib/mbchar.h: Don't include wcwidth.h.
63788         * lib/mbswidth.c: Likewise.
63789         * NEWS: Mention the change.
63790
63791 2007-07-07  Bruno Haible  <bruno@clisp.org>
63792
63793         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63794         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63795         definition with an external declaration.
63796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63797         defined as a function. Remove AC_C_INLINE requirement.
63798         * modules/wcwidth (Files): Add lib/wcwidth.c.
63799         (Makefile.am): Remove redundant statement.
63800
63801 2007-07-07  Bruno Haible  <bruno@clisp.org>
63802
63803         * MODULES.html.sh (Unicode string functions): Add the new modules.
63804
63805         * tests/uniwidth/test-u32-strwidth.c: New file.
63806         * modules/uniwidth/u32-strwidth-tests: New file.
63807
63808         * lib/uniwidth/u32-strwidth.c: New file.
63809         * modules/uniwidth/u32-strwidth: New file.
63810
63811         * tests/uniwidth/test-u16-strwidth.c: New file.
63812         * modules/uniwidth/u16-strwidth-tests: New file.
63813
63814         * lib/uniwidth/u16-strwidth.c: New file.
63815         * modules/uniwidth/u16-strwidth: New file.
63816
63817         * tests/uniwidth/test-u8-strwidth.c: New file.
63818         * modules/uniwidth/u8-strwidth-tests: New file.
63819
63820         * lib/uniwidth/u8-strwidth.c: New file.
63821         * modules/uniwidth/u8-strwidth: New file.
63822
63823         * tests/uniwidth/test-u32-width.c: New file.
63824         * modules/uniwidth/u32-width-tests: New file.
63825
63826         * lib/uniwidth/u32-width.c: New file.
63827         * modules/uniwidth/u32-width: New file.
63828
63829         * tests/uniwidth/test-u16-width.c: New file.
63830         * modules/uniwidth/u16-width-tests: New file.
63831
63832         * lib/uniwidth/u16-width.c: New file.
63833         * modules/uniwidth/u16-width: New file.
63834
63835         * tests/uniwidth/test-u8-width.c: New file.
63836         * modules/uniwidth/u8-width-tests: New file.
63837
63838         * lib/uniwidth/u8-width.c: New file.
63839         * modules/uniwidth/u8-width: New file.
63840
63841         * tests/uniwidth/test-uc_width.c: New file.
63842         * modules/uniwidth/width-tests: New file.
63843
63844         * lib/uniwidth/width.c: New file, from GNU libiconv.
63845         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63846         * modules/uniwidth/width: New file.
63847
63848         * lib/uniwidth.h: New file, from GNU libiconv.
63849         * modules/uniwidth/base: New file.
63850
63851 2007-07-07  Bruno Haible  <bruno@clisp.org>
63852
63853         * lib/uniname.h: New file, from GNU gettext.
63854         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63855         * lib/uniname/uninames.h: New file, from GNU gettext.
63856         * lib/uniname/uniname.c: New file, from GNU gettext.
63857         * tests/uniname/test-uninames.sh: New file.
63858         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63859         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63860         * modules/uniname/base: New file.
63861         * modules/uniname/uniname: New file.
63862         * modules/uniname/uniname-tests: New file.
63863         * MODULES.html.sh (Unicode string functions): Add the new modules.
63864
63865 2007-07-06  Bruno Haible  <bruno@clisp.org>
63866
63867         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63868
63869 2007-07-06  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63872         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63873         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63874         include <sys/time.h>.
63875         Reported by Eric Blake.
63876
63877 2007-07-06  Eric Blake  <ebb9@byu.net>
63878
63879         Fix testing canonicalize on cygwin.
63880         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63881         Revert patch from 2007-06-19.
63882         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63883         canonicalize module is also in use.
63884         * tests/test-canonicalize.c: New file.
63885         * tests/test-canonicalize.sh: Likewise.
63886         * modules/canonicalize-tests: Likewise.
63887
63888 2007-07-06  Jim Meyering  <jim@meyering.net>
63889
63890         * lib/getugroups.c (getugroups): Detect getgrent failure.
63891         Adjust comment to reflect reality: this function may return -1.
63892
63893 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63894
63895         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63896         the new TP address.
63897         (usage): Fix typo
63898         (gnulib_mk): New variable.
63899
63900 2007-07-05  Jim Meyering  <jim@meyering.net>
63901
63902         Don't let endgrent clobber errno, no matter how improbable.
63903         * lib/getugroups.c (getugroups): Save and restore errno around
63904         endgrent call.
63905
63906         Close the group DB even when failing with 2^31 or more members.
63907         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63908
63909 2007-07-04  Jim Meyering  <jim@meyering.net>
63910
63911         * lib/getugroups.h: New file.
63912         * lib/getugroups.c: Include "getugroups.h".
63913         Remove uses of "register" keyword.
63914         Move local variable, "cp", down into scope where used.
63915         Give "username" parameter the "const" attribute.
63916         * modules/getugroups (Files): Add lib/getugroups.h
63917
63918 2007-07-04  Karl Berry  <karl@gnu.org>
63919
63920         * MODULES.html.sh (func_all_modules): Complete rename of
63921         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63922
63923 2007-07-02  Bruno Haible  <bruno@clisp.org>
63924
63925         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63926         mode, when inttypes.h comes from gnulib.
63927         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63928
63929 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63930
63931         * NEWS: Mention lgpl module name change.
63932
63933         * modules/lgpl-2.1: Renamed from lgpl.
63934
63935         * NEWS: Mention gpl module name change.
63936
63937         * modules/gpl-3.0: New file, based on gpl-2.0.
63938
63939         * modules/gpl-2.0: Renamed from gpl.
63940
63941         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63942         doc/gpl-2.0.texi.
63943
63944 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63945
63946         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63947         #define __STDC_LIMIT_MACROS temporarily while including
63948         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63949         Problem reported by Joel E. Denny in
63950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63951
63952 2007-07-01  Bruno Haible  <bruno@clisp.org>
63953
63954         * lib/unistdio.h: New file.
63955         * lib/unistdio/u-asnprintf.h: New file.
63956         * lib/unistdio/u-asprintf.h: New file.
63957         * lib/unistdio/u-printf-args.c: New file.
63958         * lib/unistdio/u-printf-args.h: New file.
63959         * lib/unistdio/u-printf-parse.h: New file.
63960         * lib/unistdio/u-snprintf.h: New file.
63961         * lib/unistdio/u-sprintf.h: New file.
63962         * lib/unistdio/u-vasprintf.h: New file.
63963         * lib/unistdio/u-vsnprintf.h: New file.
63964         * lib/unistdio/u-vsprintf.h: New file.
63965         * lib/unistdio/ulc-asnprintf.c: New file.
63966         * lib/unistdio/ulc-asprintf.c: New file.
63967         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63968         * lib/unistdio/ulc-printf-parse.c: New file.
63969         * lib/unistdio/ulc-snprintf.c: New file.
63970         * lib/unistdio/ulc-sprintf.c: New file.
63971         * lib/unistdio/ulc-vasnprintf.c: New file.
63972         * lib/unistdio/ulc-vasprintf.c: New file.
63973         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63974         * lib/unistdio/ulc-vsnprintf.c: New file.
63975         * lib/unistdio/ulc-vsprintf.c: New file.
63976         * lib/unistdio/u8-asnprintf.c: New file.
63977         * lib/unistdio/u8-asprintf.c: New file.
63978         * lib/unistdio/u8-printf-parse.c: New file.
63979         * lib/unistdio/u8-snprintf.c: New file.
63980         * lib/unistdio/u8-sprintf.c: New file.
63981         * lib/unistdio/u8-vasnprintf.c: New file.
63982         * lib/unistdio/u8-vasprintf.c: New file.
63983         * lib/unistdio/u8-vsnprintf.c: New file.
63984         * lib/unistdio/u8-vsprintf.c: New file.
63985         * lib/unistdio/u8-u8-asnprintf.c: New file.
63986         * lib/unistdio/u8-u8-asprintf.c: New file.
63987         * lib/unistdio/u8-u8-snprintf.c: New file.
63988         * lib/unistdio/u8-u8-sprintf.c: New file.
63989         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63990         * lib/unistdio/u8-u8-vasprintf.c: New file.
63991         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63992         * lib/unistdio/u8-u8-vsprintf.c: New file.
63993         * lib/unistdio/u16-asnprintf.c: New file.
63994         * lib/unistdio/u16-asprintf.c: New file.
63995         * lib/unistdio/u16-printf-parse.c: New file.
63996         * lib/unistdio/u16-snprintf.c: New file.
63997         * lib/unistdio/u16-sprintf.c: New file.
63998         * lib/unistdio/u16-vasnprintf.c: New file.
63999         * lib/unistdio/u16-vasprintf.c: New file.
64000         * lib/unistdio/u16-vsnprintf.c: New file.
64001         * lib/unistdio/u16-vsprintf.c: New file.
64002         * lib/unistdio/u16-u16-asnprintf.c: New file.
64003         * lib/unistdio/u16-u16-asprintf.c: New file.
64004         * lib/unistdio/u16-u16-snprintf.c: New file.
64005         * lib/unistdio/u16-u16-sprintf.c: New file.
64006         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64007         * lib/unistdio/u16-u16-vasprintf.c: New file.
64008         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64009         * lib/unistdio/u16-u16-vsprintf.c: New file.
64010         * lib/unistdio/u32-asnprintf.c: New file.
64011         * lib/unistdio/u32-asprintf.c: New file.
64012         * lib/unistdio/u32-printf-parse.c: New file.
64013         * lib/unistdio/u32-snprintf.c: New file.
64014         * lib/unistdio/u32-sprintf.c: New file.
64015         * lib/unistdio/u32-vasnprintf.c: New file.
64016         * lib/unistdio/u32-vasprintf.c: New file.
64017         * lib/unistdio/u32-vsnprintf.c: New file.
64018         * lib/unistdio/u32-vsprintf.c: New file.
64019         * lib/unistdio/u32-u32-asnprintf.c: New file.
64020         * lib/unistdio/u32-u32-asprintf.c: New file.
64021         * lib/unistdio/u32-u32-snprintf.c: New file.
64022         * lib/unistdio/u32-u32-sprintf.c: New file.
64023         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64024         * lib/unistdio/u32-u32-vasprintf.c: New file.
64025         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64026         * lib/unistdio/u32-u32-vsprintf.c: New file.
64027         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64028         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64029         * tests/unistdio/test-ulc-printf1.h: New file.
64030         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64031         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64032         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64033         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64034         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64035         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64036         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64037         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64038         * tests/unistdio/test-u8-asnprintf1.c: New file.
64039         * tests/unistdio/test-u8-asnprintf1.h: New file.
64040         * tests/unistdio/test-u8-printf1.h: New file.
64041         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64042         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64043         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64044         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64045         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64046         * tests/unistdio/test-u8-vasprintf1.c: New file.
64047         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64048         * tests/unistdio/test-u8-vsprintf1.c: New file.
64049         * tests/unistdio/test-u16-asnprintf1.c: New file.
64050         * tests/unistdio/test-u16-asnprintf1.h: New file.
64051         * tests/unistdio/test-u16-printf1.h: New file.
64052         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64053         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64054         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64055         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64056         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64057         * tests/unistdio/test-u16-vasprintf1.c: New file.
64058         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64059         * tests/unistdio/test-u16-vsprintf1.c: New file.
64060         * tests/unistdio/test-u32-asnprintf1.c: New file.
64061         * tests/unistdio/test-u32-asnprintf1.h: New file.
64062         * tests/unistdio/test-u32-printf1.h: New file.
64063         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64064         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64065         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64066         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64067         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64068         * tests/unistdio/test-u32-vasprintf1.c: New file.
64069         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64070         * tests/unistdio/test-u32-vsprintf1.c: New file.
64071         * modules/unistdio/base: New file.
64072         * modules/unistdio/u-printf-args: New file.
64073         * modules/unistdio/ulc-asnprintf: New file.
64074         * modules/unistdio/ulc-asprintf: New file.
64075         * modules/unistdio/ulc-fprintf: New file.
64076         * modules/unistdio/ulc-printf-parse: New file.
64077         * modules/unistdio/ulc-snprintf: New file.
64078         * modules/unistdio/ulc-sprintf: New file.
64079         * modules/unistdio/ulc-vasnprintf: New file.
64080         * modules/unistdio/ulc-vasprintf: New file.
64081         * modules/unistdio/ulc-vfprintf: New file.
64082         * modules/unistdio/ulc-vsnprintf: New file.
64083         * modules/unistdio/ulc-vsprintf: New file.
64084         * modules/unistdio/u8-asnprintf: New file.
64085         * modules/unistdio/u8-asprintf: New file.
64086         * modules/unistdio/u8-printf-parse: New file.
64087         * modules/unistdio/u8-snprintf: New file.
64088         * modules/unistdio/u8-sprintf: New file.
64089         * modules/unistdio/u8-vasnprintf: New file.
64090         * modules/unistdio/u8-vasprintf: New file.
64091         * modules/unistdio/u8-vsnprintf: New file.
64092         * modules/unistdio/u8-vsprintf: New file.
64093         * modules/unistdio/u8-u8-asnprintf: New file.
64094         * modules/unistdio/u8-u8-asprintf: New file.
64095         * modules/unistdio/u8-u8-snprintf: New file.
64096         * modules/unistdio/u8-u8-sprintf: New file.
64097         * modules/unistdio/u8-u8-vasnprintf: New file.
64098         * modules/unistdio/u8-u8-vasprintf: New file.
64099         * modules/unistdio/u8-u8-vsnprintf: New file.
64100         * modules/unistdio/u8-u8-vsprintf: New file.
64101         * modules/unistdio/u16-asnprintf: New file.
64102         * modules/unistdio/u16-asprintf: New file.
64103         * modules/unistdio/u16-printf-parse: New file.
64104         * modules/unistdio/u16-snprintf: New file.
64105         * modules/unistdio/u16-sprintf: New file.
64106         * modules/unistdio/u16-vasnprintf: New file.
64107         * modules/unistdio/u16-vasprintf: New file.
64108         * modules/unistdio/u16-vsnprintf: New file.
64109         * modules/unistdio/u16-vsprintf: New file.
64110         * modules/unistdio/u16-u16-asnprintf: New file.
64111         * modules/unistdio/u16-u16-asprintf: New file.
64112         * modules/unistdio/u16-u16-snprintf: New file.
64113         * modules/unistdio/u16-u16-sprintf: New file.
64114         * modules/unistdio/u16-u16-vasnprintf: New file.
64115         * modules/unistdio/u16-u16-vasprintf: New file.
64116         * modules/unistdio/u16-u16-vsnprintf: New file.
64117         * modules/unistdio/u16-u16-vsprintf: New file.
64118         * modules/unistdio/u32-asnprintf: New file.
64119         * modules/unistdio/u32-asprintf: New file.
64120         * modules/unistdio/u32-printf-parse: New file.
64121         * modules/unistdio/u32-snprintf: New file.
64122         * modules/unistdio/u32-sprintf: New file.
64123         * modules/unistdio/u32-vasnprintf: New file.
64124         * modules/unistdio/u32-vasprintf: New file.
64125         * modules/unistdio/u32-vsnprintf: New file.
64126         * modules/unistdio/u32-vsprintf: New file.
64127         * modules/unistdio/u32-u32-asnprintf: New file.
64128         * modules/unistdio/u32-u32-asprintf: New file.
64129         * modules/unistdio/u32-u32-snprintf: New file.
64130         * modules/unistdio/u32-u32-sprintf: New file.
64131         * modules/unistdio/u32-u32-vasnprintf: New file.
64132         * modules/unistdio/u32-u32-vasprintf: New file.
64133         * modules/unistdio/u32-u32-vsnprintf: New file.
64134         * modules/unistdio/u32-u32-vsprintf: New file.
64135         * modules/unistdio/ulc-asnprintf-tests: New file.
64136         * modules/unistdio/ulc-vasnprintf-tests: New file.
64137         * modules/unistdio/ulc-vasprintf-tests: New file.
64138         * modules/unistdio/ulc-vsnprintf-tests: New file.
64139         * modules/unistdio/ulc-vsprintf-tests: New file.
64140         * modules/unistdio/u8-asnprintf-tests: New file.
64141         * modules/unistdio/u8-vasnprintf-tests: New file.
64142         * modules/unistdio/u8-vasprintf-tests: New file.
64143         * modules/unistdio/u8-vsnprintf-tests: New file.
64144         * modules/unistdio/u8-vsprintf-tests: New file.
64145         * modules/unistdio/u16-asnprintf-tests: New file.
64146         * modules/unistdio/u16-vasnprintf-tests: New file.
64147         * modules/unistdio/u16-vasprintf-tests: New file.
64148         * modules/unistdio/u16-vsnprintf-tests: New file.
64149         * modules/unistdio/u16-vsprintf-tests: New file.
64150         * modules/unistdio/u32-asnprintf-tests: New file.
64151         * modules/unistdio/u32-vasnprintf-tests: New file.
64152         * modules/unistdio/u32-vasprintf-tests: New file.
64153         * modules/unistdio/u32-vsnprintf-tests: New file.
64154         * modules/unistdio/u32-vsprintf-tests: New file.
64155         * MODULES.html.sh (Unicode string functions): Add the new modules.
64156
64157 2007-07-01  Bruno Haible  <bruno@clisp.org>
64158
64159         * lib/sprintf.c (sprintf): Limit the available length estimation,
64160         to avoid address wraparound.
64161         * lib/vsprintf.c (vsprintf): Likewise.
64162         * modules/sprintf-posix (Dependencies): Add stdint.
64163         * modules/vsprintf-posix (Dependencies): Likewise.
64164
64165 2007-07-01  Bruno Haible  <bruno@clisp.org>
64166
64167         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64168         Windows PATH as well. Conservative double-quoting. Comments.
64169
64170 2007-07-01  Bruno Haible  <bruno@clisp.org>
64171             Eric Blake  <ebb9@byu.net>
64172             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64173
64174         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64175         empty components in $PATH, denoting '.'.
64176
64177 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64178
64179         * gnulib-tool: Fix indentation.
64180         (func_create_megatestdir): Likewise.
64181         Report by Bruno Haible.
64182
64183 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64184
64185         Sync from Automake.
64186         * build-aux/gnupload: Fix shell portability issues with for loops.
64187         Report by Karl Berry.
64188
64189 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64190
64191         * build-aux/maint.mk (POURL): Use translationproject.org.
64192
64193 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64194             Bruno Haible  <bruno@clisp.org>
64195
64196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64197         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64198         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64199         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64200         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64201
64202 2007-06-27  Bruno Haible  <bruno@clisp.org>
64203
64204         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64205         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64206
64207 2007-06-26  Karl Berry  <karl@gnu.org>
64208
64209         * MODULES.html.sh: remove xreadlink-with-size.
64210
64211 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64212
64213         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64214         method that I hope also handles the double-include problem noted
64215         by Bruno Haible in
64216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64217
64218 2007-06-23  Bruno Haible  <bruno@clisp.org>
64219
64220         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64221         Don't let the 'mostlyclean' target fail if the last subdirectory could
64222         not be removed.
64223         Reported by Karl Berry.
64224
64225 2007-06-23  Bruno Haible  <bruno@clisp.org>
64226
64227         * gnulib-tool (echo): Add a speedier workaround for ksh.
64228         * tests/test-echo.sh: Likewise.
64229
64230 2007-06-23  Bruno Haible  <bruno@clisp.org>
64231
64232         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64233         * tests/test-echo.sh: Likewise.
64234
64235 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64236
64237         * gnulib-tool (IFS): Initialize early, so we don't set it to
64238         empty later.
64239         (self_abspathname): Rewrite algorithm to set it, reindent.
64240         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64241         (func_create_megatestdir): Merge some sed scripts.
64242
64243 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64244
64245         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64246         exposed by Sun Studio 11 cc on Solaris 8.
64247
64248 2007-06-22  Bruno Haible  <bruno@clisp.org>
64249
64250         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64251         backslashes.
64252         * tests/test-echo.sh: New file.
64253
64254 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64255
64256         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64257         simplify `sed_replace_build_aux' scripts, they are portable but
64258         echoing them with `echo' is not.
64259         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64260
64261 2007-06-21  Karl Berry  <karl@gnu.org>
64262
64263         * config/srclist.txt: guess we can't handle the licenses via
64264         srclist at the moment.
64265
64266 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64267
64268         * MODULES.html.sh: Add include_next.
64269         * modules/include_next: New file.
64270
64271 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64272
64273         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64274         INCLUDE_NEXT.
64275         (gl_CHECK_NEXT_HEADERS): New macro.
64276         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64277         the obsolescent gl_ABSOLUTE_HEADER.
64278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64279         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64280         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64281         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64282         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64283         * m4/math_h.m4 (gl_MATH_H): Likewise.
64284         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64285         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64286         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64287         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64288         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64289         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64290         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64294         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64295         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64296         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64297         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64298         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64299         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64300         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64301         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64302         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64303         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64304         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64305         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64306         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64307         * lib/float_.h: Likewise.
64308         * lib/inttypes_.h: Likewise.
64309         * lib/math_.h: Likewise.
64310         * lib/search_.h: Likewise.
64311         * lib/signal_.h: Likewise.
64312         * lib/stdint_.h: Likewise.
64313         * lib/stdio_.h: Likewise.
64314         * lib/stdlib_.h: Likewise.
64315         * lib/string_.h: Likewise.
64316         * lib/sys_stat_.h: Likewise.
64317         * lib/sys_time_.h: Likewise.
64318         * lib/time_.h: Likewise.
64319         * lib/unistd_.h: Likewise.
64320         * lib/wchar_.h: Likewise.
64321         * lib/wctype_.h: Likewise.
64322         * lib/dirent_.h: Likewise.
64323         * lib/iconv_.h: Likewise.
64324         * lib/locale_.h: Likewise.
64325         * lib/netinet_in_.h: Likewise.
64326         * lib/sys_select_.h: Likewise.
64327         * lib/sys_socket_.h: Likewise.
64328         * lib/sysexits_.h: Likewise.
64329         * modules/fcntl (Depends-on): Depend on include_next, not
64330         absolute_header.
64331         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64332         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64333         * modules/fchdir: Likewise.
64334         * modules/float: Likewise.
64335         * modules/iconv_open: Likewise.
64336         * modules/inttypes: Likewise.
64337         * modules/locale: Likewise.
64338         * modules/math: Likewise.
64339         * modules/netinet_in: Likewise.
64340         * modules/search: Likewise.
64341         * modules/signal: Likewise.
64342         * modules/stdint: Likewise.
64343         * modules/stdio: Likewise.
64344         * modules/stdlib: Likewise.
64345         * modules/string: Likewise.
64346         * modules/sys_select: Likewise.
64347         * modules/sys_socket: Likewise.
64348         * modules/sys_stat: Likewise.
64349         * modules/sys_time: Likewise.
64350         * modules/sysexits: Likewise.
64351         * modules/time: Likewise.
64352         * modules/unistd: Likewise.
64353         * modules/wchar: Likewise.
64354         * modules/wctype: Likewise.
64355         * modules/sys_stat: Change maintainer to "all".
64356         * modules/unistd: Likewise.
64357
64358 2007-06-20  Karl Berry  <karl@gnu.org>
64359
64360         * config/srclist.txt: track www changes in license files.
64361
64362 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64363
64364         * build-aux/bootstrap: Remove stray dot.
64365         Make sure build_aux settings are honored when linking
64366         gnulib_extra_files.
64367
64368 2007-06-19  Eric Blake  <ebb9@byu.net>
64369
64370         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64371         Allow compilation on cygwin.
64372
64373 2007-06-19  Jim Meyering  <jim@meyering.net>
64374
64375         xreadlink-with-size: Remove module.  No longer used.
64376         Ex-callers now use xreadlink or mreadlink-with-size.
64377         * modules/xreadlink-with-size: Remove module.
64378         * lib/xreadlink-with-size.c: Remove file.
64379         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64380         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64381         just before the function definition *is* accurate.
64382
64383         Eliminate one way canonicalize_filename_mode could exit.
64384         * lib/canonicalize.c (canonicalize_filename_mode):
64385         Use mreadlink_with_size, not xreadlink_with_size.
64386
64387 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64388
64389         Detect porting problems to FreeBSD/arm, which has time_t wider than
64390         long int.  Original problem reported for GNU diff by Xin Li in
64391         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64392         * modules/getdate (Depends-on): Add intprops, verify.
64393         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64394         is an integer type no wider than long int.
64395
64396 2007-06-18  Jim Meyering  <jim@meyering.net>
64397
64398         New module: mreadlink-with-size.
64399         * MODULES.html.sh: Add mreadlink-with-size.
64400         * modules/mreadlink-with-size: New module
64401         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64402         not xreadlink-with-size.
64403         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64404
64405 2007-06-16  Bruno Haible  <bruno@clisp.org>
64406
64407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64408         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64409         Reported by Gary V. Vaughan <gary@gnu.org>.
64410
64411 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64412
64413         Revamp lchown so that it lives in unistd.h where it belongs.
64414         * lib/lchown.h: Remove.
64415         * lib/dirchownmod.c: Don't include lib/lchown.h.
64416         * lib/fchownat.c: Likewise.
64417         * lib/openat.c: Likewise.
64418         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64419         does not follow symlinks.
64420         (EOPNOTSUPP): Define if not defined.
64421         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64422         is defined to 0.
64423         (lchown): New decl.
64424         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64425         Do not check for lchown decl.
64426         Set REPLACE_LCHOWN.
64427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64428         REPLACE_LCHOWN.
64429         * modules/chown: Make it clear it follows symlinks.
64430         * modules/lchown: Make it clear it doesn't follow symlinks.
64431         (Files): Remove lib/lchown.h
64432         (Depends-on): Add unistd.
64433         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64434         (Include): Include <unistd.h>, not "lchown.h".
64435         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64436         REPLACE_LCHOWN.
64437
64438 2007-06-15  Jim Meyering  <jim@meyering.net>
64439
64440         Change license (GPL to LGPL) of fsusage and dependents.
64441         * modules/fsusage (License): Change to LGPL.
64442         * modules/full-read (License): Likewise.
64443         * modules/full-write (License): Likewise.
64444         * modules/safe-read (License): Likewise.
64445         * modules/safe-write (License): Likewise.
64446
64447 2007-06-14  Ben Pfaff  <blp@gnu.org>
64448
64449         Missing part of allocsa -> malloca transition.
64450         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64451         gl_MALLOCA.
64452
64453 2007-06-12  Bruno Haible  <bruno@clisp.org>
64454
64455         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64456         to ia64, x86_64, i386.
64457         Reported by Eric Blake.
64458
64459 2007-06-12  Bruno Haible  <bruno@clisp.org>
64460
64461         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64462         cross-compiling to x86_64.
64463
64464 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64465
64466         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64467         glitch reported by Ralf Wildenhues in
64468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64469
64470         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64471         Vin Shelton.
64472
64473 2007-06-11  Bruno Haible  <bruno@clisp.org>
64474
64475         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64476         replacement string.
64477         Reported by Eric Blake.
64478
64479 2007-06-10  Bruno Haible  <bruno@clisp.org>
64480
64481         Prepare vasnprintf code for use with Unicode strings.
64482         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64483         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64484         TYPE_U32_STRING.
64485         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64486         a_u32_string variants.
64487         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64488         * lib/printf-args.c: Don't include config.h and the specification
64489         header if PRINTF_FETCHARGS is already defined.
64490         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64491         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64492         TYPE_U16_STRING, TYPE_U32_STRING.
64493         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64494         u16_directive, u16_directives, u32_directive, u32_directives): New
64495         types.
64496         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64497         New declarations.
64498         * lib/printf-parse.c: Don't include config.h and the specification
64499         header if PRINTF_PARSE is already defined. Eliminate the set of
64500         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64501         them now. Include c-ctype.h.
64502         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64503         directive and CHAR_T_ONLY_ASCII.
64504         * lib/vasnprintf.c: Don't include config.h and the specification header
64505         if VASNPRINTF is already defined.
64506         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64507         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64508         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64509         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64510         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64511         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64512         code accordingly.
64513         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64514         pad_ourselves also in this case, with the 'c' and 's' directives, and
64515         with a different notion of "width".
64516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64517
64518 2007-06-10  Bruno Haible  <bruno@clisp.org>
64519
64520         * modules/unistr/u32-mbsnlen: New file.
64521         * lib/unistr/u32-mbsnlen.c: New file.
64522
64523         * modules/unistr/u16-mbsnlen: New file.
64524         * lib/unistr/u16-mbsnlen.c: New file.
64525
64526         * modules/unistr/u8-mbsnlen: New file.
64527         * lib/unistr/u8-mbsnlen.c: New file.
64528
64529         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64530         declarations.
64531
64532 2007-06-10  Bruno Haible  <bruno@clisp.org>
64533
64534         * lib/string_.h (mbsnlen): New declaration.
64535         * lib/mbsnlen.c: New file.
64536         * m4/mbsnlen.m4: New file.
64537         * modules/mbsnlen: New file.
64538         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64539         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64540         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64541
64542 2007-06-10  Bruno Haible  <bruno@clisp.org>
64543
64544         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64545
64546 2007-06-10  Bruno Haible  <bruno@clisp.org>
64547
64548         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64549         * lib/mbuiter.h: Likewise.
64550
64551 2007-06-10  Bruno Haible  <bruno@clisp.org>
64552
64553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64554         declaration.
64555
64556 2007-06-10  Karl Berry  <karl@gnu.org>
64557
64558         * config/srclist.txt: remove gettext entries, Bruno prefers
64559         to update individually.
64560
64561 2007-06-10  Bruno Haible  <bruno@clisp.org>
64562
64563         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64564         'maxlen'. Ensure only length + width bytes are allocated, not
64565         length + 1 + width.
64566
64567 2007-06-09  Bruno Haible  <bruno@clisp.org>
64568
64569         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64570         (CHAR_T): Remove macro.
64571         (VASNPRINTF): Update.
64572
64573 2007-06-09  Bruno Haible  <bruno@clisp.org>
64574
64575         * MODULES.html.sh (Unicode string functions): Add the new modules.
64576
64577         * modules/uniconv/u32-conv-to-enc: New file.
64578         * lib/uniconv/u32-conv-to-enc.c: New file.
64579         * modules/uniconv/u32-conv-to-enc-tests: New file.
64580         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64581
64582         * modules/uniconv/u16-conv-to-enc: New file.
64583         * lib/uniconv/u16-conv-to-enc.c: New file.
64584         * lib/uniconv/u-conv-to-enc.h: New file.
64585         * modules/uniconv/u16-conv-to-enc-tests: New file.
64586         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64587
64588         * modules/uniconv/u8-conv-to-enc: New file.
64589         * lib/uniconv/u8-conv-to-enc.c: New file.
64590         * modules/uniconv/u8-conv-to-enc-tests: New file.
64591         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64592
64593         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64594         u32_conv_to_encoding): New declarations.
64595
64596 2007-06-09  Bruno Haible  <bruno@clisp.org>
64597
64598         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64599
64600 2007-06-09  Bruno Haible  <bruno@clisp.org>
64601
64602         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64603         * modules/malloca: Renamed from modules/allocsa, updated.
64604         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64605         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64606         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64607         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64608         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64609         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64610         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64611         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64612         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64613         * modules/c-strcasestr (Depends-on): Update.
64614         * lib/c-strcasestr.c: Update.
64615         * modules/c-strstr (Depends-on): Update.
64616         * lib/c-strstr.c: Update.
64617         * modules/canonicalize-lgpl (Depends-on): Update.
64618         * lib/canonicalize-lgpl.c: Update.
64619         * modules/clean-temp (Depends-on): Update.
64620         * lib/clean-temp.c: Update.
64621         * modules/csharpcomp (Depends-on): Update.
64622         * lib/csharpcomp.c: Update.
64623         * modules/csharpexec (Depends-on): Update.
64624         * lib/csharpexec.c: Update.
64625         * modules/javacomp (Depends-on): Update.
64626         * lib/javacomp.c: Update.
64627         * modules/javaexec (Depends-on): Update.
64628         * lib/javaexec.c: Update.
64629         * modules/mbscasestr (Depends-on): Update.
64630         * lib/mbscasestr.c: Update.
64631         * modules/mbsstr (Depends-on): Update.
64632         * lib/mbsstr.c: Update.
64633         * modules/setenv (Depends-on): Update.
64634         * lib/setenv.c: Update.
64635         * modules/strcasestr (Depends-on): Update.
64636         * lib/strcasestr.c: Update.
64637         * modules/striconveha (Depends-on): Update.
64638         * lib/striconveha.c: Update.
64639         * modules/relocatable-prog-wrapper (Files): Update.
64640         * lib/relocwrapper.c: Update.
64641         * build-aux/install-reloc: Update.
64642         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64643
64644 2007-06-08  Bruno Haible  <bruno@clisp.org>
64645
64646         Port to uClibc.
64647         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64648         * lib/fpurge.c (fpurge): Likewise.
64649         * lib/freading.c (freading): Likewise.
64650         * lib/fseeko.c (rpl_fseeko): Likewise.
64651         * lib/fseterr.c (fseterr): Likewise.
64652         * lib/fwriting.c (fwriting): Likewise.
64653         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64654
64655 2007-06-08  Bruno Haible  <bruno@clisp.org>
64656
64657         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64658         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64659         * modules/gettext (Files): Add m4/intlmacosx.m4.
64660
64661 2007-06-07  Bruno Haible  <bruno@clisp.org>
64662
64663         * modules/localename-tests: New file.
64664         * tests/test-localename.c: New file.
64665
64666         New module 'localename'.
64667         * lib/localename.h: New file.
64668         * lib/localename.c: New file, from GNU gettext.
64669         * m4/localename.m4: New file.
64670         * modules/localename: New file.
64671
64672 2007-06-07  Bruno Haible  <bruno@clisp.org>
64673
64674         Work around the lack of <wchar.h> on some builds of uClibc.
64675         * doc/headers/wchar.texi: Update.
64676         * lib/wchar_.h: Include <wchar.h> only if it exists.
64677         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64678         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64679         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64680         doesn't exist.
64681         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64682         * modules/mbfile (Depends-on): Add wchar.
64683         * modules/mbiter (Depends-on): Likewise.
64684         * modules/mbuiter (Depends-on): Likewise.
64685         Reported by Simon Josefsson.
64686
64687 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         Work around problem reported by Steven M. Schweda in
64690         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64691         Tru64 5.1B with the Compaq compiler environment installed declares
64692         an 'isblank' function but does not define it in the C library.
64693         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64694         * lib/regex_internal.h (isblank): Likewise.
64695         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64696         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64697
64698 2007-06-05  Bruno Haible  <bruno@clisp.org>
64699
64700         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64701         ia64.
64702         * modules/printf-safe: New file.
64703         * modules/fprintf-posix (Depends-on): Add printf-safe.
64704         * modules/printf-posix (Depends-on): Likewise.
64705         * modules/snprintf-posix (Depends-on): Likewise.
64706         * modules/sprintf-posix (Depends-on): Likewise.
64707         * modules/vasnprintf-posix (Depends-on): Likewise.
64708         * modules/vasprintf-posix (Depends-on): Likewise.
64709         * modules/vfprintf-posix (Depends-on): Likewise.
64710         * modules/vprintf-posix (Depends-on): Likewise.
64711         * modules/vsnprintf-posix (Depends-on): Likewise.
64712         * modules/vsprintf-posix (Depends-on): Likewise.
64713         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64714         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64715         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64716         "no" on i386, x86_64, ia64.
64717         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64718         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64719         on i386, x86_64, ia64.
64720         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64721         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64722         on i386, x86_64, ia64.
64723         * tests/test-vasnprintf-posix.c: Include float.h.
64724         (LDBL80_WORDS): New macro.
64725         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64726         on i386, x86_64, ia64.
64727         * tests/test-vasprintf-posix.c: Include float.h.
64728         (LDBL80_WORDS): New macro.
64729         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64730         on i386, x86_64, ia64.
64731         * tests/test-snprintf-posix.c: Include float.h.
64732         * tests/test-sprintf-posix.c: Likewise.
64733         * tests/test-vsnprintf-posix.c: Likewise.
64734         * tests/test-vsprintf-posix.c: Likewise.
64735
64736 2007-06-05  Bruno Haible  <bruno@clisp.org>
64737
64738         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64739         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64740         non-IEEE numbers on i386, x86_64, ia64.
64741         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64742         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64743         * tests/test-isnanl.h: Include float.h.
64744         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64745
64746 2007-06-05  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64749         also the %a / %A. Handle the %a / %A code before this extra handling.
64750
64751 2007-06-05  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64754         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64755
64756 2007-06-05  Bruno Haible  <bruno@clisp.org>
64757
64758         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64759         typo in variable name.
64760
64761 2007-06-05  Eric Blake  <ebb9@byu.net>
64762
64763         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64764         Reported by Simon Josefsson.
64765
64766 2007-06-04  Bruno Haible  <bruno@clisp.org>
64767
64768         Avoid test failures on some PowerPC platforms.
64769         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64770         Define differently for PowerPC.
64771         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64772         Reported by Gary V. Vaughan <gary@gnu.org>.
64773
64774 2007-06-02  Bruno Haible  <bruno@clisp.org>
64775
64776         Fix test-stdint failure on FreeBSD/ia64.
64777         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64778         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64779         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64780         * doc/headers/stdint.texi: Update.
64781
64782 2007-06-01  Bruno Haible  <bruno@clisp.org>
64783
64784         * tests/test-binary-io.c (main): Pass a third argument to open().
64785         Reported by Gary V. Vaughan <gary@gnu.org>.
64786
64787 2007-06-01  Bruno Haible  <bruno@clisp.org>
64788
64789         * doc/functions/frexpl.texi: Update for mingw.
64790
64791 2007-06-01  Bruno Haible  <bruno@clisp.org>
64792
64793         * tests/test-lseek.c (main): Disable test of errno for invalid third
64794         argument.
64795         * doc/functions/lseek.texi: Update.
64796         Reported by Gary V. Vaughan <gary@gnu.org>.
64797
64798 2007-05-28  Bruno Haible  <bruno@clisp.org>
64799
64800         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64801
64802 2007-05-31  Eric Blake  <ebb9@byu.net>
64803
64804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64805         cross compiling.
64806
64807 2007-05-30  Eric Blake  <ebb9@byu.net>
64808         and Bruno Haible  <bruno@clisp.org>
64809
64810         Work around mingw test failures exposed by m4-1.4.9b.
64811         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64812         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64813         moment.
64814
64815 2007-05-30  Bruno Haible  <bruno@clisp.org>
64816
64817         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64818         assuming that they are closed. Needed on HP-UX 11.
64819
64820 2007-05-29  Bruno Haible  <bruno@clisp.org>
64821
64822         Fix a problem with #include_next.
64823         * lib/dirent_.h: Split the double-inclusion guard.
64824         * lib/fcntl_.h: Likewise.
64825         * lib/float_.h: Likewise.
64826         * lib/iconv_.h: Likewise.
64827         * lib/inttypes_.h: Likewise.
64828         * lib/locale_.h: Likewise.
64829         * lib/math_.h: Likewise.
64830         * lib/netinet_in_.h: Likewise.
64831         * lib/search_.h: Likewise.
64832         * lib/signal_.h: Likewise.
64833         * lib/stdint_.h: Likewise.
64834         * lib/stdio_.h: Likewise.
64835         * lib/stdlib_.h: Likewise.
64836         * lib/string_.h: Likewise.
64837         * lib/sys_select_.h: Likewise.
64838         * lib/sys_socket_.h: Likewise.
64839         * lib/sys_stat_.h: Likewise.
64840         * lib/sys_time_.h: Likewise.
64841         * lib/sysexits_.h: Likewise.
64842         * lib/time_.h: Likewise.
64843         * lib/unistd_.h: Likewise.
64844         * lib/wchar_.h: Likewise.
64845         * lib/wctype_.h: Likewise.
64846
64847 2007-05-29  Bruno Haible  <bruno@clisp.org>
64848
64849         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64850         for the moment.
64851
64852 2007-05-29  Bruno Haible  <bruno@clisp.org>
64853
64854         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64855         invocation.
64856         Reported by Eric Blake.
64857
64858 2007-05-29  Bruno Haible  <bruno@clisp.org>
64859
64860         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64861         compiling case.
64862
64863 2007-05-29  Eric Blake  <ebb9@byu.net>
64864             Bruno Haible  <bruno@clisp.org>
64865
64866         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64867         cross compiles.
64868
64869 2007-05-28  Eric Blake  <ebb9@byu.net>
64870
64871         * modules/closein-tests (test_closein_LDADD): Support test on
64872         cygwin with libtool.
64873
64874 2007-05-28  Bruno Haible  <bruno@clisp.org>
64875
64876         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64877         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64878         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64879         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64880         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64881         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64882         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64883         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64884         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64885
64886 2007-05-28  Eric Blake  <ebb9@byu.net>
64887
64888         Unconditionally include <config.h> in unit tests.
64889         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64890         * tests/test-allocsa.c, tests/test-arcfour.c,
64891         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64892         tests/test-array_list.c, tests/test-array_oset.c,
64893         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64894         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64895         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64896         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64897         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64898         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64899         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64900         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64901         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64902         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64903         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64904         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64905         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64906         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64907         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64908         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64909         test-md5.c, test-memmem.c, test-printf-posix.c,
64910         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64911         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64912         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64913         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64914         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64915         test-vasnprintf-posix2.c, test-vasnprintf.c,
64916         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64917         test-vfprintf-posix.c, test-vprintf-posix.c,
64918         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64919         test-xvasprintf.c: Likewise.
64920
64921 2007-05-28  Bruno Haible  <bruno@clisp.org>
64922
64923         * gnulib-tool (func_import): Remember the --with-tests command-line
64924         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64925         Reported by Eric Blake.
64926
64927 2007-05-28  Bruno Haible  <bruno@clisp.org>
64928
64929         * modules/ftell-tests: New file.
64930         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64931         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64932
64933         * lib/ftell.c: New file.
64934         * modules/ftell: New file.
64935         * m4/ftell.m4: New file.
64936         * doc/functions/ftell.texi: Update.
64937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64938         REPLACE_FTELL.
64939         * lib/stdio_.h (rpl_ftell): New declaration.
64940         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64941         REPLACE_FTELL.
64942
64943 2007-05-28  Eric Blake  <ebb9@byu.net>
64944
64945         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64946
64947 2007-05-28  Bruno Haible  <bruno@clisp.org>
64948
64949         * modules/fseek-tests: New file.
64950         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64951         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64952
64953         * lib/fseek.c: New file.
64954         * modules/fseek: New file.
64955         * m4/fseek.m4: New file.
64956         * doc/functions/fseek.texi: Update.
64957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64958         REPLACE_FSEEK.
64959         * lib/stdio_.h (rpl_fseek): New declaration.
64960         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64961         REPLACE_FSEEK.
64962
64963 2007-05-28  Bruno Haible  <bruno@clisp.org>
64964
64965         * lib/stdio_.h (fflush): More comments.
64966
64967 2007-05-28  Bruno Haible  <bruno@clisp.org>
64968
64969         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64970         runtime test.
64971
64972 2007-05-28  Eric Blake  <ebb9@byu.net>
64973
64974         Improve lseek module.
64975         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64976         * lib/unistd_.h (lseek): Scale back link warning message.
64977         * tests/test-lseek.c: Beef up test.
64978         * tests/test-lseek.sh: Exercise more facets of lseek.
64979         Reported by Bruno Haible.
64980
64981 2007-05-28  Bruno Haible  <bruno@clisp.org>
64982
64983         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64984         to define.
64985
64986 2007-05-27  Bruno Haible  <bruno@clisp.org>
64987
64988         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64989
64990 2007-05-27  Bruno Haible  <bruno@clisp.org>
64991
64992         * modules/openmp: New file.
64993         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64994         Noah Misch.
64995
64996 2007-05-26  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/chdir-long (Depends-on): Add fchdir.
64999         * modules/chdir-safer (Depends-on): Likewise.
65000         * modules/fts (Depends-on): Likewise.
65001         * modules/fts-lgpl (Depends-on): Likewise.
65002         * modules/openat (Depends-on): Likewise.
65003         * modules/savewd (Depends-on): Likewise.
65004
65005 2007-05-24  Eric Blake  <ebb9@byu.net>
65006
65007         Fix lseek on mingw.
65008         * modules/lseek: New module.
65009         * m4/lseek.m4: New file.
65010         * lib/lseek.c: New file.
65011         * modules/lseek-tests: New file.
65012         * tests/test-lseek.c: New file.
65013         * tests/test-lseek.sh: New file.
65014         * MODULES.html.sh: Document lseek module.
65015         * modules/fflush (Depends-on): Add lseek, fseeko.
65016         * modules/fseeko (Depends-on): Likewise.
65017         * modules/ftello (Depends-on): Likewise.
65018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65019         broken.
65020         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65021         broken.
65022         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65023         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65024         * lib/ftello.c (rpl_ftello): Likewise.
65025         * tests/test-fseeko.c (main): Test this.
65026         * tests/test-fseeko.sh: Likewise.
65027         * tests/test-ftello.c (main): Likewise.
65028         * tests/test-ftello.sh: Likewise.
65029         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65030         implies replacing fseek.
65031         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65032         HAVE_FTELLO.
65033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65034         * modules/unistd (Makefile.am): Likewise.
65035         * lib/unistd_.h (lseek): Declare a replacement.
65036         * doc/functions/lseek.texi (lseek): Document this fix.
65037         * doc/functions/fseek.texi (fseek): Likewise.
65038         * doc/functions/ftell.texi (ftell): Likewise.
65039
65040 2007-05-24  Bruno Haible  <bruno@clisp.org>
65041
65042         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65043         in the printed representation of a NaN.
65044         * tests/test-vasprintf-posix.c (test_function): Likewise.
65045         * tests/test-snprintf-posix.h (test_function): Likewise.
65046         * tests/test-sprintf-posix.h (test_function): Likewise.
65047         Reported by Eric Blake.
65048
65049 2007-05-23  Eric Blake  <ebb9@byu.net>
65050
65051         Fix fseeko/ftello on cygwin 1.5.24.
65052         * doc/functions/fseeko.texi (fseeko): Document the fix.
65053         * doc/functions/ftello.texi (ftello): Document the fix.
65054         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65055         * doc/functions/stdout.text (stdout): New file.
65056         * doc/functions/stderr.text (stderr): New file.
65057         * doc/gnulib.texi (Function Substitutes): Use new files.
65058         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65059         prior to 1.7.0.
65060         * tests/test-ftello.c (main): Likewise for ftello.
65061         * tests/test-fseeko.sh: New file.
65062         * tests/test-ftello.sh: New file.
65063         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65064         with seekable stdin.
65065         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65066         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65067         (gl_REPLACE_FSEEKO): New macro.
65068         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65069         * modules/fseeko (Files): Distribute fseeko.c.
65070         * modules/ftello (Files): Distribute ftello.c.
65071         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65072         mode.
65073         * lib/ftello.c (rpl_ftello): New file.
65074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65075         fseeko, ftello.
65076         (gl_STDIN_LARGE_OFFSET): New macro.
65077         * modules/stdio (Makefile.am): Perform the replacement.
65078         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65079
65080 2007-05-23  Bruno Haible  <bruno@clisp.org>
65081
65082         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65083         GNULIB_POSIXCHECK is defined.
65084
65085 2007-05-21  Bruno Haible  <bruno@clisp.org>
65086
65087         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65088         Check also the output for NaN arguments. When cross-compiling, guess
65089         no on IRIX.
65090         * lib/vasnprintf.c: Update comments.
65091         * tests/test-vasnprintf-posix.c (strisnan): New function.
65092         (test_function): Use it.
65093         * tests/test-vasprintf-posix.c (strisnan): New function.
65094         (test_function): Use it.
65095         * tests/test-snprintf-posix.h (strisnan): New function.
65096         (test_function): Use it.
65097         * tests/test-sprintf-posix.h (strisnan): New function.
65098         (test_function): Use it.
65099         Reported by Eric Blake.
65100
65101 2007-05-20  Bruno Haible  <bruno@clisp.org>
65102
65103         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65104         numbers that fails on BeOS.
65105         * doc/functions/frexpl.texi: Update.
65106
65107 2007-05-20  Jim Meyering  <jim@meyering.net>
65108
65109         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65110         forced upon us by glibc-2.6.
65111
65112 2007-05-20  Bruno Haible  <bruno@clisp.org>
65113
65114         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65115         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65116         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65117         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65118         NEED_PRINTF_INFINITE.
65119         (is_infinitel): New function.
65120         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65121         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65122         gl_PREREQ_VASNPRINTF_INFINITE.
65123         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65124         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65125         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65126         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65127         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65128         gl_PREREQ_VASNPRINTF_INFINITE.
65129         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65130         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65131         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65132         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65133         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65135         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65136         * doc/functions/fprintf.texi: Update.
65137         * doc/functions/printf.texi: Update.
65138         * doc/functions/snprintf.texi: Update.
65139         * doc/functions/sprintf.texi: Update.
65140         * doc/functions/vfprintf.texi: Update.
65141         * doc/functions/vprintf.texi: Update.
65142         * doc/functions/vsnprintf.texi: Update.
65143         * doc/functions/vsprintf.texi: Update.
65144
65145 2007-05-20  Bruno Haible  <bruno@clisp.org>
65146
65147         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65148         was not found in libc.
65149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65150
65151 2007-05-20  Bruno Haible  <bruno@clisp.org>
65152
65153         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65154         printed as "-nan" instead of "nan".
65155         * tests/test-vasprintf-posix.c (test_function): Likewise.
65156         * tests/test-snprintf-posix.h (test_function): Likewise.
65157         * tests/test-sprintf-posix.h (test_function): Likewise.
65158         Needed for HP-UX 11.
65159
65160 2007-05-20  Jim Meyering  <jim@meyering.net>
65161
65162         Fix buggy test for the fchownat-deref bug.
65163         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65164         symlink required for the run-test.  Without it, this test would
65165         always declare that fchownat doesn't work, and client code would
65166         unnecessarily use the replacement function with fixed libc.
65167         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65168         Reported by Greg Schafer.
65169
65170 2007-05-19  Bruno Haible  <bruno@clisp.org>
65171
65172         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65173         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65174         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65175         Needed for IRIX 6.5 and Solaris 2.5.1.
65176
65177 2007-05-19  Bruno Haible  <bruno@clisp.org>
65178
65179         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65180         (test_function): Skip tests involving -0.0 on platforms where
65181         -0.0 = 0.0.
65182         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65183         (test_function): Skip tests involving -0.0 on platforms where
65184         -0.0 = 0.0.
65185         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65186         (test_function): Skip tests involving -0.0 on platforms where
65187         -0.0 = 0.0.
65188         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65189         (test_function): Skip tests involving -0.0 on platforms where
65190         -0.0 = 0.0.
65191         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65192         tests.
65193         * tests/test-printf-posix.h (test_function): Likewise.
65194         * tests/test-printf-posix.output: Remove all -0.0 related results.
65195         Needed for IRIX 6.5.
65196
65197 2007-05-19  Bruno Haible  <bruno@clisp.org>
65198
65199         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65200         printed as "nan0x7fffffff" instead of "nan".
65201         * tests/test-vasprintf-posix.c (test_function): Likewise.
65202         * tests/test-snprintf-posix.h (test_function): Likewise.
65203         * tests/test-sprintf-posix.h (test_function): Likewise.
65204         * tests/test-fprintf-posix.h (NaN): Remove macro.
65205         (test_function): Remove all NaN related tests.
65206         * tests/test-printf-posix.h (NaN): Remove macro.
65207         (test_function): Remove all NaN related tests.
65208         * tests/test-printf-posix.output: Remove all NaN related results.
65209         Needed for IRIX 6.5.
65210
65211 2007-05-19  Bruno Haible  <bruno@clisp.org>
65212
65213         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65215
65216 2007-05-19  Bruno Haible  <bruno@clisp.org>
65217
65218         * lib/float_.h: New file.
65219         * m4/float_h.m4: New file.
65220         * modules/float: New file.
65221         * modules/isnanl (Dependencies): Add float.
65222         * modules/isnanl-nolibm (Dependencies): Likewise.
65223         * modules/mathl (Dependencies): Likewise.
65224         * modules/printf-frexpl (Dependencies): Likewise.
65225         * modules/signbit (Dependencies): Likewise.
65226         * modules/vasnprintf (Dependencies): Likewise.
65227         * doc/headers/float.texi: Update.
65228
65229 2007-05-19  Jim Meyering  <jim@meyering.net>
65230
65231         * lib/utimens.c (gl_futimens): Rename from futimens,
65232         now that glibc-2.6 declares futimens.
65233         * lib/utimens.h: Likewise.
65234
65235 2007-05-19  Bruno Haible  <bruno@clisp.org>
65236
65237         Avoid test failures on mingw.
65238         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65239         * tests/test-printf-posix.sh: Likewise.
65240         * tests/test-vfprintf-posix.sh: Likewise.
65241         * tests/test-vprintf-posix.sh: Likewise.
65242
65243 2007-05-19  Bruno Haible  <bruno@clisp.org>
65244
65245         Fix *printf result for NaN, Inf, -0.0 on mingw.
65246         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65247         * lib/vasnprintf.c: Include math.h and isnan.h.
65248         (is_infinite_or_zero): New function.
65249         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65250         values in the %f, %F, %e, %E, %g, %G directives.
65251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65252         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65253         gl_PRINTF_INFINITE and test its result. Invoke
65254         gl_PREREQ_VASNPRINTF_INFINITE.
65255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65262         * doc/functions/fprintf.texi: Update.
65263         * doc/functions/printf.texi: Update.
65264         * doc/functions/snprintf.texi: Update.
65265         * doc/functions/sprintf.texi: Update.
65266         * doc/functions/vfprintf.texi: Update.
65267         * doc/functions/vprintf.texi: Update.
65268         * doc/functions/vsnprintf.texi: Update.
65269         * doc/functions/vsprintf.texi: Update.
65270
65271 2007-05-19  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65274         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65275         Instead of multiplying with 10^k, set extra_zeroes to k.
65276         (scale10_round_long_double): Remove function.
65277
65278 2007-05-18  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65281         introduced on 2007-05-06.
65282
65283 2007-05-18  Bruno Haible  <bruno@clisp.org>
65284
65285         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65286         %g directives.
65287         * tests/test-vasprintf-posix.c (test_function): Likewise.
65288         * tests/test-snprintf-posix.h (test_function): Likewise.
65289         * tests/test-sprintf-posix.h (test_function): Likewise.
65290
65291 2007-05-18  Bruno Haible  <bruno@clisp.org>
65292
65293         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65294         (strmatch): New function.
65295         (test_function): Test the %f directive on numbers of various exponents.
65296         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65297         (strmatch): New function.
65298         (test_function): Test the %f directive on numbers of various exponents.
65299         * tests/test-snprintf-posix.h (strmatch): New function.
65300         (test_function): Test the %f directive on numbers of various exponents.
65301         * tests/test-sprintf-posix.h (strmatch): New function.
65302         (test_function): Test the %f directive on numbers of various exponents.
65303         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65304         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65305         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65306         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65307
65308 2007-05-18  Bruno Haible  <bruno@clisp.org>
65309
65310         Add support for 'long double' number output.
65311         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65312         * lib/vasnprintf.c: Include math.h and float+.h.
65313         (mp_limb_t): New type.
65314         (GMP_LIMB_BITS): New macro.
65315         (mp_twolimb_t): New type.
65316         (GMP_TWOLIMB_BITS): New macro.
65317         (mpn_t): New type.
65318         (multiply, divide, convert_to_decimal, decode_long_double,
65319         scale10_round_long_double, scale10_round_decimal_long_double,
65320         floorlog10l): New functions.
65321         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65322         for the %f, %F, %e, %E, %g, %G directives.
65323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65324         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65325         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65326         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65327         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65329         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65330         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65331         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65332         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65333         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65334         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65335         * modules/snprintf-posix (Depends-on): Likewise.
65336         * modules/sprintf-posix (Depends-on): Likewise.
65337         * modules/vasnprintf-posix (Depends-on): Likewise.
65338         * modules/vasprintf-posix (Depends-on): Likewise.
65339         * modules/vfprintf-posix (Depends-on): Likewise.
65340         * modules/vsnprintf-posix (Depends-on): Likewise.
65341         * modules/vsprintf-posix (Depends-on): Likewise.
65342         * modules/vasnprintf (Files): Add lib/float+.h.
65343         * doc/functions/fprintf.texi: Update.
65344         * doc/functions/printf.texi: Update.
65345         * doc/functions/snprintf.texi: Update.
65346         * doc/functions/sprintf.texi: Update.
65347         * doc/functions/vfprintf.texi: Update.
65348         * doc/functions/vprintf.texi: Update.
65349         * doc/functions/vsnprintf.texi: Update.
65350         * doc/functions/vsprintf.texi: Update.
65351
65352 2007-05-18  Bruno Haible  <bruno@clisp.org>
65353
65354         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65355
65356 2007-05-18  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65359         for printing 64-bit integers. Needed for mingw.
65360
65361 2007-05-18  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65364         gl_FUNC_FREXPL_WORKS.
65365         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65366
65367 2007-05-18  Bruno Haible  <bruno@clisp.org>
65368
65369         * modules/frexpl-nolibm-tests: New file.
65370
65371         * modules/frexpl-nolibm: New file.
65372         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65373
65374 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65377         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65378         GCC 4.2, which otherwise issues a lot of warnings.
65379         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65380         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65381         Likewise.
65382         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65383         * modules/iconv_open (iconv.h): Likewise.
65384         * modules/locale (locale.h): Likewise.
65385         * modules/netinet_in (netinet/in.h): Likewise.
65386         * modules/sys_select (sys_select.h): Likewise.
65387         * modules/sys_socket (sys/socket.h): Likewise.
65388         * modules/sys_stat (sys/stat.h): Likewise.
65389         * modules/sysexits (sysexits.h): Likewise.
65390         * modules/unistd (unistd.h): Likewise.
65391
65392 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65393
65394         * modules/closein-tests (Makefile.am): Distribute
65395         `test-closein.sh'.
65396
65397 2007-05-17  Bruno Haible  <bruno@clisp.org>
65398
65399         * tests/test-printf-posix.output: Renamed from
65400         tests/test-fprintf-posix.out.
65401         * modules/fprintf-posix-tests: Update.
65402         * modules/printf-posix-tests: Update.
65403         * modules/vfprintf-posix-tests: Update.
65404         * modules/vprintf-posix-tests: Update.
65405         * tests/test-fprintf-posix.sh: Update.
65406         * tests/test-printf-posix.sh: Update.
65407         * tests/test-vfprintf-posix.sh: Update.
65408         * tests/test-vprintf-posix.sh: Update.
65409         Reported by Ralf Wildenhues.
65410
65411 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65412
65413         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65414         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65415         GCC 4.2, which otherwise issues a lot of warnings.
65416         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65417         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65418         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65419         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65420         it should no longer be needed.
65421         * lib/string_.h: Likewise.
65422         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65423         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65424         * modules/inttypes (inttypes.h): Likewise.
65425         * modules/math (math.h): Likewise.
65426         * modules/search (search.h): Likewise.
65427         * modules/signal (signal.h): Likewise.
65428         * modules/stdint (stdint.h): Likewise.
65429         * modules/stdio (stdio.h): Likewise.
65430         * modules/stdlib (stdlib.h): Likewise.
65431         * modules/string (string.h): Likewise.
65432         * modules/sys_time (sys/time.h): Likewise.
65433         * modules/time (time.h): Likewise.
65434         * modules/wchar (wchar.h): Likewise.
65435         * modules/wctype (wtype.h): Likewise.
65436
65437 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65438
65439         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65440
65441 2007-05-13  Bruno Haible  <bruno@clisp.org>
65442
65443         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65444         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65445         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65446         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65447         (gl_PREREQ_STRTOK_R): Don't require it here.
65448
65449 2007-05-13  Bruno Haible  <bruno@clisp.org>
65450
65451         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65452         when used in C++ mode.
65453
65454 2007-05-12  Bruno Haible  <bruno@clisp.org>
65455
65456         * lib/linebuffer.h: Tweak doc.
65457         * lib/linebuffer.c: Likewise.
65458
65459 2007-05-12  James Youngman  <jay@gnu.org>
65460
65461         * lib/linebuffer.c (readlinebuffer_delim): New function,
65462         like readlinebuffer, but use a caller-specified delimiter.
65463         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65464         as the delimiter.
65465         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65466
65467 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65468
65469         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65470         * modules/openat (Files): Remove openat-die.c.
65471         (Depends-on): Add openat-die.
65472         * modules/openat-die: New module.
65473
65474 2007-05-06  Bruno Haible  <bruno@clisp.org>
65475
65476         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65477         Update with info about Cygwin.
65478         * doc/functions/fprintf.texi: Update.
65479         * doc/functions/printf.texi: Update.
65480         * doc/functions/snprintf.texi: Update.
65481         * doc/functions/sprintf.texi: Update.
65482         * doc/functions/vfprintf.texi: Update.
65483         * doc/functions/vprintf.texi: Update.
65484         * doc/functions/vsnprintf.texi: Update.
65485         * doc/functions/vsprintf.texi: Update.
65486         Reported by Eric Blake.
65487
65488 2007-05-06  Bruno Haible  <bruno@clisp.org>
65489
65490         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65491         padding ourselves for the floating-point directives.
65492         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65494         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65495         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65496         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65498         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65504         * tests/test-snprintf-posix.h (test_function): Also check the width
65505         and some flags in the %f directive.
65506         * tests/test-sprintf-posix.h (test_function): Likewise.
65507         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65508         * tests/test-vasprintf-posix.c (test_function): Likewise.
65509         * doc/functions/fprintf.texi: Update.
65510         * doc/functions/printf.texi: Update.
65511         * doc/functions/snprintf.texi: Update.
65512         * doc/functions/sprintf.texi: Update.
65513         * doc/functions/vfprintf.texi: Update.
65514         * doc/functions/vprintf.texi: Update.
65515         * doc/functions/vsnprintf.texi: Update.
65516         * doc/functions/vsprintf.texi: Update.
65517
65518 2007-05-06  Bruno Haible  <bruno@clisp.org>
65519
65520         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65521         pass the ' flag character to sprintf or snprintf.
65522         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65523         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65524         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65525         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65526         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65527         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65528         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65529         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65530         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65531         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65532         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65533         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65534         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65535         flag.
65536         * tests/test-sprintf-posix.h (test_function): Likewise.
65537         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65538         * tests/test-vasprintf-posix.c (test_function): Likewise.
65539         * doc/functions/fprintf.texi: Update.
65540         * doc/functions/printf.texi: Update.
65541         * doc/functions/snprintf.texi: Update.
65542         * doc/functions/sprintf.texi: Update.
65543         * doc/functions/vfprintf.texi: Update.
65544         * doc/functions/vprintf.texi: Update.
65545         * doc/functions/vsnprintf.texi: Update.
65546         * doc/functions/vsprintf.texi: Update.
65547
65548 2007-05-01  Bruno Haible  <bruno@clisp.org>
65549
65550         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65551
65552 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65555         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65556
65557 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65558
65559         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65560         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65562
65563 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65564
65565         * lib/argp-help.c (struct hol_entry): New member `ord'.
65566         (HOL_ENTRY_PTRCMP): Use ord for comparison
65567         (hol_sort): Initialize ord.
65568
65569 2007-05-01  Bruno Haible  <bruno@clisp.org>
65570
65571         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65572         Reported by Eric Blake.
65573         * doc/gnulib.texi (Function Substitutes): Update.
65574
65575 2007-05-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * doc/functions.texi: Remove file, now redundant through
65578         doc/functions/*.texi.
65579
65580 2007-05-01  Bruno Haible  <bruno@clisp.org>
65581
65582         * modules/argp (Depends-on): Add sleep.
65583
65584 2007-05-01  Bruno Haible  <bruno@clisp.org>
65585
65586         * modules/sleep-tests: New file.
65587         * tests/test-sleep.c: New file.
65588
65589         * modules/sleep: New file.
65590         * lib/sleep.c: New file.
65591         * m4/sleep.m4: New file.
65592         * lib/unistd_.h (sleep): New declaration.
65593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65594         HAVE_SLEEP.
65595         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65596         * doc/functions/sleep.texi: Document the sleep module.
65597
65598 2007-05-01  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/sigprocmask.h: Remove file.
65601         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65602         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65603         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65604         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65605         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65606         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65607         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65608         HAVE_SIGSET_T as a shell variable.
65609         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65610         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65611         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65612         (Depends-on): Add signal. Remove verify.
65613         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65614         (Include): Mention <signal.h> instead of sigprocmask.h.
65615         * NEWS: Mention the change.
65616         * lib/fatal-signal.c: Don't include sigprocmask.h.
65617
65618 2007-05-01  Bruno Haible  <bruno@clisp.org>
65619
65620         * modules/signal: New file.
65621         * lib/signal_.h: New file.
65622         * m4/signal_h.m4: New file.
65623
65624 2007-05-01  Bruno Haible  <bruno@clisp.org>
65625
65626         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65627         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65628         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65629         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65630
65631 2007-05-01  Bruno Haible  <bruno@clisp.org>
65632
65633         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65634         configure time.
65635         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65636         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65637         * modules/sys_stat (Makefile.am): Substitute their values into
65638         sys/stat.h.
65639
65640 2007-05-01  Bruno Haible  <bruno@clisp.org>
65641
65642         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65643         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65644         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65645
65646 2007-05-01  Bruno Haible  <bruno@clisp.org>
65647
65648         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65649         'assert' module here.
65650
65651 2007-05-01  Bruno Haible  <bruno@clisp.org>
65652
65653         * doc/functions/*.texi: New files.
65654         * doc/functions/google-ranking.txt: New file.
65655         * doc/gnulib.texi (Function Substitutes): New chapter.
65656         (ctime, inet_ntoa): Remove sections.
65657         * doc/ctime.texi: Remove file.
65658         * doc/inet_ntoa.texi: Remove file.
65659         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65660         dependencies.
65661         (%.info): New rule, specifying a --reference-limit.
65662
65663 2007-05-01  Bruno Haible  <bruno@clisp.org>
65664
65665         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65666
65667 2007-05-01  Bruno Haible  <bruno@clisp.org>
65668
65669         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65670         the portability of 'mkdir' to mingw systems.
65671
65672 2007-05-01  Bruno Haible  <bruno@clisp.org>
65673
65674         * doc/headers/google-ranking.txt: New file.
65675
65676 2007-04-30  Eric Blake  <ebb9@byu.net>
65677
65678         Prefer fseeko to fseek.
65679         * modules/getpass (Depends-on): Add fseeko.
65680         * lib/getpass.c (getpass): Use fseeko, not fseek.
65681
65682 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65683
65684         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65685         assumes the sorting is stable, while most qsort implementations
65686         are not.  Use argument addresses to ensure they never compare as
65687         equal.
65688
65689         * tests/test-argp-2.sh (usage-indent test): Fix output
65690         (func_compare): Restore diff options
65691         * tests/test-argp.c: Restore #include "progname.h"
65692
65693 2007-04-29  Bruno Haible  <bruno@clisp.org>
65694
65695         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65697         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65699         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65700         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65701         (TESTS, check_PROGRAMS): Add test-snprintf.
65702         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65703         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65704         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65705         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65706         assertions that fail on HP-UX, OSF/1, or IRIX.
65707         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65708
65709 2007-04-29  Bruno Haible  <bruno@clisp.org>
65710
65711         * MODULES.html.sh (posix_functions): Remove 'contents'.
65712
65713 2007-04-29  Karl Berry  <karl@gnu.org>
65714
65715         * config/srclist.txt (gendocs_template_min): new entry.
65716
65717 2007-04-29  Bruno Haible  <bruno@clisp.org>
65718
65719         Work around fpurge bug on BSD systems.
65720         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65721         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65722         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65723         fpurge to rpl_fpurge if the system already has this function.
65724         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65725         the case where the system already has this function. Correct invariants
65726         on BSD systems.
65727         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65728         BSD systems.
65729
65730 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65731
65732         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65733         proposed by Sven Verdoolaege.
65734
65735         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65736         options.
65737         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65738         (usage and help tests): Update
65739
65740 2007-04-29  Bruno Haible  <bruno@clisp.org>
65741
65742         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65743         Print more information in case of failure. Disable a test on BeOS.
65744
65745 2007-04-29  Bruno Haible  <bruno@clisp.org>
65746
65747         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65748         This helps debugging on systems on which no gdb is available.
65749
65750 2007-04-29  Bruno Haible  <bruno@clisp.org>
65751
65752         * lib/freading.h: Improve comments.
65753         * lib/fwriting.h: Likewise.
65754         * tests/test-freading.c (main): Don't check freading immediately after
65755         repositioning. Needed for glibc.
65756
65757 2007-04-29  Bruno Haible  <bruno@clisp.org>
65758
65759         * lib/freading.c (freading): Trivial simplification.
65760
65761 2007-04-28  Bruno Haible  <bruno@clisp.org>
65762
65763         * tests/test-fwriting.c (main): Also test the interaction between
65764         fflush and fwriting.
65765         * modules/fwriting-tests (Depends-on): Add fflush.
65766
65767         * tests/test-freading.c (main): Also test the interaction between
65768         fflush and freading.
65769         * modules/freading-tests (Depends-on): Add fflush.
65770
65771 2007-04-28  Bruno Haible  <bruno@clisp.org>
65772
65773         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65774         fseeko and ftello.
65775         Suggested by Eric Blake.
65776
65777 2007-04-28  Jim Meyering  <jim@meyering.net>
65778
65779         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65780         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65781         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65782
65783 2007-04-27  Eric Blake  <ebb9@byu.net>
65784
65785         * doc/headers/assert.texi (assert.h): Document assert module use.
65786
65787 2007-04-27  Bruno Haible  <bruno@clisp.org>
65788
65789         * doc/headers/*.texi: New files.
65790         * doc/gnulib.texi (Header File Substitutes): New chapter.
65791         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65792         dependencies.
65793         (standards.info ,standards.html, standards.dvi): Update dependencies.
65794         (mostlyclean, clean): New targets.
65795
65796 2007-04-27  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65799         * modules/sysexits (Files, Makefile.am): Update.
65800
65801         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65802         * modules/sys_socket (Files, Makefile.am): Update.
65803
65804         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65805         * modules/sys_stat (Files, Makefile.am): Update.
65806
65807 2007-04-27  Eric Blake  <ebb9@byu.net>
65808
65809         * lib/freading.h: Improve comments.
65810         * lib/fwriting.h: Likewise.
65811         * lib/fflush.c: Likewise.
65812
65813         Fix closein for mingw.
65814         * modules/closein-tests: Add tests for closein.
65815         * tests/test-closein.c: New file.
65816         * tests/test-closein.sh: Likewise.
65817         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65818         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65819
65820 2007-04-27  Bruno Haible  <bruno@clisp.org>
65821
65822         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65823         version is < 6.
65824         * lib/math_.h [__DECC]: Likewise.
65825         * lib/stdio_.h [__DECC]: Likewise.
65826         * lib/stdlib_.h [__DECC]: Likewise.
65827         * lib/string_.h [__DECC]: Likewise.
65828         * lib/time_.h [__DECC]: Likewise.
65829         * lib/wchar_.h [__DECC]: Likewise.
65830         * lib/wctype_.h [__DECC]: Likewise.
65831
65832 2007-04-27  Bruno Haible  <bruno@clisp.org>
65833
65834         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65835
65836 2007-04-27  Bruno Haible  <bruno@clisp.org>
65837
65838         * lib/fflush.c: Add comments.
65839         * modules/fpurge-tests (Depends-on): Add fflush.
65840         * modules/freadable-tests (Depends-on): Likewise.
65841         * modules/fwritable-tests (Depends-on): Likewise.
65842
65843 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65844
65845         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65846         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65847         Report by Bruno Haible <bruno@clisp.org>.
65848
65849 2007-04-26  Eric Blake  <ebb9@byu.net>
65850
65851         Fix fflush on mingw.
65852         * modules/fflush (Depends-on): Add freading.
65853         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65854         but unread data.
65855
65856 2007-04-26  Eric Blake  <ebb9@byu.net>
65857         and Bruno Haible  <bruno@clisp.org>
65858
65859         Implement freading and fwriting.
65860         * lib/freading.c: New file.
65861         * lib/freading.h: Likewise.
65862         * m4/freading.m4: Likewise.
65863         * modules/freading: Likewise.
65864         * modules/freading-tests: Likewise.
65865         * tests/test-freading.c: Likewise.
65866         * lib/fwriting.c: New file.
65867         * lib/fwriting.h: Likewise.
65868         * m4/fwriting.m4: Likewise.
65869         * modules/fwriting: Likewise.
65870         * modules/fwriting-tests: Likewise.
65871         * tests/test-fwriting.c: Likewise.
65872         * MODULES.html.sh (File stream based Input/Output): Mention them.
65873
65874 2007-04-26  Bruno Haible  <bruno@clisp.org>
65875
65876         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65877         'long' when we assume it.
65878         Suggested by Eric Blake.
65879
65880 2007-04-26  Bruno Haible  <bruno@clisp.org>
65881
65882         Ensure fseeko, ftello are declared on glibc systems.
65883         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65884         * modules/fseeko (configure.ac-early): Likewise.
65885         * modules/ftello (configure.ac-early): Likewise.
65886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65887         AC_FUNC_FSEEKO for this.
65888         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65889         (gl_CHECK_FSEEKO): Remove macro.
65890
65891 2007-04-26  Bruno Haible  <bruno@clisp.org>
65892
65893         * tests/test-fflush.c (main): Also check the ftell result after
65894         fflush and fseek/fseeko.
65895         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65896         file descriptor position cache in the stream.
65897         * lib/fseeko.c (rpl_fseeko): Likewise.
65898
65899 2007-04-26  Bruno Haible  <bruno@clisp.org>
65900
65901         * modules/fflush-tests (Depends-on): Add fseeko.
65902
65903 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65904             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65905
65906         * lib/argz_.h: ensure error_t definition is obtained in same
65907         mechanism system argz.h would have.
65908         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65909         argz facilities are known bad.  Err on the side of caution if
65910         cross-compiling.
65911
65912 2007-04-25  Eric Blake  <ebb9@byu.net>
65913
65914         * lib/fpurge.c (includes): Use stdlib.h for free.
65915         * tests/test-fflush.c (main): Also test fflush-fseeko.
65916
65917 2007-04-25  Bruno Haible  <bruno@clisp.org>
65918
65919         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65920         * lib/fseeko.c: New file.
65921         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65922         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65923         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65924         gl_FUNC_FSEEKO.
65925         (gl_FUNC_FSEEKO): Invoke it.
65926         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65927         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65928         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65929
65930 2007-04-25  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/fflush (Depends-on): Add ftello.
65933
65934 2007-04-25  Bruno Haible  <bruno@clisp.org>
65935
65936         * modules/ftello-tests: New file.
65937         * tests/test-ftello.c: New file.
65938
65939         * modules/ftello: New file.
65940         * m4/ftello.m4: New file.
65941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65942         HAVE_FTELLO.
65943         * lib/stdio_.h (ftello): New declaration.
65944         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65945         HAVE_FTELLO.
65946
65947 2007-04-25  Bruno Haible  <bruno@clisp.org>
65948
65949         * modules/fseeko-tests: New file.
65950         * tests/test-fseeko.c: New file.
65951
65952         * modules/fseeko: New file.
65953         * m4/fseeko.m4: New file.
65954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65955         HAVE_FSEEKO.
65956         * lib/stdio_.h (fseeko): New declaration.
65957         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65958         HAVE_FSEEKO.
65959
65960 2007-04-25  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65963
65964 2007-04-25  Bruno Haible  <bruno@clisp.org>
65965
65966         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65967         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65968         * tests/test-unistd.c: Likewise.
65969         * tests/test-fcntl.c: Likewise.
65970
65971 2007-04-23  Eric Blake  <ebb9@byu.net>
65972
65973         * lib/fflush.c: Fix missing include.
65974         Reported by Bruno Haible.
65975
65976 2007-04-23  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65979         Reported by Eric Blake.
65980
65981 2007-04-23  Bruno Haible  <bruno@clisp.org>
65982
65983         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65984
65985 2007-04-23  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65988
65989 2007-04-23  Bruno Haible  <bruno@clisp.org>
65990
65991         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65992         Needed on HP-UX 11.
65993
65994 2007-04-16  Eric Blake  <ebb9@byu.net>
65995
65996         Make fflush rely on fpurge.
65997         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65998         open coding all variants.
65999         * modules/fflush (Depends-on): Add fpurge and unistd.
66000         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66001         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66002
66003         Fix --with-tests compilation on cygwin.
66004         * modules/argmatch-tests (Makefile.am): List gnulib library first
66005         in LDADD.
66006         * modules/argp-tests (Makefile.am): Likewise.
66007         * modules/array-list-tests (Makefile.am): Likewise.
66008         * modules/array-oset-tests (Makefile.am): Likewise.
66009         * modules/avltree-list-tests (Makefile.am): Likewise.
66010         * modules/avltree-oset-tests (Makefile.am): Likewise.
66011         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66012         * modules/carray-list-tests (Makefile.am): Likewise.
66013         * modules/dirname-tests (Makefile.am): Likewise.
66014         * modules/frexp-tests (Makefile.am): Likewise.
66015         * modules/isnanl-tests (Makefile.am): Likewise.
66016         * modules/linked-list-tests (Makefile.am): Likewise.
66017         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66018         * modules/lock-tests (Makefile.am): Likewise.
66019         * modules/rbtree-list-tests (Makefile.am): Likewise.
66020         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66021         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66022         * modules/tls-tests (Makefile.am): Likewise.
66023         * modules/tsearch-tests (Makefile.am): Likewise.
66024         * modules/xvasprintf-tests (Makefile.am): Likewise.
66025
66026         Fix fpurge for cygwin.
66027         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66028         value.
66029         * modules/fpurge-tests (Depends-on): Clean up trash.
66030
66031 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66032
66033         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66034
66035         * m4/autobuild.m4: Re-indent.
66036
66037 2007-04-13  Bruno Haible  <bruno@clisp.org>
66038
66039         * modules/fpurge-tests: New file.
66040         * tests/test-fpurge.c: New file.
66041
66042         * modules/fpurge: New file.
66043         * lib/fpurge.h: New file.
66044         * lib/fpurge.c: New file.
66045         * m4/fpurge.m4: New file.
66046
66047 2007-04-13  Bruno Haible  <bruno@clisp.org>
66048
66049         * modules/fbufmode-tests: New file.
66050         * tests/test-fbufmode.c: New file.
66051
66052         * modules/fbufmode: New file.
66053         * lib/fbufmode.h: New file.
66054         * lib/fbufmode.c: New file.
66055         * m4/fbufmode.m4: New file.
66056
66057 2007-04-13  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/fwritable-tests: New file.
66060         * tests/test-fwritable.c: New file.
66061
66062         * modules/fwritable: New file.
66063         * lib/fwritable.h: New file.
66064         * lib/fwritable.c: New file.
66065         * m4/fwritable.m4: New file.
66066
66067 2007-04-13  Bruno Haible  <bruno@clisp.org>
66068
66069         * modules/freadable-tests: New file.
66070         * tests/test-freadable.c: New file.
66071
66072         * modules/freadable: New file.
66073         * lib/freadable.h: New file.
66074         * lib/freadable.c: New file.
66075         * m4/freadable.m4: New file.
66076
66077 2007-04-13  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66080         MOSTLYCLEANFILES.
66081
66082 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66083
66084         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66085         gzip bootstrap.conf to avoid dragging in i18n machinery.
66086         (gnulib_tool_option): Use it.
66087
66088 2007-04-13  Bruno Haible  <bruno@clisp.org>
66089
66090         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66091         %F directives.
66092         * tests/test-vasprintf-posix.c (test_function): Likewise.
66093         * tests/test-snprintf-posix.h (test_function): Likewise.
66094         * tests/test-sprintf-posix.h (test_function): Likewise.
66095         * tests/test-fprintf-posix.h (test_function): Likewise.
66096         * tests/test-printf-posix.h (test_function): Likewise.
66097         * tests/test-fprintf-posix.out: Likewise.
66098
66099 2007-04-13  Bruno Haible  <bruno@clisp.org>
66100
66101         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66102         * modules/tls-tests (configure.ac): Likewise.
66103         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66104
66105 2007-04-13  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/tls.c (glthread_tls_get): Fix return type.
66108         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66109
66110 2007-04-12  Eric Blake  <ebb9@byu.net>
66111
66112         * modules/gettime (Depends-on): Remove gettime.
66113         Reported by Dmitry V. Levin.
66114
66115 2007-04-12  Bruno Haible  <bruno@clisp.org>
66116
66117         * modules/fflush (Include): Mention <stdio.h>.
66118         * modules/strtoimax (Include): Mention <inttypes.h>.
66119         * modules/strtoumax (Include): Likewise.
66120
66121 2007-04-12  Eric Blake  <ebb9@byu.net>
66122
66123         * .cvsignore: New file.
66124         * .gitignore: Likewise.
66125
66126 2007-04-12  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66129         not before, since $(LDADD) often contains libgnu.a.
66130         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66131         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66132         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66133         Needed on Cygwin.
66134
66135 2007-04-12  Eric Blake  <ebb9@byu.net>
66136
66137         Work around glibc's failure to flush stdin on fclose.
66138         * lib/closein.c (close_stdin): Flush stdin before closing.
66139
66140         Work around glibc's failure to reset seekable stdin on exit.
66141         * modules/closein: New module.
66142         * lib/closein.c: New file.
66143         * lib/closein.h: Likewise.
66144         * m4/closein.m4: Likewise.
66145         * MODULES.html.sh (File stream based Input/Output): Document it.
66146
66147 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66148
66149         * gnulib-tool: Rename generated 'autobuild' script to
66150         'do-autobuild' in --create-megatestdir output.
66151
66152         * doc/gnulib.texi (Build robot for gnulib): Fix.
66153
66154 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66155
66156         * modules/sysexits (Depends-on): Add absolute-header.
66157
66158 2007-04-12  Eric Blake  <ebb9@byu.net>
66159
66160         No need to preserve errno on success.
66161         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66162         Reported by Bruno Haible.
66163
66164 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66165
66166         * MODULES.html.sh (Support for maintaining and releasing
66167         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66168
66169 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66170
66171         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66172
66173 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66174
66175         * modules/autobuild: New module.
66176
66177         * m4/autobuild.m4: New file.
66178
66179 2007-04-11  Bruno Haible  <bruno@clisp.org>
66180
66181         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66182         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66184         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66185         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66186         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66187         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66189         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66190         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66191         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66192         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66193         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66195         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66196         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66198         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66199         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66200         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66203         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66206         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66209         Reported by Eric Blake.
66210
66211 2007-04-11  Bruno Haible  <bruno@clisp.org>
66212
66213         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66214
66215 2007-04-10  Bruno Haible  <bruno@clisp.org>
66216
66217         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66218         for NaN and Infinity. Needed on FreeBSD 6.1.
66219         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66220         regarding results for "%010a" of Infinity and NaN.
66221         * tests/test-vasprintf-posix.c (test_function): Likewise.
66222         * tests/test-snprintf-posix.h (test_function): Likewise.
66223         * tests/test-sprintf-posix.h (test_function): Likewise.
66224         * tests/test-fprintf-posix.h (test_function): Likewise.
66225         * tests/test-printf-posix.h (test_function): Likewise.
66226         * tests/test-fprintf-posix.out: Likewise.
66227
66228 2007-04-10  Bruno Haible  <bruno@clisp.org>
66229
66230         * modules/locale-tests: New file.
66231         * tests/test-locale.c: New file.
66232
66233         * modules/locale: New file.
66234         * lib/locale_.h: New file.
66235         * m4/locale_h.m4: New file.
66236
66237 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66238             Bruno Haible  <bruno@clisp.org>
66239
66240         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66241         be determined, test for availability of the copysignf, copysign,
66242         copysignl functions.
66243         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66244         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66245         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66246
66247 2007-04-09  Eric Blake  <ebb9@byu.net>
66248
66249         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66250         * modules/stdio (Makefile.am): Support fflush.
66251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66252         * modules/fflush: New file.
66253         * lib/fflush.c: Likewise.
66254         * m4/fflush.m4: Likewise.
66255         * modules/fflush-tests: New test.
66256         * tests/test-fflush.c: Likewise.
66257         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66258
66259 2007-04-06  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66262         (VASNPRINTF): Use signbit for faster determination whether to print a
66263         minus sign.
66264         * modules/vasnprintf (Files): Remove lib/float+.h.
66265         * modules/fprintf-posix (Depends-on): Add signbit.
66266         * modules/snprintf-posix (Depends-on): Likewise.
66267         * modules/sprintf-posix (Depends-on): Likewise.
66268         * modules/vasnprintf-posix (Depends-on): Likewise.
66269         * modules/vasprintf-posix (Depends-on): Likewise.
66270         * modules/vfprintf-posix (Depends-on): Likewise.
66271         * modules/vsnprintf-posix (Depends-on): Likewise.
66272         * modules/vsprintf-posix (Depends-on): Likewise.
66273
66274 2007-04-06  Bruno Haible  <bruno@clisp.org>
66275
66276         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66277         * tests/test-frexpl.c (main): Likewise.
66278         * tests/test-ldexpl.c (main): Likewise.
66279         * modules/frexp-tests (Depends-on): Add signbit.
66280         * modules/frexpl-tests (Depdends-on): Likewise.
66281         * modules/ldexpl-tests (Depdends-on): Likewise.
66282
66283 2007-04-06  Bruno Haible  <bruno@clisp.org>
66284
66285         * modules/signbit-tests: New file.
66286         * tests/test-signbit.c: New file.
66287
66288         * modules/signbit: New file.
66289         * lib/signbitf.c: New file.
66290         * lib/signbitd.c: New file.
66291         * lib/signbitl.c: New file.
66292         * m4/signbit.m4: New file.
66293         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66294         (signbit): New macro.
66295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66296         REPLACE_SIGNBIT.
66297         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66298         REPLACE_FREXPL into math.h.
66299
66300 2007-04-06  Bruno Haible  <bruno@clisp.org>
66301
66302         * modules/isnanf-nolibm-tests: New file.
66303         * tests/test-isnanf.c: New file.
66304
66305         * modules/isnanf-nolibm: New file.
66306         * lib/isnanf.h: New file.
66307         * lib/isnanf.c: New file.
66308         * lib/isnan.c: Consider the USE_FLOAT macro.
66309         * m4/isnanf.m4: New file.
66310
66311 2007-04-06  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66314         (Link): New section.
66315
66316         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66317
66318 2007-04-06  Bruno Haible  <bruno@clisp.org>
66319
66320         Assume the 'long double' type.
66321         * m4/longdouble.m4: Remove file.
66322         * config/srclist.txt: Don't mention longdouble.m4.
66323         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66324         * lib/float+.h: Likewise.
66325         * lib/frexp.c: Likewise.
66326         * lib/printf-args.h: Likewise.
66327         * lib/printf-args.c: Likewise.
66328         * lib/printf-frexp.c: Likewise.
66329         * lib/printf-parse.c: Likewise.
66330         * lib/vasnprintf.c: Likewise.
66331         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66332         * m4/intl.m4: Likewise.
66333         * m4/isnanl.m4: Likewise.
66334         * m4/printf.m4: Likewise.
66335         * m4/printf-frexpl.m4: Likewise.
66336         * m4/vasnprintf.m4: Likewise.
66337         * modules/allocsa (Files): Remove m4/longdouble.m4.
66338         * modules/gettext (Files): Likewise.
66339         * modules/relocatable-prog-wrapper (Files): Likewise.
66340         * modules/vasnprintf (Files): Likewise.
66341         * modules/isnanl (Files): Likewise.
66342         (Include): Simplify.
66343         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66344         (Include): Simplify.
66345         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66346         (Include): Simplify.
66347         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66348         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66349         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66350         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66351         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66352         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66353         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66354         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66355         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66356         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66357         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66358         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66359         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66360         * tests/test-isnanl.c: Likewise.
66361         * tests/test-snprintf-posix.h: Likewise.
66362         * tests/test-sprintf-posix.h: Likewise.
66363         * tests/test-vasnprintf-posix.c: Likewise.
66364         * tests/test-vasnprintf-posix2.c: Likewise.
66365         * tests/test-vasprintf-posix.c: Likewise.
66366
66367 2007-04-06  Bruno Haible  <bruno@clisp.org>
66368
66369         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66370         * lib/math_.h [__DECC]: Include the overridden include file through
66371         #include_next, outside the double-inclusion guard.
66372         * lib/stdio_.h [__DECC]: Likewise.
66373         * lib/stdlib_.h [__DECC]: Likewise.
66374         * lib/string_.h [__DECC]: Likewise.
66375         * lib/time_.h [__DECC]: Likewise.
66376         * lib/wchar_.h [__DECC]: Likewise.
66377         * lib/wctype_.h [__DECC]: Likewise.
66378         * lib/inttypes_.h [__DECC]: Likewise.
66379         Reported by Albert Chin <china@thewrittenword.com> in
66380         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66381
66382 2007-04-04  Eric Blake  <ebb9@byu.net>
66383
66384         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66385         1.5.x.
66386
66387 2007-04-04  Bruno Haible  <bruno@clisp.org>
66388
66389         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66390         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66391
66392 2007-04-04  Bruno Haible  <bruno@clisp.org>
66393
66394         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66395         results for "%010a" of Infinity and NaN.
66396         * tests/test-vasprintf-posix.c (test_function): Likewise.
66397         * tests/test-snprintf-posix.h (test_function): Likewise.
66398         * tests/test-sprintf-posix.h (test_function): Likewise.
66399         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66400         * tests/test-printf-posix.h (test_function): Likewise.
66401         * tests/test-fprintf-posix.out: Update.
66402         Needed for FreeBSD 6.1.
66403
66404 2007-04-04  Bruno Haible  <bruno@clisp.org>
66405
66406         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66407         directly used by the gnulib modules nor by gnulib-tool.
66408
66409 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * DEPENDENCIES: Give overall description of version dependency
66412         desirability.  Use more-typical names for apps.
66413         Add shell, coreutils, diffutils, grep, tar, gzip.
66414
66415 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66416
66417         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66418
66419 2007-04-04  Karl Berry  <karl@gnu.org>
66420
66421         * MODULES.html.sh (func_module): missing '.
66422
66423 2007-04-03  Bruno Haible  <bruno@clisp.org>
66424
66425         * modules/argmatch-tests (Makefile.am): New variable
66426         test_argmatch_LDADD.
66427         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66428         * modules/array-list-tests (Makefile.am): New variable
66429         test_array_list_LDADD.
66430         * modules/array-oset-tests (Makefile.am): New variable
66431         test_array_oset_LDADD.
66432         * modules/avltree-list-tests (Makefile.am): New variable
66433         test_avltree_list_LDADD.
66434         * modules/avltree-oset-tests (Makefile.am): New variable
66435         test_avltree_oset_LDADD.
66436         * modules/avltreehash-list-tests (Makefile.am): New variable
66437         test_avltreehash_list_LDADD.
66438         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66439         test_canonicalize_lgpl_LDADD.
66440         * modules/carray-list-tests (Makefile.am): New variable
66441         test_carray_list_LDADD.
66442         * modules/dirname-tests (Makefile.am): New variable
66443         test_dirname_LDADD.
66444         * modules/linked-list-tests (Makefile.am): New variable
66445         test_linked_list_LDADD.
66446         * modules/linkedhash-list-tests (Makefile.am): New variable
66447         test_linkedhash_list_LDADD.
66448         * modules/rbtree-list-tests (Makefile.am): New variable
66449         test_rbtree_list_LDADD.
66450         * modules/rbtree-oset-tests (Makefile.am): New variable
66451         test_rbtree_oset_LDADD.
66452         * modules/rbtreehash-list-tests (Makefile.am): New variable
66453         test_rbtreehash_list_LDADD.
66454         * modules/xvasprintf-tests (Makefile.am): New variable
66455         test_xvasprintf_LDADD.
66456         Reported by Eric Blake.
66457
66458 2007-04-03  Eric Blake  <ebb9@byu.net>
66459
66460         * DEPENDENCIES: Weaken m4 requirements.
66461
66462 2007-04-03  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66465         * modules/isnanl-tests (configure.ac): Likewise.
66466
66467 2007-04-03  Ben Pfaff  <blp@gnu.org>
66468
66469         * modules/iconv_open: Add $(srcdir)/ to source directory
66470         references in Makefile fragments that call gperf, to fix VPATH
66471         builds.
66472
66473 2007-04-03  Bruno Haible  <bruno@clisp.org>
66474
66475         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66476         * lib/ldexpl.c: Undo last change.
66477
66478 2007-04-03  Bruno Haible  <bruno@clisp.org>
66479
66480         * modules/printf-frexpl (Depends-on): Undo last change.
66481         (Files): Add m4/ldexpl.m4.
66482
66483 2007-04-03  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66486         * modules/isnanl (Link): New section.
66487
66488         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66489         * modules/frexp (Link): New section.
66490
66491         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66492         * modules/frexpl (Link): New section.
66493
66494         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66495         * modules/ldexpl (Link): New section.
66496
66497 2007-04-03  Bruno Haible  <bruno@clisp.org>
66498
66499         * modules/TEMPLATE-EXTENDED: New file.
66500         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66501
66502 2007-04-03  Bruno Haible  <bruno@clisp.org>
66503
66504         * DEPENDENCIES: New file.
66505         Suggested by Simon Josefsson.
66506
66507 2007-04-03  Bruno Haible  <bruno@clisp.org>
66508
66509         * doc/gnulib.texi: Escape @.
66510
66511 2007-04-03  James Youngman  <jay@gnu.org>
66512         and Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66515         birthtime on all systems that have birthtime, not just those which
66516         use st_birthtimensec rather than st_birthtim.  Putting zero in
66517         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66518         that the birth time is not available for files on an NFS mount.
66519
66520 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66521
66522         * modules/memxor: Move back from crypto/, suggested by Bruno.
66523         * modules/crypto/hmac-sha1: Fix memxor dependency.
66524
66525         * modules/crypto/gc: Moved from ../.
66526
66527 2007-04-02  Eric Blake  <ebb9@byu.net>
66528
66529         * lib/ldexpl.c (includes): Avoid libm.
66530
66531         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66532
66533 2007-04-02  Bruno Haible  <bruno@clisp.org>
66534
66535         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66536         on IRIX.
66537
66538 2007-04-02  Bruno Haible  <bruno@clisp.org>
66539
66540         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66541         x86 or x86_64 platforms running MacOS X.
66542         Reported by Ryan Schmidt <@ryandesign.com>.
66543
66544 2007-04-02  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66547         i386.
66548
66549 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66550
66551         * modules/crypto/arcfour: Moved from ../.
66552         * modules/crypto/arcfour-tests: Moved from ../.
66553         * modules/crypto/arctwo: Moved from ../.
66554         * modules/crypto/arctwo-tests: Moved from ../.
66555         * modules/crypto/des: Moved from ../.
66556         * modules/crypto/des-tests: Moved from ../.
66557         * modules/crypto/gc-arcfour: Moved from ../.
66558         * modules/crypto/gc-arcfour-tests: Moved from ../.
66559         * modules/crypto/gc-arctwo: Moved from ../.
66560         * modules/crypto/gc-arctwo-tests: Moved from ../.
66561         * modules/crypto/gc-des: Moved from ../.
66562         * modules/crypto/gc-des-tests: Moved from ../.
66563         * modules/crypto/gc-hmac-md5: Moved from ../.
66564         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66565         * modules/crypto/gc-hmac-sha1: Moved from ../.
66566         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66567         * modules/crypto/gc-md2: Moved from ../.
66568         * modules/crypto/gc-md2-tests: Moved from ../.
66569         * modules/crypto/gc-md4: Moved from ../.
66570         * modules/crypto/gc-md4-tests: Moved from ../.
66571         * modules/crypto/gc-md5: Moved from ../.
66572         * modules/crypto/gc-md5-tests: Moved from ../.
66573         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66574         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66575         * modules/crypto/gc-random: Moved from ../.
66576         * modules/crypto/gc-rijndael: Moved from ../.
66577         * modules/crypto/gc-rijndael-tests: Moved from ../.
66578         * modules/crypto/gc-sha1: Moved from ../.
66579         * modules/crypto/gc-sha1-tests: Moved from ../.
66580         * modules/crypto/gc-tests: Moved from ../.
66581         * modules/crypto/hmac-md5: Moved from ../.
66582         * modules/crypto/hmac-md5-tests: Moved from ../.
66583         * modules/crypto/hmac-sha1: Moved from ../.
66584         * modules/crypto/hmac-sha1-tests: Moved from ../.
66585         * modules/crypto/md2: Moved from ../.
66586         * modules/crypto/md2-tests: Moved from ../.
66587         * modules/crypto/md4: Moved from ../.
66588         * modules/crypto/md4-tests: Moved from ../.
66589         * modules/crypto/md5: Moved from ../.
66590         * modules/crypto/md5-tests: Moved from ../.
66591         * modules/crypto/memxor: Moved from ../.
66592         * modules/crypto/rijndael: Moved from ../.
66593         * modules/crypto/rijndael-tests: Moved from ../.
66594         * modules/crypto/sha1: Moved from ../.
66595
66596 2007-03-30  James Youngman  <jay@gnu.org>
66597
66598         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66599         rename() to change the ctime of a file (because ctime is unaffected
66600         by rename on jfs2 on AIX 5.1).
66601         (main): Start by doing cleanup, in case a previous run failed leaving
66602         test files behind.
66603
66604 2007-03-31  Bruno Haible  <bruno@clisp.org>
66605
66606         Support old proprietary implementations of iconv.
66607         * modules/iconv_open: New file.
66608         * lib/iconv_.h: New file.
66609         * m4/iconv_h.m4: New file.
66610         * lib/iconv_open.c: New file.
66611         * lib/iconv_open-aix.gperf: New file.
66612         * lib/iconv_open-hpux.gperf: New file.
66613         * lib/iconv_open-irix.gperf: New file.
66614         * lib/iconv_open-osf.gperf: New file.
66615         * m4/iconv_open.m4: New file.
66616         * modules/linebreak (Depends-on): Add iconv_open.
66617         * modules/striconv (Depends-on): Likewise.
66618         * modules/striconveh (Depends-on): Likewise.
66619         * modules/unicodeio (Depends-on): Likewise.
66620         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66621         (iconv_t)(-1).
66622         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66623         conversion if cd is (iconv_t)(-1).
66624         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66625         is not possible.
66626
66627 2007-03-31  Bruno Haible  <bruno@clisp.org>
66628
66629         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66630         work on Solaris either. Protect also second use of "autodetect_jp".
66631
66632 2007-03-31  Bruno Haible  <bruno@clisp.org>
66633
66634         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66635         the function is not present.
66636
66637 2007-03-31  Bruno Haible  <bruno@clisp.org>
66638
66639         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66640         the function is not present.
66641
66642 2007-03-31  Bruno Haible  <bruno@clisp.org>
66643
66644         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66645         a bug in HP-UX iconv_open().
66646
66647 2007-03-31  Bruno Haible  <bruno@clisp.org>
66648
66649         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66650         (Mathematics <math.h>): New section, add fpieee.
66651         (Input/output <stdio.h>): Add fseterr.
66652         (Mathematics <math.h>): New section, add printf-frexp.
66653         (Container data structures): Add sublist.
66654         (Core language properties): Add fpucw, inline.
66655         (Functions for greatest-width integer types <inttypes.h>): Add
66656         imaxabs, imaxdiv, inttypes.
66657         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66658         isnanl-nolibm, ldexp.
66659         (Mathematics <math.h>): New section, add printf-frexpl.
66660         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66661         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66662         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66663         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66664         (Unicode string functions): Add unistr/u*-mbtoucr.
66665         (Java): Add javacomp-script, javaexec-script.
66666         (C#): Add csharpcomp-script, csharpexec-script.
66667         (Support for building libraries and executables): Add havelib,
66668         relocatable-*.
66669         (Support for maintaining and releasing projects): Renamed from
66670         'Support for maintaining and release projects'. Add announce-gen.
66671
66672 2007-03-31  Bruno Haible  <bruno@clisp.org>
66673
66674         * README: Talk primarily about git.
66675         (git and CVS): Renamed from CVS.
66676         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66677         gnulib is available through git.
66678         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66679
66680 2007-03-30  Bruno Haible  <bruno@clisp.org>
66681
66682         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66683         * lib/poll_.h: Likewise.
66684         * lib/stat_.h: Likewise.
66685         * lib/sys_time_.h: Likewise.
66686         * lib/sysexit_.h: Likewise.
66687         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66688         * lib/stdbool_.h: Likewise.
66689         * lib/byteswap_.h: Add double-inclusion guard.
66690
66691 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66692
66693         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66694
66695 2007-03-30  Karl Berry  <karl@gnu.org>
66696
66697         * config/srclist-update: double space after USA in the license
66698         substitution, since that's how it's usually (?) written.
66699
66700 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66701
66702         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66703         reported by Bruno Haible.
66704
66705 2007-03-29  Bruno Haible  <bruno@clisp.org>
66706
66707         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66708         a bug in AIX iconv().
66709
66710 2007-03-29  Bruno Haible  <bruno@clisp.org>
66711
66712         * modules/ldexpl-tests: New file.
66713         * tests/test-ldexpl.c: New file.
66714
66715 2007-03-29  Bruno Haible  <bruno@clisp.org>
66716
66717         * lib/ldexpl.c: Include fpucw.h.
66718         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66719         multiplication.
66720         * modules/ldexpl (Depends-on): Add fpucw.
66721
66722 2007-03-29  Bruno Haible  <bruno@clisp.org>
66723
66724         * modules/ldexpl: New file.
66725         * m4/ldexpl.m4: New file.
66726         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66727         set.
66728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66729         REPLACE_LDEXPL.
66730         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66731         REPLACE_LDEXPL.
66732         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66733         gl_FUNC_LDEXPL_WORKS.
66734         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66735         * modules/mathl (Files): Remove lib/ldexpl.c.
66736         (Depends-on): Add ldexpl.
66737
66738 2007-03-29  Bruno Haible  <bruno@clisp.org>
66739
66740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66741
66742 2007-03-29  Bruno Haible  <bruno@clisp.org>
66743
66744         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66745         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66746         and possibly also HP-UX.
66747         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66748         work on AIX, IRIX, HP-UX, OSF/1.
66749         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66750         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66751         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66752         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66753         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66754         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66755
66756 2007-03-29  Bruno Haible  <bruno@clisp.org>
66757
66758         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66759
66760 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66763         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66764
66765 2007-03-29  Eric Blake  <ebb9@byu.net>
66766
66767         * lib/acl-internal.h: Remove redundant include.
66768         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66769         Cygwin when a file is locked.
66770
66771 2007-03-29  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66774         file.
66775         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66776
66777 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66780         try to remove a parent directory if the child couldn't be removed
66781         (except for the first rmdir, which could fail because the child
66782         doesn't exist).  Problem reported by Jeff Blaine in
66783         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66784
66785 2007-03-28  Bruno Haible  <bruno@clisp.org>
66786
66787         * lib/striconveh.c (utf8conv_carefully): New function.
66788         (mem_cd_iconveh_internal): Invoke it.
66789
66790 2007-03-28  Bruno Haible  <bruno@clisp.org>
66791
66792         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66793         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66794         input.
66795         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66796         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66797         unistr/u8-uctomb.
66798
66799 2007-03-28  Bruno Haible  <bruno@clisp.org>
66800
66801         * modules/unistr/u8-mbtoucr: New file.
66802         * lib/unistr/u8-mbtoucr.c: New file.
66803         * modules/unistr/u16-mbtoucr: New file.
66804         * lib/unistr/u16-mbtoucr.c: New file.
66805         * modules/unistr/u16-mbtoucr: New file.
66806         * lib/unistr/u16-mbtoucr.c: New file.
66807         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66808
66809 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66810             Bruno Haible  <bruno@clisp.org>
66811
66812         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66813         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66814         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66815
66816         * m4/stdio_h.m4: Add stubs for vasprintf too.
66817
66818         * modules/stdio: Support vasprintf in sed command.
66819
66820         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66821         vasprintf.h.  Add stdio module indicator.
66822
66823         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66824         vasprintf.h.
66825
66826         * lib/vasprintf.h: File removed.
66827
66828         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66829         * lib/vasprintf.c: Ditto.
66830         * lib/xvasprintf.c: Ditto.
66831         * tests/test-vasprintf-posix.c: Ditto.
66832         * tests/test-vasprintf.c: Ditto.
66833
66834 2007-03-27  Bruno Haible  <bruno@clisp.org>
66835
66836         Make vasnprintf multithread-safe.
66837         * lib/vasnprintf.c (decimal_point_char): New function.
66838         (VASNPRINTF): Use it.
66839         Suggested by Simon Josefsson.
66840
66841 2007-03-27  Eric Blake  <ebb9@byu.net>
66842
66843         Support sub-second birthtime on cygwin.
66844         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66845         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66846         (get_stat_birthtime): Also work with st_birthtim.
66847
66848 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66851         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66852         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66853         (get_stat_birthtime_ns): Simplify compile-time tests.
66854         (get_stat_birthtime): Change the API to look like
66855         get_stat_mtime etc., except return a negative tv_nsec on error.
66856         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66857         Don't check for "spare" fields.
66858         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66859         or for struct stat.st_birthtime, as these tests aren't used.
66860         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66861
66862 2007-03-27  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/stat-time.h: Include <sys/stat.h>.
66865
66866 2007-03-27  James Youngman  <jay@gnu.org>
66867
66868         * lib/stat-time.h (get_stat_birthtime): New function for
66869           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66870         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66871           and its variants.
66872         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66873         * modules/stat-time-test: New file.
66874         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66875
66876 2007-03-26  Bruno Haible  <bruno@clisp.org>
66877
66878         Better support of signalling NaNs.
66879         * lib/atanl.c: Include isnanl.h.
66880         (atanl): Perform test for NaN at the beginning of the function and
66881         through a call to isnanl.
66882         * lib/cosl.c: Include isnanl.h.
66883         (cosl): Perform test for NaN at the beginning of the function and
66884         through a call to isnanl.
66885         * lib/ldexpl.c: Include isnanl.h.
66886         (ldexpl): Perform test for NaN through a call to isnanl.
66887         * lib/logl.c: Include isnanl.h.
66888         (logl): Perform test for NaN at the beginning of the function and
66889         through a call to isnanl.
66890         * lib/sinl.c: Include isnanl.h.
66891         (sinl): Perform test for NaN at the beginning of the function and
66892         through a call to isnanl.
66893         * lib/sqrtl.c: Include isnanl.h.
66894         (sqrtl): Perform test for NaN at the beginning of the function and
66895         through a call to isnanl.
66896         * lib/tanl.c: Include isnanl.h.
66897         (tanl): Perform test for NaN at the beginning of the function and
66898         through a call to isnanl.
66899         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66900         * modules/mathl (Depends-on): Add isnanl.
66901
66902 2007-03-26  Eric Blake  <ebb9@byu.net>
66903
66904         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66905         regression in logic sense of previous patch.
66906
66907 2007-03-26  Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66910         unportable shell command "if ! ...".
66911         Reported by Ralf Wildenhues.
66912
66913 2007-03-25  Bruno Haible  <bruno@clisp.org>
66914
66915         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66916         <sysexits.h> file, and only add EX_CONFIG.
66917         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66918         absolute file name and whether it is sufficient. Substitute also
66919         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66920         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66921         ABSOLUTE_SYSEXITS_H into sysexits.h.
66922
66923 2007-03-25  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66926         hints is NULL.
66927
66928 2007-03-25  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66931         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66932
66933 2007-03-25  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/vasnprintf.c: Include langinfo.h.
66936         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66937         multithread-safe.
66938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66939         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66940         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66941         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66942         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66943         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66944         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66945         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66946         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66947         Reported by Simon Josefsson.
66948
66949 2007-03-25  Bruno Haible  <bruno@clisp.org>
66950
66951         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66952         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66953         * modules/vasnprintf (Depends-on): Add stdint.
66954
66955 2007-03-25  Bruno Haible  <bruno@clisp.org>
66956
66957         * modules/fpieee: New file.
66958         * m4/fpieee.m4: New file.
66959         * modules/isnan-nolibm (Depends-on): Add fpieee.
66960         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66961         * modules/isnanl (Depends-on): Add fpieee.
66962
66963 2007-03-25  Bruno Haible  <bruno@clisp.org>
66964
66965         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66966
66967 2007-03-25  Bruno Haible  <bruno@clisp.org>
66968
66969         Avoid test failures on IRIX 6.5.
66970         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66971         (main): Use it.
66972         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66973         macros.
66974         (main): Use them.
66975
66976 2007-03-25  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66979         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66980         exists but doesn't work.
66981         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66982         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66984         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66985         math.h.
66986
66987 2007-03-25  Bruno Haible  <bruno@clisp.org>
66988
66989         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66990         returns inf. Needed on IRIX 6.5.
66991
66992 2007-03-25  Bruno Haible  <bruno@clisp.org>
66993
66994         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66995         (main): Use isnanl instead of x != x idiom.
66996         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66997
66998         * tests/test-frexp.c: Include isnan.h.
66999         (main): Use isnan instead of x != x idiom.
67000         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67001
67002 2007-03-25  Bruno Haible  <bruno@clisp.org>
67003
67004         * tests/test-frexp.c (NaN): New function/macro.
67005         (main): Use it instead of 0.0 / 0.0.
67006         * tests/test-isnan.c (NaN): New function/macro.
67007         (main): Use it instead of 0.0 / 0.0.
67008         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67009         (test_function): Use it instead of 0.0 / 0.0.
67010         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67011         (test_function): Use it instead of 0.0 / 0.0.
67012         * tests/test-snprintf-posix.h (NaN): New function/macro.
67013         (test_function): Use it instead of 0.0 / 0.0.
67014         * tests/test-sprintf-posix.h (NaN): New function/macro.
67015         (test_function): Use it instead of 0.0 / 0.0.
67016         * tests/test-fprintf-posix.h (NaN): New function/macro.
67017         (test_function): Use it instead of 0.0 / 0.0.
67018         * tests/test-printf-posix.h (NaN): New function/macro.
67019         (test_function): Use it instead of 0.0 / 0.0.
67020
67021         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67022
67023 2007-03-25  Bruno Haible  <bruno@clisp.org>
67024
67025         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67026
67027 2007-03-25  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/regexec.c (merge_state_with_log): Make static.
67030
67031 2007-03-25  Bruno Haible  <bruno@clisp.org>
67032
67033         * lib/trigl.c (kernel_rem_pio2): Make static.
67034
67035 2007-03-25  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/sincosl.c (sincosl_table): Make static.
67038
67039 2007-03-25  Bruno Haible  <bruno@clisp.org>
67040
67041         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67042         if the compiler does not support C99.
67043
67044 2007-03-25  Bruno Haible  <bruno@clisp.org>
67045
67046         * modules/time (Makefile.am): Ensure all rule action lines start with a
67047         tab.
67048
67049 2007-03-24  Bruno Haible  <bruno@clisp.org>
67050
67051         * modules/tsearch-tests: New file.
67052         * tests/test-tsearch.sh: New file.
67053         * tests/test-tsearch.c: New file, mostly copied from glibc.
67054
67055         * modules/search-tests: New file.
67056         * tests/test-search.c: New file.
67057
67058         * modules/search: New file.
67059         * lib/search_.h: New file, incorporating lib/tsearch.h.
67060         * m4/search_h.m4: New file.
67061         * lib/tsearch.h: Remove file.
67062         * lib/tsearch.c: Include search.h instead of tsearch.h.
67063         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67064         HAVE_TSEARCH.
67065         * modules/tsearch (Files): Remove lib/tsearch.h.
67066         (Depends-on): Add search.
67067         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67068         (Include): Change tsearch.h into search.h.
67069
67070 2007-03-24  Bruno Haible  <bruno@clisp.org>
67071
67072         * modules/fpucw: New file.
67073         * lib/fpucw.h: New file.
67074         * lib/frexp.c: Include fpucw.h.
67075         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67076         (FUNC): Use them.
67077         * lib/printf-frexp.c: Include fpucw.h.
67078         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67079         (FUNC): Use them.
67080         * lib/vasnprintf.c: Include fpucw.h.
67081         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67082         'long double' calculations.
67083         * tests/test-frexpl.c: Include fpucw.h.
67084         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67085         * tests/test-printf-frexpl.c: Include fpucw.h.
67086         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67087         * modules/frexpl (Depends-on): Add fpucw.
67088         * modules/printf-frexpl (Depends-on): Likewise.
67089         * modules/fprintf-posix (Depends-on): Likewise.
67090         * modules/snprintf-posix (Depends-on): Likewise.
67091         * modules/sprintf-posix (Depends-on): Likewise.
67092         * modules/vasnprintf-posix (Depends-on): Likewise.
67093         * modules/vasprintf-posix (Depends-on): Likewise.
67094         * modules/vfprintf-posix (Depends-on): Likewise.
67095         * modules/vsnprintf-posix (Depends-on): Likewise.
67096         * modules/vsprintf-posix (Depends-on): Likewise.
67097         * modules/frexpl-tests (Depends-on): Likewise.
67098         * modules/printf-frexpl-tests (Depends-on): Likewise.
67099
67100 2007-03-24  Bruno Haible  <bruno@clisp.org>
67101
67102         * lib/float+.h: New file.
67103         * lib/isnan.c: Include float+.h.
67104         (SIZE): New macro.
67105         (FUNC): Compare only SIZE bytes of the value.
67106         * lib/vasnprintf.c: Include float+.h.
67107         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67108         SIZEOF_LDBL or SIZEOF_DBL bytes.
67109         * modules/isnan-nolibm (Files): Add lib/float+.h.
67110         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67111         * modules/isnanl (Files): Add lib/float+.h.
67112         * modules/vasnprintf (Files): Add lib/float+.h.
67113
67114 2007-03-24  Bruno Haible  <bruno@clisp.org>
67115
67116         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67117         include isnanl-nolibm.h.
67118
67119 2007-03-24  Bruno Haible  <bruno@clisp.org>
67120
67121         * tests/test-read-file.c (main): Don't produce spurious output for
67122         expected situations. Make the test fail if it encountered unexpected
67123         results.
67124
67125 2007-03-24  Bruno Haible  <bruno@clisp.org>
67126
67127         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67128         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67129
67130 2007-03-24  Bruno Haible  <bruno@clisp.org>
67131
67132         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67133
67134 2007-03-24  Bruno Haible  <bruno@clisp.org>
67135
67136         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67137         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67138
67139         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67140         * modules/utf8-ucs4: Turn into a symbolic link to module
67141         unistr/u8-mbtouc.
67142
67143         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67144         utf8-ucs4-unsafe.
67145         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67146         unistr/u8-mbtouc-unsafe.
67147
67148         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67149         * modules/utf16-ucs4: Turn into a symbolic link to module
67150         unistr/u16-mbtouc.
67151
67152         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67153         utf16-ucs4-unsafe.
67154         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67155         unistr/u16-mbtouc-unsafe.
67156
67157         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67158         * modules/ucs4-utf8: Turn into a symbolic link to module
67159         unistr/u8-ubtomb.
67160
67161         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67162         * modules/ucs4-utf16: Turn into a symbolic link to module
67163         unistr/u16-ubtomb.
67164
67165 2007-03-24  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67168         Enable the function only if HAVE_INLINE.
67169         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67170         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67171         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67172         Enable the function only if HAVE_INLINE.
67173         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67174         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67175         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67176         Enable the function only if HAVE_INLINE.
67177         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67178         Enable the function only if HAVE_INLINE.
67179         * modules/utf8-ucs4: Update.
67180         * modules/utf8-ucs4-unsafe: Update.
67181         * modules/utf16-ucs4: Update.
67182         * modules/utf16-ucs4-unsafe: Update.
67183         * modules/ucs4-utf8: Update.
67184         * modules/ucs4-utf16: Update.
67185
67186 2007-03-24  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/utf8-ucs4.h: Remove file.
67189         * lib/utf8-ucs4-unsafe.h: Remove file.
67190         * lib/utf16-ucs4.h: Remove file.
67191         * lib/utf16-ucs4-unsafe.h: Remove file.
67192         * lib/ucs4-utf8.h: Remove file.
67193         * lib/ucs4-utf16.h: Remove file.
67194         * lib/unistr.h: Include their previous contents.
67195         * m4/utf-ucs4.m4: Remove file.
67196         * m4/ucs4-utf.m4: Remove file.
67197         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67198         (Depends-on): Add unistr/base.
67199         (configure.ac): Remove gl_UTF_UCS4.
67200         (Makefile.am): Update.
67201         (Include): Change to unistr.h.
67202         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67203         (Depends-on): Add unistr/base.
67204         (configure.ac): Remove gl_UTF_UCS4.
67205         (Makefile.am): Update.
67206         (Include): Change to unistr.h.
67207         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67208         (Depends-on): Add unistr/base.
67209         (configure.ac): Remove gl_UTF_UCS4.
67210         (Makefile.am): Update.
67211         (Include): Change to unistr.h.
67212         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67213         (Depends-on): Add unistr/base.
67214         (configure.ac): Remove gl_UTF_UCS4.
67215         (Makefile.am): Update.
67216         (Include): Change to unistr.h.
67217         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67218         (Depends-on): Add unistr/base.
67219         (configure.ac): Remove gl_UCS4_UTF.
67220         (Makefile.am): Update.
67221         (Include): Change to unistr.h.
67222         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67223         (Depends-on): Add unistr/base.
67224         (configure.ac): Remove gl_UCS4_UTF.
67225         (Makefile.am): Update.
67226         (Include): Change to unistr.h.
67227         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67228         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67229         utf8-ucs4-unsafe.h.
67230         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67231         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67232         utf16-ucs4-unsafe.h.
67233         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67234         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67235         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67236         * lib/unistr/u8-strchr.c: Likewise.
67237         * lib/unistr/u8-strrchr.c: Likewise.
67238         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67239         * lib/unistr/u16-strchr.c: Likewise.
67240         * lib/unistr/u16-strrchr.c: Likewise.
67241         * lib/striconveh.c: Update.
67242         * lib/linebreak.c: Update.
67243
67244 2007-03-24  Bruno Haible  <bruno@clisp.org>
67245
67246         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67247         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67248
67249 2007-03-22  Bruno Haible  <bruno@clisp.org>
67250
67251         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67252
67253 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67254
67255         * MODULES.html.sh (File system functions): New module write-any-file.
67256         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67257         * m4/write-any-file.m4: New files.
67258
67259 2007-03-23  Eric Blake  <ebb9@byu.net>
67260
67261         * gnulib-tool: Rearrange space-tab sequences, since some editors
67262         like to eat them.
67263
67264 2007-03-23  Eric Blake  <ebb9@byu.net>
67265
67266         * lib/version-etc.c (version_etc_va): Update license wording to
67267         be more concise.  Recommended by Richard Stallman.
67268
67269 2007-03-22  Bruno Haible  <bruno@clisp.org>
67270
67271         * lib/poll.c (MSG_PEEK): New fallback definition.
67272
67273 2007-03-22  Bruno Haible  <bruno@clisp.org>
67274
67275         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67276         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67277         (main): Update.
67278         Fixes a compilation error on BeOS.
67279
67280 2007-03-22  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/frexpl-tests: New file.
67283         * tests/test-frexpl.c: New file.
67284
67285         * modules/frexpl: New file.
67286         * m4/frexpl.m4: New file.
67287         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67288         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67290         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67291         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67292         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67293
67294 2007-03-22  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/frexpl.c: Share code with lib/frexp.c.
67297         * modules/mathl (Files): Add lib/frexp.c.
67298         (Depends-on): Add isnanl-nolibm.
67299
67300 2007-03-22  Bruno Haible  <bruno@clisp.org>
67301
67302         * modules/printf-frexp (Files): Add m4/frexp.m4.
67303         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67304         only if the found frexp function actually works.
67305
67306 2007-03-22  Bruno Haible  <bruno@clisp.org>
67307
67308         * lib/frexp.c: Remove older implementation that uses divisions.
67309
67310 2007-03-21  Bruno Haible  <bruno@clisp.org>
67311
67312         * modules/frexp-tests: New file.
67313         * tests/test-frexp.c: New file.
67314
67315         * modules/frexp: New file.
67316         * lib/frexp.c: New file.
67317         * m4/frexp.m4: New file.
67318         * lib/math_.h (frexp): New declaration.
67319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67320         REPLACE_FREXP.
67321         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67322
67323 2007-03-21  Bruno Haible  <bruno@clisp.org>
67324
67325         * modules/isnanl-tests: New file.
67326         * tests/test-isnanl.c: New file.
67327
67328         * modules/isnanl: New file.
67329         * lib/isnanl.h: New file.
67330         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67331         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67332         gl_FUNC_ISNANL_WORKS.
67333         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67334         New macros.
67335
67336 2007-03-21  Bruno Haible  <bruno@clisp.org>
67337
67338         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67339         lib/isnanl.h.
67340         (Include): Update.
67341         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67342         * lib/vasnprintf.c: Update.
67343         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67344         tests/test-isnanl.h, remove tests/test-isnanl.c.
67345         (Makefile.am): Update.
67346         * tests/test-isnanl-nolibm.c: New file.
67347         * tests/test-isnanl.h: New file.
67348         * tests/test-isnanl.c: Remove file.
67349
67350 2007-03-21  Jim Meyering  <jim@meyering.net>
67351
67352         When trying to open ".", treat ESTALE like EACCES.
67353         * lib/savewd.c (savewd_save): Resort to forking not just upon
67354         failure with EACCES, but also when errno is ESTALE.
67355
67356 2007-03-20  Bruno Haible  <bruno@clisp.org>
67357
67358         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67359         Needed on AIX 5.1. Reported by Matthew Woehlke.
67360
67361 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67362
67363         Suggestions by Bruno Haible:
67364         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67365         our own.
67366         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67367         * modules/acl (Depends-on): Add gettext.
67368
67369 2007-03-19  Bruno Haible  <bruno@clisp.org>
67370
67371         * modules/iconvme: Remove file.
67372         * lib/iconvme.h: Remove file.
67373         * lib/iconvme.c: Remove file.
67374         * m4/iconvme.m4: Remove file.
67375
67376 2007-03-19  Bruno Haible  <bruno@clisp.org>
67377
67378         * doc/relocatable-maint.texi: Break long shell script line.
67379         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67380
67381 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67384         handle file_has_acl.
67385         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67386         * lib/acl.c: Move header inclusions and related macro defns into
67387         lib/acl-internal.h.
67388         (S_ISLNK): Remove defn, since that's now done for us.
67389         (file_has_acl): Move to lib/file-has-acl.c.
67390         Call acl_trivial if available.  This is the crucial part of the fix.
67391         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67392         shared within the library.  Rewrite a bit, partly to make it compatible
67393         with the GNU coding style.
67394         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67395         Remove unnecessary double-quotes.
67396         Don't test for acl_to_text; the build will catch that.
67397         Replace acl_entries if it doesn't exist and it is needed.
67398         Check for -lsec and acl_trivial (as used on Solaris 10).
67399         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67400         lib/file-has-acl.c.
67401         (Depends-on): Add sys_stat, for S_ISLNK.
67402
67403 2007-03-19  Ben Pfaff  <blp@gnu.org>
67404
67405         * doc/gnulib.texi: Fix typos.
67406         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67407
67408 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67409
67410         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67411         If size is zero here, buf must be zero.
67412
67413 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67414
67415         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67416         <bruno@clisp.org>.
67417
67418 2007-03-18  Bruno Haible  <bruno@clisp.org>
67419
67420         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67421         Suggested by Eric Blake.
67422
67423 2007-03-18  Ben Pfaff  <blp@gnu.org>
67424
67425         * doc/relocatable.texi: Recommend using as prefix a directory
67426         that does not exist and will never be created.  Based on
67427         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67428         and others.
67429
67430 2007-03-17  Bruno Haible  <bruno@clisp.org>
67431
67432         * lib/fchownat.c: Include lchown.h.
67433
67434 2007-03-17  Bruno Haible  <bruno@clisp.org>
67435
67436         Fix endless loop when the given allocated size was > INT_MAX.
67437         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67438         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67439         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67440         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67441         * lib/sprintf.c (sprintf): Likewise.
67442
67443 2007-03-17  Bruno Haible  <bruno@clisp.org>
67444
67445         * tests/test-argp-2.sh (func_compare): Output a context diff.
67446
67447 2007-03-17  Bruno Haible  <bruno@clisp.org>
67448
67449         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67450         locale's decimal-point character.
67451
67452 2007-03-17  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67455         before comparing it. Needed because on some platforms (e.g. x86) a
67456         'long double' occupies less bytes than sizeof (long double).
67457
67458 2007-03-17  Bruno Haible  <bruno@clisp.org>
67459
67460         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67461         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67462         * tests/test-getaddrinfo.c (simple): Likewise.
67463         * tests/test-read-file.c (main): Likewise.
67464
67465 2007-03-17  Bruno Haible  <bruno@clisp.org>
67466
67467         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67468
67469 2007-03-17  Bruno Haible  <bruno@clisp.org>
67470
67471         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67472         unused variable.
67473
67474 2007-03-17  Bruno Haible  <bruno@clisp.org>
67475
67476         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67477         * tests/test-c-strncasecmp.c: Likewise.
67478
67479 2007-03-17  Bruno Haible  <bruno@clisp.org>
67480
67481         * modules/stdlib (Depends-on): Add unistd.
67482         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67483         Needed for MacOS X 10.3.
67484
67485 2007-03-17  Bruno Haible  <bruno@clisp.org>
67486
67487         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67488
67489 2007-03-17  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67492
67493 2007-03-17  Bruno Haible  <bruno@clisp.org>
67494
67495         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67496         to reflect files copied from gnulib (with or without modifications).
67497         Suggested by Jim Meyering.
67498
67499 2007-03-17  Eric Blake  <ebb9@byu.net>
67500
67501         * NEWS: Document stdlib change from 2007-02-18.
67502
67503 2007-03-17  Jim Meyering  <jim@meyering.net>
67504
67505         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67506         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67507         someone uses a name containing shell meta-characters.
67508         Reported by Alfred M. Szmidt.
67509
67510         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67511
67512 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67513
67514         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67515         and copy gettext configuration files only if configure.ac contains
67516         a use of AM_GNU_GETTEXT_VERSION.
67517
67518 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67519
67520         * build-aux/bootstrap (gnulib_name): New variable.
67521         (gnulib_tool_options): Use it.
67522
67523 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67524
67525         * tests/test-des.c: Use new namespace.
67526
67527 2007-03-15  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67530         Reported by James Youngman <jay@gnu.org>.
67531
67532 2007-03-15  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67535         declared prototype. Needed with cc on OSF/1 5.1.
67536
67537 2007-03-15  Bruno Haible  <bruno@clisp.org>
67538
67539         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67540         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67541         (struct gl_list_implementation): Add dispose_fn argument to the
67542         'create_empty', 'create' methods.
67543         (struct gl_list_impl_base): Add field 'dispose_fn'.
67544         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67545         argument.
67546         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67547         dispose_fn argument.
67548         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67549         dispose_fn on the dropped values.
67550         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67551         dispose_fn argument.
67552         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67553         dropped values.
67554         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67555         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67556         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67557         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67558         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67559         argument.
67560         (gl_tree_list_free): Call dispose_fn on the dropped values.
67561         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67562         the dropped values.
67563         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67564         Add dispose_fn argument.
67565         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67566         Call dispose_fn on the dropped values.
67567         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67568         Add dispose_fn argument.
67569         (gl_sublist_create): Initialize the 'dispose_fn' field.
67570         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67571         * tests/test-array_list.c (main): Update.
67572         * tests/test-carray_list.c (main): Update.
67573         * tests/test-avltree_list.c (main): Update.
67574         * tests/test-rbtree_list.c (main): Update.
67575         * tests/test-avltreehash_list.c (main): Update.
67576         * tests/test-rbtreehash_list.c (main): Update.
67577         * tests/test-linked_list.c (main): Update.
67578         * tests/test-linkedhash_list.c (main): Update.
67579         * tests/test-array_oset.c (main): Update.
67580
67581 2007-03-15  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67584         (gl_oset_create_empty): Add dispose_fn argument.
67585         (struct gl_oset_implementation): Add dispose_fn argument to
67586         'create_empty' method.
67587         (struct gl_oset_impl_base): Add dispose_fn field.
67588         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67589         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67590         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67591         values.
67592         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67593         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67594         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67595         dropped value.
67596         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67597         dropped value.
67598         * tests/test-array_oset.c (main): Update.
67599         * tests/test-avltree_oset.c (main): Update.
67600         * tests/test-rbtree_oset.c (main): Update.
67601         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67602
67603 2007-03-13  Bruno Haible  <bruno@clisp.org>
67604
67605         * tests/test-stdbool.c (i): Update after last patch.
67606
67607 2007-03-12  Bruno Haible  <bruno@clisp.org>
67608
67609         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67610         the iswprint macro. Needed on Solaris 2.5.1.
67611
67612 2007-03-12  Bruno Haible  <bruno@clisp.org>
67613
67614         * tests/test-printf-frexp.c (main): Declare x as volatile.
67615
67616 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67617
67618         * doc/gnulib.texi (Build robot for gnulib): New section.
67619
67620 2007-03-12  Jim Meyering  <jim@meyering.net>
67621
67622         * build-aux/bootstrap: New file.
67623         * build-aux/bootstrap.conf: New file, from coreutils.
67624
67625 2007-03-11  Bruno Haible  <bruno@clisp.org>
67626
67627         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67628
67629 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67630
67631         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67632         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67633         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67634
67635 2007-03-11  Bruno Haible  <bruno@clisp.org>
67636
67637         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67638         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67639
67640 2007-03-11  Bruno Haible  <bruno@clisp.org>
67641
67642         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67643         formula. Needed for SunPRO C 5.0.
67644
67645 2007-03-11  Bruno Haible  <bruno@clisp.org>
67646
67647         * modules/long-options (Depends-on): Add getopt.
67648
67649 2007-03-11  Bruno Haible  <bruno@clisp.org>
67650
67651         * modules/modechange (Depends-on): Add stdbool.
67652
67653 2007-03-11  Bruno Haible  <bruno@clisp.org>
67654
67655         * modules/i-ring (Depends-on): Add stdbool.
67656
67657 2007-03-11  Bruno Haible  <bruno@clisp.org>
67658
67659         * modules/gc-des (Depends-on): Add stdbool.
67660
67661 2007-03-11  Bruno Haible  <bruno@clisp.org>
67662
67663         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67664
67665 2007-03-11  Bruno Haible  <bruno@clisp.org>
67666
67667         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67668
67669 2007-03-11  Bruno Haible  <bruno@clisp.org>
67670
67671         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67672
67673 2007-03-11  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/vasnprintf.c (sprintf): Undefine.
67676
67677 2007-03-11  Bruno Haible  <bruno@clisp.org>
67678
67679         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67680         initializers in SunPRO C and Compaq C compilers.
67681
67682 2007-03-11  Bruno Haible  <bruno@clisp.org>
67683
67684         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67685         decrementing code ANSI C compliant.
67686
67687 2007-03-11  Bruno Haible  <bruno@clisp.org>
67688
67689         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67690         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67691
67692 2007-03-11  Bruno Haible  <bruno@clisp.org>
67693
67694         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67695         <stdbool.h> substitute doesn't pass.
67696
67697 2007-03-11  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67700
67701 2007-03-11  Bruno Haible  <bruno@clisp.org>
67702
67703         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67704         script, for submission to autobuild.josefsson.org.
67705
67706 2007-03-10  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/canonicalize-lgpl-tests: New file.
67709         * tests/test-canonicalize-lgpl.sh: New file.
67710         * tests/test-canonicalize-lgpl.c: New file.
67711
67712         * modules/c-strcase-tests: New file.
67713         * tests/test-c-strcase.sh: New file.
67714         * tests/test-c-strcasecmp.c: New file.
67715         * tests/test-c-strncasecmp.c: New file.
67716
67717         * modules/atexit-tests: New file.
67718         * tests/test-atexit.sh: New file.
67719         * tests/test-atexit.c: New file.
67720
67721 2007-03-10  Bruno Haible  <bruno@clisp.org>
67722
67723         * tests/test-binary-io.sh: Use temporary filenames that are not so
67724         likely to clash with those of other tests (in a parallel make).
67725         * tests/test-binary-io.c: Likewise.
67726
67727 2007-03-10  Bruno Haible  <bruno@clisp.org>
67728
67729         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67730         fallback; use #error instead.
67731         Suggested by Simon Josefsson.
67732
67733 2007-03-10  Bruno Haible  <bruno@clisp.org>
67734
67735         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67736         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67737         first and the last.
67738
67739 2007-03-10  Bruno Haible  <bruno@clisp.org>
67740
67741         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67742
67743 2007-03-10  Bruno Haible  <bruno@clisp.org>
67744
67745         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67746         "make distcheck".
67747         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67748         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67749         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67750
67751 2007-03-10  Bruno Haible  <bruno@clisp.org>
67752
67753         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67754         variable.
67755         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67756         variable.
67757
67758 2007-03-09  Eric Blake  <ebb9@byu.net>
67759         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67760
67761         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67762         types are not being provided by gnulib.
67763         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67764         types are supported.
67765
67766 2007-03-10  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/stdio_.h (__attribute__): New macro.
67769         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67770         vsprintf): Specify __attribute__ __format__ for GCC.
67771         Suggested by Eric Blake.
67772
67773 2007-03-09  Bruno Haible  <bruno@clisp.org>
67774
67775         * modules/printf-posix-tests: New file.
67776         * tests/test-printf-posix.sh: New file.
67777         * tests/test-printf-posix.c: New file.
67778
67779         * modules/printf-posix: New file.
67780         * lib/printf.c: New file.
67781         * m4/printf-posix-rpl.m4: New file.
67782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67783         REPLACE_PRINTF.
67784         * lib/stdio_.h (printf): New declaration.
67785         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67786         ____strfmon____): New macros.
67787         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67788         REPLACE_PRINTF.
67789
67790 2007-03-09  Bruno Haible  <bruno@clisp.org>
67791
67792         * tests/test-vasnprintf-posix2.sh: New file.
67793         * tests/test-vasnprintf-posix2.c: New file.
67794         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67795         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67796         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67797
67798         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67799         a locale dependent decimal point, rather than always '.'.
67800
67801 2007-03-09  Eric Blake  <ebb9@byu.net>
67802
67803         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67804         spite of platforms like Tandem/NSK that define it to -1.
67805
67806 2007-03-08  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/vprintf-posix-tests: New file.
67809         * tests/test-vprintf-posix.sh: New file.
67810         * tests/test-vprintf-posix.c: New file.
67811         * tests/test-printf-posix.h: New file.
67812
67813         * modules/vprintf-posix: New file.
67814         * lib/vprintf.c: New file.
67815         * m4/vprintf-posix.m4: New file.
67816         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67817         REPLACE_VPRINTF.
67818         * lib/stdio_.h (vprintf): New declaration.
67819         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67820         REPLACE_VPRINTF.
67821
67822 2007-03-08  Bruno Haible  <bruno@clisp.org>
67823
67824         * modules/fprintf-posix-tests: New file.
67825         * tests/test-fprintf-posix.sh: New file.
67826         * tests/test-fprintf-posix.c: New file.
67827
67828         * modules/fprintf-posix: New file.
67829         * lib/fprintf.c: New file.
67830         * m4/fprintf-posix.m4: New file.
67831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67832         REPLACE_FPRINTF.
67833         * lib/stdio_.h (fprintf): New declaration.
67834         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67835         REPLACE_FPRINTF.
67836
67837 2007-03-08  Bruno Haible  <bruno@clisp.org>
67838
67839         * modules/vfprintf-posix-tests: New file.
67840         * tests/test-vfprintf-posix.sh: New file.
67841         * tests/test-vfprintf-posix.c: New file.
67842         * tests/test-fprintf-posix.h: New file.
67843         * tests/test-fprintf-posix.out: New file.
67844
67845         * modules/vfprintf-posix: New file.
67846         * lib/vfprintf.c: New file.
67847         * m4/vfprintf-posix.m4: New file.
67848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67849         REPLACE_VFPRINTF.
67850         * lib/stdio_.h (vfprintf): New declaration.
67851         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67852         REPLACE_VFPRINTF.
67853
67854 2007-03-08  Bruno Haible  <bruno@clisp.org>
67855
67856         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67857
67858 2007-03-08  Bruno Haible  <bruno@clisp.org>
67859
67860         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67861         instead of 'expr' invocations.
67862         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67863         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67864         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67865         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67866         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67867         Suggested by Paul Eggert.
67868
67869 2007-03-08  Bruno Haible  <bruno@clisp.org>
67870
67871         * modules/fseterr-tests: New file.
67872         * tests/test-fseterr.c: New file.
67873
67874         * modules/fseterr: New file.
67875         * lib/fseterr.h: New file.
67876         * lib/fseterr.c: New file.
67877
67878 2007-03-08  Bruno Haible  <bruno@clisp.org>
67879
67880         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67881         * lib/getopt_.h: Likewise.
67882         * lib/mbswidth.h: Likewise.
67883         * lib/setenv.h: Likewise.
67884         * lib/vasnprintf.h: Likewise.
67885         * lib/vasprintf.h: Likewise.
67886         * lib/verror.h: Likewise.
67887         * lib/xsetenv.h: Likewise.
67888         * lib/xvasprintf.h: Likewise.
67889
67890 2007-03-08  Jim Meyering  <jim@meyering.net>
67891
67892         * users.txt: Add parted.
67893
67894         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67895
67896 2007-03-07  Bruno Haible  <bruno@clisp.org>
67897
67898         * m4/printf.m4: Make the shell script snippets copy&pastable.
67899
67900 2007-03-02  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/netinet_in_.h: New file.
67903         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67904         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67905         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67906         (Depends-on): Add absolute-header.
67907         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67908         into netinet/in.h.
67909
67910 2007-03-03  Bruno Haible  <bruno@clisp.org>
67911
67912         * lib/sys_select_.h: New file.
67913         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67914         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67915         * modules/sys_select (Files): Add lib/sys_select_.h.
67916         (Depends-on): Add absolute-header.
67917         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67918         into sys/select.h.
67919
67920 2007-03-02  Bruno Haible  <bruno@clisp.org>
67921
67922         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67923         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67924         values.
67925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67926         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67927         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67928         * modules/sys_socket (Depends-on): Add absolute-header.
67929         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67930         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67931         (Include): Remove requirement of inclusion of <sys/types.h>.
67932
67933 2007-03-02  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/byteswap_.h (bswap_32): Fix formula.
67936
67937 2007-03-06  Bruno Haible  <bruno@clisp.org>
67938
67939         * modules/sprintf-posix-tests: New file.
67940         * tests/test-sprintf-posix.c: New file.
67941
67942         * modules/sprintf-posix: New file.
67943         * lib/sprintf.c: New file.
67944         * m4/sprintf-posix.m4: New file.
67945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67946         REPLACE_SPRINTF.
67947         * lib/stdio_.h (sprintf): New declaration.
67948         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67949         REPLACE_SPRINTF.
67950
67951 2007-03-06  Bruno Haible  <bruno@clisp.org>
67952
67953         * modules/vsprintf-posix-tests: New file.
67954         * tests/test-vsprintf-posix.c: New file.
67955         * tests/test-sprintf-posix.h: New file.
67956
67957         * modules/vsprintf-posix: New file.
67958         * lib/vsprintf.c: New file.
67959         * m4/vsprintf-posix.m4: New file.
67960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67961         REPLACE_VSPRINTF.
67962         * lib/stdio_.h (vsprintf): New declaration.
67963         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67964         REPLACE_VSPRINTF.
67965
67966 2007-03-06  Bruno Haible  <bruno@clisp.org>
67967
67968         * modules/vsnprintf (Depend-on): Remove minmax.
67969
67970 2007-03-06  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/snprintf-posix-tests: New file.
67973         * tests/test-snprintf-posix.c: New file.
67974
67975         * modules/snprintf-posix: New file.
67976         * m4/snprintf-posix.m4: New file.
67977         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67978         gl_FUNC_SNPRINTF.
67979         (gl_FUNC_SNPRINTF): Invoke it.
67980         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67981         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67982         is set.
67983         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67984
67985 2007-03-06  Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/vsnprintf-posix-tests: New file.
67988         * tests/test-vsnprintf-posix.c: New file.
67989         * tests/test-snprintf-posix.h: New file.
67990
67991         * modules/vsnprintf-posix: New file.
67992         * m4/vsnprintf-posix.m4: New file.
67993         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67994         gl_FUNC_VSNPRINTF.
67995         (gl_FUNC_VSNPRINTF): Invoke it.
67996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67997         * lib/stdio_.h (vsnprintf): Define as a replacement if
67998         REPLACE_VSNPRINTF is set.
67999         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68000
68001 2007-03-06  Bruno Haible  <bruno@clisp.org>
68002
68003         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68005
68006 2007-03-06  Bruno Haible  <bruno@clisp.org>
68007
68008         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68009         (asinl): Declare also if HAVE_DECL_ASINL is set.
68010         (atanl): Declare also if HAVE_DECL_ATANL is set.
68011         (ceill): Declare also if HAVE_DECL_CEILL is set.
68012         (cosl): Declare also if HAVE_DECL_COSL is set.
68013         (expl): Declare also if HAVE_DECL_EXPL is set.
68014         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68015         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68016         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68017         (logl): Declare also if HAVE_DECL_LOGL is set.
68018         (sinl): Declare also if HAVE_DECL_SINL is set.
68019         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68020         (tanl): Declare also if HAVE_DECL_TANL is set.
68021         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68023         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68024         declaration of frexpl, ldexpl.
68025         * modules/printf-frexpl (Depends-on): Add math.
68026         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68027
68028 2007-03-05  Bruno Haible  <bruno@clisp.org>
68029
68030         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68031         frexpl and ldexpl are declared.
68032         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68033
68034 2007-03-05  Bruno Haible  <bruno@clisp.org>
68035
68036         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68037         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68038
68039 2007-03-05  Bruno Haible  <bruno@clisp.org>
68040
68041         * lib/stdio_.h: Include <stddef.h>.
68042
68043 2007-03-05  Bruno Haible  <bruno@clisp.org>
68044
68045         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68046
68047 2007-03-05  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68050         NetBSD 4, from Ralf Wildenhues.
68051
68052 2007-03-04  Bruno Haible  <bruno@clisp.org>
68053
68054         * lib/vasprintf.h: Update #if logic for the case when the functions
68055         exist but are overridden.
68056
68057 2007-03-04  Bruno Haible  <bruno@clisp.org>
68058
68059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68060         implementations: glibc-2.4 and MacOS X 10.3.
68061         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68062         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68063         * tests/test-vasprintf-posix.c (test_function): Likewise.
68064
68065 2007-03-04  Bruno Haible  <bruno@clisp.org>
68066
68067         * modules/vasprintf-posix-tests: New file.
68068         * tests/test-vasprintf-posix.c: New file.
68069
68070         * modules/vasprintf-posix: New file.
68071         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68072         defined.
68073         * m4/vasprintf-posix.m4: New file.
68074         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68075         gl_FUNC_VASPRINTF.
68076         (gl_FUNC_VASPRINTF): Invoke it.
68077         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68078         here.
68079         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68080
68081 2007-03-04  Bruno Haible  <bruno@clisp.org>
68082
68083         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68084         REPLACE_GETTIMEOFDAY.
68085         * modules/sys_time (Makefile.am): Likewise.
68086         * m4/sys_time_h.m4: Likewise.
68087         * m4/gettimeofday.m4: Likewise.
68088
68089 2007-03-04  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/vasnprintf-posix-tests: New file.
68092         * tests/test-vasnprintf-posix.c: New file.
68093
68094         * modules/vasnprintf-posix: New file.
68095         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68096         printf-frexpl.h.
68097         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68098         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68099         REPLACE_VASNPRINTF is defined.
68100         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68101         gl_FUNC_VASNPRINTF.
68102         (gl_FUNC_VASNPRINTF): Invoke it.
68103         * m4/vasnprintf-posix.m4: New file.
68104         * m4/printf.m4: New file.
68105
68106 2007-03-04  Bruno Haible  <bruno@clisp.org>
68107
68108         Compile progreloc.c only if --enable-relocatable is specified.
68109         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68110         if --enable-relocatable was specified.
68111         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68112         lib_SOURCES.
68113
68114 2007-03-04  Jim Meyering  <jim@meyering.net>
68115
68116         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68117         Use it consistently, rather than enumerating errno constants.
68118
68119 2007-03-04  Bruno Haible  <bruno@clisp.org>
68120
68121         * modules/xvasprintf-tests: New file.
68122         * tests/test-xvasprintf.c: New file.
68123
68124         * modules/vasprintf-tests: New file.
68125         * tests/test-vasprintf.c: New file.
68126
68127         * modules/vasnprintf-tests: New file.
68128         * tests/test-vasnprintf.c: New file.
68129
68130         * modules/vsnprintf-tests: New file.
68131         * tests/test-vsnprintf.c: New file.
68132
68133         * modules/snprintf-tests: New file.
68134         * tests/test-snprintf.c: New file.
68135
68136 2007-03-04  Bruno Haible  <bruno@clisp.org>
68137
68138         Compile relocatable.c only if --enable-relocatable is specified.
68139         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68140         gl_RELOCATABLE_LIBRARY.
68141         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68142         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68143         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68144         gl_RELOCATABLE_LIBRARY.
68145         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68146         (Makefile.am): Remove lib_SOURCES.
68147         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68148         gl_RELOCATABLE_LIBRARY.
68149         (Makefile.am): Remove lib_SOURCES.
68150         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68151         always.
68152         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68153         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68154
68155 2007-03-04  Bruno Haible  <bruno@clisp.org>
68156
68157         * modules/argmatch-tests: New file.
68158         * tests/test-argmatch.c: New file.
68159
68160         * tests/test-allocsa.c (main): Halve the number of loop runs.
68161
68162         * modules/alloca-opt-tests: New file.
68163         * tests/test-alloca-opt.c: New file.
68164
68165 2007-03-04  Jim Meyering  <jim@meyering.net>
68166
68167         Work around difference between Linux ACLs and Solaris 10 ZFS.
68168         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68169         for EINVAL.
68170
68171 2007-03-03  Bruno Haible  <bruno@clisp.org>
68172
68173         * modules/relocatable-prog (Depends-on): Add back progreloc's
68174         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68175
68176 2007-03-03  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68179         * modules/relocatable-lib: New file.
68180
68181 2007-03-03  Bruno Haible  <bruno@clisp.org>
68182
68183         * modules/relocatable-prog: Renamed from modules/relocatable.
68184         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68185
68186 2007-03-03  Bruno Haible  <bruno@clisp.org>
68187
68188         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68189         m4/relocatable-lib.m4.
68190         (Depends-on): Remove 'relocatable'.
68191         (configure.ac): Add gl_RELOCATABLE_NOP.
68192
68193 2007-03-03  Bruno Haible  <bruno@clisp.org>
68194
68195         * modules/relocatable-prog-wrapper: New file.
68196         * modules/relocatable (Depends-on): Add it. Remove all other
68197         dependencies except progname.
68198         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68199
68200         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68201         (gl_FUNC_STRERROR): Nop.
68202         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68203
68204         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68205         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68206
68207         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68208         (gl_FUNC_READLINK): Update.
68209
68210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68211
68212 2007-03-03  Bruno Haible  <bruno@clisp.org>
68213
68214         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68215         * modules/xreadlink (Depends-on): Add unistd.
68216         * modules/xreadlink-with-size (Depends-on): Likewise.
68217
68218 2007-03-03  Bruno Haible  <bruno@clisp.org>
68219
68220         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68221         extracted from gt_FUNC_SETENV.
68222         (gt_FUNC_SETENV): Remove macro.
68223         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68224         remove gt_FUNC_SETENV.
68225
68226 2007-03-03  Bruno Haible  <bruno@clisp.org>
68227
68228         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68229         ENABLE_RELOCATABLE here.
68230         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68231
68232 2007-03-03  Bruno Haible  <bruno@clisp.org>
68233
68234         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68235         * tests/test-rbtreehash_list.c: Include progname.h.
68236         (main): Call set_program_name.
68237
68238         * modules/rbtree-oset-tests (Depends-on): Add progname.
68239         * tests/test-rbtree_oset.c: Include progname.h.
68240         (main): Call set_program_name.
68241
68242         * modules/rbtree-list-tests (Depends-on): Add progname.
68243         * tests/test-rbtree_list.c: Include progname.h.
68244         (main): Call set_program_name.
68245
68246         * modules/linked-list-tests (Depends-on): Add progname.
68247         * tests/test-linked_list.c: Include progname.h.
68248         (main): Call set_program_name.
68249
68250 2007-03-03  Bruno Haible  <bruno@clisp.org>
68251
68252         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68253         All uses of __restrict changed to _Restrict_.
68254         * lib/glob_.h (__restrict): Remove macro.
68255
68256 2007-03-02  Bruno Haible  <bruno@clisp.org>
68257
68258         * modules/gettext (configure.ac): Require gettext infrastructure
68259         from version 0.16.1.
68260
68261 2007-03-02  Bruno Haible  <bruno@clisp.org>
68262
68263         * modules/linkedhash-list-tests (Depends-on): Add progname.
68264         * tests/test-linkedhash_list.c: Include progname.h.
68265         (main): Call set_program_name.
68266
68267         * modules/carray-list-tests (Depends-on): Add progname.
68268         * tests/test-carray_list.c: Include progname.h.
68269         (main): Call set_program_name.
68270
68271         * modules/avltreehash-list-tests (Depends-on): Add progname.
68272         * tests/test-avltreehash_list.c: Include progname.h.
68273         (main): Call set_program_name.
68274
68275         * modules/avltree-oset-tests (Depends-on): Add progname.
68276         * tests/test-avltree_oset.c: Include progname.h.
68277         (main): Call set_program_name.
68278
68279         * modules/avltree-list-tests (Depends-on): Add progname.
68280         * tests/test-avltree_list.c: Include progname.h.
68281         (main): Call set_program_name.
68282
68283         * modules/array-oset-tests (Depends-on): Add progname.
68284         * tests/test-array_oset.c: Include progname.h.
68285         (main): Call set_program_name.
68286
68287         * modules/array-list-tests (Depends-on): Add progname.
68288         * tests/test-array_list.c: Include progname.h.
68289         (main): Call set_program_name.
68290
68291         * modules/argp-tests (Depends-on): Add progname.
68292         * tests/test-argp.c: Include argp.h first. Include progname.h.
68293         (main): Call set_program_name.
68294
68295 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68296
68297         * doc/gnulib-tool.texi (Initial import): Reword description of
68298         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68299         limited effect even if defined after the first system include.
68300
68301 2007-03-01  Bruno Haible  <bruno@clisp.org>
68302
68303         * build-aux/config.libpath: Update to libtool-1.5.22.
68304         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68305
68306 2007-03-01  Bruno Haible  <bruno@clisp.org>
68307
68308         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68309         foo_CFLAGS.
68310         Reported by Ralf Wildenhues.
68311
68312 2007-03-01  Bruno Haible  <bruno@clisp.org>
68313
68314         * build-aux/install-reloc: Remove object files left over by some
68315         compilers.
68316         Reported by Ralf Wildenhues.
68317
68318 2007-03-01  Bruno Haible  <bruno@clisp.org>
68319
68320         * build-aux/install-reloc: Break long lines.
68321
68322 2007-03-01  Bruno Haible  <bruno@clisp.org>
68323
68324         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68325         Reported by Ralf Wildenhues.
68326
68327 2007-03-01  Bruno Haible  <bruno@clisp.org>
68328
68329         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68330         include ordering constraints.
68331
68332 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68333
68334         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68336         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68337         as another example.
68338         * lib/time_.h: Fix misspelling.
68339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68340         Require gl_HEADER_TIME_H_DEFAULTS.
68341         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68342         * m4/time_r.m4 (gl_TIME_R): Likewise.
68343         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68344
68345 2007-03-01  Bruno Haible  <bruno@clisp.org>
68346
68347         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68348         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68349
68350 2007-03-01  Jim Meyering  <jim@meyering.net>
68351
68352         * modules/xreadlink (Maintainer): Add my name.
68353         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68354
68355 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68356             Bruno Haible  <bruno@clisp.org>
68357
68358         * build-aux/install-reloc: Compile also c-ctype.c.
68359         * build-aux/relocatable.sh.in: New file.
68360         * doc/relocatable.texi: New file.
68361         * doc/relocatable-maint.texi: New file.
68362         * doc/gnulib.texi: Include relocatable-maint.texi.
68363         * lib/progreloc.c: Include unistd.h unconditionally.
68364         * lib/relocwrapper.c: Include unistd.h unconditionally.
68365         Include c-ctype.h.
68366         (add_dotbin): Use c_tolower.
68367         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68368         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68369         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68370         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68371         to m4/relocatable-lib.m4.
68372         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68373         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68374         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68375         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68376         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68377         * modules/relocatable: New file.
68378         * modules/relocatable-lib: New file.
68379         * modules/relocatable-script: New file.
68380
68381 2007-02-28  Bruno Haible  <bruno@clisp.org>
68382
68383         Import --enable-relocatable infrastructure.
68384         * build-aux/config.libpath: New file, from GNU gettext.
68385         * build-aux/install-reloc: New file, from GNU gettext.
68386         * build-aux/reloc-ldflags: New file, from GNU gettext.
68387         * lib/relocatable.h: New file, from GNU gettext.
68388         * lib/relocatable.c: New file, from GNU gettext.
68389         * lib/relocwrapper.c: New file, from GNU gettext.
68390         * m4/relocatable.m4: New file, from GNU gettext.
68391
68392 2007-02-28  Bruno Haible  <bruno@clisp.org>
68393
68394         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68395
68396         * modules/xreadlink: New file, from GNU gettext with modifications.
68397         * lib/xreadlink.c: New file, from GNU gettext.
68398         * lib/xreadlink.h: Add comments.
68399         (xreadlink): New declaration.
68400
68401         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68402         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68403         lib/xreadlink-with-size.c.
68404         (configure.ac): Remove gl_XREADLINK invocation.
68405         (Makefile.am): Augment lib_SOURCES.
68406         * m4/xreadlink.m4: Remove file.
68407         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68408         (xreadlink_with_size): Renamed from xreadink.
68409         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68410         * modules/canonicalize (Depends-on): Replace xreadlink with
68411         xreadlink-with-size.
68412         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68413
68414 2007-02-25  Jim Meyering  <jim@meyering.net>
68415
68416         * build-aux/announce-gen: When complaining about excess arguments,
68417         list them.
68418
68419 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * README: Document signed integer overflow situation more
68422         accurately.
68423
68424 2007-02-25  Bruno Haible  <bruno@clisp.org>
68425
68426         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68427         'a' or 'A' conversion.
68428
68429 2007-02-25  Bruno Haible  <bruno@clisp.org>
68430
68431         * modules/filename: Renamed from modules/pathname.
68432         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68433         lib/concatpath.c with lib/concat-filename.c.
68434         (Makefile.am): Update.
68435         (Include): Replace pathname.h with filename.h.
68436         * lib/filename.h: Renamed from lib/pathname.h.
68437         (concatenated_filename): Renamed from concatenated_pathname.
68438         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68439         (concatenated_filename): Renamed from concatenated_pathname.
68440         * lib/findprog.c: Include filename.h instead of pathname.h.
68441         (find_in_path): Update.
68442         * lib/javacomp.c: Include filename.h instead of pathname.h.
68443         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68444         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68445         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68446         is_oldgcj_14_13_usable, is_javac_usable): Update.
68447         * lib/javaexec.c: Include filename.h instead of pathname.h.
68448         (execute_java_class): Update.
68449         * modules/findprog: Update.
68450         * modules/javacomp: Update.
68451         * modules/javaexec: Update.
68452         * MODULES.html.sh (File system functions): Add 'filename', remove
68453         'pathname'.
68454
68455 2007-02-25  Bruno Haible  <bruno@clisp.org>
68456
68457         * modules/printf-frexpl-tests: New file.
68458         * tests/test-printf-frexpl.c: New file.
68459
68460         * modules/printf-frexpl: New file.
68461         * lib/printf-frexpl.h: New file.
68462         * lib/printf-frexpl.c: New file.
68463         * m4/printf-frexpl.m4: New file.
68464
68465 2007-02-25  Bruno Haible  <bruno@clisp.org>
68466
68467         * modules/printf-frexp-tests: New file.
68468         * tests/test-printf-frexp.c: New file.
68469
68470         * modules/printf-frexp: New file.
68471         * lib/printf-frexp.h: New file.
68472         * lib/printf-frexp.c: New file.
68473         * m4/printf-frexp.m4: New file.
68474
68475 2007-02-25  Bruno Haible  <bruno@clisp.org>
68476
68477         Assume automake >= 1.10 for the tests.
68478         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68479         * modules/arctwo-tests: Likewise.
68480         * modules/argp-tests: Likewise.
68481         * modules/avltree-list-tests: Likewise.
68482         * modules/avltree-oset-tests: Likewise.
68483         * modules/avltreehash-list-tests: Likewise.
68484         * modules/carray-list-tests: Likewise.
68485         * modules/crc-tests: Likewise.
68486         * modules/des-tests: Likewise.
68487         * modules/gc-arcfour-tests: Likewise.
68488         * modules/gc-arctwo-tests: Likewise.
68489         * modules/gc-des-tests: Likewise.
68490         * modules/gc-hmac-md5-tests: Likewise.
68491         * modules/gc-hmac-sha1-tests: Likewise.
68492         * modules/gc-md2-tests: Likewise.
68493         * modules/gc-md4-tests: Likewise.
68494         * modules/gc-md5-tests: Likewise.
68495         * modules/gc-pbkdf2-sha1-tests: Likewise.
68496         * modules/gc-rijndael-tests: Likewise.
68497         * modules/gc-sha1-tests: Likewise.
68498         * modules/gc-tests: Likewise.
68499         * modules/getaddrinfo-tests: Likewise.
68500         * modules/hmac-md5-tests: Likewise.
68501         * modules/hmac-sha1-tests: Likewise.
68502         * modules/linked-list-tests: Likewise.
68503         * modules/linkedhash-list-tests: Likewise.
68504         * modules/lock-tests: Likewise.
68505         * modules/md2-tests: Likewise.
68506         * modules/md4-tests: Likewise.
68507         * modules/md5-tests: Likewise.
68508         * modules/rbtree-list-tests: Likewise.
68509         * modules/rbtree-oset-tests: Likewise.
68510         * modules/rbtreehash-list-tests: Likewise.
68511         * modules/read-file-tests: Likewise.
68512         * modules/rijndael-tests: Likewise.
68513         * modules/stdint-tests: Likewise.
68514         * modules/tls-tests: Likewise.
68515
68516 2007-02-24  Bruno Haible  <bruno@clisp.org>
68517
68518         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68519         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68520         function; instead check whether isnan with a double argument links.
68521         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68522         function; instead check whether isnan with a 'long double' argument
68523         links.
68524         Reported by Eric Blake <ebb9@byu.net>.
68525
68526 2007-02-24  Bruno Haible  <bruno@clisp.org>
68527
68528         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68529         defined.
68530         * lib/isnanl.c: Remove all code. Just include isnan.c.
68531         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68532
68533 2007-02-25  Jim Meyering  <jim@meyering.net>
68534
68535         Avoid conflicting types for 'unsetenv' on FreeBSD.
68536         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68537         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68538         in stdlib.h.
68539
68540 2007-02-24  Bruno Haible  <bruno@clisp.org>
68541
68542         * modules/isnanl-nolibm-tests: New file.
68543         * tests/test-isnanl.c: New file.
68544
68545         * modules/isnanl-nolibm: New file.
68546         * lib/isnanl.h: New file.
68547         * lib/isnanl.c: New file.
68548         * m4/isnanl.m4: New file.
68549
68550 2007-02-24  Bruno Haible  <bruno@clisp.org>
68551
68552         * modules/isnan-nolibm-tests: New file.
68553         * tests/test-isnan.c: New file.
68554
68555         * modules/isnan-nolibm: New file.
68556         * lib/isnan.h: New file.
68557         * lib/isnan.c: New file.
68558         * m4/isnan.m4: New file.
68559
68560 2007-02-24  Bruno Haible  <bruno@clisp.org>
68561
68562         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68563         assume that an exponent fits in 20 bits.
68564
68565 2007-02-24  Jim Meyering  <jim@meyering.net>
68566
68567         * m4/regex.m4: Update the description of the configure-time option,
68568         --without-included-regex, to state accurately what the defaults are,
68569         and perhaps to give people an idea why using this option is risky.
68570
68571 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68574         loops on small arguments.  This attempts to avoid the problem
68575         Bruno Haible reported for AIX 4.3.2 in
68576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68577
68578 2007-02-23  Bruno Haible  <bruno@clisp.org>
68579
68580         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68581         Needed for help2man.
68582
68583 2007-02-23  Karl Berry  <karl@gnu.org>
68584
68585         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68586         exists, foo.h should be cvs-ignored, not committed.
68587
68588 2007-02-23  Eric Blake  <ebb9@byu.net>
68589
68590         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68591         * lib/stat-time.h (includes): Likewise.
68592         * lib/utimecmp.c (includes): Likewise.
68593         * lib/utimens.h (includes): Likewise.
68594         * lib/getdate.y (includes): Also include "timespec.h" for use
68595         internal to the module.
68596         * modules/utimens (Depends-on): Revert yesterday's patch.
68597         * modules/nanosleep (Depends-on): Add missing dependency.
68598
68599 2007-02-22  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/glob.c: Don't include getlogin_r.h.
68602
68603 2007-02-22  Jim Meyering  <jim@meyering.net>
68604
68605         * modules/utimens (Depends-on): Add timespec, required for
68606         utimens.h's inclusion of timespec.h.
68607
68608 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68609
68610         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68611         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68612         Schwab in
68613         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68614         I'll try to think of a better way to fix the Solaris problem.
68615
68616         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68617         like glibc; on Solaris 10, it fails with errno == EINVAL.
68618         POSIX says the behavior is unspecified if the first argument is NULL,
68619         so play it safe and never pass NULL to the system getcwd.
68620
68621 2007-02-21  Jim Meyering  <jim@meyering.net>
68622
68623         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68624         of gettimeofday.  It would conflict with the one now always
68625         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68626         an IRIX 6.5 build failure.
68627
68628 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68629
68630         Minor fixups to port to Solaris 10 with Sun C 5.8.
68631         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68632         * modules/getcwd (Depends-on): Add dirfd.
68633         * lib/putenv.c (putenv): #undef it.
68634         (rpl_putenv): New decl.
68635         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68636
68637 2007-02-20  Bruno Haible  <bruno@clisp.org>
68638
68639         * modules/stdio-tests: New file.
68640         * tests/test-stdio.c: New file.
68641
68642         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68643         (Depends-on): Add stdio.
68644         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68645         (Include): Use <stdio.h> instead of vsnprintf.h.
68646         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68647         HAVE_DECL_VSNPRINTF.
68648         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68649
68650         * modules/snprintf (Files): Remove lib/snprintf.h.
68651         (Depends-on): Add stdio.
68652         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68653         (Include): Use <stdio.h> instead of snprintf.h.
68654         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68655         HAVE_DECL_SNPRINTF.
68656         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68657         * lib/getaddrinfo.c: Likewise.
68658
68659         * modules/stdio: New file.
68660         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68661         * lib/snprintf.h: Remove file.
68662         * lib/vsnprintf.h: Remove file.
68663         * lib/.cppi-disable: Remove snprintf.h.
68664         * m4/stdio_h.m4: New file.
68665         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68666
68667 2007-02-20  Jim Meyering  <jim@meyering.net>
68668
68669         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68670         used by e.g., mingw.  From Bruno Haible.
68671
68672 2007-02-19  Bruno Haible  <bruno@clisp.org>
68673
68674         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68675         warnings.
68676         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68677
68678 2007-02-19  Bruno Haible  <bruno@clisp.org>
68679
68680         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68681         from mingw users.
68682
68683 2007-02-19  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68686         warnings.
68687         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68688
68689 2007-02-19  Jim Meyering  <jim@meyering.net>
68690
68691         Don't use FD after a successful "fdopendir (fd)".
68692         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68693         Reset it by calling dirfd on the just-obtained DIR*.
68694
68695         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68696         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68697
68698 2007-02-18  Bruno Haible  <bruno@clisp.org>
68699
68700         * lib/readlink.c: Include <unistd.h>.
68701         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68702         HAVE_READLINK.
68703         * modules/readlink (Depends-on): Add unistd.
68704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68705         (Include): Add <unistd.h>.
68706
68707         * lib/getlogin_r.h: Remove file.
68708         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68709         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68710         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68711         HAVE_DECL_GETLOGIN_R.
68712         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68713         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68714         (Include): Use <unistd.h> instead of getlogin_r.h.
68715
68716         * lib/getcwd.h: Remove file.
68717         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68718         * lib/xgetcwd.c: Likewise.
68719         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68720         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68721         * modules/getcwd (Files): Remove lib/getcwd.h.
68722         (Depends-on): Add unistd.
68723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68724         (Include): Use <unistd.h> instad of getcwd.h.
68725
68726         * lib/ftruncate.c: Include <unistd.h> first.
68727         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68728         Set HAVE_FTRUNCATE.
68729         * modules/ftruncate (Depends-on): Add unistd.
68730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68731
68732         * lib/fchdir.c: Include <unistd.h> first.
68733         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68735         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68736         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68737         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68738
68739         * lib/dup2.c: Include <unistd.h> first.
68740         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68741         HAVE_DUP2.
68742         * modules/dup2 (Depends-on): Add unistd.
68743         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68744
68745         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68746         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68747         REPLACE_CHOWN. Don't define chown as a macro here.
68748         * modules/chown (Depends-on): Add unistd.
68749         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68750
68751         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68752         Add definition for GL_LINK_WARNING.
68753         (chown, dup2): New declarations.
68754         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68755         link warning.
68756         (ftruncate): New declaration.
68757         (getcwd): New declaration, taken from old getcwd.h.
68758         (getlogin_r): New declaration, taken from old getlogin_r.h.
68759         (readlink): New declaration.
68760         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68761         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68762         (gl_PREREQ_UNISTD): Remove macro.
68763         (gl_UNISTD_MODULE_INDICATOR): New macro.
68764         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68765         many new variables. Don't set UNISTD_H.
68766         * modules/unistd (Description): Change.
68767         (Depends-on): Add link-warning.
68768         (configure.ac): Update.
68769         (Makefile.am): Create unistd.h always. Substitute many new variables
68770         into it.
68771
68772 2007-02-18  Bruno Haible  <bruno@clisp.org>
68773
68774         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68775         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68776         HAVE_GETSUBOPT.
68777         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68778         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68779         * lib/getsubopt.h: Remove file.
68780         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68781         (Depends-on): Add stdlib.
68782         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68783         (Includes): Use <stdlib.h> instead of getsubopt.h.
68784         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68785         Set HAVE_GETSUBOPT.
68786         * lib/getsubopt.c: Don't include getsubopt.h.
68787
68788 2007-02-18  Bruno Haible  <bruno@clisp.org>
68789
68790         * modules/fchdir (Depends-on): Add dup2.
68791
68792 2007-02-18  Bruno Haible  <bruno@clisp.org>
68793
68794         * lib/stdlib_.h: Handle glibc's special invocation convention
68795         specially.
68796
68797 2007-02-18  Bruno Haible  <bruno@clisp.org>
68798
68799         * modules/stdlib-tests: New file.
68800         * tests/test-stdlib.c: New file.
68801
68802         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68803         (Depends-on): Add stdlib.
68804         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68805         (Includes): Use <stdlib.h> instead of mkstemp.h.
68806         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68807         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68808         * lib/mkstemp.c: Don't include mkstemp.h.
68809         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68810         * lib/stdlib--.h: Don't include mkstemp.h.
68811
68812         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68813         (Depends-on): Add stdlib.
68814         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68815         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68816         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68817         HAVE_MKDTEMP.
68818         * lib/mkdtemp.c: Don't include mkdtemp.h.
68819         * lib/clean-temp.c: Don't include mkdtemp.h.
68820
68821         * modules/exit (Files): Remove lib/exit.h.
68822         (Depends-on): Add stdlib.
68823         (Makefile.am): Remove lib_SOURCES.
68824         (Include): Use <stdlib.h> instead of exit.h.
68825         * lib/argmatch.c: Don't include exit.h.
68826         * lib/execute.c: Likewise.
68827         * lib/pagealign_alloc.c: Likewise.
68828         * lib/pipe.c: Likewise.
68829         * lib/wait-process.c: Likewise.
68830         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68831         * lib/exitfail.c: Likewise.
68832         * lib/savewd.c: Likewise.
68833         * lib/xsetenv.c: Likewise.
68834
68835         * modules/stdlib: New file.
68836         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68837         and extra comments about mkstemp().
68838         * lib/exit.h: Remove file.
68839         * lib/mkdtemp.h: Remove file.
68840         * lib/mkstemp.h: Remove file.
68841         * m4/stdlib_h.m4: New file.
68842         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68843
68844 2007-02-18  Bruno Haible  <bruno@clisp.org>
68845
68846         * modules/math-tests: New file.
68847         * tests/test-math.c: New file.
68848
68849         * modules/math: New file.
68850         * modules/mathl (Files): Remove lib/mathl.h.
68851         (Depends-on): Add math.
68852         (Makefile.am): Don't mention mathl.h.
68853         (Include): Use <math.h> instead of mathl.h.
68854         * lib/math_.h: New file.
68855         * lib/mathl.h: Remove file.
68856         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68857         mathl.h.
68858         * lib/asinl.c: Likewise.
68859         * lib/atanl.c: Likewise.
68860         * lib/ceill.c: Likewise.
68861         * lib/cosl.c: Likewise.
68862         * lib/expl.c: Likewise.
68863         * lib/floorl.c: Likewise.
68864         * lib/frexpl.c: Likewise.
68865         * lib/ldexpl.c: Likewise.
68866         * lib/logl.c: Likewise.
68867         * lib/sincosl.c: Likewise.
68868         * lib/sinl.c: Likewise.
68869         * lib/sqrtl.c: Likewise.
68870         * lib/tanl.c: Likewise.
68871         * lib/trigl.c: Likewise.
68872         * m4/math_h.m4: New file.
68873         * MODULES.html.sh (Mathematics): Add math.
68874
68875 2007-02-17  Bruno Haible  <bruno@clisp.org>
68876
68877         * modules/wctype-tests: New file.
68878         * tests/test-wctype.c: New file.
68879
68880         * modules/wchar-tests: New file.
68881         * tests/test-wchar.c: New file.
68882
68883         * modules/unistd-tests: New file.
68884         * tests/test-unistd.c: New file.
68885
68886         * modules/time-tests: New file.
68887         * tests/test-time.c: New file.
68888
68889         * modules/sysexits-tests: New file.
68890         * tests/test-sysexits.c: New file.
68891
68892         * modules/sys_time-tests: New file.
68893         * tests/test-sys_time.c: New file.
68894
68895         * modules/sys_stat-tests: New file.
68896         * tests/test-sys_stat.c: New file.
68897
68898         * modules/sys_socket-tests: New file.
68899         * tests/test-sys_socket.c: New file.
68900
68901         * modules/sys_select-tests: New file.
68902         * tests/test-sys_select.c: New file.
68903
68904         * modules/string-tests: New file.
68905         * tests/test-string.c: New file.
68906
68907         * modules/stdbool-tests: New file.
68908         * tests/test-stdbool.c: New file.
68909
68910         * modules/netinet_in-tests: New file.
68911         * tests/test-netinet_in.c: New file.
68912
68913         * modules/inttypes-tests: New file.
68914         * tests/test-inttypes.c: New file.
68915
68916         * modules/fcntl-tests: New file.
68917         * tests/test-fcntl.c: New file.
68918
68919         * modules/byteswap-tests: New file.
68920         * tests/test-byteswap.c: New file.
68921
68922         * modules/arpa_inet-tests: New file.
68923         * tests/test-arpa_inet.c: New file.
68924
68925 2007-02-17  Bruno Haible  <bruno@clisp.org>
68926
68927         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68928         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68929         if the corresponding module is not enabled. Emit link warnings if
68930         the function is used nevertheless.
68931         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68932         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68933         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68934         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68935         * modules/inttypes (Depends-on): Add link-warning.
68936         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68937         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68938         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68939         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68940         * modules/imaxdiv (configure.ac): Likewise.
68941         * modules/strtoimax (configure.ac): Likewise.
68942         * modules/strtoumax (configure.ac): Likewise.
68943
68944 2007-02-17  Bruno Haible  <bruno@clisp.org>
68945
68946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68947         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68948         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68949         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68950
68951 2007-02-17  Bruno Haible  <bruno@clisp.org>
68952
68953         * modules/link-warning: New file.
68954         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68955         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68956         * modules/string (Depends-on): Add link-warning.
68957         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68958         string.h.
68959         * MODULES.html.sh (Support for building libraries and executables): Add
68960         link-warning.
68961
68962 2007-02-17  Bruno Haible  <bruno@clisp.org>
68963
68964         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68965         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68966         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68967         long lines.
68968
68969 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68970             Bruno Haible  <bruno@clisp.org>
68971
68972         * modules/tmpfile: New file.
68973         * lib/tmpfile.c: New file.
68974         * m4/tmpfile.m4: New file.
68975         * MODULES.html.sh (func_all_modules): New section "Input/output".
68976
68977 2007-02-15  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68980         (supports_delete_on_close): New function.
68981         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68982
68983 2007-02-14  Bruno Haible  <bruno@clisp.org>
68984
68985         * modules/mbspcasecmp-tests: New file.
68986         * tests/test-mbspcasecmp.sh: New file.
68987         * tests/test-mbspcasecmp.c: New file.
68988
68989         New module mbspcasecmp.
68990         * modules/mbspcasecmp: New file.
68991         * lib/mbspcasecmp.c: New file.
68992         * lib/string_.h (strncasecmp): Change warning message.
68993         (mbspcasecmp): New declaration.
68994         * m4/mbspcasecmp.m4: New file.
68995         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68996         GNULIB_MBSPCASECMP.
68997         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68998         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68999
69000 2007-02-14  Bruno Haible  <bruno@clisp.org>
69001
69002         * modules/mbsncasecmp-tests: New file.
69003         * tests/test-mbsncasecmp.sh: New file.
69004         * tests/test-mbsncasecmp.c: New file.
69005
69006         New module mbsncasecmp.
69007         * modules/mbsncasecmp: New file.
69008         * lib/mbsncasecmp.c: New file.
69009         * lib/string_.h (mbsncasecmp): New declaration.
69010         * m4/mbsncasecmp.m4: New file.
69011         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69012         GNULIB_MBSNCASECMP.
69013         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69014         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69015
69016 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69019         Verify that it doesn't overlap with our flags.
69020         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69021         do not have the desired effect in multibyte locales; instead, use
69022         mbscasecmp.
69023         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69024         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69025         we don't require GNU fnmatch ourselves (if our users require it, they
69026         should do so explicitly).
69027
69028         Fix regex code so it doesn't rely on strcasecmp.
69029         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69030         Otherwise, include gnulib's langinfo.h.
69031         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69032         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69033         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69034         * modules/regex (FILES): Remove m4/codeset.m4.
69035         (Depends-on): Add localcharset.  Remove strcase.
69036
69037 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69038
69039         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69040         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69041
69042 2007-02-13  Bruno Haible  <bruno@clisp.org>
69043
69044         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69045         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69046
69047 2007-02-12  Bruno Haible  <bruno@clisp.org>
69048
69049         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69050         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69051         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69052         time warning rather than a link error.
69053
69054 2007-02-12  Bruno Haible  <bruno@clisp.org>
69055
69056         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69057         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69058         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69059
69060 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69063         args, not 2.
69064
69065 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         New module 'time', so that apps can include <time.h> as per
69068         POSIX and GNU instead of separate include files like time_r.h
69069         and timegm.h.  This implementation tries out a simpler approach
69070         for replacing decls in standard include files (as compared to
69071         the string module), somewhat as an experiment.
69072
69073         * config/srclist.txt: Comment out mktime.c for now.
69074         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69075         since it doesn't apply any more.  Use generic wording instead.
69076         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69077         'time'.
69078         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69079         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69080         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69081         Don't include <sys/types.h>; no longer needed since we assume C89.
69082         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69083         * lib/strftime.c: Likewise.
69084         * lib/time_r.c: Likewise.
69085         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69086         * lib/nanosleep.c: Include <time.h> first, to check interface.
69087         * lib/strptime.c: Likewise.
69088         * lib/time_r.c: Likewise.
69089         * lib/timegm.c: Likewise.
69090         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69091         needed.
69092         * lib/timegm.c: Don't include timegm.h; no longer needed.
69093         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69094         time.h now handles any problems in that area.
69095         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69096         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69097         that time.h defines struct timespec.
69098         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69099         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69100         handles that.
69101         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69102         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69103         needed.  Set REPLACE_LOCALTIME.
69104         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69105         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69106         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69107         nanosleep; time_h.m4 now does that.  Don't require
69108         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69109         module handles this now.
69110         * modules/getdate (Depends-on): Remove timespec.  Add time.
69111         * modules/nanosleep (Depends-on): Likewise.
69112         * modules/stat-time (Depends-on): Likewise.
69113         * modules/nanosleep (Include): Include time.h, not timespec.h.
69114         * modules/strptime (Files): Remove lib/strptime.h.
69115         (Depends-on): Add extensions, time.
69116         (Include): Include time.h, not strptime.h.
69117         * modules/time_r (Files): Remove lib/time_r.h.
69118         (Depends-on): Add time.
69119         (Include): Include time.h, not time_r.h.
69120         * modules/timegm: Likewise.
69121         * modules/timespec (Description): Now does timespec-related decls
69122         of our own, instead of struct timespec itself.
69123         (Depends-on): Add time; remove extensions.
69124         (Maintainer): Add self.
69125         * modules/utimecmp (Depends-on): Add time; remove timespec.
69126         * modules/utimens (Depends-on): Likewise.
69127         * modules/xnanosleep (Depends-on): Likewise.
69128
69129 2007-02-11  Bruno Haible  <bruno@clisp.org>
69130
69131         * lib/c-strstr.c: Include allocsa.h.
69132         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69133         * lib/c-strcasestr.c: Include allocsa.h.
69134         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69135         * lib/strcasestr.c: Include allocsa.h.
69136         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69137         * lib/mbsstr.c: Include allocsa.h.
69138         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69139         allocsa/freesa instead of malloc/free.
69140         * lib/mbscasestr.c: Include allocsa.h.
69141         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69142         allocsa/freesa instead of malloc/free.
69143         * modules/c-strstr (Depends-on): Add allocsa.
69144         * modules/c-strcasestr (Depends-on): Likewise.
69145         * modules/strcasestr (Depends-on): Likewise.
69146         * modules/mbsstr (Depends-on): Likewise.
69147         * modules/mbscasestr (Depends-on): Likewise.
69148
69149 2007-02-11  Bruno Haible  <bruno@clisp.org>
69150
69151         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69152
69153         * modules/mbsspn-tests: New file.
69154         * tests/test-mbsspn.sh: New file.
69155         * tests/test-mbsspn.c: New file.
69156
69157 2007-02-11  Bruno Haible  <bruno@clisp.org>
69158
69159         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69160
69161         * modules/mbspbrk-tests: New file.
69162         * tests/test-mbspbrk.sh: New file.
69163         * tests/test-mbspbrk.c: New file.
69164
69165 2007-02-11  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69168         unneeded cast.
69169
69170         * modules/mbscspn-tests: New file.
69171         * tests/test-mbscspn.sh: New file.
69172         * tests/test-mbscspn.c: New file.
69173
69174 2007-02-11  Bruno Haible  <bruno@clisp.org>
69175
69176         * modules/mbscasecmp-tests: New file.
69177         * tests/test-mbscasecmp.sh: New file.
69178         * tests/test-mbscasecmp.c: New file.
69179
69180 2007-02-11  Bruno Haible  <bruno@clisp.org>
69181
69182         Ensure O(n) worst-case complexity of mbscasestr.
69183         * lib/mbscasestr.c: Include stdbool.h.
69184         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69185         functions.
69186         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69187         the bookkeeping indicates that it's worth it.
69188         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69189
69190         * modules/mbscasestr-tests: New file.
69191         * tests/test-mbscasestr1.c: New file.
69192         * tests/test-mbscasestr2.sh: New file.
69193         * tests/test-mbscasestr2.c: New file.
69194         * tests/test-mbscasestr3.sh: New file.
69195         * tests/test-mbscasestr3.c: New file.
69196         * tests/test-mbscasestr4.sh: New file.
69197         * tests/test-mbscasestr4.c: New file.
69198         * m4/locale-tr.m4: New file.
69199
69200 2007-02-11  Bruno Haible  <bruno@clisp.org>
69201
69202         Ensure O(n) worst-case complexity of mbsstr.
69203         * lib/mbsstr.c: Include stdbool.h.
69204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69205         functions.
69206         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69207         bookkeeping indicates that it's worth it.
69208         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69209
69210         * modules/mbsstr-tests: New file.
69211         * tests/test-mbsstr1.c: New file.
69212         * tests/test-mbsstr2.sh: New file.
69213         * tests/test-mbsstr2.c: New file.
69214         * tests/test-mbsstr3.sh: New file.
69215         * tests/test-mbsstr3.c: New file.
69216         * m4/locale-fr.m4: New file.
69217
69218 2007-02-11  Bruno Haible  <bruno@clisp.org>
69219
69220         * lib/mbsrchr.c (mbsrchr): Fix bug.
69221
69222         * modules/mbsrchr-tests: New file.
69223         * tests/test-mbsrchr.sh: New file.
69224         * tests/test-mbsrchr.c: New file.
69225
69226 2007-02-11  Bruno Haible  <bruno@clisp.org>
69227
69228         * lib/mbschr.c (mbschr): Fix bug.
69229
69230         * modules/mbschr-tests: New file.
69231         * tests/test-mbschr.sh: New file.
69232         * tests/test-mbschr.c: New file.
69233         * m4/locale-zh.m4: New file.
69234
69235 2007-02-11  Bruno Haible  <bruno@clisp.org>
69236
69237         Support for copying multibyte string iterators.
69238         * lib/mbiter.h: Include <string.h>.
69239         (mbiter_multi_copy): New function.
69240         (mbi_copy): New macro.
69241         * lib/mbuiter.h: Include <string.h>.
69242         (mbuiter_multi_copy): New function.
69243         (mbui_copy): New macro.
69244
69245 2007-02-11  Bruno Haible  <bruno@clisp.org>
69246
69247         New module mbslen.
69248         * modules/mbslen: New file.
69249         * lib/mbslen.c: New file.
69250         * lib/string_.h (mbslen): New declaration.
69251         * m4/mbslen.m4: New file.
69252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69253         GNULIB_MBSLEN.
69254         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69255         * MODULES.html.sh (Internationalization functions): Add mbslen.
69256
69257 2007-02-11  Bruno Haible  <bruno@clisp.org>
69258
69259         Ensure O(n) worst-case complexity of strcasestr substitute.
69260         * lib/strcasestr.c: Include stdbool.h.
69261         (knuth_morris_pratt): New function.
69262         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69263         bookkeeping indicates that it's worth it.
69264         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69265
69266         * modules/strcasestr-tests: New file.
69267         * tests/test-strcasestr.c: New file.
69268
69269 2007-02-11  Bruno Haible  <bruno@clisp.org>
69270
69271         Ensure O(n) worst-case complexity of c_strcasestr.
69272         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69273         (knuth_morris_pratt): New function.
69274         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69275         the bookkeeping indicates that it's worth it.
69276         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69277
69278         * modules/c-strcasestr-tests: New file.
69279         * tests/test-c-strcasestr.c: New file.
69280
69281 2007-02-11  Bruno Haible  <bruno@clisp.org>
69282
69283         Ensure O(n) worst-case complexity of c_strstr.
69284         * lib/c-strstr.c: Include stdbool.h, string.h.
69285         (knuth_morris_pratt): New function.
69286         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69287         bookkeeping indicates that it's worth it.
69288         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69289
69290         * lib/c-strstr.c: Complete rewrite for maintainability.
69291
69292         * modules/c-strstr-tests: New file.
69293         * tests/test-c-strstr.c: New file.
69294
69295 2007-02-11  Bruno Haible  <bruno@clisp.org>
69296
69297         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69298         5.2.1 and earlier, whereby \055 was treated just like the range
69299         delimiter '-'.
69300         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69301
69302 2007-02-08  Bruno Haible  <bruno@clisp.org>
69303
69304         * modules/regex (Depends-on): Add stdbool.
69305         Reported by Dalibor Topic <robilad@kaffe.org>.
69306
69307 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69308
69309         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69310         Prefer returning from main to exiting from it.
69311         Remove unnecessary parens after sizeof.
69312
69313 2007-02-05  Bruno Haible  <bruno@clisp.org>
69314
69315         New module mbssep.
69316         * modules/mbssep: New file.
69317         * lib/mbssep.c: New file.
69318         * lib/string_.h (strsep): Add a conditional link warning.
69319         (mbssep): New declaration.
69320         * m4/mbssep.m4: New file.
69321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69322         GNULIB_MBSSEP.
69323         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69324         * MODULES.html.sh (Internationalization functions): Add mbssep.
69325
69326 2007-02-05  Bruno Haible  <bruno@clisp.org>
69327
69328         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69329         Optimize search in case of 1 delimiter.
69330
69331 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69332
69333         * lib/acl.h: Include sys/types.h before sys/acl.h.
69334
69335 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69336
69337         Merge upstream fix for glibc bugzilla #3957:
69338
69339         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69340
69341         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69342         bit for RE_HAT_LISTS_NOT_NEWLINE.
69343         (build_charclass_op): Remove bogus comment.
69344
69345 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69346
69347         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69348
69349 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69350
69351         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69352         * lib/memmem.c [!defined _LIBC]: Include config.h.
69353
69354 2007-02-04  Bruno Haible  <bruno@clisp.org>
69355
69356         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69357         warning message.
69358
69359 2007-02-04  Bruno Haible  <bruno@clisp.org>
69360
69361         New module mbstok_r.
69362         * modules/mbstok_r: New file.
69363         * lib/mbstok_r.c: New file.
69364         * lib/string_.h (strtok_r): Change argument names to match the
69365         comments. Add a conditional link warning.
69366         (mbstok_r): New declaration.
69367         * m4/mbstok_r.m4: New file.
69368         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69369         GNULIB_MBSTOK_R.
69370         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69371         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69372
69373 2007-02-04  Bruno Haible  <bruno@clisp.org>
69374
69375         New module mbsspn.
69376         * modules/mbsspn: New file.
69377         * lib/mbsspn.c: New file.
69378         * lib/string_.h (strspn): Add a conditional link warning.
69379         (mbsspn): New declaration.
69380         * m4/mbsspn.m4: New file.
69381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69382         GNULIB_MBSSPN.
69383         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69384         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69385
69386 2007-02-04  Bruno Haible  <bruno@clisp.org>
69387
69388         New module mbspbrk.
69389         * modules/mbspbrk: New file.
69390         * lib/mbspbrk.c: New file.
69391         * lib/string_.h (strpbrk): Add a conditional link warning.
69392         (mbspbrk): New declaration.
69393         * m4/mbspbrk.m4: New file.
69394         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69395         GNULIB_MBSPBRK.
69396         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69397         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69398
69399 2007-02-04  Bruno Haible  <bruno@clisp.org>
69400
69401         New module mbscspn.
69402         * modules/mbscspn: New file.
69403         * lib/mbscspn.c: New file.
69404         * lib/string_.h (strcspn): Add a conditional link warning.
69405         (mbscspn): New declaration.
69406         * m4/mbscspn.m4: New file.
69407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69408         GNULIB_MBSCSPN.
69409         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69410         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69411
69412 2007-02-04  Bruno Haible  <bruno@clisp.org>
69413
69414         New module mbscasestr, reduced goal of strcasestr.
69415         * modules/mbscasestr: New file.
69416         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69417         (mbscasestr): Renamed from strcasestr.
69418         * lib/strcasestr.c: Don't include mbuiter.h.
69419         (strcasestr): Remove support for multibyte locales.
69420         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69421         Change the conditional link warning.
69422         (mbscasestr): New declaration.
69423         * m4/mbscasestr.m4: New file.
69424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69425         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69426         REPLACE_STRCASESTR.
69427         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69429         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69430         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69431         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69432         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69433         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69434         (Depends-on): Remove mbuiter.
69435         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69436
69437 2007-02-04  Bruno Haible  <bruno@clisp.org>
69438
69439         Simplify handling of strncasecmp.
69440         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69441         the conditional link warning.
69442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69443         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69444         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69445         * modules/strcase (configure.ac): Don't invoke
69446         gl_STRING_MODULE_INDICATOR.
69447         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69448
69449 2007-02-04  Bruno Haible  <bruno@clisp.org>
69450
69451         New module mbscasecmp, reduced goal of strcasecmp.
69452         * modules/mbscasecmp: New file.
69453         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69454         (mbscasecmp): Renamed from strcasecmp.
69455         * lib/strcasecmp.c: Don't include mbuiter.h.
69456         (strcasecmp): Remove support for multibyte locales.
69457         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69458         Change the conditional link warning.
69459         (mbscasecmp): New declaration.
69460         * m4/mbscasecmp.m4: New file.
69461         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69462         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69463         REPLACE_STRCASECMP.
69464         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69466         GNULIB_MBSCASECMP.
69467         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69468         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69469         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69470         (Depends-on): Remove mbuiter.
69471         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69472
69473 2007-02-04  Bruno Haible  <bruno@clisp.org>
69474
69475         New module mbsstr. Remove module strstr.
69476         * modules/mbsstr: New file.
69477         * modules/strstr: Remove file.
69478         * lib/mbsstr.c: Renamed from lib/strstr.c.
69479         (mbsstr): Renamed from strstr.
69480         * lib/string_.h (strstr): Remove declaration. Change the conditional
69481         link warning.
69482         (mbsstr): New declaration.
69483         * m4/mbsstr.m4: New file.
69484         * m4/strstr.m4: Remove file.
69485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69486         REPLACE_STRSTR.
69487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69488         Don't initialize GNULIB_STRSTR.
69489         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69490         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69491         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69492         (Support for systems lacking ANSI C 89): Remove strstr.
69493
69494 2007-02-04  Bruno Haible  <bruno@clisp.org>
69495
69496         New module mbsrchr.
69497         * modules/mbsrchr: New file.
69498         * lib/mbsrchr.c: New file.
69499         * lib/string_.h (strrchr): Add a conditional link warning.
69500         (mbsrchr): New declaration.
69501         * m4/mbsrchr.m4: New file.
69502         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69503         GNULIB_MBSRCHR.
69504         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69505         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69506
69507 2007-02-04  Bruno Haible  <bruno@clisp.org>
69508
69509         New module mbschr.
69510         * modules/mbschr: New file.
69511         * lib/mbschr.c: New file.
69512         * lib/string_.h (strchr): Add a conditional link warning.
69513         (mbschr): New declaration.
69514         * m4/mbschr.m4: New file.
69515         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69516         GNULIB_MBSCHR.
69517         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69518         * MODULES.html.sh (Internationalization functions): Add mbschr.
69519
69520 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69523
69524         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69525
69526 2007-02-04  Bruno Haible  <bruno@clisp.org>
69527
69528         New module description section 'configure.ac-early'.
69529         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69530         (func_get_autoconf_early_snippet): New function.
69531         (func_import, func_create_testdir): Use it. Remove special cases for
69532         modules 'extensions' and 'lock'.
69533         * modules/extensions (configure.ac-early): Require
69534         gl_USE_SYSTEM_EXTENSIONS.
69535         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69536
69537 2007-02-04  Bruno Haible  <bruno@clisp.org>
69538
69539         Make use of gcj-4.3's -fsource and -ftarget option.
69540         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69541         and if so try the options -fsource and -ftarget.
69542         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69543         source_version, ftarget_option, target_version arguments.
69544         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69545         (is_envjavac_oldgcj_14_14_usable): Renamed from
69546         is_envjavac_gcj_14_14_usable.
69547         (is_envjavac_oldgcj_14_13_usable): Renamed from
69548         is_envjavac_gcj_14_13_usable.
69549         (is_gcj_present): Update.
69550         (is_gcj_43, is_gcj43_usable): New functions.
69551         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69552         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69553         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69554         try the options -fsource and -ftarget.
69555
69556 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69557
69558         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69559         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69560         larger value.
69561
69562 2007-02-03  Jim Meyering  <jim@meyering.net>
69563
69564         Give tools a better chance to allocate space for very large buffers.
69565         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69566
69567         Make pwd and readlink work also when run with an unreadable parent dir
69568         on systems with openat support.
69569         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69570         provided getcwd function, even when we have openat support.
69571         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69572
69573 2007-02-02  Bruno Haible  <bruno@clisp.org>
69574
69575         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69576         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69577         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69578         portability problems if one of these functions is only used on specific
69579         platforms.
69580         Reported by Paul Eggert.
69581
69582 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69585         is causing more trouble than it's curing.
69586         * lib/regex_internal.h (__mempcpy): Remove.
69587         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69588         (and make the code a tad smaller to boot).
69589         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69590
69591 2007-02-02  Jim Meyering  <jim@meyering.net>
69592
69593         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69594         section, not in the Makefile.am: one.
69595
69596 2007-02-02  Eric Blake  <ebb9@byu.net>
69597
69598         * lib/strchrnul.c: Always include config.h first.
69599
69600         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69601         gnulib strstr is not necessary here.
69602
69603 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69604
69605         * m4/socklen.m4: Fix typo.
69606
69607 2007-02-02  Eric Blake  <ebb9@byu.net>
69608
69609         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69610         * modules/netinet_in (Makefile.am): Likewise.
69611
69612 2007-02-01  Bruno Haible  <bruno@clisp.org>
69613
69614         * lib/string_.h (GL_LINK_WARNING): New macro.
69615         (strcasecmp, strstr, strcasestr): If provided by the system,
69616         conditionally define as a macro that leads to a warning instead of to
69617         an error.
69618         (strncasecmp): Conditionally define as a macro that leads to a warning.
69619
69620 2007-02-01  Karl Berry  <karl@gnu.org>
69621
69622         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69623
69624 2007-02-01  Bruno Haible  <bruno@clisp.org>
69625
69626         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69627         renamings.
69628
69629 2007-02-01  Eric Blake  <ebb9@byu.net>
69630
69631         * modules/regex (Depends-on): Revert dependence on mempcpy.
69632         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69633         module's definition of mempcpy.
69634         Reported by Paul Eggert.
69635
69636 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69637
69638         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69639         the symbol XYZ before redefining it.  This fixes a problem with
69640         programs that don't use XYZ, when compiled on systems that define
69641         XYZ to something else.
69642
69643 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69646         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69647         writeable to group or other and (2) is intended to have a special
69648         mode bit that is set or cleared.  In such a case, the directory
69649         should be neither group- nor other-writeable until the special
69650         mode bits are right.
69651
69652 2007-01-31  Eric Blake  <ebb9@byu.net>
69653
69654         * modules/mountlist (Depends-on): Add strstr.
69655
69656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69657         bug.
69658         * modules/string (Makefile.am): Remove redundant replacement.
69659         * modules/regex (Depends-on): Add mempcpy.
69660
69661 2007-01-31  Bruno Haible  <bruno@clisp.org>
69662
69663         New module description field 'Link'.
69664         * gnulib-tool (func_usage): Document --extract-link-directive.
69665         (sed_extract_prog): Recognize 'Link' directive.
69666         (func_get_link_directive): New function.
69667         (func_import): Show summary of link directives.
69668         Handle --extract-link-directive option.
69669         * modules/acl (Link): New section.
69670         * modules/clock-time (Link): New section.
69671         * modules/euidaccess (Link): New section.
69672         * modules/gettext (Link): New section.
69673         * modules/iconv (Link): New section.
69674         * modules/lock (Link): New section.
69675         * modules/nanosleep (Link): New section.
69676         * modules/readline (Link): New section.
69677
69678 2007-01-27  Bruno Haible  <bruno@clisp.org>
69679
69680         Enforce the use of gnulib modules for unportable <string.h> functions.
69681         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69682         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69683         (gl_HEADER_STRING_H_BODY): Require it.
69684         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69685         the symbol XYZ to one that gives a link error.
69686         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69687         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69688         * modules/mempcpy (configure.ac): Likewise.
69689         * modules/memrchr (configure.ac): Likewise.
69690         * modules/stpcpy (configure.ac): Likewise.
69691         * modules/stpncpy (configure.ac): Likewise.
69692         * modules/strcase (configure.ac): Likewise.
69693         * modules/strcasestr (configure.ac): Likewise.
69694         * modules/strchrnul (configure.ac): Likewise.
69695         * modules/strdup (configure.ac): Likewise.
69696         * modules/strndup (configure.ac): Likewise.
69697         * modules/strnlen (configure.ac): Likewise.
69698         * modules/strpbrk (configure.ac): Likewise.
69699         * modules/strsep (configure.ac): Likewise.
69700         * modules/strstr (configure.ac): Likewise.
69701         * modules/strtok_r (configure.ac): Likewise.
69702
69703 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69704
69705         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69706
69707 2007-01-30  Jim Meyering  <jim@meyering.net>
69708
69709         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69710
69711 2007-01-29  Bruno Haible  <bruno@clisp.org>
69712
69713         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69714         * lib/execute.c: Likewise.
69715         * lib/pipe.c: Likewise.
69716         * lib/printf-args.h: Likewise.
69717         * lib/printf-args.c: Likewise.
69718         * lib/printf-parse.c: Likewise.
69719         * lib/vasnprintf.c: Likewise.
69720
69721 2007-01-29  Eric Blake  <ebb9@byu.net>
69722
69723         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69724         declaration.
69725
69726 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * lib/strptime.h (strptime): Use 'restrict' for args where
69729         POSIX requires this.
69730         * lib/strptime.c (strptime): Likewise.
69731         Change license notice from LGPL to GPL, since gnulib-tool will
69732         change this as needed.
69733         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69734         defined.
69735         Include "strptime.h" first, to check interface.
69736         Do not #undef _LIBC and _NL_CURRENT.
69737         Do not include <stdlib.h>; no longer needed.
69738         Include "time_r.h" and declare ptime_locale_status
69739         only if _LIBC is not defined.
69740         (__P): Remove unused macro.
69741         (match_string): Bring back glibc version, but use it only if _LIBC
69742         is defined.
69743         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69744         Remove unnecessary assertion and abort() call.
69745         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69746         * m4/strptime.m4: Fix serial number comment.
69747         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69748         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69749         (Depends-on): Add time_r.
69750
69751 2007-01-29  Bruno Haible  <bruno@clisp.org>
69752
69753         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69754         strptime.
69755         * modules/strptime (Depends-on): Add stdbool.
69756         * lib/strptime.h: Include <time.h> always. Add comments.
69757
69758 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69759
69760         * modules/strptime: New file.
69761         * lib/strptime.h: New file.
69762         * lib/strptime.c: New file.
69763         * m4/strptime.m4: New file.
69764
69765 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69766
69767         * MODULES.html.sh: New module mpsort.
69768         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69769
69770         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69771         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69773         All uses changed.
69774         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69775         All uses changed.
69776         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69777         to _Restrict_.
69778         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69779         the parameter matches the prototype.
69780
69781 2007-01-28  Jim Meyering  <jim@meyering.net>
69782
69783         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69784         sys/time.h here, reverting that part of the previous patch:
69785         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69786
69787 2007-01-28  Bruno Haible  <bruno@clisp.org>
69788
69789         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69790         value of $(SYS_TIME_H).
69791         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69792         remove it conditionally, too. [added by Jim Meyering]
69793         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69794         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69795         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69796         GETTIMEOFDAY_REPLACEMENT to 1.
69797
69798 2007-01-28  Bruno Haible  <bruno@clisp.org>
69799
69800         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69801         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69803         Set UNISTD_H instead of UNISTD_H2.
69804         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69805
69806 2007-01-28  Bruno Haible  <bruno@clisp.org>
69807
69808         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69809         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69810
69811 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69812
69813         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69814         (func_create_testdir): Ensure C locale for `grep' and `tr'
69815         character ranges.
69816         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69817         ACLOCAL_AMFLAGS parsing state machine.
69818
69819 2007-01-27  Bruno Haible  <bruno@clisp.org>
69820
69821         * modules/unistr/base: Update.
69822
69823 2007-01-27  Bruno Haible  <bruno@clisp.org>
69824
69825         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69826         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69827         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69828         modules/unistr/u32-mbtouc.
69829         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69830         * lib/unistr.h: Update.
69831         * lib/linebreak.c: Update.
69832         * modules/unistr/u32-mbtouc: Renamed from
69833         modules/unistr/u32-mbtouc-safe.
69834         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69835         * lib/unistr.h: Update.
69836         * lib/unistr/u32-to-u8.c: Update.
69837         * lib/unistr/u32-to-u16.c: Update.
69838
69839 2007-01-27  Bruno Haible  <bruno@clisp.org>
69840
69841         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69842         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69843         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69844         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69845         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69846         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69847         modules/unistr/u16-mbtouc.
69848         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69849         * lib/unistr.h: Update.
69850         * lib/linebreak.c: Update.
69851         * modules/linebreak: Update.
69852         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69853         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69854         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69855         * modules/unistr/u16-mbtouc: Renamed from
69856         modules/unistr/u16-mbtouc-safe.
69857         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69858         * lib/unistr.h: Update.
69859         * lib/unistr/u16-to-u8.c: Update.
69860         * modules/unistr/u16-to-u8: Update.
69861         * lib/unistr/u16-to-u32.c: Update.
69862         * modules/unistr/u16-to-u32: Update.
69863
69864 2007-01-27  Bruno Haible  <bruno@clisp.org>
69865
69866         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69867         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69868         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69869         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69870         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69871         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69872         modules/unistr/u8-mbtouc.
69873         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69874         * lib/unistr.h: Update.
69875         * lib/striconveh.c: Update.
69876         * modules/striconveh: Update.
69877         * lib/linebreak.c: Update.
69878         * modules/linebreak: Update.
69879         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69880         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69881         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69882         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69883         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69884         * lib/unistr.h: Update.
69885         * lib/striconveh.c: Update.
69886         * modules/striconveh: Update.
69887         * lib/unistr/u8-to-u16.c: Update.
69888         * modules/unistr/u8-to-u16: Update.
69889         * lib/unistr/u8-to-u32.c: Update.
69890         * modules/unistr/u8-to-u32: Update.
69891
69892 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69893
69894         Sync from Libtool.
69895         * lib/argz.c: Do not include strings.h nor memory.h, include
69896         string.h unconditionally.  Patch by Simon Josefsson.
69897
69898 2007-01-27  Bruno Haible  <bruno@clisp.org>
69899
69900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69901         from gl_HEADER_STRING_H_BODY.
69902         (gl_HEADER_STRING_H_BODY): Require it.
69903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69908         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69910         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69911         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69912         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69913         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69914         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69915         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69916         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69917         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69918
69919 2007-01-27  Bruno Haible  <bruno@clisp.org>
69920
69921         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69922         check_PROGRAMS into noinst_PROGRAMS.
69923         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69924         check_PROGRAMS in this case.
69925         (func_import): Set for_test to false.
69926         (func_create_testdir): Set for_test to true.
69927
69928 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69929             Bruno Haible  <bruno@clisp.org>
69930
69931         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69932         (Depends-on): Add string.
69933         (Includes): Use <string.h> instead of strcasestr.h.
69934         * modules/string (Makefile.am): Also substitute the value of
69935         REPLACE_STRCASESTR.
69936         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69937         assume strcasestr is declared in <string.h> not <strings.h>. Also
69938         set REPLACE_STRCASESTR.
69939         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69940         REPLACE_STRCASESTR.
69941         * lib/strcasestr.h: Remove file.
69942         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69943         * lib/string_.h (strcasestr): New declaration.
69944
69945 2007-01-27  Bruno Haible  <bruno@clisp.org>
69946
69947         * lib/string_.h: Use 'extern'.
69948
69949 2007-01-27  Jim Meyering  <jim@meyering.net>
69950
69951         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69952         of set-but-not-used local, "q".
69953
69954         * lib/mempcpy.c: Include <config.h> before <string.h>.
69955         This fixes a compilation error on HP-UX, due to the system's
69956         "restrict"-using mempcpy prototype.
69957
69958 2007-01-26  Bruno Haible  <bruno@clisp.org>
69959
69960         Small optimization.
69961         * lib/javacomp.c: Include c-strstr.h.
69962          (is_envjavac_gcj): Use c_strstr instead of strstr.
69963         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69964
69965 2007-01-26  Bruno Haible  <bruno@clisp.org>
69966
69967         * MODULES.html.sh (Unicode string functions): Add the new modules.
69968
69969         * modules/uniconv/u32-strconv-to-locale: New file.
69970         * lib/uniconv/u32-strconv-to-locale.c: New file.
69971
69972         * modules/uniconv/u16-strconv-to-locale: New file.
69973         * lib/uniconv/u16-strconv-to-locale.c: New file.
69974
69975         * modules/uniconv/u8-strconv-to-locale: New file.
69976         * lib/uniconv/u8-strconv-to-locale.c: New file.
69977
69978         * modules/uniconv/u32-strconv-from-locale: New file.
69979         * lib/uniconv/u32-strconv-from-locale.c: New file.
69980
69981         * modules/uniconv/u16-strconv-from-locale: New file.
69982         * lib/uniconv/u16-strconv-from-locale.c: New file.
69983
69984         * modules/uniconv/u8-strconv-from-locale: New file.
69985         * lib/uniconv/u8-strconv-from-locale.c: New file.
69986
69987         * modules/uniconv/u32-strconv-to-enc: New file.
69988         * lib/uniconv/u32-strconv-to-enc.c: New file.
69989         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69990         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69991
69992         * modules/uniconv/u16-strconv-to-enc: New file.
69993         * lib/uniconv/u16-strconv-to-enc.c: New file.
69994         * lib/uniconv/u-strconv-to-enc.h: New file.
69995         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69996         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69997
69998         * modules/uniconv/u8-strconv-to-enc: New file.
69999         * lib/uniconv/u8-strconv-to-enc.c: New file.
70000         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70001         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70002
70003         * modules/uniconv/u32-strconv-from-enc: New file.
70004         * lib/uniconv/u32-strconv-from-enc.c: New file.
70005         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70006         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70007
70008         * modules/uniconv/u16-strconv-from-enc: New file.
70009         * lib/uniconv/u16-strconv-from-enc.c: New file.
70010         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70011         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70012
70013         * modules/uniconv/u8-strconv-from-enc: New file.
70014         * lib/uniconv/u8-strconv-from-enc.c: New file.
70015         * lib/uniconv/u-strconv-from-enc.h: New file.
70016         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70017         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70018
70019         * modules/uniconv/u32-conv-from-enc: New file.
70020         * lib/uniconv/u32-conv-from-enc.c: New file.
70021         * modules/uniconv/u32-conv-from-enc-tests: New file.
70022         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70023
70024         * modules/uniconv/u16-conv-from-enc: New file.
70025         * lib/uniconv/u16-conv-from-enc.c: New file.
70026         * lib/uniconv/u-conv-from-enc.h: New file.
70027         * modules/uniconv/u16-conv-from-enc-tests: New file.
70028         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70029
70030         * modules/uniconv/u8-conv-from-enc: New file.
70031         * lib/uniconv/u8-conv-from-enc.c: New file.
70032         * modules/uniconv/u8-conv-from-enc-tests: New file.
70033         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70034
70035         * modules/uniconv/base: New file.
70036         * lib/uniconv.h: New file.
70037
70038 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * doc/gnulib-tool.texi (Initial import): Update to match current
70041         behavior with strdup module.
70042         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70043         * lib/memmem.h: Remove; all uses removed.  This is now done
70044         by <string.h>.
70045         * lib/mempcpy.h: Likewise.
70046         * lib/memrchr.h: Likewise.
70047         * lib/stpcpy.h: Likewise.
70048         * lib/stpncpy.h: Likewise.
70049         * lib/strcase.h: Likewise.
70050         * lib/strchrnul.h: Likewise.
70051         * lib/strdup.h: Likewise.
70052         * lib/strndup.h: Likewise.
70053         * lib/strnlen.h: Likewise.
70054         * lib/strpbrk.h: Likewise.
70055         * lib/strsep.h: Likewise.
70056         * lib/strstr.h: Likewise.
70057         * lib/strtok_r.h: Likewise.
70058         * lib/string_.h: New file.
70059         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70060         Rely on <string.h> instead.
70061         * lib/canon-host.c: Likewise.
70062         * lib/chdir-long.c: Likewise.
70063         * lib/concatpath.c: Likewise.
70064         * lib/exclude.c: Likewise.
70065         * lib/fchdir.c: Likewise.
70066         * lib/getaddrinfo.c: Likewise.
70067         * lib/getcwd.c: Likewise.
70068         * lib/getsubopt.c: Likewise.
70069         * lib/glob.c: Likewise.
70070         * lib/hard-locale.c: Likewise.
70071         * lib/iconvme.c: Likewise.
70072         * lib/javacomp.c: Likewise.
70073         * lib/mempcpy.c: Likewise.
70074         * lib/memrchr.c: Likewise.
70075         * lib/regex_internal.h: Likewise.
70076         * lib/stpncpy.c: Likewise.
70077         * lib/strcasecmp.c: Likewise.
70078         * lib/strchrnul.c: Likewise.
70079         * lib/strdup.c: Likewise.
70080         * lib/striconv.c: Likewise.
70081         * lib/striconveh.c: Likewise.
70082         * lib/striconveha.c: Likewise.
70083         * lib/strncasecmp.c: Likewise.
70084         * lib/strndup.c: Likewise.
70085         * lib/strnlen.c: Likewise.
70086         * lib/strsep.c: Likewise.
70087         * lib/strstr.c: Likewise.
70088         * lib/strtok_r.c: Likewise.
70089         * lib/userspec.c: Likewise.
70090         * lib/w32spawn.h: Likewise.
70091         * lib/xstrndup.c: Likewise.
70092         * lib/mountlist.c (strstr): Remove decl.
70093         * m4/string_h.m4: New file.
70094         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70095         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70096         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70097         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70098         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70099         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70100         Set REPLACE_STRCASECMP if necessary.
70101         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70102         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70103         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70104         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70105         HAVE_DECL_STRDUP if necessary.
70106         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70107         since gl_FUNC_STRNDUP does that now.
70108         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70109         Check for decl here...
70110         (gl_PREREQ_STRNLEN): ... not here.
70111         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70112         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70113         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70114         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70115         necessary.
70116         * modules/string: New file.
70117         * modules/memmem (Files): Remove special-purpose include file.
70118         (Depends-on): Add string.
70119         (Include): Include <string.h>, not the removed file.
70120         * modules/mempcpy: Likewise.
70121         * modules/memrchr: Likewise.
70122         * modules/stpcpy: Likewise.
70123         * modules/stpncpy: Likewise.
70124         * modules/strcase: Likewise.
70125         * modules/strchrnul: Likewise.
70126         * modules/strdup: Likewise.
70127         * modules/strndup: Likewise.
70128         * modules/strnlen: Likewise.
70129         * modules/strpbrk: Likewise.
70130         * modules/strsep: Likewise.
70131         * modules/strstr: Likewise.
70132         * modules/strtok_r: Likewise.
70133         * tests/test-dirname.c: Don't include "strdup.h", since
70134         <string.h> now suffices.
70135         * tests/test-memmem.c: Don't include "memmem.h", since
70136         <string.h> now suffices.
70137
70138 2007-01-25  Bruno Haible  <bruno@clisp.org>
70139
70140         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70141         *resultp is 0.
70142
70143         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70144         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70145         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70146         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70147
70148         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70149         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70150         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70151         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70152         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70153         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70154
70155 2007-01-24  Bruno Haible  <bruno@clisp.org>
70156
70157         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70159         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70160         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70161         gl_FUNC_FTS_CORE.
70162         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70163         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70164         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70165         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70166         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70167         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70168         gl_FUNC_FCHOWNAT.
70169         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70170         gl_FUNC_STRFTIME.
70171         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70172         Reported by Ralf Wildenhues.
70173
70174 2007-01-24  Bruno Haible  <bruno@clisp.org>
70175
70176         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70177         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70178         gl_GETADDRINFO.
70179         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70180         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70181         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70182
70183 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70186         Don't use 'exit'; just return from 'main'.
70187         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70188
70189         * lib/fnmatch_.h: Readjust white space and comments to match
70190         glibc, to avoid spurious diffs.
70191
70192 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70195         2004-12-01 change by Jakub Jelinek, since this code won't compile
70196         if !LIBC.  Problem reported by Bob Proulx.
70197
70198 2007-01-23  Bruno Haible  <bruno@clisp.org>
70199
70200         * lib/striconveh.c: Include c-strcaseeq.h.
70201         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70202         * modules/striconveh (Depends-on): Add c-strcaseeq.
70203
70204 2007-01-23  Bruno Haible  <bruno@clisp.org>
70205
70206         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70207
70208         * modules/c-strcaseeq: New file.
70209         * lib/c-strcaseeq.h: New file.
70210
70211         * modules/streq: New file.
70212         * lib/streq.h: New file.
70213
70214 2007-01-23  Bruno Haible  <bruno@clisp.org>
70215
70216         * modules/striconveha-tests: New file.
70217         * tests/test-striconveha.c: New file.
70218
70219         * lib/striconveha.h: Include <stdbool.h>.
70220         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70221         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70222         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70223         (mem_iconveha): New function.
70224         (str_iconveha_notranslit): Renamed from str_iconveha.
70225         (str_iconveha): New function.
70226         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70227         c-strcase.
70228
70229 2007-01-23  Bruno Haible  <bruno@clisp.org>
70230
70231         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70232         encodings without forgiving before trying any encoding with handler.
70233         (str_iconveha): Try all encodings without forgiving before trying any
70234         encoding with handler.
70235
70236 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70237
70238         Import the following changes from libc.
70239
70240         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70241
70242         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70243
70244         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70245
70246         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70247         normal_bracket label.
70248
70249         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70250
70251         [BZ #361]
70252         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70253         to normal_bracket after fetching the next character.
70254
70255 2007-01-22  Bruno Haible  <bruno@clisp.org>
70256
70257         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70258         argument.
70259         * lib/striconveh.c (iconv_carefully_1): New function.
70260         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70261         argument.
70262         (str_cd_iconveh): Update.
70263         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70264         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70265         * tests/test-striconveh.c (MAGIC): New macro.
70266         (new_offsets): New function.
70267         (main): Test call with and without offsets.
70268
70269 2007-01-22  Bruno Haible  <bruno@clisp.org>
70270
70271         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70272         * modules/sys_select (Makefile.am): Likewise.
70273         * modules/sys_socket (Makefile.am): Likewise.
70274         * modules/sys_time (Makefile.am): Likewise.
70275
70276 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70277
70278         * modules/gettimeofday (License): Change from GPL to LGPL, since
70279         gettimeofday is a library function.
70280
70281 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70282
70283         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70284
70285 2007-01-21  Bruno Haible  <bruno@clisp.org>
70286
70287         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70288
70289 2007-01-21  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/striconveha: New file.
70292         * lib/striconveha.h: New file.
70293         * lib/striconveha.c: New file.
70294         * MODULES.html.sh (Internationalization functions): Add striconveha.
70295         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70296         string.
70297         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70298
70299 2007-01-21  Bruno Haible  <bruno@clisp.org>
70300
70301         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70302         * lib/striconveh.c (str_iconveh): Likewise.
70303
70304 2007-01-21  Bruno Haible  <bruno@clisp.org>
70305
70306         * lib/striconveh.h (mem_iconveh): New declaration.
70307         * lib/striconveh.c (mem_iconveh): New function.
70308         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70309
70310 2007-01-21  Bruno Haible  <bruno@clisp.org>
70311
70312         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70313
70314         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70315         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70316         original result buffer.
70317         (str_cd_iconveh): Update.
70318         * tests/test-striconveh.c (main): Update.
70319
70320         * lib/striconv.h (mem_cd_iconv): Change specification.
70321         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70322         result buffer.
70323         (str_cd_iconv): Update.
70324         * tests/test-striconv.c (main): Update.
70325
70326 2007-01-21  Bruno Haible  <bruno@clisp.org>
70327
70328         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70329
70330 2007-01-20  Jim Meyering  <jim@meyering.net>
70331
70332         * lib/userspec.c (parse_with_separator): If a user or group string
70333         starts with "+", skip the corresponding name-to-ID look-up, since
70334         such a look-up must fail: user and group names may not include "+".
70335
70336 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70337
70338         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70339         since we now assume the sys_time module.
70340         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70341         check for sys/time.h; no longer needed.
70342         * modules/poll (Depends-on): Depend on sys_time.
70343
70344 2007-01-18  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70347         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70348
70349         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70350         gettimeofday.
70351
70352         * tests/test-gettimeofday.c: Include <time.h>.
70353         (dummy): Remove variable.
70354
70355         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70356         gl_HEADER_SYS_TIME_H.
70357         (gl_HEADER_SYS_TIME_H): New macro.
70358
70359         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70360         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70362         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70363         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70364         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70365         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70366         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70367         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70368         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70369         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70370
70371         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70372         last change; it caused a compilation error when cross-compiling to
70373         Cygwin.
70374
70375 2007-01-18  Jim Meyering  <jim@meyering.net>
70376
70377         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70378         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70379         than the race-prone "test -d sys || mkdir sys".
70380         (configure.ac): Use AC_PROG_MKDIR_P.
70381         * modules/sys_select: Likewise.
70382         * modules/sys_socket: Likewise.
70383         * modules/sys_time: Likewise.
70384
70385 2007-01-18  Eric Blake  <ebb9@byu.net>
70386
70387         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70388         replace gettimeofday.
70389         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70390         name, to avoid infinite recursion.
70391
70392 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70393
70394         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70395         module sys_time.
70396         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70397         assume timespec.h defines struct timeval.
70398         * lib/settime.c: Likewise.
70399         * lib/utimens.c: Likewise.
70400         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70401         since we now assume the gettimeofday module.
70402         * lib/tempname.c (__gen_tempname): Likewise.
70403         * lib/gettimeofday.h: Remove.
70404         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70405         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70406         Include <time.h>, for 'time()'.
70407         (localtime_buffer_addr): Also use this workaround if
70408         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70409         to simplify the uses.  All uses changed.
70410         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70411         that #undef is inside {}, and 'const' follows type name consistently.
70412         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70413         (gettimeofday): Do not use the maximum possible value for
70414         tv->tv_usec, since that might break usages other than ls.c.
70415         Instead, we'll leave ls.c alone.  This undoes today's patch
70416         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70417         we've never observed the problem but might as well keep the
70418         canary.
70419         * lib/nanosleep.c: Include timespec.h first, for interface check.
70420         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70421         now assume the sys_time module.
70422         * lib/tempname.c: Likewise.
70423         * lib/timespec.h: Likewise.
70424         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70425         needed.
70426         * lib/strftime.c: Likewise.
70427         * lib/timespec.h: Likewise.
70428         * lib/posixtm.c: Include posixtm.h first, for interface check.
70429         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70430         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70431         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70432         * lib/sys_time_.h: New file.
70433         * lib/timespec.h (struct timespec): Use long int, not long.
70434         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70435         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70436         Remove obsolescent call to AC_HEADER_TIME.
70437         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70438         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70439         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70440         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70441         Likewise.
70442         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70443         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70444         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70445         into the sys_time module.  Check for gettimeofday just once.
70446         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70447         for gettimeofday signature to just check the signature.  Merely
70448         compile it, since linking doesn't test signature.  Improve test for
70449         whether gettimeofday.o is actually needed.
70450         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70451         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70452         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70453         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70454         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70455         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70456         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70457         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70458         than worrying about sys/time.h.
70459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70460         Don't bother worrying about TIME_WITH_SYS_TIME.
70461         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70462         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70463         * m4/sys_time_h.m4: New file.
70464         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70465         Don't include sys/time.h.  Return from main rather than exiting.
70466         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70467         all uses changed.
70468         * modules/gethrxtime (Depends-on): Add sys_time.
70469         * modules/gettime (Depends-on): Likewise.
70470         * modules/gettimeofday (Depends-on): Likewise.
70471         * modules/nanosleep (Depends-on): Likewise.
70472         * modules/settime (Depends-on): Likewise.
70473         * modules/tempname (Depends-on): Likewise.
70474         * modules/utimens (Depends-on): Likewise.
70475         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70476         (Include): Change back to <sys/time.h>.
70477         (Maintainer): Add self.
70478         * modules/sys_time: New file.
70479         * modules/tempname (Depends-on): Add gettimeofday.
70480         * tests/test-gettimeofday.c: Include <sys/time.h>
70481         rather than gettimeofday.h.
70482
70483 2007-01-17  Bruno Haible  <bruno@clisp.org>
70484
70485         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70486         the license default to GPL.
70487         (func_create_testdir): Don't complain if a module is LGPL and its
70488         tests module depends on GPLed modules.
70489
70490 2007-01-17  Bruno Haible  <bruno@clisp.org>
70491
70492         * lib/gettimeofday.c (gettimeofday): Add code for the case
70493         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70494         maximum possible value for tv->tv_usec, rather than the minimum one.
70495
70496 2005-10-08  Martin Lambers  <marlam@marlam.de>
70497 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70498 2007-01-16  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70501         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70502         gl_FUNC_GETTIMEOFDAY.
70503         (Include): Add gettimeofday.h.
70504         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70505         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70506         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70507         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70508         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70509         * lib/gettimeofday.h: New file.
70510         * lib/gettimeofday.c: Include <sys/timeb.h>.
70511         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70512         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70513         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70514         fall back on time().
70515
70516         * tests/test-gettimeofday.c: New file.
70517         * modules/gettimeofday-tests: New file.
70518
70519 2007-01-16  Eric Blake  <ebb9@byu.net>
70520
70521         * modules/fnmatch (Depends-on): Depend on wchar.
70522         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70523         * m4/fnmatch.m4: Likewise.
70524         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70525         * m4/mbchar.m4: Likewise.
70526         * modules/mbswidth (Depends-on): Depend on wchar.
70527         * lib/mbswidth.c: Assume <wchar.h>.
70528         * m4/mbswidth.m4: Likewise.
70529         * modules/quotearg (Depends-on): Depend on wchar.
70530         * lib/quotearg.c: Assume <wchar.h>.
70531         * m4/quotearg.m4: Likewise.
70532         * modules/regex (Depends-on): Depend on wchar.
70533         * lib/regex_internal.h: Assume <wchar.h>.
70534         * m4/regex.m4: Likewise.
70535         * modules/stdint (Depends-on): Depend on wchar.
70536         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70537         * m4/stdint.m4: Likewise.
70538         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70539         * modules/strftime (Depends-on): Depend on wchar.
70540         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70541         * modules/strtol (Depends-on): Depend on wchar.
70542         * lib/strtol.c: Assume <wchar.h>.
70543         * modules/wcwidth (Depends-on): Depend on wchar.
70544         * lib/wcwidth.h: Assume <wchar.h>.
70545         * m4/wcwidth.m4: Likewise.
70546
70547 2007-01-16  Bruno Haible  <bruno@clisp.org>
70548
70549         * modules/csharpexec-script: New, created from...
70550         * modules/csharpexec: ... this.
70551
70552 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70553
70554         * modules/javaexec-script: New, created from...
70555         * modules/javaexec: ... this.
70556
70557 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70558
70559         * modules/poll (Dependencies): Add sys_select.
70560
70561 2007-01-15  Jim Meyering  <jim@meyering.net>
70562
70563         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70564         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70565         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70566         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70567
70568 2007-01-15  Bruno Haible  <bruno@clisp.org>
70569
70570         * modules/striconveh: New file.
70571         * lib/striconveh.h: New file.
70572         * lib/striconveh.c: New file.
70573         * MODULES.html.sh (Internationalization functions): Add striconveh.
70574
70575         * modules/striconveh-tests: New file.
70576         * tests/test-striconveh.c: New file.
70577
70578 2007-01-15  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70581         not from GNU libiconv or GNU libc.
70582
70583 2007-01-15  Bruno Haible  <bruno@clisp.org>
70584
70585         * doc/gnulib-intro.texi (Copyright): Explain the different license
70586         terms for module descriptions, autoconf macros, tests, documentation.
70587
70588 2007-01-14  Bruno Haible  <bruno@clisp.org>
70589
70590         * modules/striconv-tests: New file.
70591         * tests/test-striconv.c: New file.
70592
70593 2007-01-14  Bruno Haible  <bruno@clisp.org>
70594
70595         * modules/iconv-tests: New file.
70596         * tests/test-iconv.c: New file.
70597
70598 2007-01-14  Bruno Haible  <bruno@clisp.org>
70599
70600         * gnulib-tool (func_get_license): For test modules, use the license of
70601         the main module.
70602
70603 2007-01-14  Bruno Haible  <bruno@clisp.org>
70604
70605         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70606         if iconv is found to exist.
70607
70608 2007-01-14  Bruno Haible  <bruno@clisp.org>
70609
70610         * modules/c-ctype-tests: New file.
70611         * tests/test-c-ctype.c: New file.
70612
70613 2007-01-14  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/binary-io-tests: New file.
70616         * tests/test-binary-io.sh: New file.
70617         * tests/test-binary-io.c: New file.
70618
70619 2007-01-14  Bruno Haible  <bruno@clisp.org>
70620
70621         * modules/array-oset-tests: New file.
70622         * tests/test-array_oset.c: New file.
70623
70624 2007-01-14  Bruno Haible  <bruno@clisp.org>
70625
70626         * modules/array-list-tests: New file.
70627         * tests/test-array_list.c: New file.
70628
70629 2007-01-14  Bruno Haible  <bruno@clisp.org>
70630
70631         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70632         and make.
70633         Reported by Simon Josefsson in
70634         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70635
70636 2007-01-14  Bruno Haible  <bruno@clisp.org>
70637
70638         * modules/allocsa-tests: New file.
70639         * tests/test-allocsa.c: New file.
70640
70641 2007-01-14  Bruno Haible  <bruno@clisp.org>
70642
70643         * modules/fchdir (Depends-on): Add absolute-header.
70644         * modules/unistd (Depends-on): Likewise.
70645
70646 2006-12-30  Bruno Haible  <bruno@clisp.org>
70647
70648         * modules/fchdir: New file.
70649         * modules/unistd (Files): Add lib/unistd_.h.
70650         (Makefile.am): Generate unistd.h from unistd_.h.
70651         * lib/fchdir.c: New file.
70652         * lib/dirent_.h: New file.
70653         * lib/unistd_.h: New file.
70654         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70655         * m4/fchdir.m4: New file.
70656         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70657         (gl_HEADER_UNISTD): Invoke it.
70658         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70659         function.
70660         * lib/backupfile.c (opendir, closedir): Undefine.
70661         * lib/chown.c (open, close): Undefine.
70662         * lib/clean-temp.c (open, close): Undefine.
70663         * lib/copy-file.c (open, close): Undefine.
70664         * lib/execute.c (open, close): Undefine.
70665         * lib/fsusage.c (open, close): Undefine.
70666         * lib/gc-gnulib.c (open, close): Undefine.
70667         * lib/getcwd.c (opendir, closedir): Undefine.
70668         * lib/glob.c (opendir, closedir): Undefine.
70669         * lib/javacomp.c (open, close): Undefine.
70670         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70671         * lib/openat-proc.c (open, close): Undefine.
70672         * lib/pagealign_alloc.c (open, close): Undefine.
70673         * lib/pipe.c (open, close): Undefine.
70674         * lib/progreloc.c (open, close): Undefine.
70675         * lib/savedir.c (opendir, closedir): Undefine.
70676         * lib/utime.c (open, close): Undefine.
70677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70678
70679 2007-01-10  Bruno Haible  <bruno@clisp.org>
70680
70681         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70682
70683 2007-01-12  Eric Blake  <ebb9@byu.net>
70684
70685         Provide a robust <wchar.h>.  Further simplifications are now
70686         possible in other modules, but not included here.
70687         * modules/wchar: New module.
70688         * m4/wchar.m4: New file.
70689         * lib/wchar_.h: Likewise.
70690         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70691         of the new module.
70692         * MODULES.html.sh (Extended multibyte and wide character utilities):
70693         New section.
70694
70695 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70698         to a reasonable default for memory allocation.
70699         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70700         file system that reports garbage st_size values for symlinks.
70701         Problem reported by Liyang Hu.
70702
70703 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70704
70705         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70706         Emacs .#* auto-save files).
70707
70708 2007-01-11  Bruno Haible  <bruno@clisp.org>
70709
70710         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70711         directory.
70712
70713 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70714
70715         Use @...@ consistently in lib/wctype_.h.
70716         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70717         on it being set to 1 or 0.
70718         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70719         go back to AC_SUBSTing it.
70720         * modules/wctype (Makefile.am): Undo previous change.
70721
70722 2007-01-10  Eric Blake  <ebb9@byu.net>
70723
70724         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70725         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70726         * modules/wctype (Makefile.am): Likewise.
70727         Reported by Chris McGuire.
70728
70729 2007-01-10  Jim Meyering  <jim@meyering.net>
70730
70731         fts.c: a small readability/maintainability improvement
70732         * lib/fts.c (fts_read): Make this code slightly more readable and
70733         maintainable by hoisting the "sp->fts_cur = p" assignments to
70734         immediately follow the statements that set P.  Derived from
70735         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70736
70737 2007-01-10  Eric Blake  <ebb9@byu.net>
70738
70739         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70740         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70742         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70743         Reported by Chris McGuire.
70744
70745 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70746
70747         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70748         in sed script.
70749
70750 2007-01-09  Bruno Haible  <bruno@clisp.org>
70751
70752         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70753         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70754         variables.
70755         (func_module): Use them.
70756
70757 2007-01-09  Bruno Haible  <bruno@clisp.org>
70758
70759         * modules/unistr/base: New file.
70760         * lib/unistr.h: New file.
70761
70762         * modules/unistr/u8-to-u16: New file.
70763         * lib/unistr/u8-to-u16.c: New file.
70764
70765         * modules/unistr/u8-to-u32: New file.
70766         * lib/unistr/u8-to-u32.c: New file.
70767
70768         * modules/unistr/u16-to-u8: New file.
70769         * lib/unistr/u16-to-u8.c: New file.
70770
70771         * modules/unistr/u16-to-u32: New file.
70772         * lib/unistr/u16-to-u32.c: New file.
70773
70774         * modules/unistr/u32-to-u8: New file.
70775         * lib/unistr/u32-to-u8.c: New file.
70776
70777         * modules/unistr/u32-to-u16: New file.
70778         * lib/unistr/u32-to-u16.c: New file.
70779
70780         * modules/unistr/u8-check: New file.
70781         * modules/unistr/u16-check: New file.
70782         * modules/unistr/u32-check: New file.
70783         * lib/unistr/u8-check.c: New file.
70784         * lib/unistr/u16-check.c: New file.
70785         * lib/unistr/u32-check.c: New file.
70786
70787         * modules/unistr/u8-chr: New file.
70788         * modules/unistr/u16-chr: New file.
70789         * modules/unistr/u32-chr: New file.
70790         * lib/unistr/u8-chr.c: New file.
70791         * lib/unistr/u16-chr.c: New file.
70792         * lib/unistr/u32-chr.c: New file.
70793
70794         * modules/unistr/u8-cmp: New file.
70795         * modules/unistr/u16-cmp: New file.
70796         * modules/unistr/u32-cmp: New file.
70797         * lib/unistr/u8-cmp.c: New file.
70798         * lib/unistr/u16-cmp.c: New file.
70799         * lib/unistr/u32-cmp.c: New file.
70800
70801         * modules/unistr/u8-cpy: New file.
70802         * modules/unistr/u16-cpy: New file.
70803         * modules/unistr/u32-cpy: New file.
70804         * lib/unistr/u8-cpy.c: New file.
70805         * lib/unistr/u16-cpy.c: New file.
70806         * lib/unistr/u32-cpy.c: New file.
70807         * lib/unistr/u-cpy.h: New file.
70808
70809         * modules/unistr/u8-cpy-alloc: New file.
70810         * modules/unistr/u16-cpy-alloc: New file.
70811         * modules/unistr/u32-cpy-alloc: New file.
70812         * lib/unistr/u8-cpy-alloc.c: New file.
70813         * lib/unistr/u16-cpy-alloc.c: New file.
70814         * lib/unistr/u32-cpy-alloc.c: New file.
70815         * lib/unistr/u-cpy-alloc.h: New file.
70816
70817         * modules/unistr/u8-endswith: New file.
70818         * modules/unistr/u16-endswith: New file.
70819         * modules/unistr/u32-endswith: New file.
70820         * lib/unistr/u8-endswith.c: New file.
70821         * lib/unistr/u16-endswith.c: New file.
70822         * lib/unistr/u32-endswith.c: New file.
70823         * lib/unistr/u-endswith.h: New file.
70824
70825         * modules/unistr/u8-mblen: New file.
70826         * modules/unistr/u16-mblen: New file.
70827         * modules/unistr/u32-mblen: New file.
70828         * lib/unistr/u8-mblen.c: New file.
70829         * lib/unistr/u16-mblen.c: New file.
70830         * lib/unistr/u32-mblen.c: New file.
70831
70832         * modules/unistr/u8-mbtouc: New file.
70833         * modules/unistr/u16-mbtouc: New file.
70834         * modules/unistr/u32-mbtouc: New file.
70835         * lib/unistr/u8-mbtouc.c: New file.
70836         * lib/unistr/u16-mbtouc.c: New file.
70837         * lib/unistr/u32-mbtouc.c: New file.
70838
70839         * modules/unistr/u8-mbtouc-safe: New file.
70840         * modules/unistr/u16-mbtouc-safe: New file.
70841         * modules/unistr/u32-mbtouc-safe: New file.
70842         * lib/unistr/u8-mbtouc-safe.c: New file.
70843         * lib/unistr/u16-mbtouc-safe.c: New file.
70844         * lib/unistr/u32-mbtouc-safe.c: New file.
70845
70846         * modules/unistr/u8-move: New file.
70847         * modules/unistr/u16-move: New file.
70848         * modules/unistr/u32-move: New file.
70849         * lib/unistr/u8-move.c: New file.
70850         * lib/unistr/u16-move.c: New file.
70851         * lib/unistr/u32-move.c: New file.
70852         * lib/unistr/u-move.h: New file.
70853
70854         * modules/unistr/u8-next: New file.
70855         * modules/unistr/u16-next: New file.
70856         * modules/unistr/u32-next: New file.
70857         * lib/unistr/u8-next.c: New file.
70858         * lib/unistr/u16-next.c: New file.
70859         * lib/unistr/u32-next.c: New file.
70860
70861         * modules/unistr/u8-prev: New file.
70862         * modules/unistr/u16-prev: New file.
70863         * modules/unistr/u32-prev: New file.
70864         * lib/unistr/u8-prev.c: New file.
70865         * lib/unistr/u16-prev.c: New file.
70866         * lib/unistr/u32-prev.c: New file.
70867
70868         * modules/unistr/u8-set: New file.
70869         * modules/unistr/u16-set: New file.
70870         * modules/unistr/u32-set: New file.
70871         * lib/unistr/u8-set.c: New file.
70872         * lib/unistr/u16-set.c: New file.
70873         * lib/unistr/u32-set.c: New file.
70874         * lib/unistr/u-set.h: New file.
70875
70876         * modules/unistr/u8-startswith: New file.
70877         * modules/unistr/u16-startswith: New file.
70878         * modules/unistr/u32-startswith: New file.
70879         * lib/unistr/u8-startswith.c: New file.
70880         * lib/unistr/u16-startswith.c: New file.
70881         * lib/unistr/u32-startswith.c: New file.
70882         * lib/unistr/u-startswith.h: New file.
70883
70884         * modules/unistr/u8-stpcpy: New file.
70885         * modules/unistr/u16-stpcpy: New file.
70886         * modules/unistr/u32-stpcpy: New file.
70887         * lib/unistr/u8-stpcpy.c: New file.
70888         * lib/unistr/u16-stpcpy.c: New file.
70889         * lib/unistr/u32-stpcpy.c: New file.
70890         * lib/unistr/u-stpcpy.h: New file.
70891
70892         * modules/unistr/u8-stpncpy: New file.
70893         * modules/unistr/u16-stpncpy: New file.
70894         * modules/unistr/u32-stpncpy: New file.
70895         * lib/unistr/u8-stpncpy.c: New file.
70896         * lib/unistr/u16-stpncpy.c: New file.
70897         * lib/unistr/u32-stpncpy.c: New file.
70898         * lib/unistr/u-stpncpy.h: New file.
70899
70900         * modules/unistr/u8-strcat: New file.
70901         * modules/unistr/u16-strcat: New file.
70902         * modules/unistr/u32-strcat: New file.
70903         * lib/unistr/u8-strcat.c: New file.
70904         * lib/unistr/u16-strcat.c: New file.
70905         * lib/unistr/u32-strcat.c: New file.
70906         * lib/unistr/u-strcat.h: New file.
70907
70908         * modules/unistr/u8-strchr: New file.
70909         * modules/unistr/u16-strchr: New file.
70910         * modules/unistr/u32-strchr: New file.
70911         * lib/unistr/u8-strchr.c: New file.
70912         * lib/unistr/u16-strchr.c: New file.
70913         * lib/unistr/u32-strchr.c: New file.
70914
70915         * modules/unistr/u8-strcmp: New file.
70916         * modules/unistr/u16-strcmp: New file.
70917         * modules/unistr/u32-strcmp: New file.
70918         * lib/unistr/u8-strcmp.c: New file.
70919         * lib/unistr/u16-strcmp.c: New file.
70920         * lib/unistr/u32-strcmp.c: New file.
70921
70922         * modules/unistr/u8-strcpy: New file.
70923         * modules/unistr/u16-strcpy: New file.
70924         * modules/unistr/u32-strcpy: New file.
70925         * lib/unistr/u8-strcpy.c: New file.
70926         * lib/unistr/u16-strcpy.c: New file.
70927         * lib/unistr/u32-strcpy.c: New file.
70928         * lib/unistr/u-strcpy.h: New file.
70929
70930         * modules/unistr/u8-strcspn: New file.
70931         * modules/unistr/u16-strcspn: New file.
70932         * modules/unistr/u32-strcspn: New file.
70933         * lib/unistr/u8-strcspn.c: New file.
70934         * lib/unistr/u16-strcspn.c: New file.
70935         * lib/unistr/u32-strcspn.c: New file.
70936         * lib/unistr/u-strcspn.h: New file.
70937
70938         * modules/unistr/u8-strdup: New file.
70939         * modules/unistr/u16-strdup: New file.
70940         * modules/unistr/u32-strdup: New file.
70941         * lib/unistr/u8-strdup.c: New file.
70942         * lib/unistr/u16-strdup.c: New file.
70943         * lib/unistr/u32-strdup.c: New file.
70944         * lib/unistr/u-strdup.h: New file.
70945
70946         * modules/unistr/u8-strlen: New file.
70947         * modules/unistr/u16-strlen: New file.
70948         * modules/unistr/u32-strlen: New file.
70949         * lib/unistr/u8-strlen.c: New file.
70950         * lib/unistr/u16-strlen.c: New file.
70951         * lib/unistr/u32-strlen.c: New file.
70952         * lib/unistr/u-strlen.h: New file.
70953
70954         * modules/unistr/u8-strmblen: New file.
70955         * modules/unistr/u16-strmblen: New file.
70956         * modules/unistr/u32-strmblen: New file.
70957         * lib/unistr/u8-strmblen.c: New file.
70958         * lib/unistr/u16-strmblen.c: New file.
70959         * lib/unistr/u32-strmblen.c: New file.
70960
70961         * modules/unistr/u8-strmbtouc: New file.
70962         * modules/unistr/u16-strmbtouc: New file.
70963         * modules/unistr/u32-strmbtouc: New file.
70964         * lib/unistr/u8-strmbtouc.c: New file.
70965         * lib/unistr/u16-strmbtouc.c: New file.
70966         * lib/unistr/u32-strmbtouc.c: New file.
70967
70968         * modules/unistr/u8-strncat: New file.
70969         * modules/unistr/u16-strncat: New file.
70970         * modules/unistr/u32-strncat: New file.
70971         * lib/unistr/u8-strncat.c: New file.
70972         * lib/unistr/u16-strncat.c: New file.
70973         * lib/unistr/u32-strncat.c: New file.
70974         * lib/unistr/u-strncat.h: New file.
70975
70976         * modules/unistr/u8-strncmp: New file.
70977         * modules/unistr/u16-strncmp: New file.
70978         * modules/unistr/u32-strncmp: New file.
70979         * lib/unistr/u8-strncmp.c: New file.
70980         * lib/unistr/u16-strncmp.c: New file.
70981         * lib/unistr/u32-strncmp.c: New file.
70982
70983         * modules/unistr/u8-strncpy: New file.
70984         * modules/unistr/u16-strncpy: New file.
70985         * modules/unistr/u32-strncpy: New file.
70986         * lib/unistr/u8-strncpy.c: New file.
70987         * lib/unistr/u16-strncpy.c: New file.
70988         * lib/unistr/u32-strncpy.c: New file.
70989         * lib/unistr/u-strncpy.h: New file.
70990
70991         * modules/unistr/u8-strnlen: New file.
70992         * modules/unistr/u16-strnlen: New file.
70993         * modules/unistr/u32-strnlen: New file.
70994         * lib/unistr/u8-strnlen.c: New file.
70995         * lib/unistr/u16-strnlen.c: New file.
70996         * lib/unistr/u32-strnlen.c: New file.
70997         * lib/unistr/u-strnlen.h: New file.
70998
70999         * modules/unistr/u8-strpbrk: New file.
71000         * modules/unistr/u16-strpbrk: New file.
71001         * modules/unistr/u32-strpbrk: New file.
71002         * lib/unistr/u8-strpbrk.c: New file.
71003         * lib/unistr/u16-strpbrk.c: New file.
71004         * lib/unistr/u32-strpbrk.c: New file.
71005         * lib/unistr/u-strpbrk.h: New file.
71006
71007         * modules/unistr/u8-strrchr: New file.
71008         * modules/unistr/u16-strrchr: New file.
71009         * modules/unistr/u32-strrchr: New file.
71010         * lib/unistr/u8-strrchr.c: New file.
71011         * lib/unistr/u16-strrchr.c: New file.
71012         * lib/unistr/u32-strrchr.c: New file.
71013
71014         * modules/unistr/u8-strspn: New file.
71015         * modules/unistr/u16-strspn: New file.
71016         * modules/unistr/u32-strspn: New file.
71017         * lib/unistr/u8-strspn.c: New file.
71018         * lib/unistr/u16-strspn.c: New file.
71019         * lib/unistr/u32-strspn.c: New file.
71020         * lib/unistr/u-strspn.h: New file.
71021
71022         * modules/unistr/u8-strstr: New file.
71023         * modules/unistr/u16-strstr: New file.
71024         * modules/unistr/u32-strstr: New file.
71025         * lib/unistr/u8-strstr.c: New file.
71026         * lib/unistr/u16-strstr.c: New file.
71027         * lib/unistr/u32-strstr.c: New file.
71028         * lib/unistr/u-strstr.h: New file.
71029
71030         * modules/unistr/u8-strtok: New file.
71031         * modules/unistr/u16-strtok: New file.
71032         * modules/unistr/u32-strtok: New file.
71033         * lib/unistr/u8-strtok.c: New file.
71034         * lib/unistr/u16-strtok.c: New file.
71035         * lib/unistr/u32-strtok.c: New file.
71036         * lib/unistr/u-strtok.h: New file.
71037
71038         * modules/unistr/u8-uctomb: New file.
71039         * modules/unistr/u16-uctomb: New file.
71040         * modules/unistr/u32-uctomb: New file.
71041         * lib/unistr/u8-uctomb.c: New file.
71042         * lib/unistr/u16-uctomb.c: New file.
71043         * lib/unistr/u32-uctomb.c: New file.
71044
71045         * MODULES.html.sh (Unicode string functions): Add the new modules.
71046
71047 2007-01-08  Bruno Haible  <bruno@clisp.org>
71048
71049         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71050         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71051         subdirectories.
71052
71053 2007-01-08  Karl Berry  <karl@gnu.org>
71054
71055         * doc/error.texi: mention that main() fns must set program_name
71056         when progname is used.
71057
71058 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71059
71060         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71061         WCTYPE_H is empty, for the benefit of builds from non-distclean
71062         directories.  Problem reported by Eric Blake in
71063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71064
71065 2007-01-08  Bruno Haible  <bruno@clisp.org>
71066
71067         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71068         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71069         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71070         PROVIDE_CANONICALIZE_FILENAME_MODE.
71071         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71072
71073 2007-01-08  Bruno Haible  <bruno@clisp.org>
71074
71075         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71076         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71077         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71078         * lib/fts.c: Likewise.
71079         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71080
71081 2006-12-25  Bruno Haible  <bruno@clisp.org>
71082
71083         * modules/utf8-ucs4-safe: New file.
71084         * lib/utf8-ucs4-safe.h: New file.
71085         * lib/unistr/utf8-ucs4-safe.c: New file.
71086
71087         * modules/utf16-ucs4-safe: New file.
71088         * lib/utf16-ucs4-safe.h: New file.
71089         * lib/unistr/utf16-ucs4-safe.c: New file.
71090
71091         * MODULES.html.sh (Unicode string functions): Add the new modules.
71092
71093 2007-01-08  Bruno Haible  <bruno@clisp.org>
71094
71095         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71096         (Depends-on): Add unitypes.
71097         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71098         (u8_mbtouc_aux): Move out to separate file.
71099         (u8_mbtouc): Use ucs4_t, uint8_t types.
71100         * lib/unistr/utf8-ucs4.c: New file.
71101
71102         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71103         (Depends-on): Add unitypes.
71104         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71105         (u16_mbtouc_aux): Move out to separate file.
71106         (u16_mbtouc): Use ucs4_t, uint16_t types.
71107         * lib/unistr/utf16-ucs4.c: New file.
71108
71109         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71110         (Depends-on): Add unitypes.
71111         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71112         (u8_uctomb_aux): Move out to separate file.
71113         (u8_uctomb): Use ucs4_t, uint8_t types.
71114         * lib/unistr/ucs4-utf8.c: New file.
71115
71116         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71117         (Depends-on): Add unitypes.
71118         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71119         (u16_uctomb_aux): Move out to separate file.
71120         (u16_uctomb): Use ucs4_t, uint16_t types.
71121         * lib/unistr/ucs4-utf16.c: New file.
71122
71123 2006-12-25  Bruno Haible  <bruno@clisp.org>
71124
71125         * modules/unitypes: New file.
71126         * lib/unitypes.h: New file.
71127         * MODULES.html.sh (func_all_modules): New section "Unicode string
71128         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71129         this section. Add unitypes.
71130
71131 2007-01-08  Bruno Haible  <bruno@clisp.org>
71132
71133         Avoid variable names that conflict with those from libtool.
71134         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71135         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71136         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71137         library_names_spec to acl_library_names_spec, hardcode_* to
71138         acl_hardcode_*.
71139         Reported by Ralf Wildenhues.
71140
71141 2007-01-08  Bruno Haible  <bruno@clisp.org>
71142
71143         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71144         definition.
71145         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71146         definition.
71147         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71148         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71149         definition.
71150         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71151         definition.
71152         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71153         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71154         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71155         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71156         definition.
71157         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71158         definition.
71159         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71160         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71161         GC_USE_<algorithm>.
71162         * lib/gc-libgcrypt.c: Likewise.
71163         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71164         * modules/gc-arctwo (configure.ac): Likewise.
71165         * modules/gc-des (configure.ac): Likewise.
71166         * modules/gc-hmac-md5 (configure.ac): Likewise.
71167         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71168         * modules/gc-md2 (configure.ac): Likewise.
71169         * modules/gc-md4 (configure.ac): Likewise.
71170         * modules/gc-md5 (configure.ac): Likewise.
71171         * modules/gc-random (configure.ac): Likewise.
71172         * modules/gc-rijndael (configure.ac): Likewise.
71173         * modules/gc-sha1 (configure.ac): Likewise.
71174
71175 2007-01-08  Bruno Haible  <bruno@clisp.org>
71176
71177         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71178         macro definition.
71179         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71180         definition.
71181         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71182         definition.
71183         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71184         * modules/fcntl-safer (configure.ac): Likewise.
71185         * modules/fopen-safer (configure.ac): Likewise.
71186         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71187         GNULIB_FWRITEERROR macro definition.
71188
71189 2007-01-08  Bruno Haible  <bruno@clisp.org>
71190
71191         * m4/gnulib-common.m4: New file.
71192         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71193         (func_get_filelist): Add m4/gnulib-common.m4.
71194
71195 2007-01-08  Bruno Haible  <bruno@clisp.org>
71196
71197         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71198         command.
71199
71200 2007-01-08  Jim Meyering  <jim@meyering.net>
71201
71202         Use a more robust test for a "can't happen" condition.
71203         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71204         narrowed the st_size value.  Presuming the "can't happen" condition
71205         is true, that narrowing could conceivably convert an invalid st_size
71206         value into a valid one.  Instead, use a change based on Matthew
71207         Woehlke's original patch.
71208
71209         Slight readability improvement: use an assert-like macro
71210         in place of literal "abort ()" uses.
71211         * lib/fts.c (fts_assert): Define.
71212         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71213         Use this macro instead of a bare 'abort'.
71214
71215 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71216
71217         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71218         simply work around them.
71219         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71220         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71221         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71222         declaring.
71223         Don't bother to define as macros, since the standard doesn't require it.
71224         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71225         longer worry about IRIX 5.3.
71226         (HAVE_WCTYPE_CTMP_BUG): Remove.
71227
71228 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71231         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71232         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71233         Problems reported by Georg Schwarz for IRIX 5.3.
71234
71235         * gnulib-tool (autoconf_minversion): Take the maximum version number
71236         found, not the minimum.  Problem reported by James Youngman.
71237
71238 2007-01-03  Karl Berry  <karl@gnu.org>
71239
71240         * doc/error.texi: new file, explaining interaction with progname.
71241         * doc/gnulib.texi: include it.  Update copyright.
71242
71243 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71244
71245         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71246         AC_CANONICAL_HOST, to improve autobuild outputs.
71247
71248 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71249             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71250
71251         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71252         sockets, server sockets, and other file descriptors.  Count errors
71253         to compute the return value.  Reorder the code a bit to be easier
71254         to follow.  Don't set event bits that were not requested (except
71255         POLLERR and POLLHUP).
71256
71257 2007-01-01  Bruno Haible  <bruno@clisp.org>
71258
71259         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71260
71261 2007-01-03  Jim Meyering  <jim@meyering.net>
71262
71263         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71264
71265 2007-01-02  Bruno Haible  <bruno@clisp.org>
71266
71267         * modules/settime (Include): Require timespec.h.
71268         * modules/nanosleep (Include): Likewise.
71269
71270 2007-01-01  Bruno Haible  <bruno@clisp.org>
71271
71272         * gnulib-tool (func_emit_copyright_notice): Bump year.
71273         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71274
71275 2007-01-01  Bruno Haible  <bruno@clisp.org>
71276
71277         Improve support for OpenBSD.
71278         * build-aux/config.rpath (libname_spec): Export.
71279         (library_names_spec): New variable. Export.
71280         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71281         library_names_spec from the config.rpath output. Locate shared library
71282         through the name pattern in library_names_spec.
71283
71284 2007-01-01  Eric Blake  <ebb9@byu.net>
71285
71286         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71287
71288 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71289
71290         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71291         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71292         assume the C locale, and avoid an "eval" that could cause trouble.
71293         Problem with SORT reported by Bob Proulx.
71294
71295         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71296         Define.  Trivial patch from Henning Nielsen Lund, originally
71297         sent to bug-grep@gnu.org today.
71298
71299 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71300
71301         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71302         struct stat.  Problem reported by Henning Nielsen Lund.
71303         * lib/acl.c: Include acl.h first, to check interface.  Don't
71304         bother to include sys/types.h and sys/stat.h again.
71305
71306 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71307
71308         Import the following change from libc; problem reported by
71309         Sven Verdoolaege.
71310
71311         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71312
71313         [BZ #1373]
71314         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71315
71316 2006-12-28  Jim Meyering  <jim@meyering.net>
71317
71318         * build-aux/announce-gen: Do not assume that the package
71319         builds any of tar.gz, tar.bz2, and .xdelta files.
71320         Suggestion from Simon Josefsson.
71321
71322 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71323
71324         * modules/announce-gen: New file.
71325
71326 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71327
71328         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71329         handles its gotchas now.
71330         * lib/mbswidth.c: Likewise.
71331         * lib/wcwidth.h: Likewise.
71332         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71333         and iswcntrl; the wctype module does this stuff now.
71334         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71335         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71336         * modules/mbchar (Depends-on): Add wctype.
71337         * modules/mbswidth (Depends-on): Likewise.
71338         * modules/wcwidth (Depends-on): Likewise.
71339
71340 2006-12-27  Eric Blake  <ebb9@byu.net>
71341
71342         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71343         module uses more than what <wctype.h> is required to provide.
71344
71345 2006-12-26  Eric Blake  <ebb9@byu.net>
71346
71347         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71348
71349 2006-12-26  Eric Blake  <ebb9@byu.net>
71350
71351         * modules/absolute-header: New module.
71352         * modules/fcntl (Depends-on): Depend on it.
71353         * modules/inttypes (Depends-on): Likewise.
71354         * modules/stdint (Depends-on): Likewise.
71355         * modules/sys_stat (Depends-on): Likewise.
71356         * modules/wctype (Depends-on): Likewise.
71357         * MODULES.html.sh (Support for building libraries and
71358         executables): Document it.
71359
71360 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71361
71362         * gnulib-tool (SED): Remove, undoing previous change.
71363         The problem was that it broke coreutils on Solaris, because
71364         "sed --posix" leaked into a makefile.
71365         (sed): New alias, if 'alias' and GNU sed.
71366
71367 2006-12-24  Jim Meyering  <jim@meyering.net>
71368
71369         Work around an fchownat bug in glibc-2.4:
71370         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71371         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71372         in spite of the -P option.
71373         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71374         New macros.
71375         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71376         * modules/openat (Files): Add lib/fchownat.c.
71377         * lib/openat.c (fchownat): Don't define here.  Move to...
71378         * lib/fchownat.c: ...this new file.
71379
71380 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         Fix bug reported by Bruno Haible in
71383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71384         where quotearg.c didn't compile on Mac OS X 10.2 because it
71385         lacks <wchar.h> and wint_t.
71386         * lib/wctype_.h (__wctype_wint_t): New type.
71387         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71388         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71389         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71390         Arg is now of type __wctype_wint_t, not wint_t.
71391         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71392         substitute HAVE_WINT_T.
71393         * modules/wctype (Files): Add m4/wint_t.m4.
71394         (wctype.h): Substitute HAVE_WINT_T.
71395
71396 2006-12-23  Bruno Haible  <bruno@clisp.org>
71397
71398         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71399
71400 2006-12-23  Bruno Haible  <bruno@clisp.org>
71401
71402         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71403         S_ISLNK.
71404         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71405         mingw.
71406
71407 2006-12-22  Bruno Haible  <bruno@clisp.org>
71408
71409         * lib/copy-file.c: Include acl.h.
71410         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71411         Close the file descriptors only after being done with copy_acl.
71412         * modules/copy-file (Depends-on): Add acl.
71413
71414 2006-12-22  Bruno Haible  <bruno@clisp.org>
71415
71416         * gnulib-tool (SED): New variable.
71417         Use $SED instead of sed everywhere.
71418
71419 2006-12-22  Bruno Haible  <bruno@clisp.org>
71420
71421         * modules/no-c++: New file.
71422         * m4/no-c++.m4: New file.
71423         * MODULES.html.sh (Support for building libraries and executables):
71424         Add no-c++.
71425
71426 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71429         Include <limits.h>, and use its INT_MAX to rewrite the
71430         j loop so that it does not overflow 'int'.  Problem reported by
71431         Ralf Wildenhues in
71432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71433         Play it safe by shifting left by 1 rather than multiplying by 2,
71434         as GCC is less likely to optimize this away when the value
71435         is signed (when it assumes overflow leads to undefined behavior).
71436         Also, don't assume time_t uses two's complement.
71437
71438 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * MODULES.html.sh: New module wctype.
71441         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71442         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71443         <wctype.h>, since the new wctype module should fix this.
71444         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71445         the wctype module should arrange for it.
71446         * lib/regex_internal.h: Likewise.
71447         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71448         since the wctype module should handle this now.
71449         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71450         * modules/fnmatch (Depends-on): Add wctype.
71451         * modules/quotearg (Depends-on): Likewise.
71452         * modules/regex (Depends-on): Likewise.
71453
71454 2006-12-19  Bruno Haible  <bruno@clisp.org>
71455
71456         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71457         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71458
71459 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71460
71461         * modules/savewd (Depends-on): Fix dependency on fcntl.
71462
71463 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71466         conforms to C99, rather than relying on the user's environment
71467         setting of STDINT_H.
71468
71469 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71470         and Eric Blake  <ebb9@byu.net>
71471
71472         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71473         This is more consistent with the other defines here.
71474         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71475         Port to z/OS.  Problem reported by Paul Gilmartin.
71476         Change local vars to use gl_ prefix rather than ac_.
71477         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71478         with other defines.
71479         * modules/double-slash-root: New module.
71480         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71481         (Depends-on): Add double-slash-root.
71482         * MODULES.html.sh (File system functions): Mention new module.
71483
71484 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71485
71486         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71487         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71488         This is for the benefit of gzip, which doesn't do i18n.
71489
71490 2006-12-12  Jim Meyering  <jim@meyering.net>
71491
71492         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71493         Reported by Andreas Schwab <schwab@suse.de>.
71494
71495 2006-12-12  Bruno Haible  <bruno@clisp.org>
71496
71497         Merge these changes.
71498         2006-09-05  Bruno Haible  <bruno@clisp.org>
71499         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71500         iconv_alloc succeeded.
71501         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71502         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71503         test for " && dest " at the end - dest is always != NULL there. Call
71504         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71505         with 2xNULL arguments, also to flush the state storage. Handle the
71506         IRIX iconv behaviour. Realloc the final result, to throw away unused
71507         memory.
71508
71509 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71510
71511         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71512         and fchmodat unconditionally, since glibc 2.4 has them.
71513         Problem reported by Arkadiusz Miskiewicz.
71514
71515 2006-12-10  Bruno Haible  <bruno@clisp.org>
71516
71517         * gnulib-tool (func_import): Show the include files only for those
71518         modules that are copied and specified.
71519         Reported by Karl Berry.
71520
71521 2006-12-08  Jim Meyering  <jim@meyering.net>
71522
71523         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71524         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71525
71526         * build-aux/announce-gen: Add two new options, both optional:
71527         --bootstrap-tools=TOOL_LIST
71528               a comma-separated list of tools, e.g.,
71529               autoconf,automake,bison,gnulib
71530         --gnulib-snapshot-date=DATE
71531               if gnulib is in the bootstrap tool list,
71532               then report this as the snapshot date.
71533               If not specified, use the current date/time.
71534               If you specify a date here, be sure it's UTC.
71535
71536 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71537
71538         * tests/test-argp-2.sh: Fix test to match actual output.
71539         (func_compare): Fix sed script to be portable.
71540
71541 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71542
71543         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71544         workaround for this case.  It is not autoconfigured now; offhand
71545         it's hard to see how to autoconfigure it.
71546
71547 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71548
71549         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71550         a directory that is about to be chowned.  Such a directory's
71551         initial file permissions should permit the owner only and this
71552         should not be changed until after the chown, since the group and
71553         other bits would be incorrect if they granted permission before
71554         the chown.
71555
71556         Fix porting problem for iswctype reported by Georg Schwarz in:
71557         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71558         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71559         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71560         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71561         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71562
71563 2006-12-03  Jim Meyering  <jim@meyering.net>
71564
71565         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71566         p->fts_statp may not yet be defined.
71567         (fts_read): Instead, set it in the caller, once p->fts_statp is
71568         sure to be defined, and corresponds to a top-level directory.
71569         This bug made du -x fail.  Here's the coreutils test case:
71570         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71571         Reported by Mike Frysinger.
71572
71573 2006-12-01  Jim Meyering  <jim@meyering.net>
71574
71575         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71576         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71577         Reported by Simon Josefsson.
71578
71579 2006-11-30  Jim Meyering  <jim@meyering.net>
71580
71581         * m4/warning.m4: Use the all-permissive copyright notice
71582         recommended by RMS (rather than LGPL).
71583         * m4/vararrays.m4: Likewise.
71584         * m4/flexmember.m4: Likewise.
71585
71586 2006-11-29  Bruno Haible  <bruno@clisp.org>
71587
71588         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71589         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71590         using +=.
71591         Reported by Simon Josefsson <simon@josefsson.org>.
71592
71593 2006-11-28  James Youngman <jay@gnu.org>
71594
71595         * README: Advise users that they might find the bug-gnulib@gnu.org
71596         and autotools-announce@gnu.org mailing lists useful.
71597
71598 2006-11-28  Bruno Haible  <bruno@clisp.org>
71599
71600         * m4/ptrdiff_max.m4: Remove file.
71601
71602 2006-11-21  Bruno Haible  <bruno@clisp.org>
71603
71604         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71605         _AC_COMPUTE_INT.
71606         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71607         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71608         _AC_COMPUTE_INT.
71609         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71610         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71611         _AC_COMPUTE_INT.
71612         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71613
71614 2006-11-28  Jim Meyering  <jim@meyering.net>
71615
71616         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71617         warning from "gcc -Wshadow" about shadowing the builtin.
71618
71619 2006-11-27  Bruno Haible  <bruno@clisp.org>
71620
71621         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71622         _AC_COMPUTE_INT.
71623         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71624
71625 2006-11-27  Bruno Haible  <bruno@clisp.org>
71626             Paul Eggert  <eggert@cs.ucla.edu>
71627
71628         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71629
71630 2006-11-26  Bruno Haible  <bruno@clisp.org>
71631
71632         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71633         noinst_LTLIBRARIES.
71634
71635 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71636             Bruno Haible  <bruno@clisp.org>
71637
71638         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71639         if compiling with "gcc -ansi".
71640
71641 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71642
71643         Fix some incompatibilities with gcc -ansi -pedantic.
71644         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71645         if compiling pedantically with GCC, unless it's C99 or later.
71646         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71647         it mishandles gcc -ansi -pedantic as well.
71648         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71649         if gcc -pedantic.
71650         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71651         initializers for struct if -pedantic, unless it's C99 or later.
71652
71653 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71654
71655         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71656         Don't close an fd more than once. Identical atimes indicate
71657         success, not failure.
71658
71659 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71660
71661         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71662
71663 2006-11-23  Jim Meyering  <jim@meyering.net>
71664
71665         * build-aux/announce-gen: New file.  From coreutils.
71666
71667 2006-11-22  Jim Meyering  <jim@meyering.net>
71668
71669         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71670         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71671         (fts_read): Use a temporary to narrow the overused st_size member
71672         before using it in a switch statement.  Reported by Matthew Woehlke.
71673
71674         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71675         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71676
71677 2006-11-20  Bruno Haible  <bruno@clisp.org>
71678
71679         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71680         changequote instead of pairs of brackets.
71681         Reported by Andreas Schwab <schwab@suse.de>.
71682
71683 2006-11-21  Jim Meyering  <jim@meyering.net>
71684
71685         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71686         so as to remain compatible with older compilers.
71687         Patch from Michael Deutschmann.
71688
71689 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71690
71691         * MODULES.html.sh (File system functions): Add openat.
71692
71693         * lib/openat.h (rpl_fstatat): New macro, if
71694         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71695         (fstatat): Define to rpl_fstatat under the same conditions,
71696         unless COMPILING_FSTATAT.
71697         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71698         seems to have the bug.
71699         * lib/fstatat.c: New file.
71700         * modules/openat (Files): Add it.
71701
71702 2006-11-20  Bruno Haible  <bruno@clisp.org>
71703
71704         * Makefile: New file.
71705
71706 2006-11-20  Jim Meyering  <jim@meyering.net>
71707
71708         The beginnings of syntax-related checks for gnulib.
71709         * lib/Makefile: New file.
71710         * lib/t-idcache: New script.  Ensure that the two halves of
71711         idcache.c stay in sync.
71712
71713         * lib/idcache.c: Adjust comments in user- and group- portions to
71714         be more accurate, and to be consistent with one another.
71715
71716 2006-11-20  Jim Meyering  <jim@meyering.net>
71717
71718         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71719         continue using the flexible array member (thus, this module performs
71720         half as many malloc calls), with the addition that...
71721         (getgroup, getuser): Consistently record a non-match via an empty
71722         "name" string, and map an empty string match to a NULL return value.
71723         * modules/idcache (Depends-on): Re-add flexmember.
71724
71725         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71726         (getuidbyname, getgroup, getgidbyname): Likewise.
71727
71728         Use cleaner syntax: NULL rather than 0.
71729         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71730
71731 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71734         It mishandled the case where the group was missing.
71735         Problem reported by Greg Schafer.
71736         * modules/idcache: Likewise.
71737
71738 2006-11-18  Jim Meyering  <jim@meyering.net>
71739
71740         * check-module (%exempt_header): Add exception for some
71741         conditionally-included headers.
71742
71743         * modules/i-ring (Depends-on): Add verify.
71744         (License): Change to LGPL.
71745
71746 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71747
71748         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71749         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71750         and inttostr.h.  Use snprintf rather than uinttostr, so that
71751         LGPLed code doesn't depend on GPLed.
71752
71753 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71754
71755         * modules/inline (License): Change from GPL to LGPL.
71756
71757 2006-11-17  Jim Meyering  <jim@meyering.net>
71758
71759         * modules/d-type (License): Switch to LGPL.
71760
71761 2006-11-15  Bruno Haible  <bruno@clisp.org>
71762
71763         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71764
71765 2006-11-15  Eric Blake  <ebb9@byu.net>
71766
71767         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71768         the module dependency.
71769
71770 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71771             Bruno Haible  <bruno@clisp.org>
71772
71773         * gnulib-tool (func_create_testdir): Add license consistency check.
71774
71775 2006-11-15  Eric Blake  <ebb9@byu.net>
71776
71777         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71778         random "(cached)" in configure output.
71779
71780 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71781
71782         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71783         test for conforming inttypes.h is both announced and cached.
71784
71785         * MODULES.html.sh (seen_modules, seen_files): New variables.
71786         (func_module): Rewrite to use a few less gnulib-tool and sed
71787         invocations.  Avoid a couple of quadratic algorithms for ...
71788         (missed_modules, missed_files): ... these, with ...
71789         (func_append, func_tmpdir): ... these new functions, from
71790         gnulib-tool.  Analogously, install traps for cleanup.
71791
71792         * tests/test-gc.c (main): Remove unused variables.
71793         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71794
71795 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * modules/inttostr (License): Change to LGPL.
71798
71799 2006-11-14  Eric Blake  <ebb9@byu.net>
71800
71801         * modules/tempname (License): Change to LGPL.
71802
71803 2006-11-14  Eric Blake  <ebb9@byu.net>
71804
71805         * doc/functions.texi (Function Portability): *printf functions on
71806         Cygwin now understand all POSIX size specifiers.
71807
71808 2006-11-14  Bruno Haible  <bruno@clisp.org>
71809
71810         * modules/c-ctype (License): Change to LGPL.
71811
71812 2006-11-12  Bruno Haible  <bruno@clisp.org>
71813
71814         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71815         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71816         for GNOME libraries, for which the include files are installed in
71817         subdirectories of $prefix/include.
71818
71819 2006-11-12  Bruno Haible  <bruno@clisp.org>
71820
71821         * m4/lib-link.m4: Require at least autoconf-2.54.
71822         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71823         name to underscores for the --with option.
71824
71825 2006-11-13  Bruno Haible  <bruno@clisp.org>
71826
71827         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71828         the tests directory.
71829         Reported by Ralf Wildenhues.
71830
71831 2006-11-13  Bruno Haible  <bruno@clisp.org>
71832
71833         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71834         (func_emit_initmacro_end): Undo the override here.
71835         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71836         Works around the famous automake error in coreutils.
71837
71838 2006-11-13  Eric Blake  <ebb9@byu.net>
71839
71840         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71841         element, not its node.
71842
71843 2006-11-12  Bruno Haible  <bruno@clisp.org>
71844
71845         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71846         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71847
71848 2006-11-12  Bruno Haible  <bruno@clisp.org>
71849
71850         * gnulib-tool: New option --local-symlink.
71851         (func_usage): Document it.
71852         (lsymbolic): New variable.
71853         (func_import, func_create_testdir): If --symlink was not specified,
71854         test whether --local-symlink was specified and the file comes from
71855         the local_gnulib_dir.
71856
71857 2006-11-12  Bruno Haible  <bruno@clisp.org>
71858
71859         * gnulib-tool (func_ln): New function.
71860         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71861
71862 2006-11-12  Bruno Haible  <bruno@clisp.org>
71863
71864         Finish support for source files in subdirectories.
71865         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71866         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71867         AUTOMAKE_OPTIONS.
71868         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71869
71870 2006-11-12  Bruno Haible  <bruno@clisp.org>
71871
71872         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71873         EXTRA_lib_SOURCES augmentation.
71874         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71875
71876 2006-11-12  Jim Meyering  <jim@meyering.net>
71877
71878         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71879         file descriptors.  This also averts a failure on systems with
71880         native openat support when a traversed directory lacks "x" access.
71881         * lib/fts_.h: Include "i-ring.h"
71882         (struct FTS) [fts_fd_ring]: New member.
71883         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71884         (FCHDIR): Add parentheses.
71885         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71886         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71887         When descending, rather than simply closing the previous
71888         fts_cwd_fd value, push that file descriptor onto the ring.
71889         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71890         (fts_open): Initialize the new fd_ring member.
71891         (fts_close): Clear the ring.
71892         (fts_safe_changedir): When possible, use our new fd_ring to skip
71893         the diropen and fstat and dev/ino comparison that would normally
71894         accompany a virtual `chdir ("..")'.
71895
71896         * modules/fts (Depends-on): Add i-ring.
71897         * modules/i-ring: New module.
71898         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71899         * m4/i-ring.m4: New file.
71900
71901 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71902
71903         * gnulib-tool (func_create_testdir): Fix replacement of
71904         `build-aux' in configure.ac.  Run autotools in gltests
71905         subdirectory.
71906         (func_create_testdir, func_create_megatestdir, test): There is
71907         no need for '--force' in most autotool invocations in a new
71908         tree.  Actually fail the whole test if any of the tools, or the
71909         configure or make stages fail.
71910
71911         Sync from Automake.
71912         * build-aux/gnupload: Revert last change.  Add pointer to upload
71913         instructions of the GNU Maintenance Instructions.
71914         Suggestion by Karl Berry.
71915
71916 2006-11-10  Jim Meyering  <jim@meyering.net>
71917
71918         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71919
71920 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71921
71922         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71923         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71924         (bind_textdomain_codeset) [! ENABLE_NLS]:
71925         Evaluate all the arguments.  That way, callers get compatible behavior
71926         if the arguments have side effects.  Also, it avoids some GCC
71927         diagnostics in some cases; Joel E. Denny reported problems when Bison
71928         was configured with --enable-gcc-warnigs.
71929
71930 2006-11-10  Jim Meyering  <jim@meyering.net>
71931
71932         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71933         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71934         account.
71935
71936 2006-11-10  Jim Meyering  <jim@meyering.net>
71937
71938         * modules/inline: New file/module.
71939         * modules/xalloc (Files): Remove m4/inline.m4.
71940         (Depends-on): Add inline, instead.
71941         * modules/oset: Likewise.
71942         * modules/list: Likewise.
71943
71944 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71945
71946         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71947         Problem reported by Matthew Woehlke.
71948
71949 2006-11-09  Bruno Haible  <bruno@clisp.org>
71950
71951         * lib/tempname.c (gen_tempname): Remove variant that invokes
71952         __gen_tempname.
71953         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71954         __gen_tempname.
71955
71956 2006-11-08  Bruno Haible  <bruno@clisp.org>
71957
71958         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71959         to 'yes' instead of 'cross-compiling'.
71960
71961 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71962
71963         * lib/quotearg.h (quotearg_free): New decl.
71964         * lib/quotearg.c (quotearg_free): New function.
71965         (slot0, nslots, slotvec0, slotvec):
71966         Now file-scope so that quotearg_free can get at them.
71967
71968 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71969
71970         Sync from Automake.
71971         * build-aux/gnupload: Add missing 'gnu' to example URL.
71972         Report by Karl Berry.
71973
71974 2006-11-08  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71977         Suggested by Paul Eggert.
71978
71979 2006-11-08  Jim Meyering  <jim@meyering.net>
71980
71981         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71982         It's already included if !_LIBC.
71983         (fts_safe_changedir): Add a comment.
71984
71985 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71986
71987         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71988         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71989         Matthew Woehlke.
71990
71991         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71992         definitions up, to avoid colliding with change below.
71993         (static_inline) [HAVE_INLINE]: New macro.
71994         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71995         Provide extern decls when !HAVE_INLINE.  Do not define unless
71996         static_inline is defined, either by us or by xmalloc.c.  Use
71997         static_inline rather than static inline.
71998         (XCALLOC): Optimize sizeof(T) = 1 case.
71999         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72000
72001 2006-11-07  Bruno Haible  <bruno@clisp.org>
72002
72003         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72004         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72005         AC_C_INLINE.
72006         * modules/xalloc (Files): Add m4/inline.m4.
72007
72008 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72009
72010         * README: Fix typo.
72011         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72012         (Miscellanous Notes): ...from this.
72013
72014 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72017         Mention that offsetof should be used instead of sizeof.
72018         From Bruno Haible.
72019
72020 2006-11-07  Bruno Haible  <bruno@clisp.org>
72021
72022         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72023
72024 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72027         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72028         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72029         (gl_tree_add_before, gl_tree_add_after):
72030         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72031         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72032         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72033         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72034         (gl_linked_add_after, gl_linked_add_at): Likewise.
72035         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72036         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72037         (gl_tree_add_before, gl_tree_add_after): Likewise.
72038         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72039         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72040         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72041
72042 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72043
72044         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72045
72046 2006-11-06  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/inline.m4: New file.
72049         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72050         * modules/list (Files): Add m4/inline.m4.
72051         * modules/oset (Files): Likewise.
72052
72053 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         * lib/idcache.c: Include <stddef.h>, for offsetof.
72056         (struct userid.name): Change from char * to a flexible array member.
72057         All uses changed.
72058         * modules/idcache (Depends-on): Add flexmember.
72059
72060         * MODULES.html.sh (Core language properties): New module flexmember.
72061         * modules/flexmember, m4/flexmember.m4: New files.
72062
72063         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72064         inline functions that are identical with the old xnmalloc_inline,
72065         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72066         that we can avoid some unnecessary integer multiplications and
72067         divisions in the common case where the element size is known at
72068         compile time.
72069         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72070         needed.
72071         (xnboundedmalloc): Remove.
72072         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72073         arguments, for consistency with rest of this header.
72074         (xcharalloc): Rewrite using XNMALLOC.
72075         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72076         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72077         versions have been moved to lib/xalloc.h and renamed to be the
72078         non-*_inline versions.
72079         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72080         and xnrealloc functions, since those functions are now inline and
72081         now call us.
72082         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72083         renaming described above.
72084         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72085         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72086         captures the dependency in AC_C_INLINE.
72087
72088         New module canonicalize-lgpl, proposed by Charles Wilson in
72089         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72090         with a few small changes afterwards.
72091         * MODULES.html.sh (File system functions): New module
72092         canonicalize-lgpl.
72093         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72094         and canonicalize_file_name.
72095         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72096         * modules/canonicalize-lgpl: New files.
72097
72098 2006-11-05  Bruno Haible  <bruno@clisp.org>
72099
72100         * gnulib-tool (func_import, func_create_testdir): Create directories
72101         also for files in subdirectories of lib/.
72102
72103 2006-11-05  Bruno Haible  <bruno@clisp.org>
72104
72105         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72106         ANSI C compliant.
72107
72108 2006-11-03  Bruno Haible  <bruno@clisp.org>
72109
72110         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72111         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72112         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72113         (xnboundedmalloc): New inline function.
72114         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72115         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72116         xmalloc.
72117         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72118         xmalloc.
72119         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72120         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72121         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72122         xmalloc.
72123         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72124         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72125         xmalloc.
72126         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72127         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72128         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72129         xmalloc.
72130         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72131         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72132         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72133         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72134         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72135         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72136         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72137
72138 2006-11-03  Bruno Haible  <bruno@clisp.org>
72139
72140         * lib/c-ctype.h [C++]: Define functions without name mangling.
72141         * lib/fwriteerror.h [C++]: Likewise.
72142         * lib/gcd.h [C++]: Likewise.
72143         * lib/linebreak.h [C++]: Likewise.
72144
72145 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72146
72147         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72148         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72149         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72150         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72151         Check for functions and headers just once.
72152         Check for declaration of canonicalize_file_name.
72153         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72154
72155 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72156
72157         * gnulib-tool (func_import): Fix typo in actioncmd.
72158
72159 2006-11-02  Bruno Haible  <bruno@clisp.org>
72160
72161         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72162         newline sequence in the Makefile.am snippet as a space, like "make"
72163         does.
72164         Reported by Roger Persson <perrog@gmail.com>.
72165
72166 2006-11-01  Bruno Haible  <bruno@clisp.org>
72167
72168         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72169         already declared in <string.h>.
72170         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72171
72172 2006-11-01  Bruno Haible  <bruno@clisp.org>
72173
72174         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72175         * lib/strcase.h: Include <string.h>.
72176         (strcasecmp): Define to rpl_strcasecmp here.
72177
72178 2006-11-01  Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72181
72182 2006-11-01  Eric Blake  <ebb9@byu.net>
72183
72184         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72185
72186         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72187
72188 2006-10-29  Bruno Haible  <bruno@clisp.org>
72189
72190         Make it compile in C++ mode.
72191         * lib/full-write.c (full_rw): Add a cast.
72192
72193 2006-11-01  Bruno Haible  <bruno@clisp.org>
72194
72195         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72196         be POSIX compliant.
72197         Reported by Roger Persson <perrog@gmail.com>.
72198
72199 2006-11-01  Eric Blake  <ebb9@byu.net>
72200
72201         * lib/getopt_.h: Fix comments.
72202
72203 2006-10-31  Eric Blake  <ebb9@byu.net>
72204
72205         * modules/tmpdir (Depends-on): Add sys_stat.
72206         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72207         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72208         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72209         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72210         tempname.
72211
72212 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72213
72214         Avoid some C++ diagnostics reported by Bruno Haible.
72215         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72216         xmalloc.
72217         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72218         (struct slotvec): Move to top level.
72219         (quotearg_n_options): Rewrite to avoid xmalloc.
72220         * lib/xalloc.h (xcharalloc): New function.
72221         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72222         [defined __cplusplus]: Add function template that provides result
72223         type propagation.  This part of the change is from Bruno Haible.
72224
72225 2006-10-29  Bruno Haible  <bruno@clisp.org>
72226
72227         Make it compile in C++ mode.
72228         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72229         * lib/strnlen1.c (strnlen1): Cast memchr result.
72230         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72231         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72232         (create_temp_dir): Rename local variable 'template'.
72233         (compile_csharp_using_sscli): Add cast.
72234         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72235         * lib/findprog.c (find_in_path): Likewise.
72236         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72237         * lib/wait-process.c (register_slave_subprocess): Likewise.
72238
72239 2006-10-22  Bruno Haible  <bruno@clisp.org>
72240
72241         * modules/tsearch: New file.
72242         * lib/tsearch.h: New file.
72243         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72244         * m4/tsearch.m4: New file.
72245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72246
72247 2006-10-29  Eric Blake  <ebb9@byu.net>
72248
72249         * lib/arcfour.c: Assume config.h.
72250         * lib/arctwo.c: Likewise.
72251         * lib/base64.c: Likewise.
72252         * lib/check-version.c: Likewise.
72253         * lib/crc.c: Likewise.
72254         * lib/des.c: Likewise.
72255         * lib/gc-gnulib.c: Likewise.
72256         * lib/gc-libgcrypt.c: Likewise.
72257         * lib/gc-pbkdf2-sha1.c: Likewise.
72258         * lib/getaddrinfo.c: Likewise.
72259         * lib/getdelim.c: Likewise.
72260         * lib/getline.c: Likewise.
72261         * lib/hmac-md5.c: Likewise.
72262         * lib/hmac-sha1.c: Likewise.
72263         * lib/iconvme.c: Likewise.
72264         * lib/md2.c: Likewise.
72265         * lib/md4.c: Likewise.
72266         * lib/memxor.c: Likewise.
72267         * lib/read-file.c: Likewise.
72268         * lib/readline.c: Likewise.
72269         * lib/rijndael-alg-fst.c: Likewise.
72270         * lib/rijndael-api-fst.c: Likewise.
72271         * lib/xgetdomainname.c: Likewise.
72272
72273 2006-10-28  Eric Blake  <ebb9@byu.net>
72274
72275         * lib/xstrndup.c: Assume config.h.
72276
72277 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72278
72279         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72280         stat-macros.h is now for our own macros, whereas stat_h is for
72281         macros in the <sys/stat.h> name space.
72282         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72283         (STAT_MACROS_H): Remove.
72284         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72285         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72286         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72287         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72288         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72289         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72290         Move these macros to ...
72291         * lib/stat_.h: here.  Don't include stat-macros.h.
72292         * lib/canonicalize.c: Don't include stat-macros.h.
72293         * lib/chown.c: Likewise.
72294         * lib/euidaccess.c: Likewise.
72295         * lib/file-type.c: Likewise.
72296         * lib/filemode.c: Likewise.
72297         * lib/glob.c: Likewise.
72298         * lib/isapipe.c: Likewise.
72299         * lib/lchown.c: Likewise.
72300         * lib/lstat.c: Likewise.
72301         * lib/mkdir-p.c: Likewise.
72302         * lib/rmdir.c: Likewise.
72303         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72304         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72305         unless mkdir isn't declared, to speed up 'configure'.
72306         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72307         would define all the S_* symbols.
72308         * modules/canonicalize (Depends-on):
72309         Depend on sys_stat, not stat-macros.
72310         * modules/chown: Likewise.
72311         * modules/euidaccess: Likewise.
72312         * modules/filemode: Likewise.
72313         * modules/file-type: Likewise.
72314         * modules/glob: Likewise.
72315         * modules/isapipe: Likewise.
72316         * modules/lchown: Likewise.
72317         * modules/lstat: Likewise.
72318         * modules/mkancesdirs: Likewise.
72319         * modules/rmdir: Likewise.
72320         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72321         * modules/modechange: Likewise.
72322         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72323         (configure.ac): Remove gl_STAT_MACROS.
72324         * modules/sys_stat (Depends-on): Remove stat-macros.
72325
72326 2006-10-27  Bruno Haible  <bruno@clisp.org>
72327
72328         * m4/signed.m4: Remove file.
72329         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72330         invocation.
72331         * modules/vasnprintf (Files): Remove m4/signed.m4.
72332
72333 2006-10-27  Bruno Haible  <bruno@clisp.org>
72334
72335         Update to GNU gettext 0.16.
72336         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72337         m4/inttypes-h.m4, m4/signed.m4.
72338         * m4/gettext.m4: Update to GNU gettext 0.16.
72339         * m4/intl.m4: New file, from GNU gettext.
72340         * m4/intldir.m4: New file, from GNU gettext.
72341         * config/srclist.txt: Update
72342
72343 2006-10-27  Eric Blake  <ebb9@byu.net>
72344
72345         * MODULES.html.sh: Document tempname.
72346         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72347         dependencies.
72348         (Files): Move lib/tempname.c...
72349         * modules/tempname: ...to this new module.
72350         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72351         (gl_PREREQ_TEMPNAME): Move...
72352         * m4/tempname.m4: ...to this new file.
72353         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72354         * modules/sys_stat (Depends-on): Add stat-macros.
72355         * lib/stat_.h (includes): Pick up stat macros.
72356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72357         if stat macros are broken.
72358         * lib/tempname.c (includes): No need to include "stat-macros.h".
72359         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72360         (direxists, __path_search) [!_LIBC]: Don't compile these in
72361         gnulib; the tmpdir module covers that.
72362         * lib/tempname.h: New file.
72363
72364 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72365
72366         * COPYING: Explain how gnulib-tool converts licence headers.
72367         Almost all wording by Eric Blake.
72368
72369 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72370
72371         * lib/mbchar.h (is_basic_table): Make read-only.
72372         * lib/mbchar.c (is_basic_table): Likewise.
72373         Reported by John Darrington.
72374
72375 2006-10-25  Bruno Haible  <bruno@clisp.org>
72376
72377         * lib/progname.h (set_program_name): Undefine before defining.
72378
72379 2006-10-25  Bruno Haible  <bruno@clisp.org>
72380
72381         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72382         false for non-gcc C++ compilers.
72383         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72384
72385 2006-10-24  Bruno Haible  <bruno@clisp.org>
72386
72387         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72388         iconv implementations like Irix iconv.
72389
72390 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * modules/vararrays: New file.
72393         * m4/vararrays.m4: New file, taken from diffutils.
72394         * MODULES.html.sh: New module vararrays.
72395
72396 2006-10-24  Karl Berry  <karl@gnu.org>
72397
72398         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72399         Don't call GNU Unix.
72400
72401 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72402
72403         * users.txt: Add Libtool.
72404
72405         Sync from Libtool:
72406
72407         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72410         to gnulib's policy of including config.h unconditionally.
72411
72412 2006-10-24  Bruno Haible  <bruno@clisp.org>
72413
72414         * modules/wcwidth (Files): Add m4/wint_t.m4.
72415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72416         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72417
72418 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72421         to pacify GCC with some -W flags enabled.  Problem reported by
72422         Bruno Haible.
72423
72424 2006-10-24  Jim Meyering  <jim@meyering.net>
72425
72426         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72427         Reported by Karl Berry.
72428
72429 2006-10-23  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72432
72433 2006-10-24  Bruno Haible  <bruno@clisp.org>
72434
72435         * lib/gl_list.h: Use C comment style, not C++ comment style.
72436
72437 2006-10-23  Eric Blake  <ebb9@byu.net>
72438
72439         * lib/getaddrinfo.c (includes): Add missing include.
72440
72441 2006-10-23  Bruno Haible  <bruno@clisp.org>
72442             Paul Eggert  <eggert@cs.ucla.edu>
72443
72444         Ability to rename obstack_free.
72445         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72446         obstack_free.
72447         (obstack_free): Invoke the __obstack_free macro.
72448         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72449
72450 2006-10-23  Bruno Haible  <bruno@clisp.org>
72451             Paul Eggert  <eggert@cs.ucla.edu>
72452
72453         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72454         __argc, __argv from the declaration. (They are defined as macros on
72455         mingw.)
72456
72457 2006-10-22  Bruno Haible  <bruno@clisp.org>
72458
72459         * doc/gnulib-intro.texi: New file.
72460         * doc/gnulib.texi: Include it.
72461
72462 2006-10-21  Bruno Haible  <bruno@clisp.org>
72463
72464         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72465         "Introduction", "Miscellanous Notes", "Particular Modules".
72466
72467 2006-10-21  Bruno Haible  <bruno@clisp.org>
72468
72469         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72470         Change mostlyclean-local rule to avoid sh syntax error from bash
72471         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72472
72473 2006-10-23  Jim Meyering  <jim@meyering.net>
72474
72475         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72476         in place of snprintf.
72477
72478         * modules/inttostr (Files): Add lib/uinttostr.c.
72479         * lib/uinttostr.c (inttostr): New file/function.
72480         * lib/inttostr.h (uinttostr): Declare.
72481         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72482         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72483         Add uinttostr.
72484         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72485
72486 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72487
72488         * lib/canonicalize.c (ELOOP): Define if not already defined.
72489         Problem reported by Bruno Haible in
72490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72491
72492 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72493
72494         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72495         Problem reported by Perry Smith and Ville Laurikari.
72496
72497         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72498         uses.
72499
72500 2006-10-19  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72503         for mingw.
72504
72505 2006-10-19  Bruno Haible  <bruno@clisp.org>
72506
72507         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72508         Needed for mingw.
72509
72510 2006-10-19  Bruno Haible  <bruno@clisp.org>
72511
72512         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72513
72514 2006-10-19  Bruno Haible  <bruno@clisp.org>
72515
72516         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72517         it.
72518
72519 2006-10-19  Bruno Haible  <bruno@clisp.org>
72520
72521         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72522         invocation.
72523
72524 2006-10-19  Bruno Haible  <bruno@clisp.org>
72525
72526         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72527         mountlist by default.
72528
72529 2006-10-16  Bruno Haible  <bruno@clisp.org>
72530
72531         * lib/c-strstr.c: Include c-strstr.h.
72532
72533 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72534
72535         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72536         in a slash.
72537
72538 2006-10-18  Bruno Haible  <bruno@clisp.org>
72539
72540         * lib/lock.h [C++]: Wrap definitions in extern "C".
72541
72542 2006-10-18  Bruno Haible  <bruno@clisp.org>
72543
72544         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72545         gl_LIBOBJS list.
72546
72547 2006-10-18  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72550
72551 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72552
72553         * lib/xstrtol.h: Include gettext.h.
72554         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72555         Problem reported by Eric Blake.
72556         * modules/xstrtol (Depends-on): Add gettext-h.
72557
72558 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72559
72560         * lib/strftime.c (advance): New macro.
72561         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72562         incomplete type, so you can't add 0 to it.  Problem and patch
72563         reported by Eelco Dolstra for dietlibc.
72564
72565 2006-10-18  Jim Meyering  <jim@meyering.net>
72566
72567         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72568         type for a local, and rename it: s/up/user_proc/.
72569
72570 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72571
72572         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72573         READ_UTMP_USER_PROCESS.
72574         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72575
72576 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72577
72578         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72579         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72580
72581 2006-10-17  Eric Blake  <ebb9@byu.net>
72582
72583         * lib/sigprocmask.c (sigprocmask): Fix typo.
72584
72585         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72586
72587         * modules/clean-temp (Makefile.am): Don't add to make output...
72588         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72589         config.h.
72590
72591 2006-10-17  Bruno Haible  <bruno@clisp.org>
72592
72593         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72594         differently if DEFAULT_TEXT_DOMAIN is set.
72595
72596 2006-10-16  Bruno Haible  <bruno@clisp.org>
72597
72598         * lib/clean-temp.c: Include fwriteerror.h.
72599
72600 2006-10-16  Bruno Haible  <bruno@clisp.org>
72601
72602         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72603
72604 2006-10-16  Bruno Haible  <bruno@clisp.org>
72605
72606         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72607         * lib/sigprocmask.h: Include <sys/types.h>.
72608         (sigset_t): Use the system's definition if present.
72609
72610 2006-10-17  Eric Blake  <ebb9@byu.net>
72611
72612         * lib/xvasprintf.c (includes): Assume config.h.
72613         * lib/xasprintf.c (includes): Likewise.
72614
72615 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72618         at least as wide as intmax_t.
72619
72620 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72621
72622         (Imported from Automake.)
72623         * build-aux/gnupload: Update to version 1.1 of directive file.
72624
72625 2006-10-16  Eric Blake  <ebb9@byu.net>
72626
72627         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72628         match Automake 1.10a.
72629
72630 2006-10-14  Bruno Haible  <bruno@clisp.org>
72631
72632         * modules/sigprocmask: New file.
72633         * lib/sigprocmask.h: New file.
72634         * lib/sigprocmask.c: New file.
72635         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72636         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72637         request sigprocmask.o.
72638         (gl_PREREQ_SIGPROCMASK): New macro.
72639         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72640         (Depends-on): Add sigprocmask.
72641         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72642         gt_SIGNALBLOCKING. Test for 'raise' only once.
72643         * lib/fatal-signal.c: Include sigprocmask.h.
72644         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72645         unblock_fatal_signals): Define always.
72646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72647         sigprocmask.
72648
72649 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72650
72651         Sync from Automake.
72652         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72653         which incorrectly sets the mode of an existing destination
72654         directory.  In some cases the unpatched install-sh could do the
72655         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72656         system.  We hope this is rare in practice, but it's clearly worth
72657         fixing.  Problem reported by Alex Unleashed in
72658         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72659         Also, don't bother to check for -m bugs unless we're using -m;
72660         suggested by Stepan Kasal.
72661
72662 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72663
72664         Sync from Automake.
72665         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72666         `-c' flag, so they appear at the same position as in %FASTDEP%
72667         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72668         which ignores unknown options only after the first non-option.
72669         Bug report against M4 by Nelson H. F. Beebe.
72670
72671 2006-10-13  Jim Meyering  <jim@meyering.net>
72672
72673         Fix a bug in yesterday's change.
72674         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72675         p->fts_statp->st_dev would be used uninitialized.
72676         Ensures that we always call fts_stat on the very first entry.
72677         Miklos Szeredi reported that find -xdev stopped working.
72678
72679 2006-10-12  Bruno Haible  <bruno@clisp.org>
72680
72681         * gnulib-tool (func_get_automake_snippet): Append an automatically
72682         computed EXTRA_DIST augmentation.
72683         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72684         * modules/alloca-opt (Makefile.am): Likewise.
72685         * modules/allocsa (Makefile.am): Likewise.
72686         * modules/arcfour (Makefile.am): Likewise.
72687         * modules/arctwo (Makefile.am): Likewise.
72688         * modules/argmatch (Makefile.am): Likewise.
72689         * modules/argz (Makefile.am): Likewise.
72690         * modules/atexit (Makefile.am): Likewise.
72691         * modules/backupfile (Makefile.am): Likewise.
72692         * modules/byteswap (Makefile.am): Likewise.
72693         * modules/c-strtod (Makefile.am): Likewise.
72694         * modules/c-strtold (Makefile.am): Likewise.
72695         * modules/calloc (Makefile.am): Likewise.
72696         * modules/canon-host (Makefile.am): Likewise.
72697         * modules/canonicalize (Makefile.am): Likewise.
72698         * modules/chdir-long (Makefile.am): Likewise.
72699         * modules/chdir-safer (Makefile.am): Likewise.
72700         * modules/check-version (Makefile.am): Likewise.
72701         * modules/chown (Makefile.am): Likewise.
72702         * modules/cloexec (Makefile.am): Likewise.
72703         * modules/close-stream (Makefile.am): Likewise.
72704         * modules/closeout (Makefile.am): Likewise.
72705         * modules/crc (Makefile.am): Likewise.
72706         * modules/csharpexec (Makefile.am): Likewise.
72707         * modules/cycle-check (Makefile.am): Likewise.
72708         * modules/des (Makefile.am): Likewise.
72709         * modules/dev-ino (Makefile.am): Likewise.
72710         * modules/dirfd (Makefile.am): Likewise.
72711         * modules/dirname (Makefile.am): Likewise.
72712         * modules/dup2 (Makefile.am): Likewise.
72713         * modules/eealloc (Makefile.am): Likewise.
72714         * modules/error (Makefile.am): Likewise.
72715         * modules/euidaccess (Makefile.am): Likewise.
72716         * modules/exclude (Makefile.am): Likewise.
72717         * modules/exitfail (Makefile.am): Likewise.
72718         * modules/fcntl-safer (Makefile.am): Likewise.
72719         * modules/fcntl (Makefile.am): Likewise.
72720         * modules/file-type (Makefile.am): Likewise.
72721         * modules/fileblocks (Makefile.am): Likewise.
72722         * modules/filemode (Makefile.am): Likewise.
72723         * modules/filenamecat (Makefile.am): Likewise.
72724         * modules/fnmatch (Makefile.am): Likewise.
72725         * modules/fopen-safer (Makefile.am): Likewise.
72726         * modules/fpending (Makefile.am): Likewise.
72727         * modules/fprintftime (Makefile.am): Likewise.
72728         * modules/free (Makefile.am): Likewise.
72729         * modules/fsusage (Makefile.am): Likewise.
72730         * modules/ftruncate (Makefile.am): Likewise.
72731         * modules/fts (Makefile.am): Likewise.
72732         * modules/gc-arcfour (Makefile.am): Likewise.
72733         * modules/gc-des (Makefile.am): Likewise.
72734         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72735         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72736         * modules/gc-md4 (Makefile.am): Likewise.
72737         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72738         * modules/gc-sha1 (Makefile.am): Likewise.
72739         * modules/gc (Makefile.am): Likewise.
72740         * modules/getaddrinfo (Makefile.am): Likewise.
72741         * modules/getcwd (Makefile.am): Likewise.
72742         * modules/getdelim (Makefile.am): Likewise.
72743         * modules/getdomainname (Makefile.am): Likewise.
72744         * modules/getgroups (Makefile.am): Likewise.
72745         * modules/gethostname (Makefile.am): Likewise.
72746         * modules/gethrxtime (Makefile.am): Likewise.
72747         * modules/getline (Makefile.am): Likewise.
72748         * modules/getloadavg (Makefile.am): Likewise.
72749         * modules/getlogin_r (Makefile.am): Likewise.
72750         * modules/getndelim2 (Makefile.am): Likewise.
72751         * modules/getopt (Makefile.am): Likewise.
72752         * modules/getpagesize (Makefile.am): Likewise.
72753         * modules/getpass-gnu (Makefile.am): Likewise.
72754         * modules/getpass (Makefile.am): Likewise.
72755         * modules/getsubopt (Makefile.am): Likewise.
72756         * modules/gettime (Makefile.am): Likewise.
72757         * modules/gettimeofday (Makefile.am): Likewise.
72758         * modules/getugroups (Makefile.am): Likewise.
72759         * modules/getusershell (Makefile.am): Likewise.
72760         * modules/glob (Makefile.am): Likewise.
72761         * modules/group-member (Makefile.am): Likewise.
72762         * modules/hard-locale (Makefile.am): Likewise.
72763         * modules/hash (Makefile.am): Likewise.
72764         * modules/hmac-md5 (Makefile.am): Likewise.
72765         * modules/hmac-sha1 (Makefile.am): Likewise.
72766         * modules/human (Makefile.am): Likewise.
72767         * modules/idcache (Makefile.am): Likewise.
72768         * modules/imaxabs (Makefile.am): Likewise.
72769         * modules/imaxdiv (Makefile.am): Likewise.
72770         * modules/inet_ntop (Makefile.am): Likewise.
72771         * modules/inet_pton (Makefile.am): Likewise.
72772         * modules/intprops (Makefile.am): Likewise.
72773         * modules/inttostr (Makefile.am): Likewise.
72774         * modules/inttypes (Makefile.am): Likewise.
72775         * modules/isapipe (Makefile.am): Likewise.
72776         * modules/javaversion (Makefile.am): Likewise.
72777         * modules/lchmod (Makefile.am): Likewise.
72778         * modules/lchown (Makefile.am): Likewise.
72779         * modules/localcharset (Makefile.am): Likewise.
72780         * modules/long-options (Makefile.am): Likewise.
72781         * modules/lstat (Makefile.am): Likewise.
72782         * modules/malloc (Makefile.am): Likewise.
72783         * modules/mathl (Makefile.am): Likewise.
72784         * modules/mbchar (Makefile.am): Likewise.
72785         * modules/md2 (Makefile.am): Likewise.
72786         * modules/md4 (Makefile.am): Likewise.
72787         * modules/md5 (Makefile.am): Likewise.
72788         * modules/memcasecmp (Makefile.am): Likewise.
72789         * modules/memchr (Makefile.am): Likewise.
72790         * modules/memcmp (Makefile.am): Likewise.
72791         * modules/memcoll (Makefile.am): Likewise.
72792         * modules/memcpy (Makefile.am): Likewise.
72793         * modules/memmem (Makefile.am): Likewise.
72794         * modules/memmove (Makefile.am): Likewise.
72795         * modules/mempcpy (Makefile.am): Likewise.
72796         * modules/memrchr (Makefile.am): Likewise.
72797         * modules/memset (Makefile.am): Likewise.
72798         * modules/memxor (Makefile.am): Likewise.
72799         * modules/mkancesdirs (Makefile.am): Likewise.
72800         * modules/mkdir-p (Makefile.am): Likewise.
72801         * modules/mkdir (Makefile.am): Likewise.
72802         * modules/mkdtemp (Makefile.am): Likewise.
72803         * modules/mkstemp (Makefile.am): Likewise.
72804         * modules/mktime (Makefile.am): Likewise.
72805         * modules/modechange (Makefile.am): Likewise.
72806         * modules/mountlist (Makefile.am): Likewise.
72807         * modules/nanosleep (Makefile.am): Likewise.
72808         * modules/obstack (Makefile.am): Likewise.
72809         * modules/openat (Makefile.am): Likewise.
72810         * modules/pagealign_alloc (Makefile.am): Likewise.
72811         * modules/pathmax (Makefile.am): Likewise.
72812         * modules/physmem (Makefile.am): Likewise.
72813         * modules/poll (Makefile.am): Likewise.
72814         * modules/posixtm (Makefile.am): Likewise.
72815         * modules/posixver (Makefile.am): Likewise.
72816         * modules/putenv (Makefile.am): Likewise.
72817         * modules/quote (Makefile.am): Likewise.
72818         * modules/quotearg (Makefile.am): Likewise.
72819         * modules/raise (Makefile.am): Likewise.
72820         * modules/read-file (Makefile.am): Likewise.
72821         * modules/readline (Makefile.am): Likewise.
72822         * modules/readlink (Makefile.am): Likewise.
72823         * modules/readtokens (Makefile.am): Likewise.
72824         * modules/readutmp (Makefile.am): Likewise.
72825         * modules/realloc (Makefile.am): Likewise.
72826         * modules/regex (Makefile.am): Likewise.
72827         * modules/rename-dest-slash (Makefile.am): Likewise.
72828         * modules/rename (Makefile.am): Likewise.
72829         * modules/rijndael (Makefile.am): Likewise.
72830         * modules/rmdir (Makefile.am): Likewise.
72831         * modules/rpmatch (Makefile.am): Likewise.
72832         * modules/safe-read (Makefile.am): Likewise.
72833         * modules/safe-write (Makefile.am): Likewise.
72834         * modules/same-inode (Makefile.am): Likewise.
72835         * modules/same (Makefile.am): Likewise.
72836         * modules/save-cwd (Makefile.am): Likewise.
72837         * modules/savedir (Makefile.am): Likewise.
72838         * modules/setenv (Makefile.am): Likewise.
72839         * modules/settime (Makefile.am): Likewise.
72840         * modules/sha1 (Makefile.am): Likewise.
72841         * modules/sig2str (Makefile.am): Likewise.
72842         * modules/snprintf (Makefile.am): Likewise.
72843         * modules/stat-macros (Makefile.am): Likewise.
72844         * modules/stat-time (Makefile.am): Likewise.
72845         * modules/stdbool (Makefile.am): Likewise.
72846         * modules/stdint (Makefile.am): Likewise.
72847         * modules/stdlib-safer (Makefile.am): Likewise.
72848         * modules/stpcpy (Makefile.am): Likewise.
72849         * modules/stpncpy (Makefile.am): Likewise.
72850         * modules/strcase (Makefile.am): Likewise.
72851         * modules/strcasestr (Makefile.am): Likewise.
72852         * modules/strchrnul (Makefile.am): Likewise.
72853         * modules/strcspn (Makefile.am): Likewise.
72854         * modules/strdup (Makefile.am): Likewise.
72855         * modules/strerror (Makefile.am): Likewise.
72856         * modules/strftime (Makefile.am): Likewise.
72857         * modules/strndup (Makefile.am): Likewise.
72858         * modules/strnlen (Makefile.am): Likewise.
72859         * modules/strpbrk (Makefile.am): Likewise.
72860         * modules/strsep (Makefile.am): Likewise.
72861         * modules/strstr (Makefile.am): Likewise.
72862         * modules/strtod (Makefile.am): Likewise.
72863         * modules/strtoimax (Makefile.am): Likewise.
72864         * modules/strtok_r (Makefile.am): Likewise.
72865         * modules/strtol (Makefile.am): Likewise.
72866         * modules/strtoll (Makefile.am): Likewise.
72867         * modules/strtoul (Makefile.am): Likewise.
72868         * modules/strtoull (Makefile.am): Likewise.
72869         * modules/strtoumax (Makefile.am): Likewise.
72870         * modules/strverscmp (Makefile.am): Likewise.
72871         * modules/sys_socket (Makefile.am): Likewise.
72872         * modules/sys_stat (Makefile.am): Likewise.
72873         * modules/sysexits (Makefile.am): Likewise.
72874         * modules/time_r (Makefile.am): Likewise.
72875         * modules/timegm (Makefile.am): Likewise.
72876         * modules/timespec (Makefile.am): Likewise.
72877         * modules/tmpfile-safer (Makefile.am): Likewise.
72878         * modules/trim (Makefile.am): Likewise.
72879         * modules/unistd-safer (Makefile.am): Likewise.
72880         * modules/unlinkdir (Makefile.am): Likewise.
72881         * modules/unlocked-io (Makefile.am): Likewise.
72882         * modules/userspec (Makefile.am): Likewise.
72883         * modules/utime (Makefile.am): Likewise.
72884         * modules/utimecmp (Makefile.am): Likewise.
72885         * modules/utimens (Makefile.am): Likewise.
72886         * modules/vasnprintf (Makefile.am): Likewise.
72887         * modules/vasprintf (Makefile.am): Likewise.
72888         * modules/vsnprintf (Makefile.am): Likewise.
72889         * modules/xalloc (Makefile.am): Likewise.
72890         * modules/xgetcwd (Makefile.am): Likewise.
72891         * modules/xnanosleep (Makefile.am): Likewise.
72892         * modules/xreadlink (Makefile.am): Likewise.
72893         * modules/xstrtod (Makefile.am): Likewise.
72894         * modules/xstrtol (Makefile.am): Likewise.
72895         * modules/xstrtold (Makefile.am): Likewise.
72896         * modules/yesno (Makefile.am): Likewise.
72897         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72898
72899 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72900
72901         * modules/error (Makefile.am): Distribute files through
72902         EXTRA_DIST, not lib_SOURCES.
72903
72904 2006-10-12  Eric Blake  <ebb9@byu.net>
72905
72906         * modules/error (Makefile.am): Distribute files in /lib.
72907         * modules/obstack (Makefile.am): Likewise.
72908
72909 2006-10-12  Bruno Haible  <bruno@clisp.org>
72910
72911         * modules/acl (Makefile.am): Distribute all files in lib/ through
72912         EXTRA_DIST.
72913         * modules/arcfour (Makefile.am): Likewise.
72914         * modules/arctwo (Makefile.am): Likewise.
72915         * modules/argmatch (Makefile.am): Likewise.
72916         * modules/argz (Makefile.am): Likewise.
72917         * modules/atexit (Makefile.am): Likewise.
72918         * modules/backupfile (Makefile.am): Likewise.
72919         * modules/c-strtod (Makefile.am): Likewise.
72920         * modules/c-strtold (Makefile.am): Likewise.
72921         * modules/calloc (Makefile.am): Likewise.
72922         * modules/canon-host (Makefile.am): Likewise.
72923         * modules/canonicalize (Makefile.am): Likewise.
72924         * modules/chdir-long (Makefile.am): Likewise.
72925         * modules/chdir-safer (Makefile.am): Likewise.
72926         * modules/check-version (Makefile.am): Likewise.
72927         * modules/chown (Makefile.am): Likewise.
72928         * modules/cloexec (Makefile.am): Likewise.
72929         * modules/close-stream (Makefile.am): Likewise.
72930         * modules/closeout (Makefile.am): Likewise.
72931         * modules/crc (Makefile.am): Likewise.
72932         * modules/cycle-check (Makefile.am): Likewise.
72933         * modules/des (Makefile.am): Likewise.
72934         * modules/dirfd (Makefile.am): Likewise.
72935         * modules/dirname (Makefile.am): Likewise.
72936         * modules/dup2 (Makefile.am): Likewise.
72937         * modules/euidaccess (Makefile.am): Likewise.
72938         * modules/exclude (Makefile.am): Likewise.
72939         * modules/exitfail (Makefile.am): Likewise.
72940         * modules/fcntl-safer (Makefile.am): Likewise.
72941         * modules/file-type (Makefile.am): Likewise.
72942         * modules/fileblocks (Makefile.am): Likewise.
72943         * modules/filemode (Makefile.am): Likewise.
72944         * modules/filenamecat (Makefile.am): Likewise.
72945         * modules/fnmatch (Makefile.am): Likewise.
72946         * modules/fopen-safer (Makefile.am): Likewise.
72947         * modules/fpending (Makefile.am): Likewise.
72948         * modules/fprintftime (Makefile.am): Likewise.
72949         * modules/free (Makefile.am): Likewise.
72950         * modules/fsusage (Makefile.am): Likewise.
72951         * modules/ftruncate (Makefile.am): Likewise.
72952         * modules/fts (Makefile.am): Likewise.
72953         * modules/gc (Makefile.am): Likewise.
72954         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72955         * modules/getaddrinfo (Makefile.am): Likewise.
72956         * modules/getcwd (Makefile.am): Likewise.
72957         * modules/getdelim (Makefile.am): Likewise.
72958         * modules/getdomainname (Makefile.am): Likewise.
72959         * modules/getgroups (Makefile.am): Likewise.
72960         * modules/gethostname (Makefile.am): Likewise.
72961         * modules/gethrxtime (Makefile.am): Likewise.
72962         * modules/getline (Makefile.am): Likewise.
72963         * modules/getloadavg (Makefile.am): Likewise.
72964         * modules/getlogin_r (Makefile.am): Likewise.
72965         * modules/getopt (Makefile.am): Likewise.
72966         * modules/getpass (Makefile.am): Likewise.
72967         * modules/getpass-gnu (Makefile.am): Likewise.
72968         * modules/getsubopt (Makefile.am): Likewise.
72969         * modules/gettime (Makefile.am): Likewise.
72970         * modules/gettimeofday (Makefile.am): Likewise.
72971         * modules/getugroups (Makefile.am): Likewise.
72972         * modules/getusershell (Makefile.am): Likewise.
72973         * modules/glob (Makefile.am): Likewise.
72974         * modules/group-member (Makefile.am): Likewise.
72975         * modules/hard-locale (Makefile.am): Likewise.
72976         * modules/hash (Makefile.am): Likewise.
72977         * modules/hmac-md5 (Makefile.am): Likewise.
72978         * modules/hmac-sha1 (Makefile.am): Likewise.
72979         * modules/human (Makefile.am): Likewise.
72980         * modules/idcache (Makefile.am): Likewise.
72981         * modules/imaxabs (Makefile.am): Likewise.
72982         * modules/imaxdiv (Makefile.am): Likewise.
72983         * modules/inet_ntop (Makefile.am): Likewise.
72984         * modules/inet_pton (Makefile.am): Likewise.
72985         * modules/inttostr (Makefile.am): Likewise.
72986         * modules/isapipe (Makefile.am): Likewise.
72987         * modules/lchown (Makefile.am): Likewise.
72988         * modules/long-options (Makefile.am): Likewise.
72989         * modules/lstat (Makefile.am): Likewise.
72990         * modules/malloc (Makefile.am): Likewise.
72991         * modules/mathl (Makefile.am): Likewise.
72992         * modules/mbchar (Makefile.am): Likewise.
72993         * modules/md2 (Makefile.am): Likewise.
72994         * modules/md4 (Makefile.am): Likewise.
72995         * modules/md5 (Makefile.am): Likewise.
72996         * modules/memcasecmp (Makefile.am): Likewise.
72997         * modules/memchr (Makefile.am): Likewise.
72998         * modules/memcmp (Makefile.am): Likewise.
72999         * modules/memcoll (Makefile.am): Likewise.
73000         * modules/memcpy (Makefile.am): Likewise.
73001         * modules/memmem (Makefile.am): Likewise.
73002         * modules/memmove (Makefile.am): Likewise.
73003         * modules/mempcpy (Makefile.am): Likewise.
73004         * modules/memrchr (Makefile.am): Likewise.
73005         * modules/memset (Makefile.am): Likewise.
73006         * modules/memxor (Makefile.am): Likewise.
73007         * modules/mkancesdirs (Makefile.am): Likewise.
73008         * modules/mkdir (Makefile.am): Likewise.
73009         * modules/mkdir-p (Makefile.am): Likewise.
73010         * modules/mkdtemp (Makefile.am): Likewise.
73011         * modules/mkstemp (Makefile.am): Likewise.
73012         * modules/mktime (Makefile.am): Likewise.
73013         * modules/modechange (Makefile.am): Likewise.
73014         * modules/mountlist (Makefile.am): Likewise.
73015         * modules/nanosleep (Makefile.am): Likewise.
73016         * modules/openat (Makefile.am): Likewise.
73017         * modules/pagealign_alloc (Makefile.am): Likewise.
73018         * modules/physmem (Makefile.am): Likewise.
73019         * modules/poll (Makefile.am): Likewise.
73020         * modules/posixtm (Makefile.am): Likewise.
73021         * modules/posixver (Makefile.am): Likewise.
73022         * modules/putenv (Makefile.am): Likewise.
73023         * modules/quote (Makefile.am): Likewise.
73024         * modules/quotearg (Makefile.am): Likewise.
73025         * modules/raise (Makefile.am): Likewise.
73026         * modules/read-file (Makefile.am): Likewise.
73027         * modules/readline (Makefile.am): Likewise.
73028         * modules/readlink (Makefile.am): Likewise.
73029         * modules/readtokens (Makefile.am): Likewise.
73030         * modules/readutmp (Makefile.am): Likewise.
73031         * modules/realloc (Makefile.am): Likewise.
73032         * modules/regex (Makefile.am): Likewise.
73033         * modules/rename (Makefile.am): Likewise.
73034         * modules/rename-dest-slash (Makefile.am): Likewise.
73035         * modules/rijndael (Makefile.am): Likewise.
73036         * modules/rmdir (Makefile.am): Likewise.
73037         * modules/rpmatch (Makefile.am): Likewise.
73038         * modules/safe-read (Makefile.am): Likewise.
73039         * modules/safe-write (Makefile.am): Likewise.
73040         * modules/same (Makefile.am): Likewise.
73041         * modules/save-cwd (Makefile.am): Likewise.
73042         * modules/savedir (Makefile.am): Likewise.
73043         * modules/setenv (Makefile.am): Likewise.
73044         * modules/settime (Makefile.am): Likewise.
73045         * modules/sha1 (Makefile.am): Likewise.
73046         * modules/sig2str (Makefile.am): Likewise.
73047         * modules/snprintf (Makefile.am): Likewise.
73048         * modules/stdlib-safer (Makefile.am): Likewise.
73049         * modules/stpcpy (Makefile.am): Likewise.
73050         * modules/stpncpy (Makefile.am): Likewise.
73051         * modules/strcase (Makefile.am): Likewise.
73052         * modules/strcasestr (Makefile.am): Likewise.
73053         * modules/strchrnul (Makefile.am): Likewise.
73054         * modules/strcspn (Makefile.am): Likewise.
73055         * modules/strdup (Makefile.am): Likewise.
73056         * modules/strerror (Makefile.am): Likewise.
73057         * modules/strftime (Makefile.am): Likewise.
73058         * modules/strndup (Makefile.am): Likewise.
73059         * modules/strnlen (Makefile.am): Likewise.
73060         * modules/strpbrk (Makefile.am): Likewise.
73061         * modules/strsep (Makefile.am): Likewise.
73062         * modules/strstr (Makefile.am): Likewise.
73063         * modules/strtod (Makefile.am): Likewise.
73064         * modules/strtoimax (Makefile.am): Likewise.
73065         * modules/strtok_r (Makefile.am): Likewise.
73066         * modules/strtol (Makefile.am): Likewise.
73067         * modules/strtoll (Makefile.am): Likewise.
73068         * modules/strtoul (Makefile.am): Likewise.
73069         * modules/strtoull (Makefile.am): Likewise.
73070         * modules/strtoumax (Makefile.am): Likewise.
73071         * modules/strverscmp (Makefile.am): Likewise.
73072         * modules/time_r (Makefile.am): Likewise.
73073         * modules/timegm (Makefile.am): Likewise.
73074         * modules/tmpfile-safer (Makefile.am): Likewise.
73075         * modules/unistd-safer (Makefile.am): Likewise.
73076         * modules/unlinkdir (Makefile.am): Likewise.
73077         * modules/userspec (Makefile.am): Likewise.
73078         * modules/utime (Makefile.am): Likewise.
73079         * modules/utimecmp (Makefile.am): Likewise.
73080         * modules/utimens (Makefile.am): Likewise.
73081         * modules/vasnprintf (Makefile.am): Likewise.
73082         * modules/vasprintf (Makefile.am): Likewise.
73083         * modules/vsnprintf (Makefile.am): Likewise.
73084         * modules/xalloc (Makefile.am): Likewise.
73085         * modules/xgetcwd (Makefile.am): Likewise.
73086         * modules/xnanosleep (Makefile.am): Likewise.
73087         * modules/xreadlink (Makefile.am): Likewise.
73088         * modules/xstrtod (Makefile.am): Likewise.
73089         * modules/xstrtol (Makefile.am): Likewise.
73090         * modules/xstrtold (Makefile.am): Likewise.
73091         * modules/yesno (Makefile.am): Likewise.
73092
73093 2006-10-12  Jim Meyering  <jim@meyering.net>
73094
73095         * m4/getloadavg.m4: Revert the change below.
73096
73097         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73098         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73099         fail with a symlink, which is what coreutils' ./bootstrap now
73100         creates by default.
73101
73102 2006-10-12  Bruno Haible  <bruno@clisp.org>
73103
73104         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73105         mingw.
73106         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73107         MSVC and mingw explicitly.
73108
73109 2006-10-11  Simon Josefsson  <jas@extundo.com>
73110             Bruno Haible  <bruno@clisp.org>
73111
73112         Add support for multiple gnulib-tool invocations in the scope of a
73113         single configure.ac file.
73114         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73115         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73116         with the same contents as the _LIBADD variable.
73117         (func_emit_initmacro_start, func_emit_initmacro_end,
73118         func_emit_initmacro_done): New functions.
73119         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73120         gl_LIBOBJS and gl_LTLIBOBJS.
73121
73122 2006-10-11  Bruno Haible  <bruno@clisp.org>
73123
73124         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73125         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73126         autoreconf. Instead, invoke autopoint explicitly but move back the
73127         *.m4 files from gnulib.
73128
73129 2006-10-11  Bruno Haible  <bruno@clisp.org>
73130
73131         * gnulib-tool (func_usage): Make module names after --create-testdir
73132         optional.
73133         (func_create_testdir): If no module was specified, use nearly all
73134         modules.
73135
73136 2006-10-12  Jim Meyering  <jim@meyering.net>
73137
73138         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73139         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73140         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73141         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73142         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73143         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73144         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73145         (fts_set_stat_required): New function.
73146         (fts_open): Defer the calls to fts_stat, if possible or requested.
73147         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73148         into fts_stat itself.
73149         (fts_read): Perform any required (deferred) fts_stat call.
73150         (fts_build): Likewise, for the directory we're about to open and read.
73151         In the readdir loop, carefully decide whether each entry will require
73152         an eventual call to fts_stat, using dirent.d_type info if available.
73153         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73154         a command line argument into this function.  Update all callers.
73155         Map a return value of FTS_DOT to FTS_D for a command line argument.
73156         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73157         Thanks to Miklos Szeredi for his tenacity and for the initial
73158         bug report about "find" failing on a FUSE-based file system.
73159
73160         * lib/fts.c (fts_open): Use consistent indentation.
73161
73162 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73165         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73166         reported by Jim Meyering.  All uses of cache variables renamed
73167         to match Autoconf's.
73168         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73169         the other one.
73170
73171         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73172         Fix misspelling in diagnostic.
73173
73174 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73175
73176         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73177         defined.  Problem reported by Matthew Woehlke.
73178
73179         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73180         Add support for Tandem NonStop R series.
73181         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73182         Use new macro.
73183
73184         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73185         (has_trailing_slash): Omit size arg; all callers changed.
73186         Omit 'inline', since it doesn't help performance and we'd
73187         need to configure it.
73188         Don't count //, ///, etc. as having a trailing slash.
73189         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73190         (rpl_rename_dest_slash): On failure, use rename's errno rather
73191         than (in some cases) an incorrect or junk errno.
73192         Simplify code by removing need to compute length; this does
73193         cause it to make two passes instead of one over the file name,
73194         but it's worth it.
73195
73196         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73197         change, since Autoconf's version may no longer be appropriate now
73198         that we are using CVS Autoconf's version.  Add support for Tandem.
73199
73200 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73201             Bruno Haible  <bruno@clisp.org>
73202
73203         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73204         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73205         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73206         gl_AC_TYPE_LONG_LONG.
73207
73208         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73209         instead of HAVE_LONG_LONG.
73210         * lib/printf-args.c (printf_fetchargs): Likewise.
73211         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73212         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73213         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73214         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73215         gl_AC_TYPE_LONG_LONG.
73216
73217 2006-10-11  Bruno Haible  <bruno@clisp.org>
73218
73219         * m4/longlong.m4: Add comments.
73220         * m4/ulonglong.m4: Likewise.
73221
73222 2006-10-10  Bruno Haible  <bruno@clisp.org>
73223
73224         Make it possible to #define stpcpy, strdup to aliases.
73225         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73226         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73227
73228 2006-10-10  Bruno Haible  <bruno@clisp.org>
73229
73230         Make it possible to #define gcd to an alias.
73231         * lib/gcd.c: Include config.h.
73232
73233 2006-10-10  Bruno Haible  <bruno@clisp.org>
73234
73235         Make it possible to #define c_isascii to an alias.
73236         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73237         defined. Undefine the macros before defining them, to avoid gcc
73238         warnings.
73239         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73240         define NO_C_CTYPE_MACROS early.
73241
73242 2006-10-10  Bruno Haible  <bruno@clisp.org>
73243
73244         Make it possible to #define set_program_name to an alias.
73245         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73246         ENABLE_RELOCATABLE early.
73247
73248 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73251         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73252         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73253         More generally, don't assume that 64-bit signed int is available
73254         if unsigned int is, and vice versa.
73255         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73256         unsigned symbols, not on their signed counterparts.
73257         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73258         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73259         (UINT64_C, UINTMAX_C):
73260         Likewise.
73261         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73262         unsigned counterparts.
73263         (Have_long_long, Unsigned): New macros.
73264         (Int): Renamed from INT.
73265         (strtoimax): Use the new macros.
73266         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73267         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73268         * modules/inttypes (inttypes.h): Substitute
73269         HAVE_UNSIGNED_LONG_LONG_INT.
73270         * modules/stdint (stdint.h): Likewise.
73271         (Files): Add m4/ulonglong.m4.
73272
73273 2006-10-10  Bruno Haible  <bruno@clisp.org>
73274
73275         Fix a gcc -Wshadow warning.
73276         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73277         to 'bucket'.
73278         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73279         gl_linked_indexof_from_to): Likewise.
73280         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73281         Likewise.
73282         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73283         Likewise.
73284         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73285         Reported by Eric Blake.
73286
73287 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73290         for NetBSD.  Problem reported by Bruno Haible.
73291
73292 2006-10-09  Jim Meyering  <jim@meyering.net>
73293
73294         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73295         Patch from Bruno Haible.
73296
73297 2006-10-09  Jim Meyering  <jim@meyering.net>
73298
73299         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73300         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73301         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73302
73303 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         Don't include <config.h> twice; this doesn't work in some cases,
73306         e.g., when config.h has "#define intmax_t long long int" and
73307         we include <config.h>, <inttypes.h>, <config.h> in that order.
73308         Problem reported by Matthew Woehlke in:
73309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73310         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73311         * lib/fts-cycle.c: Don't include config.h.
73312         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73313         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73314         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73315         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73316         inttypes.h.
73317         * lib/xstrtoumax.c: Likewise.
73318         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73319         __strtol and the like, so that this module is more like its siblings.
73320         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73321         Remove; no longer needed now that we assume gnulib inttypes.h.
73322
73323 2006-10-08  Bruno Haible  <bruno@clisp.org>
73324
73325         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73326         option.
73327
73328 2006-10-07  Jim Meyering  <jim@meyering.net>
73329
73330         * modules/inttypes (inttypes.h): Revert what seems to have been
73331         an inadvertent part of today's change: use "|", not "/" in the
73332         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73333
73334 2006-10-07  Bruno Haible  <bruno@clisp.org>
73335
73336         * modules/sublist: New file.
73337
73338 2006-10-07  Bruno Haible  <bruno@clisp.org>
73339
73340         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73341         * modules/argz (argz.h): Likewise.
73342         * modules/arpa_inet (arpa/inet.h): Likewise.
73343         * modules/byteswap (byteswap.h): Likewise.
73344         * modules/configmake (configmake.h): Likewise.
73345         * modules/fcntl (fcntl.h): Likewise.
73346         * modules/fnmatch (fnmatch.h): Likewise.
73347         * modules/getopt (getopt.h): Likewise.
73348         * modules/glob (glob.h): Likewise.
73349         * modules/inttypes (inttypes.h): Likewise.
73350         * modules/netinet_in (netinet/in.h): Likewise.
73351         * modules/poll (poll.h): Likewise.
73352         * modules/stdbool (stdbool.h): Likewise.
73353         * modules/stdint (stdint.h): Likewise.
73354         * modules/sys_select (sys/select.h): Likewise.
73355         * modules/sys_socket (sys/socket.h): Likewise.
73356         * modules/sys_stat (sys/stat.h): Likewise.
73357         * modules/sysexits (sysexits.h): Likewise.
73358         * modules/unistd (unistd.h): Likewise.
73359         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73360         Add a "DO NOT EDIT" comment to the generated file.
73361         (func_import): Likewise for gnulib-comp.m4.
73362
73363 2006-10-07  Bruno Haible  <bruno@clisp.org>
73364
73365         * lib/gl_sublist.h: New file.
73366         * lib/gl_sublist.c: New file.
73367
73368 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73371         name (relative to the original working directory) and the file
73372         name component (relative to the temporary working directory).  All
73373         callers changed.
73374         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73375         * lib/mkdir-p.c (make_dir_parents): Likewise.
73376         * lib/mkdir-p.h (make_dir_parents): Likewise.
73377
73378 2006-10-06  Eric Blake  <ebb9@byu.net>
73379
73380         Define several macros for use by the clean-temp module.
73381         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73382         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73383         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73384
73385         * lib/clean-temp.h (close_stream_temp): New declaration.
73386         * lib/clean-temp.c (includes): Pull in headers according to what
73387         other modules are in use.
73388         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73389
73390 2006-10-06  Bruno Haible  <bruno@clisp.org>
73391
73392         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73393         instead of fopen, fwriteerror.
73394
73395 2006-10-06  Bruno Haible  <bruno@clisp.org>
73396
73397         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73398         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73399         int.
73400         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73401         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73402         Return an error indicator.
73403         Suggested by Eric Blake.
73404
73405 2006-10-06  Bruno Haible  <bruno@clisp.org>
73406
73407         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73408         Reported by Eric Blake.
73409
73410 2006-10-06  Bruno Haible  <bruno@clisp.org>
73411
73412         * modules/closeout (Description): Mention stderr too.
73413
73414 2006-10-06  Bruno Haible  <bruno@clisp.org>
73415         and Paul Eggert  <eggert@cs.ucla.edu>
73416
73417         * lib/closeout.c (close_stdout): Also close stderr.
73418         * lib/closeout.h: Update comment.
73419
73420 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73423         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73424         * lib/dirchownmod.c: Include lchown.h.
73425         * lib/lchown.c: Don't include files that lchown.h now includes.
73426         Don't declare chown, since lchown.h now does that.
73427         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73428         (lchown): Define to rpl_chown if lchown is declared but
73429         does not exist.  Declare using a prototype if lchown is not
73430         declared.  Add a copyright notice.
73431         * lib/mkstemp.h: Include <unistd.h>.
73432         * lib/openat.c: Include lchown.h.
73433
73434         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73435         we now test for that separately.
73436         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73437         rather than O_NOFOLLOW, when testing whether it's possible to
73438         avoid a race condition reliably.
73439         * lib/savewd.c (savewd_chdir): Likewise.
73440
73441         Remove macros that are no longer needed now that stdint.h is
73442         reliable.
73443         * lib/fsusage.c (UINTMAX_MAX): Remove.
73444         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73445         * lib/utimecmp.c (SIZE_MAX): Remove.
73446
73447         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73448
73449         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73450         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73451         O_NOATIME works.
73452
73453 2006-10-05  Bruno Haible  <bruno@clisp.org>
73454
73455         * lib/gl_list.h (gl_sortedlist_search_from_to,
73456         gl_sortedlist_indexof_from_to): New declarations.
73457         (gl_list_implementation): New fields sortedlist_search_from_to,
73458         sortedlist_indexof_from_to.
73459         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73460         inline functions.
73461         * lib/gl_list.c (gl_sortedlist_search_from_to,
73462         gl_sortedlist_indexof_from_to): New functions.
73463         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73464         function.
73465         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73466         (gl_array_sortedlist_search_from_to): New function.
73467         (gl_array_list_implementation): Update.
73468         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73469         function.
73470         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73471         (gl_carray_sortedlist_search_from_to): New function.
73472         (gl_carray_list_implementation): Update.
73473         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73474         gl_linked_sortedlist_indexof_from_to): New functions.
73475         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73476         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73477         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73478         gl_tree_sortedlist_indexof_from_to): New functions.
73479         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73480         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73481         Update.
73482         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73483         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73484         Update.
73485
73486 2006-10-05  Bruno Haible  <bruno@clisp.org>
73487
73488         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73489         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73490         (struct gl_list_implementation): Add fields search_from_to,
73491         indexof_from_to. Remove fields search, indexof.
73492         (gl_list_search): Use the search_from_to method.
73493         (gl_list_search_from, gl_list_search_from_to): New functions.
73494         (gl_list_indexof): Use the indexof_from_to method.
73495         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73496         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73497         (gl_list_search_from, gl_list_search_from_to): New functions.
73498         (gl_list_indexof): Use the indexof_from_to method.
73499         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73500         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73501         gl_array_indexof. Add start_index, end_index arguments.
73502         (gl_array_search_from_to): Renamed from gl_array_search. Add
73503         start_index, end_index arguments.
73504         (gl_array_remove, gl_array_list_implementation): Update.
73505         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73506         gl_carray_indexof. Add start_index, end_index arguments.
73507         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73508         start_index, end_index arguments.
73509         (gl_carray_remove, gl_carray_list_implementation): Update.
73510         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73511         gl_linked_search. Add start_index, end_index arguments.
73512         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73513         start_index, end_index arguments.
73514         (gl_linked_remove): Update.
73515         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73516         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73517         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73518         field to 'size_t'.
73519         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73520         gl_tree_search. Add start_index, end_index arguments.
73521         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73522         start_index, end_index arguments.
73523         (gl_tree_remove): Update.
73524         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73525         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73526         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73527         function.
73528         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73529         gl_tree_search. Add start_index, end_index arguments.
73530         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73531         start_index, end_index arguments.
73532         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73533         Update.
73534         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73535
73536 2006-10-05  Bruno Haible  <bruno@clisp.org>
73537
73538         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73539
73540         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73541         fwriteerror_temp): New declarations.
73542         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73543         (descriptors): New variable.
73544         (cleanup): First, close the descriptors.
73545         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73546         fclose_temp, fwriteerror_temp): New functions.
73547
73548 2006-10-04  Jim Meyering  <jim@meyering.net>
73549
73550         * lib/fts.c (fts_open): Tiny comment change.
73551
73552 2006-10-04  Bruno Haible  <bruno@clisp.org>
73553
73554         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73555         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73556         gl_LOCK_BODY.
73557         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73558         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73559         gl_LOCK_EARLY_BODY.
73560         (gl_LOCK): Require gl_LOCK_BODY.
73561
73562 2006-10-04  Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73565         (gl_oset_search_atleast): New declaration.
73566         (struct gl_oset_implementation): Add field 'search_atleast'.
73567         (gl_oset_search_atleast): New inline function.
73568         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73569         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73570         (gl_array_oset_implementation): Update.
73571         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73572         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73573         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73574
73575 2006-10-04  Bruno Haible  <bruno@clisp.org>
73576
73577         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73578
73579 2006-10-03  Bruno Haible  <bruno@clisp.org>
73580
73581         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73582         from gl_avltreehash_list_implementation.
73583
73584 2006-10-03  Bruno Haible  <bruno@clisp.org>
73585
73586         * lib/gl_oset.c (gl_oset_add): Fix return type.
73587
73588 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73589
73590         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73591
73592 2006-10-02  Eric Blake  <ebb9@byu.net>
73593
73594         * modules/strnlen (Depends-on): Add extensions.
73595
73596 2006-10-02  Eric Blake  <ebb9@byu.net>
73597
73598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73599         definition in 2.60+.
73600
73601 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73602
73603         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73604         checks.
73605
73606 2006-10-02  Bruno Haible  <bruno@clisp.org>
73607
73608         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73609         to the AUTOMAKE_OPTIONS.
73610         Reported by Jim Meyering.
73611
73612 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         Work around bug in Solaris 10 /proc file system:
73615         /proc/self/fd/NNN/.. isn't the parent directory of
73616         the directory whose file descriptor is NNN.  This needs to
73617         be worked around at run time, not compile time, since a
73618         program might be built on Solaris 8, where things work, and
73619         run on Solaris 10.
73620         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73621         to use the following interface instead:
73622         (OPENAT_BUFFER_SIZE): New macro.
73623         (openat_proc_name): New function.
73624         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73625         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73626         Likewise.
73627         * lib/openat-proc.c: New file.
73628         * modules/openat (Files): Add lib/openat-proc.c.
73629         (Depends-on): Add same-inode, stdbool.
73630         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73631
73632 2006-09-29  Bruno Haible  <bruno@clisp.org>
73633
73634         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73635         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73636         argument. Set stdout_closed before testing for ferror, not after.
73637         (fwriteerror, fwriteerror_no_ebadf): New functions.
73638
73639 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73640
73641         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73642
73643 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73644
73645         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73646         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73647
73648 2006-09-28  Jim Meyering  <jim@meyering.net>
73649
73650         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73651         Include <unistd.h>.
73652
73653 2006-09-28  Bruno Haible  <bruno@clisp.org>
73654
73655         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73656         * modules/linkedhash-list (Depends-on): Likewise.
73657         * modules/rbtreehash-list (Depends-on): Likewise.
73658
73659 2006-09-28  Bruno Haible  <bruno@clisp.org>
73660
73661         * lib/strndup.h: Simplify the redefinition of strndup.
73662         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73663         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73664
73665 2006-09-28  Bruno Haible  <bruno@clisp.org>
73666
73667         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73668         * lib/gl_linkedhash_list.c: Likewise.
73669         * lib/gl_rbtreehash_list.c: Likewise.
73670
73671 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73672
73673         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73674         getaddrinfo.
73675
73676         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73677         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73678         it causes <stdio_ext.h> to cause a compile-time error.
73679         Problem reported by Nelson H. F. Beebe.
73680         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73681         of HAVE_DECL___PENDING.
73682
73683         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73685         declaration.
73686
73687 2006-09-27  Jim Meyering  <jim@meyering.net>
73688
73689         This file could end up with a definition for a function
73690         named __strndup, rather than rpl_strndup on a system with
73691         incomplete weak_alias support.
73692         * lib/strndup.c (strndup): Rename from __strndup.
73693         Remove #defines that used to map __strndup to strndup.
73694         Don't use K&R prototypes.
73695         Remove LIBC-related code, since this file is not sync'd with glibc.
73696         * lib/strndup.h: Revamp, accordingly.
73697         * m4/strndup.m4: Modernize.
73698
73699 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * modules/savewd (Depends-on): Add 'raise'.
73702         * lib/savewd.c: Include <signal.h>, for 'raise'.
73703
73704 2006-09-26  Jim Meyering  <jim@meyering.net>
73705
73706         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73707         when we detect Darwin 8.7.0's acl_get_file bug.
73708         Rearrange to perform the new (below) run-test while $LIBS
73709         contains any acl-related library.  Set USE_ACL at the end.
73710         (gl_ACL_GET_FILE): New function.
73711
73712 2006-09-26  Eric Blake  <ebb9@byu.net>
73713
73714         * lib/verror.c: Include <config.h> unconditionally.
73715
73716 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73717
73718         * modules/clock-time (Maintainer): Add self.
73719         * modules/getlogin_r (Depends-on): Add extensions.
73720
73721 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73722
73723         * modules/clock-time: New module.
73724         * modules/nanosleep (Depends-on): Add clock-time.
73725         * modules/gethrxtime (Depends-on): Likewise.
73726         * modules/gettime (Depends-on): Likewise.
73727         * modules/settime (Depends-on): Likewise.
73728
73729         * modules/fts-lgpl: Depend on openat.
73730         * modules/mkancesdirs: Depend on savewd.
73731         * modules/mkdir-p: Likewise.
73732
73733 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73734
73735         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73736
73737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73738         `gl_have_arbitrary_file_name_length_limit' to
73739         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73740         actually works between configure runs.
73741
73742 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73743             Bruno Haible  <bruno@clisp.org>
73744
73745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73746
73747 2006-09-25  Jim Meyering  <jim@meyering.net>
73748
73749         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73750         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73751
73752 2006-09-25  Eric Blake  <ebb9@byu.net>
73753
73754         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73755         exec's in 2006-09-18 patch when shuffling fds.
73756
73757 2006-09-25  Bruno Haible  <bruno@clisp.org>
73758
73759         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73760         Reported by Jim Meyering.
73761
73762 2006-09-24  Jim Meyering  <jim@meyering.net>
73763
73764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73765         compare a pointer against a literal "0".  That caused failures with
73766         at least HP-UX's hpcc.
73767
73768 2006-09-22  Simon Josefsson  <jas@extundo.com>
73769
73770         * modules/gc-sha1:
73771         * modules/gc-md4:
73772         * modules/gc-hmac-sha1:
73773         * modules/gc-hmac-md5:
73774         * modules/gc-des:
73775         * modules/gc-arcfour: Distribute more files.
73776
73777 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73778
73779         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73780         (gl_linked_iterator_from_to): Initialize struct completely.
73781         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73782         (gl_tree_iterator_from_to): Likewise
73783         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73784         * lib/gl_array_list.c [lint] (gl_array_iterator)
73785         (gl_array_iterator_from_to): Likewise.
73786         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73787         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73788         (gl_carray_iterator_from_to): Likewise.
73789
73790         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73791         * lib/md4.c (md4_process_block): Remove unused variable.
73792         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73793         parentheses for clarity.
73794
73795 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73796
73797         * modules/bison-i18n (Depends-on): Add gettext.
73798
73799 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73800
73801         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73802         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73803         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73804         also add missing comma that caused broken test.
73805         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73806         stdlib.h, for `abort'.
73807         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73808         variables.
73809         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73810         include unistd.h if present, for `rmdir'.
73811         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73812         variables.
73813         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73814         in the process include standard headers for prototypes.
73815         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73816         gets declared on GNU/Linux.
73817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73818         unistd.h, for `rmdir'.
73819         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73820
73821         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73822         always true.
73823         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73824
73825         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73826
73827 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73828
73829         * gnulib-tool (func_version): Create output all at once.  This
73830         may help avoid triggering unnecessary SIGPIPEs, and at any
73831         rate it doesn't hurt.
73832
73833 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73834             Bruno Haible  <bruno@clisp.org>
73835
73836         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73837         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73838         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73839
73840         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73841         (gl_FUNC_VASPRINTF): Invoke it.
73842
73843 2006-09-22  Bruno Haible  <bruno@clisp.org>
73844
73845         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73846         getloadavg.c as first argument.
73847
73848 2006-09-22  Bruno Haible  <bruno@clisp.org>
73849
73850         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73851         at the beginning of the gl_INIT macro.
73852         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73853         gl_GETLOADAVG.
73854
73855 2006-09-22  Bruno Haible  <bruno@clisp.org>
73856
73857         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73858         module.
73859         Suggested by Ralf Wildenhues.
73860
73861 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         Import this patch from libc:
73864
73865         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73866
73867         * lib/regex_internal.c (re_string_reconstruct): Handle
73868         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73869         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73870         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73871         re_string_context_at.
73872
73873         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73874         now requires it.
73875         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73876         gl_REGEX now does it for us.
73877         (gl_REGEX): Add test taken from
73878         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73879
73880         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73881         Check that large offsets work.  Modernize Autoconf usages.
73882         Prefer "yes" to mean a good thing rather than a bad.
73883         Don't put "#define mkstemp" in config.h, as this might interfere
73884         with standard system headers that "#define mkstemp mkstemp64".
73885
73886         * modules/mkstemp (Depends-on): Add extensions, so that
73887         mkstemp is visible on some platforms.
73888         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73889         (Include): Change to "mkstemp.h" from <stdlib.h>.
73890         (Files): Add mkstemp.h.
73891
73892         * lib/mkstemp.h: New file, since some standard headers
73893         #define mkstemp.
73894         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73895         Include "mkstemp.h".
73896         Make the _LIBC code resemble glibc original more,
73897         e.g., use K&R style.
73898         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73899         (mkstemp): Remove, since mkstemp.h does this for us.
73900         * lib/stdlib--.h: Include mkstemp.h.
73901
73902         Import this patch from libc:
73903
73904         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73905
73906         * lib/tempname.c (__gen_tempname): Change attempts_min
73907         into a macro.  Use preprocessor to decide how to initialize
73908         attempts [Coverity CID 67].
73909
73910 2006-09-20  Bruno Haible  <bruno@clisp.org>
73911
73912         * lib/mkdtemp.c: Import from libc.
73913         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73914                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73915                 attempts_min into a macro.  Use preprocessor to decide how to
73916                 initialize attempts [Coverity CID 67].
73917         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73918                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73919                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73920
73921 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73922
73923         * gnulib-tool (func_exit): New function, to allow to pass the
73924         exit status portably through the trap.  Use everywhere.
73925         (--help, --version): Signal a write error.
73926         (trap): catch SIGPIPE, for write errors.
73927         Exit at the end of the trap, with the correct exit status.
73928
73929 2006-09-19  Karl Berry  <karl@gnu.org>
73930
73931         * doc/gnulib.texi: note about the license texinfo files.
73932
73933 2006-09-19  Eric Blake  <ebb9@byu.net>
73934
73935         * gnulib-tool: Avoid space-tab.
73936
73937 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73940         that prevented coreutils 6.1 from building.  Problem reported
73941         by Petter Reinholdtsen.
73942
73943 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         * gnulib-tool (avoidlist): Fix typo that broke options like
73946         --avoid=lock that are used by coreutils bootstrap.
73947
73948 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73949
73950         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73951         more systematically.
73952
73953 2006-09-18  Jim Meyering  <jim@meyering.net>
73954
73955         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73956
73957 2006-09-18  Bruno Haible  <bruno@clisp.org>
73958
73959         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73960
73961 2006-09-18  Bruno Haible  <bruno@clisp.org>
73962
73963         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73964         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73965         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73966         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73967         * m4/gettext.m4: Require autoconf >= 2.52.
73968         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73969         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73970         of gl_cv_header_inttypes_h.
73971
73972 2006-09-18  Bruno Haible  <bruno@clisp.org>
73973
73974         * lib/javaversion.c: Include configmake.h.
73975
73976 2006-09-18  Bruno Haible  <bruno@clisp.org>
73977
73978         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73979         avoid that the while loops be executed in a subshell.
73980
73981 2006-09-18  Bruno Haible  <bruno@clisp.org>
73982
73983         * MODULES.html.sh (func_module): Break long lines.
73984         Suggested by Bruce Korb <bkorb@gnu.org>.
73985
73986 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73987
73988         Speed up by a factor of 1.12.
73989         * gnulib-tool (nl): New variable.
73990         (func_import): Rewrite include directive extraction to only read each
73991         directive once.
73992
73993 2006-09-17  Bruno Haible  <bruno@clisp.org>
73994
73995         * modules/javaversion (Makefile.am): Remove DEFS setting.
73996         (Depends-on): Add configmake, for PKGDATADIR definition.
73997
73998 2006-09-17  Bruno Haible  <bruno@clisp.org>
73999
74000         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74001
74002 2006-09-17  Bruno Haible  <bruno@clisp.org>
74003
74004         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74005         (func_modules_transitive_closure, func_modules_add_dummy,
74006         func_modules_to_filelist, func_import, func_create_testdir,
74007         func_create_megatestdir, ...): Use it wherever possible.
74008         Suggested by Ralf Wildenhues.
74009
74010 2006-09-16  Karl Berry  <karl@gnu.org>
74011
74012         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74013         to avoid sectioning errors.
74014         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74015         [ifinfo]: blank line after @center-ed titles.
74016         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74017         Spell FSF address consistently with others.
74018         (These changes approved by rms.)
74019
74020 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74021
74022         Speed up by a factor of 1.61.
74023         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74024         already checked module names again.
74025
74026 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74027
74028         Speed up by a factor of 1.13.
74029         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74030         for new_files, and the input to func_add_or_update.
74031
74032 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74033
74034         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74035         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74036
74037 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74038
74039         * modules/mkancesdirs (Depends-on): Add fcntl.
74040         * modules/savewd: New file.
74041         * MODULES.html.sh (File system functions): Add savewd.
74042
74043         * modules/configmake (Makefile.am): Add support for the
74044         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74045
74046 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         * m4/savewd.m4: New file.
74049
74050 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74051
74052         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74053         (dirchownmod): New arg FD.  All callers changed.
74054         Use FD rather than opening the directory ourself, as opening is
74055         now the caller's responsibility.
74056         * lib/dirchownmod.h: Likewise.
74057         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74058         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74059         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74060         (test_dir): Remove.
74061         (mkancesdirs): Return length of prefix of FILE that has already
74062         been made, or -2 if there is a child doing the work.  Redo
74063         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74064         ".", and treat ".." specially since it might stray back into
74065         already-created areas.  Use a subprocess if necessary.  New arg
74066         WD; all users changed.  MAKE_DIR function should now return 1
74067         if it creates a directory that is not readable.  Return -2 if
74068         a child process is spun off.
74069         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74070         Adjust signature to match code.
74071         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74072         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74073         all users changed.
74074         * lib/savewd.c, lib/savewd.h: New files.
74075
74076 2006-09-15  Jim Meyering  <jim@meyering.net>
74077
74078         * modules/rename-dest-slash: New module.
74079         * MODULES.html.sh (posix_compat): Add it here.
74080
74081         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74082
74083 2006-09-15  Jim Meyering  <jim@meyering.net>
74084
74085         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74086         file.
74087
74088         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74089
74090 2006-09-15  Jim Meyering  <jim@meyering.net>
74091
74092         * lib/rename-dest-slash.c (has_trailing_slash): Use
74093         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74094         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74095         test before testing whether SRC is a directory.
74096         Suggestions from Bruno Haible.
74097
74098         Avoid a warning about an unused variable.
74099         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74100         into the #ifdef block where it's used.
74101
74102         * lib/rename-dest-slash.c: New file.
74103
74104 2006-09-14  Bruno Haible  <bruno@clisp.org>
74105
74106         * lib/allocsa.c: Include <config.h> unconditionally.
74107         * lib/asnprintf.c: Likewise.
74108         * lib/asprintf.c: Likewise.
74109         * lib/c-strcasecmp.c: Likewise.
74110         * lib/c-strcasestr.c: Likewise.
74111         * lib/c-strncasecmp.c: Likewise.
74112         * lib/c-strstr.c: Likewise.
74113         * lib/classpath.c: Likewise.
74114         * lib/clean-temp.c: Likewise.
74115         * lib/concatpath.c: Likewise.
74116         * lib/copy-file.c: Likewise.
74117         * lib/csharpcomp.c: Likewise.
74118         * lib/csharpexec.c: Likewise.
74119         * lib/execute.c: Likewise.
74120         * lib/fatal-signal.c: Likewise.
74121         * lib/findprog.c: Likewise.
74122         * lib/fwriteerror.c: Likewise.
74123         * lib/gl_array_list.c: Likewise.
74124         * lib/gl_array_oset.c: Likewise.
74125         * lib/gl_avltree_list.c: Likewise.
74126         * lib/gl_avltree_oset.c: Likewise.
74127         * lib/gl_avltreehash_list.c: Likewise.
74128         * lib/gl_carray_list.c: Likewise.
74129         * lib/gl_linked_list.c: Likewise.
74130         * lib/gl_linkedhash_list.c: Likewise.
74131         * lib/gl_list.c: Likewise.
74132         * lib/gl_oset.c: Likewise.
74133         * lib/gl_rbtree_list.c: Likewise.
74134         * lib/gl_rbtree_oset.c: Likewise.
74135         * lib/gl_rbtreehash_list.c: Likewise.
74136         * lib/imaxabs.c: Likewise.
74137         * lib/imaxdiv.c: Likewise.
74138         * lib/javacomp.c: Likewise.
74139         * lib/javaexec.c: Likewise.
74140         * lib/javaversion.c: Likewise.
74141         * lib/linebreak.c: Likewise.
74142         * lib/localcharset.c: Likewise.
74143         * lib/lock.c: Likewise.
74144         * lib/mbchar.c: Likewise.
74145         * lib/mbswidth.c: Likewise.
74146         * lib/mkdtemp.c: Likewise.
74147         * lib/pipe.c: Likewise.
74148         * lib/printf-args.c: Likewise.
74149         * lib/printf-parse.c: Likewise.
74150         * lib/progname.c: Likewise.
74151         * lib/progreloc.c: Likewise.
74152         * lib/readlink.c: Likewise.
74153         * lib/sh-quote.c: Likewise.
74154         * lib/stpcpy.c: Likewise.
74155         * lib/stpncpy.c: Likewise.
74156         * lib/strcasecmp.c: Likewise.
74157         * lib/strcasestr.c: Likewise.
74158         * lib/strcspn.c: Likewise.
74159         * lib/striconv.c: Likewise.
74160         * lib/strncasecmp.c: Likewise.
74161         * lib/strnlen1.c: Likewise.
74162         * lib/strstr.c: Likewise.
74163         * lib/strtok_r.c: Likewise.
74164         * lib/tls.c: Likewise.
74165         * lib/tmpdir.c: Likewise.
74166         * lib/unicodeio.c: Likewise.
74167         * lib/unsetenv.c: Likewise.
74168         * lib/vasnprintf.c: Likewise.
74169         * lib/vasprintf.c: Likewise.
74170         * lib/wait-process.c: Likewise.
74171         * lib/xallocsa.c: Likewise.
74172         * lib/xsetenv.c: Likewise.
74173         * lib/xstriconv.c: Likewise.
74174
74175 2006-09-13  Simon Josefsson  <jas@extundo.com>
74176
74177         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74178         that internally, suggested by Ralf Wildenhues
74179         <Ralf.Wildenhues@gmx.de>.
74180
74181 2006-09-13  Simon Josefsson  <jas@extundo.com>
74182
74183         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74184         @LIBOBJS@.
74185         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74186
74187 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74188
74189         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74190         longer worry about uses that don't define HAVE_CONFIG_H.
74191         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74192         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74193         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74194         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74195         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74196         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74197         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74198         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74199         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74200         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74201         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74202         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74203         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74204         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74205         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74206         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74207         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74208         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74209         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74210         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74211         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74212         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74213         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74214         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74215         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74216         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74217         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74218         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74219         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74220         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74221         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74222         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74223         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74224         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74225         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74226         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74227         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74228         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74229         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74230         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74231         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74232         Likewise.
74233
74234 2006-09-13  Eric Blake  <ebb9@byu.net>
74235
74236         * lib/getopt.c: Fix typo in last commit.
74237
74238 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74239
74240         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74241         dgettext.
74242
74243 2006-09-12  Jim Meyering  <jim@meyering.net>
74244
74245         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74246         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74247         Reported by Nelson H. F. Beebe.
74248
74249 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74250
74251         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74252         program_invocation_name and program_invocation_short_name are
74253         initialized.
74254         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74255         and program_invocation_short_name to argp.h, so they are visible
74256         to user programs.
74257         * lib/argp.h: Likewise
74258
74259 2006-09-10  Bruno Haible  <bruno@clisp.org>
74260
74261         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74262         m4/inttypes_h.m4, m4/uintmax_t.m4.
74263
74264 2006-09-10  Bruno Haible  <bruno@clisp.org>
74265
74266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74267         gl_AC_TYPE_UINTMAX_T.
74268
74269 2006-09-10  Bruno Haible  <bruno@clisp.org>
74270
74271         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74272
74273 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74274
74275         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74276         convention.  Text proposed by Bruno Haible.
74277         (struct argp_option): Document the use of N_() wrappers.
74278
74279         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74280         '\v', and translate the two parts separately, instead of feeding
74281         the whole string to gettext.  This allows to exclude
74282         '\v' from the strings visible to the translator by writing doc
74283         strings as N_("..") "\v" N_("..").
74284
74285 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74286
74287         * config/srclist.txt: Undo latest change; the bug was fixed.
74288
74289 2006-09-09  Bruno Haible  <bruno@clisp.org>
74290
74291         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74292         assignments if building a library without libtool.
74293         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74294         in func_emit_lib_Makefile_am.
74295         (func_import): When building a static library libfoo.a, arrange to
74296         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74297         (func_create_testdir): Likewise.
74298         * modules/gc (configure.ac, Makefile.am): If building statically,
74299         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74300         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74301         * modules/striconv (configure.ac, Makefile.am): Likewise.
74302         Based on a suggestion by Ralf Wildenhues.
74303
74304 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74307         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74308         Also:
74309
74310         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74311         Add year_2050_test to catch glibc bug 2821
74312         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74313
74314         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74315         Prefer #ifdef to #if.
74316
74317         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74318         Return from 'main' instead of calling 'exit'.
74319
74320 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74323         returned the maximum time_t value rather than (time_t) -1.
74324         Problem originally reported by William Bardwell
74325         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74326
74327         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74328         Moved to here ...
74329         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74330         ... from here.
74331
74332 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74333
74334         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74335         2821 is fixed.
74336
74337 2006-09-08  Jim Meyering  <jim@meyering.net>
74338
74339         Don't make generated files read-only.  That would bother too many
74340         people.  However, do retain the ability to work when targets are
74341         read-only: remove the destination and temporary files before writing
74342         them (when generated via sed or echo), or by using the -f option for
74343         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74344         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74345         * modules/byteswap, modules/configmake, modules/fcntl:
74346         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74347         * modules/localcharset, modules/netinet_in, modules/poll:
74348         * modules/stdbool, modules/stdint, modules/sys_select:
74349         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74350
74351 2006-09-08  Jim Meyering  <jim@meyering.net>
74352
74353         Avoid new build failure on FreeBSD 6.0.
74354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74355         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74356         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74357
74358 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74359
74360         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74361
74362 2006-09-07  Jim Meyering  <jim@meyering.net>
74363
74364         Fix global typo in last change: use chmod u-w, not chmod u-x.
74365         Spotted by Paul Eggert and Bruce Korb.
74366         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74367         * modules/byteswap, modules/configmake, modules/fcntl:
74368         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74369         * modules/localcharset, modules/netinet_in, modules/poll:
74370         * modules/stdbool, modules/stdint, modules/sys_select:
74371         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74372
74373 2006-09-06  Jim Meyering  <jim@meyering.net>
74374
74375         Make generated files be read-only.
74376         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74377         Ensure that each generated file is now read-only.
74378         * modules/argz: Likewise.
74379         * modules/arpa_inet: Likewise.
74380         * modules/byteswap: Likewise.
74381         * modules/configmake: Likewise.
74382         * modules/fcntl: Likewise.
74383         * modules/fnmatch: Likewise.
74384         * modules/getopt: Likewise.
74385         * modules/glob: Likewise.
74386         * modules/inttypes: Likewise.
74387         * modules/netinet_in: Likewise.
74388         * modules/poll: Likewise.
74389         * modules/stdbool: Likewise.
74390         * modules/stdint: Likewise.
74391         * modules/sys_select: Likewise.
74392         * modules/sys_socket: Likewise.
74393         * modules/sys_stat: Likewise.
74394         * modules/sysexits: Likewise.
74395         * modules/localcharset: Same as above, but continue using temporary
74396         file named "t-$@" (why different?) rather than the "$@-t" used
74397         everywhere else.
74398
74399         * modules/sysexits (Makefile.am): Replace literal occurrences
74400         of "sysexit.h" more readable, and more consistent, "$@".
74401
74402 2006-09-06  Bruno Haible  <bruno@clisp.org>
74403
74404         * modules/striconv: New file.
74405         * modules/xstriconv: New file.
74406         * MODULES.html.sh (Internationalization functions): Add striconv,
74407         xstriconv.
74408
74409 2006-09-06  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74412         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74413         not using libtool correctly.
74414
74415 2006-09-06  Bruno Haible  <bruno@clisp.org>
74416
74417         * lib/striconv.h: New file.
74418         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74419         iconvstring.c.
74420         * lib/xstriconv.h: New file.
74421         * lib/xstriconv.c: New file.
74422
74423 2006-09-06  Bruno Haible  <bruno@clisp.org>
74424
74425         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74426         lib_..._LDFLAGS.
74427
74428 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74429
74430         * lib/argz_.h: Sync from Libtool.
74431
74432         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74433                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74434
74435         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74436
74437 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74438
74439         * modules/trim: New file.
74440
74441 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74442
74443         * lib/trim.h: New file.
74444         * lib/trim.c: New file.
74445
74446 2006-09-05  Bruno Haible  <bruno@clisp.org>
74447
74448         * MODULES.html.sh (String handling): Add trim.
74449
74450 2006-09-04  Karl Berry  <karl@gnu.org>
74451
74452         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74453         until next release.
74454
74455 2006-09-03  Bruno Haible  <bruno@clisp.org>
74456
74457         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74458         correctly.
74459
74460 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74463         not gl_GETLOADAVG.  Omit unneeded semicolons.
74464         Problems reported by Ralf Wildenhues in
74465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74466         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74467         at the end, which is the usual gnulib style.
74468
74469         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74470         of doing all the work ourselves.
74471         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74472         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74473
74474 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74475
74476         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74477         Problem reported by Ralf Wildenhues in
74478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74479
74480         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74481         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74482
74483 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74486         yesterday's patch by changing test -n to test -z.
74487
74488 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74489
74490         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74491         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74492         the former is now obsolescent.
74493
74494         * modules/chdir-long (Depends-on): Add fcntl.
74495
74496 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74499         obsolescent, and programs should use gnulib instead.
74500         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74501         but with prefixes changed.
74502
74503 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74506         or stdbool.h, because they might not exist while configuring.
74507
74508         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74509         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74510         does that for us.
74511         (O_DIRECTORY): Remove.
74512
74513 2006-08-31  Eric Blake  <ebb9@byu.net>
74514
74515         * gnulib-tool: Don't let emacs change spaces to TAB.
74516
74517 2006-08-31  Bruno Haible  <bruno@clisp.org>
74518
74519         * gnulib-tool: When calling func_import more than once, do it in a
74520         subshell.
74521         Reported by Eric Blake <ebb9@byu.net>.
74522
74523 2006-08-31  Bruno Haible  <bruno@clisp.org>
74524
74525         * gnulib-tool (nl): Remove variable.
74526         (sed_transform_lib_file): Use more robust test for config-h module.
74527         (func_import): Fix typo in 2006-08-25 patch.
74528
74529 2006-08-31  Bruno Haible  <bruno@clisp.org>
74530
74531         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74532         specified, augment Makefile.am variables instead of assigning them.
74533
74534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         Work around a bug in both the Linux and SunOS 64-bit kernels:
74537         nanosleep mishandles sleeps for longer than 2**31 seconds.
74538         Problem reported by Frank v Waveren in
74539         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74541         Check for nanosleep bug.
74542         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74543
74544 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74545
74546         Work around a bug in both the Linux and SunOS 64-bit kernels:
74547         nanosleep mishandles sleeps for longer than 2**31 seconds.
74548         Problem reported by Frank v Waveren in
74549         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74550         * lib/nanosleep.c (BILLION): New constant.
74551         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74552         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74553         implementation.
74554
74555 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * modules/nanosleep (Depends-on): Add gettime.
74558
74559 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74560         and Simon Josefsson  <jas@extundo.com>
74561         and Oskar Liljeblad  <oskar@osk.mine.nu>
74562
74563         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74564         * gnulib-tool (func_import): New license type 'unmodifiable license
74565         text'.
74566         * modules/fdl: Use it.  Longer description.
74567         * module/gpl, module/lgpl: New files.
74568
74569 2006-08-30  Jim Meyering  <jim@meyering.net>
74570
74571         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74572         shadowing the parameter.
74573
74574 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74575
74576         Sync from Libtool:
74577
74578         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74579
74580         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74581         sharing with gnulib.  Report by Eric Blake.
74582
74583 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         * modules/isapipe: New file.
74586         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74587
74588 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * modules/configmake (Makefile.am): Add a comment, and omit
74591         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74592         by Bruno Haible.
74593
74594 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74595
74596         * m4/isapipe.m4: New file.
74597
74598 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * lib/isapipe.c, lib/isapipe.h: New files.
74601
74602 2006-08-29  Jim Meyering  <jim@meyering.net>
74603
74604         * modules/configmake (Makefile.am): Make configmake.h depend on
74605         Makefile.  Otherwise, a stale configmake.h could hang around.
74606
74607 2006-08-29  Eric Blake  <ebb9@byu.net>
74608
74609         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74610         resolution of upstream bug 3044.
74611
74612 2006-08-29  Bruno Haible  <bruno@clisp.org>
74613
74614         * modules/localcharset (Depends-on): Add configmake.
74615         (Makefile.am): Remove setting of LIBDIR through DEFS.
74616
74617 2006-08-29  Bruno Haible  <bruno@clisp.org>
74618
74619         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74620         defined.
74621
74622 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74623
74624         * modules/fcntl: New file.
74625         * modules/chdir-safer (Depends-on): Add fcntl.
74626         * modules/fts: Likewise.
74627         * modules/mkdir-p: Likewise.
74628
74629         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74630         This undoes the most recent change, since we're now addressing the
74631         problem in a different way.
74632
74633         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74634         into output, since the output might be called Makefile.am even
74635         if $makefile_name is something different.
74636         (func_import): Use $makefile_am rather than
74637         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74638         empty.
74639
74640         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74641
74642 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74645         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74646         recent change to stdint.m4, since we're now addressing the problem in a
74647         different way.
74648
74649 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * m4/fcntl_h.m4: New file.
74652
74653 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * lib/fcntl_.h: New file.
74656         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74657         the fcntl module.
74658         * lib/dirchownmod.c: Likewise.
74659         * lib/fts.c: Likewise.
74660
74661         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74662         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74663         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74664         just before including <inttypes.h>, to avoid circular inclusion.
74665
74666 2006-08-28  Jim Meyering  <jim@meyering.net>
74667
74668         * doc/visibility.texi: Actually read and correct the grammar of the
74669         sentence affected by yesterday's change.
74670
74671 2006-08-28  Eric Blake  <ebb9@byu.net>
74672
74673         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74674         needs wrapper.
74675
74676 2006-08-28  Eric Blake  <ebb9@byu.net>
74677
74678         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74679
74680 2006-08-28  Eric Blake  <ebb9@byu.net>
74681
74682         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74683
74684 2006-08-28  Bruno Haible  <bruno@clisp.org>
74685
74686         * modules/c-strstr: New file, from GNU gettext.
74687         * MODULES.html.sh (String handling): Add c-strstr.
74688
74689 2006-08-28  Bruno Haible  <bruno@clisp.org>
74690
74691         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74692         macros.
74693         Reported by Eric Blake.
74694
74695 2006-08-28  Bruno Haible  <bruno@clisp.org>
74696
74697         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74698         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74699         * lib/vasprintf.c: Include errno.h, limits.h.
74700         (EOVERFLOW): New fallback definition.
74701         (vasprintf): Test here whether the string length is > INT_MAX.
74702         * lib/vsnprintf.c: Include errno.h, limits.h.
74703         (EOVERFLOW): New fallback definition.
74704         (vsnprintf): Fix bug when generated string was too long for the buffer.
74705         Test here whether the string length is > INT_MAX.
74706
74707 2006-08-28  Bruno Haible  <bruno@clisp.org>
74708
74709         * lib/inttypes_.h (SCNX*): Remove definitions.
74710         Reported by Eric Blake.
74711
74712 2006-08-28  Bruno Haible  <bruno@clisp.org>
74713
74714         * lib/c-strstr.h: New file, from GNU gettext.
74715         * lib/c-strstr.c: New file, from GNU gettext.
74716
74717 2006-08-28  Bruno Haible  <bruno@clisp.org>
74718
74719         * gnulib-tool: Reorder some statements.
74720
74721 2006-08-28  Bruno Haible  <bruno@clisp.org>
74722
74723         * gnulib-tool: New option --makefile-name.
74724         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74725         $makefile_name.
74726         (func_import): Write $makefile_name to the cache file, and read it from
74727         there unless explicitly specified. Use $makefile_name as file name
74728         instead of Makefile.am. Adjust the recommendations accordingly.
74729
74730 2006-08-28  Bruno Haible  <bruno@clisp.org>
74731
74732         * gnulib-tool (func_verify_module): Check against misapplying patch.
74733
74734 2006-08-28  Bruno Haible  <bruno@clisp.org>
74735
74736         * gnulib-tool (func_relativize, func_relconcat): New functions.
74737         Give an error if --local-dir is given with --update.
74738         Remove trailing slashes from $local_gnulib_dir.
74739         (func_import): Store the relativized $local_gnulib_dir in
74740         gnulib-cache.m4, and read it from there if not specified explicitly.
74741
74742 2006-08-28  Bruno Haible  <bruno@clisp.org>
74743
74744         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74745         is the current directory. Respect also $local_gnulib_dir.
74746
74747 2006-08-28  Bruno Haible  <bruno@clisp.org>
74748             Simon Josefsson  <jas@extundo.com>
74749
74750         BeOS portability.
74751         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74752
74753 2006-08-27  Jim Meyering  <jim@meyering.net>
74754
74755         * doc/visibility.texi: Remove duplicate word: "pointer".
74756
74757 2006-08-26  Bruno Haible  <bruno@clisp.org>
74758
74759         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74760         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74761         (Makefile.am): Create inttypes.h from inttypes_.h.
74762         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74763
74764         * modules/imaxabs: New file.
74765
74766         * modules/imaxdiv: New file.
74767
74768 2006-08-26  Bruno Haible  <bruno@clisp.org>
74769
74770         * m4/inttypes.m4: New file.
74771         * m4/_inttypes_h.m4: Remove file.
74772         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74773         PRI_MACROS_BROKEN.
74774         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74775
74776         * m4/imaxabs.m4: New file.
74777
74778         * m4/imaxdiv.m4: New file.
74779
74780 2006-08-26  Bruno Haible  <bruno@clisp.org>
74781
74782         * lib/inttypes_.h: New file.
74783         * lib/inttypes.h: Remove file.
74784         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74785
74786         * lib/imaxabs.c: New file.
74787
74788         * lib/imaxdiv.c: New file.
74789
74790 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74791
74792         New config-h module, so that "make" output needn't be cluttered
74793         by -DHAVE_CONFIG_H.
74794         * MODULES.html.sh (Support for building libraries and executables):
74795         Add config-h.
74796         * modules/config-h: New file.
74797         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74798         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74799         the config-h module is used.
74800
74801         New configmake module, so that "make" output needn't be cluttered
74802         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74803         * MODULES.html.sh (Support for building libraries and executables):
74804         Add configmake.
74805         * modules/configmake: New file.
74806
74807 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74808
74809         * m4/config-h.m4: New file.
74810
74811 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74812
74813         * config/srclist.txt: Add elisp-comp.
74814
74815 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * MODULES.html.sh (Support for building libraries and executables):
74818         Add elisp-comp.
74819         * build-aux/elisp-comp: New file.
74820         * modules/elisp-comp: New file.
74821
74822 2006-08-24  Bruno Haible  <bruno@clisp.org>
74823
74824         * gnulib-tool (func_create_testdir): Use non-default values of
74825         sourcebase and m4base.
74826
74827 2006-08-24  Bruno Haible  <bruno@clisp.org>
74828
74829         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74830         HTML structure.
74831
74832 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * modules/openat (Depends-on): Add lchown.
74835
74836 2006-08-23  Bruno Haible  <bruno@clisp.org>
74837
74838         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74839         of gl_LOCK_EARLY instead of gl_LOCK.
74840
74841 2006-08-23  Bruno Haible  <bruno@clisp.org>
74842
74843         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74844         on OSF/1 to no.
74845         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74846
74847 2006-08-23  Bruno Haible  <bruno@clisp.org>
74848
74849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74850         as unusable.
74851
74852         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74853         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74854         (gl_LOCK): New macro.
74855
74856 2006-08-22  Simon Josefsson  <jas@extundo.com>
74857
74858         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74859         to md5 module.
74860
74861 2006-08-22  Simon Josefsson  <jas@extundo.com>
74862
74863         * MODULES.html.sh: Add "Support for maintaining and release
74864         projects".
74865
74866         * build-aux/gnupload: New file, from coreutils.
74867
74868 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74869
74870         Avoid the need for AC_LIBSOURCES in m4 macros.
74871         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74872         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74873         * modules/check-version (EXTRA_DIST): Add check-version.h.
74874         * modules/crc (EXTRA_DIST): Add crc.h.
74875         * modules/des (EXTRA_DIST): Add des.h.
74876         * modules/gc (EXTRA_DIST): Add gc.h.
74877         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74878         * modules/getline (EXTRA_DIST): Add getline.h.
74879         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74880         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74881         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74882         * modules/md2 (EXTRA_DIST): Add md2.h.
74883         * modules/md4 (EXTRA_DIST): Add md4.h.
74884         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74885         * modules/read-file (EXTRA_DIST): Add read-file.h.
74886         * modules/readline (EXTRA_DIST): Add readline.h.
74887         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74888         rijndael-api-fst.h.
74889
74890 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74891
74892         * m4/rijndael.m4 (gl_ARCFOUR):
74893         * m4/arctwo.m4 (gl_ARCTWO):
74894         * m4/check-version.m4 (gl_CHECK_VERSION):
74895         * m4/crc.m4 (gl_CRC):
74896         * m4/des.m4 (gl_DES):
74897         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74898         * m4/gc.m4 (gl_GC):
74899         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74900         * m4/getline.m4 (gl_FUNC_GETLINE):
74901         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74902         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74903         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74904         * m4/md2.m4 (gl_MD2):
74905         * m4/md4.m4 (gl_MD4):
74906         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74907         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74908         * m4/readline.m4 (gl_FUNC_READLINE):
74909         * m4/rijndael.m4 (gl_RIJNDAEL):
74910         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74911         to get the necessary .h files and whatnot.
74912
74913 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74914
74915         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74916         gnulib rather than the other way around.
74917         * config/srclistvars.sh (COREUTILS): Remove.
74918
74919 2006-08-22  Jim Meyering  <jim@meyering.net>
74920
74921         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74922
74923         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74924
74925 2006-08-22  Eric Blake  <ebb9@byu.net>
74926
74927         * modules/regexprops-generic: New file.
74928         * MODULES.html.sh (Support for building documentation): List it.
74929
74930 2006-08-22  Eric Blake  <ebb9@byu.net>
74931
74932         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74933         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74934         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74935         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74936
74937 2006-08-22  Bruno Haible  <bruno@clisp.org>
74938
74939         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74940         and lib_LTLIBRARIES like the other lib_* variables.
74941
74942 2006-08-22  Bruno Haible  <bruno@clisp.org>
74943
74944         * build-aux/x-to-1.in: New file, from GNU gettext.
74945
74946 2006-08-22  Bruno Haible  <bruno@clisp.org>
74947
74948         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74949         <utmpx.h> exists.
74950
74951 2006-08-22  Bruno Haible  <bruno@clisp.org>
74952
74953         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74954         <utmpx.h> exists.
74955
74956 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         BeOS portability.
74959         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74960         exist.
74961         Problem reported by Bruno Haible.
74962
74963 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74964
74965         Avoid the need for AC_LIBSOURCES in m4 macros.
74966         * modules/acl (EXTRA_DIST): Add acl.h.
74967         * modules/argmatch (Files): Add m4/argmatch.m4.
74968         (configure.ac): Add gl_ARGMATCH.
74969         (EXTRA_DIST): Renamed from lib_SOURCES, for
74970         consistency with the other modules.  Remove argmatch.c.
74971         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74972         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74973         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74974         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74975         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74976         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74977         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74978         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74979         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74980         * modules/closeout (EXTRA_DIST): Add closeout.h.
74981         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74982         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74983         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74984         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74985         dirname.h; remove basename.c and stripslash.c.
74986         * modules/exclude (EXTRA_DIST): Add exclude.h.
74987         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74988         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74989         * modules/file-type (EXTRA_DIST): Add file-type.h.
74990         * modules/filemode (EXTRA_DIST): Add filemode.h.
74991         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74992         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74993         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74994         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74995         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74996         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74997         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74998         * modules/getdate (EXTRA_DIST): Add getdate.c.
74999         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75000         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75001         * modules/getpass (EXTRA_DIST): Add getpass.h.
75002         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75003         * modules/group-member (EXTRA_DIST): Add group-member.h.
75004         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75005         * modules/hash (EXTRA_DIST): Add hash.h.
75006         * modules/human (EXTRA_DIST): Add human.h.
75007         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75008         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75009         * modules/lchown (EXTRA_DIST): Add lchown.h.
75010         * modules/long-options (EXTRA_DIST): Add long-options.h.
75011         * modules/lstat (EXTRA_DIST): Add lstat.h.
75012         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75013         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75014         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75015         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75016         * modules/memxor (EXTRA_DIST): Add memxor.h.
75017         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75018         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75019         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75020         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75021         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75022         * modules/physmem (EXTRA_DIST): Add physmem.h.
75023         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75024         * modules/posixver (EXTRA_DIST): Add posixver.h.
75025         * modules/quote (EXTRA_DIST): Add quote.h.
75026         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75027         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75028         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75029         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75030         regex_internal.h regexec.c.
75031         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75032         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75033         * modules/same (EXTRA_DIST): Add same.h.
75034         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75035         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75036         * modules/savedir (EXTRA_DIST): Add savedir.h.
75037         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75038         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75039         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75040         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75041         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75042         * modules/strdup (EXTRA_DIST): Add strdup.h.
75043         * modules/strftime (EXTRA_DIST): Add strftime.h.
75044         * modules/strndup (EXTRA_DIST): Add strndup.h.
75045         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75046         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75047         * modules/time_r (EXTRA_DIST): Add time_r.h.
75048         * modules/timespec (EXTRA_DIST): Add timespec.h.
75049         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75050         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75051         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75052         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75053         * modules/userspec (EXTRA_DIST): Add userspec.h.
75054         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75055         * modules/utimens (EXTRA_DIST): Add utimens.h.
75056         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75057         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75058         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75059         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75060         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75061         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75062         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75063         * modules/yesno (EXTRA_DIST): Add yesno.h.
75064
75065 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75068
75069         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75070         * m4/dev-ino.m4, same-inode.m4: Remove.
75071
75072         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75073         * m4/acl.m4 (AC_FUNC_ACL):
75074         * m4/backupfile.m4 (gl_BACKUPFILE):
75075         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75076         * m4/canon-host.m4 (gl_CANON_HOST):
75077         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75078         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75079         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75080         * m4/cloexec.m4 (gl_CLOEXEC):
75081         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75082         * m4/closeout.m4 (gl_CLOSEOUT):
75083         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75084         * m4/dirname.m4 (gl_DIRNAME):
75085         * m4/exclude.m4 (gl_EXCLUDE):
75086         * m4/exitfail.m4 (gl_EXITFAIL):
75087         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75088         * m4/file-type.m4 (gl_FILE_TYPE):
75089         * m4/filemode.m4 (gl_FILEMODE):
75090         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75091         * m4/fpending.m4 (gl_FUNC_FPENDING):
75092         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75093         * m4/fts.m4 (gl_FUNC_FTS):
75094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75095         * m4/getdate.m4 (gl_GETDATE):
75096         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75097         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75098         * m4/getpass.m4 (gl_FUNC_GETPASS):
75099         * m4/gettime.m4 (gl_GETTIME):
75100         * m4/getugroups.m4 (gl_GETUGROUPS):
75101         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75102         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75103         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75104         * m4/hash.m4 (gl_HASH):
75105         * m4/idcache.m4 (gl_IDCACHE):
75106         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75107         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75108         * m4/long-options.m4 (gl_LONG_OPTIONS):
75109         * m4/lstat.m4 (gl_FUNC_LSTAT):
75110         * m4/md5.m4 (gl_MD5):
75111         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75112         * m4/memcoll.m4 (gl_MEMCOLL):
75113         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75114         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75115         * m4/memxor.m4 (gl_MEMXOR):
75116         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75117         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75118         * m4/modechange.m4 (gl_MODECHANGE):
75119         * m4/mountlist.m4 (gl_MOUNTLIST):
75120         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75121         * m4/openat.m4 (gl_FUNC_OPENAT):
75122         * m4/pathmax.m4 (gl_PATHMAX):
75123         * m4/physmem.m4 (gl_PHYSMEM):
75124         * m4/posixtm.m4 (gl_POSIXTM):
75125         * m4/posixver.m4 (gl_POSIXVER):
75126         * m4/quote.m4 (gl_QUOTE):
75127         * m4/quotearg.m4 (gl_QUOTEARG):
75128         * m4/readtokens.m4 (gl_READTOKENS):
75129         * m4/readutmp.m4 (gl_READUTMP):
75130         * m4/regex.m4 (gl_REGEX):
75131         * m4/safe-read.m4 (gl_SAFE_READ):
75132         * m4/safe-write.m4 (gl_SAFE_WRITE):
75133         * m4/same.m4 (gl_SAME):
75134         * m4/save-cwd.m4 (gl_SAVE_CWD):
75135         * m4/savedir.m4 (gl_SAVEDIR):
75136         * m4/settime.m4 (gl_SETTIME):
75137         * m4/sha1.m4 (gl_SHA1):
75138         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75139         * m4/stat-macros.m4 (gl_STAT_MACROS):
75140         * m4/stat-time.m4 (gl_STAT_TIME):
75141         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75142         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75143         * m4/strdup.m4 (gl_FUNC_STRDUP):
75144         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75145         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75146         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75147         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75148         * m4/time_r.m4 (gl_TIME_R):
75149         * m4/timespec.m4 (gl_TIMESPEC):
75150         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75151         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75152         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75153         * m4/userspec.m4 (gl_USERSPEC):
75154         * m4/utimecmp.m4 (gl_UTIMECMP):
75155         * m4/utimens.m4 (gl_UTIMENS):
75156         * m4/xalloc.m4 (gl_XALLOC):
75157         * m4/xgetcwd.m4 (gl_XGETCWD):
75158         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75159         * m4/xreadlink.m4 (gl_XREADLINK):
75160         * m4/xstrtod.m4 (gl_XSTRTOD):
75161         * m4/yesno.m4 (gl_YESNO):
75162         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75163         to get the necessary .h files and whatnot.
75164
75165 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75166             Bruno Haible  <bruno@clisp.org>
75167
75168         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75169         /bin/sh understanding of '!' conditional negation.
75170
75171 2006-08-21  Jim Meyering  <jim@meyering.net>
75172
75173         * modules/openat (Depends-on): Really alphabetize.
75174
75175         * modules/acl (Depends-on): Add error and quote.
75176
75177         * check-module (find_included_lib_files): Add at-func.c to the
75178         ok-to-include-more-than-once white list.
75179
75180         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75181
75182 2006-08-21  Bruno Haible  <bruno@clisp.org>
75183
75184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75185         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75186         Reported by Martin Lambers <marlam@marlam.de>.
75187
75188 2006-08-21  Bruno Haible  <bruno@clisp.org>
75189
75190         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75191         specify an installation location, don't emit a noinst_LIBRARIES or
75192         noinst_LTLIBRARIES assignment.
75193
75194 2006-08-21  Bruno Haible  <bruno@clisp.org>
75195
75196         BeOS portability.
75197         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75198         BeOS has mbrtowc() but no <wctype.h>.
75199
75200 2006-08-21  Bruno Haible  <bruno@clisp.org>
75201
75202         BeOS portability.
75203         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75204         exist.
75205
75206 2006-08-21  Bruno Haible  <bruno@clisp.org>
75207
75208         BeOS portability.
75209         * lib/mbchar.h: Include <wctype.h> only if it exists.
75210
75211 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75212
75213         Remove files that are no longer needed by their respective modules.
75214         * m4/obstack.m4: Remove.
75215         * m4/strerror_r.m4: Remove.
75216         * m4/uint32_t.m4: Remove.
75217         * m4/uintptr_t.m4: Remove.
75218         * m4/ullong_max.m4: Remove.
75219         * m4/xstrtoimax.m4: Remove.
75220         * m4/xstrtoumax.m4: Remove.
75221
75222         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75223         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75224         dependencies now capture this.
75225
75226         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75227         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75228         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75229         * m4/human.m4 (gl_HUMAN): Likewise.
75230         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75231         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75232
75233         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75234
75235         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75236         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75237         stdint.
75238         * m4/human.m4 (gl_HUMAN): Likewise.
75239         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75240         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75241         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75242         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75243         * m4/xstrtol (gl_XSTRTOL): Likewise.
75244
75245         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75246         AC_TYPE_LONG_LONG_INT.
75247         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75248         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75249         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75250         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75251
75252         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75253         on stdbool.
75254
75255         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75256         (gl_PREREQ_XSTRTOUL): Remove.
75257
75258         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75259
75260         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75261         mode.
75262
75263 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         Add and change modules to make it easier for coreutils to use
75266         gnulib-tool.
75267         * modules/backupfile (Files): Remove m4/d-ino.m4.
75268         (Depends-on): Add d-ino.
75269         * modules/cycle-check (Depends-on): Add stdint.
75270         (lib_SOURCES): Add cycle-check.h.
75271         * modules/d-ino: New module.
75272         * modules/d-type: New module.
75273         * modules/error (Files): Remove m4/strerror_r.m4.
75274         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75275         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75276         m4/inttypes_h.m4, m4/uintmax_t.m4.
75277         (Depends-on): Add stdint.
75278         (lib_SOURCES): Add fsusage.h.
75279         * modules/getcwd (Files): Remove d-ino.m4.
75280         (Depends-on): Add d-ino.
75281         * modules/getndelim2 (Depends-on): Add stdint.
75282         * modules/glob (Files): Remove m4/d-type.m4.
75283         (Depends-on): Add d-type.
75284         * modules/host-os: New module.
75285         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75286         m4/inttypes_h.m4, m4/uintmax_t.m4.
75287         * Depends-on: Add stdint.
75288         (lib_SOURCES): Add human.h.
75289         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75290         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75291         m4/uintmax_t.m4, m4/ulonglong.m4.
75292         (Depends-on): Add stdint.
75293         (EXTRA_DIST): Add inttostr.h.
75294         * modules/lchmod: New module.
75295         * modules/link-follow: New module.
75296         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75297         (Depends-on): Add lchmod.
75298         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75299         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75300         (Depends-on): Add stdint.
75301         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75302         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75303         (Depends-on): Add stdint.
75304         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75305         * modules/perl: New module.
75306         * modules/regex (Depends-on): Add stdint.
75307         * modules/rmdir-errno: New module.
75308         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75309         m4/intmax_t.m4.
75310         (Depends-on): Add stdint.
75311         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75312         m4/uintmax_t.m4.
75313         (Depends-on): Add stdint.
75314         * modules/unlink-busy: New module.
75315         * modules/utimecmp (Depends-on): Add stdint.
75316         * modules/uptime: New module.
75317         * modules/winsz-ioctl: New module.
75318         * modules/winsz-termios: New module.
75319         * modules/xnanosleep (Depends-on): Add nanosleep.
75320         * modules/ullong_max: Remove.
75321         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75322         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75323         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75324         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75325         (Depends-on): Add inttypes.
75326         (lib_SOURCES): Add xstrtol.h.
75327         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75328         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75329         * MODULES.html.sh: Move 'assert' into the assert section.
75330         Move 'dummy' into the linking section.
75331         Remove ullong_max.
75332         Add section for compatibility checks for POSIX:2001 functions,
75333         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75334         winsz-ioctl, and winsz-termios into it.
75335         Add lchmod.
75336         Add top-level Misc section and put host-os, perl, and uptime
75337         into it.
75338
75339 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75340
75341         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75342         now assume the stdint module.  Do not include inttypes.h.
75343         * lib/fsusage.h: Likewise.
75344         * lib/getndelim2.c: Likewise.
75345         * lib/human.h: Likewise.
75346         * lib/inttostr.h: Likewise.
75347         * lib/obstack.c: Likewise.
75348         * lib/regex_internal.h: Likewise.
75349         * lib/tempname.c: Likewise.
75350         * lib/utimecmp.c: Likewise.
75351         * lib/xstrtol.h: Likewise.
75352
75353         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75354
75355         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75356         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75357         * lib/xtime.h: Likewise.
75358
75359 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * modules/openat (Files): Add lib/fchmodat.c.
75362         Fixes problem reported by Jay Youngman.
75363
75364 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75365
75366         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75367         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75368
75369 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75370             Bruno Haible  <bruno@clisp.org>
75371
75372         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75373         and is a script that invokes bison. Tighten the code. Add comments.
75374
75375 2006-08-18  Jim Meyering  <jim@meyering.net>
75376
75377         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75378         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75379         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75380         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75381
75382 2006-08-18  Bruno Haible  <bruno@clisp.org>
75383
75384         * modules/bison-i18n: New file.
75385         * MODULES.html.sh (Internationalization functions): Add it.
75386
75387 2006-08-18  Bruno Haible  <bruno@clisp.org>
75388
75389         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75390         sys/statvfs.h. When getmntinfo was found, check its declaration and
75391         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75392
75393 2006-08-18  Bruno Haible  <bruno@clisp.org>
75394
75395         * m4/bison-i18n.m4: New file, from bison.
75396
75397 2006-08-18  Bruno Haible  <bruno@clisp.org>
75398
75399         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75400         (ME_DUMMY): Treat "kernfs" as a dummy.
75401         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75402
75403 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         Update from coreutils.
75406
75407         2006-08-15  Jim Meyering  <jim@meyering.net>
75408
75409         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75410
75411         2006-01-17  Jim Meyering  <jim@meyering.net>
75412
75413         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75414
75415         2006-01-11  Jim Meyering  <jim@meyering.net>
75416
75417         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75418         Check for the lchmod function.
75419
75420 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         Update from coreutils.
75423
75424         * lib/__fpending.h: Add copyright notice.
75425         * lib/fprintftime.h: Likewise.
75426         * lib/savedir.c: Use (C) in copyright notice.
75427         * lib/savedir.h: Likewise.
75428
75429         2006-08-15  Jim Meyering  <jim@meyering.net>
75430
75431         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75432         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75433         in support of the EXPECTED_ERRNO macro.
75434         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75435         definitions.  Instead, define the appropriate symbols and include
75436         "at-func.c".
75437         * lib/mkdirat.c (mkdirat): Likewise.
75438         * lib/fchmodat.c (fchmodat): Likewise.
75439         (ENOSYS): Remove definition.
75440         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75441         it.  Don't include "unistd--.h" -- it wasn't ever used.
75442
75443         2006-01-17  Jim Meyering  <jim@meyering.net>
75444
75445         Rewrite fts.c not to change the current working directory,
75446         by using openat, fstatat, fdopendir, etc..
75447
75448         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75449         (HAVE_OPENAT_SUPPORT): Define.
75450         [_LIBC] (fchdir): Don't undef or define; no longer used.
75451         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75452         Now, this `function' always succeeds, and consumes its file descriptor
75453         parameter -- so callers must not close such FDs.  Update callers.
75454         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75455         (diropen): Add parameter, SP.  Adjust all callers.
75456         Implement using diropen_fd, rather than open.
75457         (fts_open): Initialize new member, fts_cwd_fd.
75458         Remove fts_rft-setting code.
75459         (fts_close): Close fts_cwd_fd, if necessary.
75460         (__opendir2): Define in terms of opendir or opendirat,
75461         depending on whether the FST_NOCHDIR flag is set.
75462         (fts_build): Since fts_safe_changedir consumes its FD, and since
75463         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75464         and close the dup'd file descriptor upon failure.
75465         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75466         (fts_safe_changedir): Tweak semantics to reflect that this function
75467         now calls cwd_advance_fd and hence consumes its FD argument.
75468         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75469         [struct FTS] (fts_rft): Remove now-unused member.
75470         [struct FTS] (fts_cycle.state): Improve comment.
75471
75472         * lib/openat.c (openat_needs_fchdir): New function.
75473         * lib/openat.h (openat_needs_fchdir): Declare it.
75474
75475 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75476
75477         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75478         Problem and fix reported by Pádraig Brady in
75479         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75480
75481 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75482
75483         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75484
75485 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75486
75487         * lib/memcoll.c (memcoll): Optimize for the common case where the
75488         arguments are bytewise equal.
75489
75490 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * doc/regexprops-generic.texi: Add a copyright notice.
75493
75494 2006-08-15  Bruno Haible  <bruno@clisp.org>
75495
75496         * modules/tmpdir (License): Change to LGPL.
75497
75498 2006-08-15  Bruno Haible  <bruno@clisp.org>
75499
75500         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75501         module.
75502
75503 2006-08-14  Simon Josefsson  <jas@extundo.com>
75504
75505         * config/srclist.txt: Add gnupload.
75506
75507 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         Change copyright notice from LGPL 2 to GPL 2, since that's the
75510         standard form used in the gnulib repository.
75511         * tests/test-lock.c: Likewise.
75512         * tests/test-stdint.c: Likewise.
75513         * tests/test-tls.c: Likewise.
75514
75515         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75516         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75517         Add copyright notice.
75518
75519         * check-module: Add copyright notice.  Output a copyright
75520         notice if "--version" is specified.
75521         * modules/COPYING: New file.
75522         * tests/test-getaddrinfo.c: Add copyright notice.
75523         * tests/test-verify.c: Likewise.
75524
75525 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75526
75527         Change copyright notice from LGPL 2 to GPL 2, since that's the
75528         standard form used in the gnulib repository.
75529         * lib/lock.c: LGPL -> GPL.
75530         * lib/lock.h: Likewise.
75531         * lib/strnlen1.c: Likewise.
75532         * lib/strnlen1.h: Likewise.
75533         * lib/tls.c: Likewise.
75534         * lib/tls.h: Likewise.
75535         * lib/tmpdir.c: Likewise.
75536
75537         * lib/TODO: Remove; this belongs only in coreutils.
75538
75539 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         Add copyright notices to long-enough files that lack them, since
75542         otherwise the files aren't clearly free.  Use the same notice that
75543         getdate.texi already uses.
75544         * doc/alloca-opt.texi: Add copyright notice.
75545         * doc/alloca.texi: Likewise.
75546         * doc/ctime.texi: Likewise.
75547         * doc/functions.texi: Likewise.
75548         * doc/gcd.texi: Likewise.
75549         * doc/gnulib-tool.texi: Likewise.
75550         * doc/inet_ntoa.texi: Likewise.
75551         * doc/visibility.texi: Likewise.
75552
75553         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75554         * doc/quote.texi: Add copyright notice.
75555
75556         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75557         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75558         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75559         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75560         is now obsolete, and give a pointer to the Sun list.
75561         Add copyright notice.
75562
75563 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         * config/srclistvars.sh: Add copyright notice.
75566
75567 2006-08-14  Eric Blake  <ebb9@byu.net>
75568
75569         Import the following change from libc:
75570
75571         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75572
75573         Upstream bug 2997.
75574         * lib/misc/error.c: Add space between program name and message if file
75575         name is missing.
75576
75577 2006-08-12  Karl Berry  <karl@gnu.org>
75578
75579         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75580         remove, these originate in gnulib now.
75581
75582 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75583
75584         * doc/Makefile (standards.info standards.html standards.dvi):
75585         Also depend on make-stds.texi.
75586
75587 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75590         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75591
75592         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75593         in wchar_t.  Problem reported by Eric Blake.
75594
75595         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75596         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75597         Also, help the compiler to keep LEN in a register.
75598
75599 2006-08-11  Eric Blake  <ebb9@byu.net>
75600
75601         * users.txt: Sort.  Add tar.
75602
75603 2006-08-11  Bruno Haible  <bruno@clisp.org>
75604
75605         * users.txt: New file.
75606
75607 2006-08-11  Bruno Haible  <bruno@clisp.org>
75608
75609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75610         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75611
75612 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * modules/snprintf (Depends-on): Remove minmax.
75615         (Maintainer): Add self and Bruno.
75616
75617 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75620         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75621         (EOVERFLOW): Define if the system does not.
75622         Do not include "minmax.h"; it wasn't used.
75623         (snprintf): Don't assume size_t promotes to an unsigned type.
75624         Fix bug when generated string was too long for the buffer: the
75625         buffer's contents are supposed to be the initial prefix of the
75626         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75627         exceeds INT_MAX; do the check ourselves.
75628
75629         Import the following changes from libc:
75630
75631         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75632
75633         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75634         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75635         set wc to the byte which couldn't be converted.
75636         (re_string_reconstruct): Don't clear valid_raw_len before calling
75637         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75638         tip_context using re_string_context_at.
75639
75640         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75641
75642         * lib/posix/regex.h: g++ still cannot handled [restrict].
75643
75644         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75645
75646         * lib/posix/regex.h: Remove special handling for VMS.
75647
75648 2006-08-10  Jim Meyering  <jim@meyering.net>
75649
75650         * modules/same-inode: New module.
75651         * modules/dev-ino: New module.
75652         * modules/cycle-check: Depend on these modules, rather than simply
75653         including their .h files.
75654         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75655         required via m4/cycle-check.m4.
75656         * modules/same: Depend on new same-inode module, rather than
75657         including same-inode.h.
75658         * modules/chdir-safer: New file.
75659
75660         * modules/chown (Depends-on): Add stat-macros.
75661
75662 2006-08-10  Jim Meyering  <jim@meyering.net>
75663
75664         * m4/cycle-check.m4: New file.
75665         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75666         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75667
75668 2006-08-10  Eric Blake  <ebb9@byu.net>
75669
75670         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75671         in from original proposal.
75672
75673 2006-08-10  Eric Blake  <ebb9@byu.net>
75674         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75675
75676         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75677         namespace.
75678
75679 2006-08-10  Bruno Haible  <bruno@clisp.org>
75680
75681         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75682         as well.
75683
75684 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         Sync from coreutils.
75687
75688         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75689
75690         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75691         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75692
75693 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75694
75695         * modules/restrict: Remove; no longer needed now that we assume
75696         Autoconf 2.59 or later.
75697         * MODULES.html.sh: Remove 'restrict'.
75698         * modules/argp (Depends-on): Remove 'restrict'.
75699         * modules/base64 (Depends-on): Likewise.
75700         * modules/gc (Depends-on): Likewise.
75701         * modules/getaddrinfo (Depends-on): Likewise.
75702         * modules/glob (Depends-on): Likewise.
75703         * modules/inet_ntop (Depends-on): Likewise.
75704         * modules/inet_pton (Depends-on): Likewise.
75705         * modules/memxor (Depends-on): Likewise.
75706         * modules/regex (Depends-on): Likewise.
75707         * modules/strtok_r (Depends-on): Likewise.
75708         * modules/time_r (Depends-on): Likewise.
75709
75710 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75713         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75714         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75715         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75716         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75717         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75718         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75719         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75720
75721         Merge from coreutils.
75722         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75723         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75724         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75725         * m4/time_r.m4 (gl_TIME_R): Likewise.
75726
75727 2006-08-09  Karl Berry  <karl@gnu.org>
75728
75729         * config/srclist.txt: no more gettext-tools, per Bruno.
75730
75731 2006-08-08  Eric Blake  <ebb9@byu.net>
75732
75733         * modules/verror: New module.
75734         * MODULES.html.sh: Document it.
75735
75736 2006-08-08  Eric Blake  <ebb9@byu.net>
75737
75738         * lib/verror.h, lib/verror.c: New files.
75739
75740 2006-08-08  Eric Blake  <ebb9@byu.net>
75741
75742         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75743         verror_at_line output complies with GNU Coding Standards even when
75744         file is NULL.
75745
75746 2006-08-07  Bruno Haible  <bruno@clisp.org>
75747
75748         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75749         versions of AIX.
75750         Reported by Ralf Wildenhues.
75751
75752 2006-08-07  Bruno Haible  <bruno@clisp.org>
75753
75754         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75755         in an AC_DEFUN. Needed so that the autoconf snippets can use
75756         AC_REQUIRE.
75757
75758 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75759
75760         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75761         Initialize pkgdata_DATA.
75762         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75763         overriding it.
75764
75765 2006-08-06  Eric Blake  <ebb9@byu.net>
75766
75767         * lib/error.h: Fold in some upstream changes from glibc.
75768         * lib/error.c: Likewise.
75769
75770 2006-08-04  Bruno Haible  <bruno@clisp.org>
75771
75772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75773         Make the mostlyclean-local rule depend on mostlyclean-generic.
75774         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75775
75776 2006-07-31  Bruno Haible  <bruno@clisp.org>
75777
75778         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75779         <stdlib.h>, <string.h>.
75780
75781 2006-07-30  Bruno Haible  <bruno@clisp.org>
75782
75783         * modules/readlink (License): Change to LGPL.
75784
75785 2006-07-30  Bruno Haible  <bruno@clisp.org>
75786
75787         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75788         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75789         set PKGDATADIR to point to it.
75790
75791 2006-07-30  Bruno Haible  <bruno@clisp.org>
75792
75793         * modules/csharpexec (configure.ac): Comment out macro invocation.
75794         * modules/javaexec (configure.ac): Likewise.
75795         * modules/javacomp-script (configure.ac): Likewise.
75796
75797         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75798
75799 2006-07-30  Bruno Haible  <bruno@clisp.org>
75800
75801         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75802         linked-list.
75803
75804 2006-07-30  Bruno Haible  <bruno@clisp.org>
75805
75806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75807
75808 2006-07-30  Bruno Haible  <bruno@clisp.org>
75809
75810         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75811         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75812         get removed.
75813
75814 2006-07-29  Bruno Haible  <bruno@clisp.org>
75815
75816         Make it possible for gnulib-tool to work with locally modified or
75817         augmented gnulib repositories.
75818         * gnulib-tool (func_usage): Document --local-dir option.
75819         (local_gnulib_dir): New variable.
75820         Handle --local-dir option.
75821         (func_lookup_file): New function.
75822         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75823         (func_get_description, func_get_filelist, func_get_description,
75824         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75825         func_get_automake_snippet, func_get_include_directive,
75826         func_get_license, func_get_maintainer): Use func_lookup_file.
75827         (func_import, func_create_testdir): Use func_lookup_file.
75828
75829 2006-07-29  Bruno Haible  <bruno@clisp.org>
75830
75831         * modules/setenv (Depends-on): Add unistd.
75832
75833 2006-07-29  Bruno Haible  <bruno@clisp.org>
75834
75835         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75836
75837 2006-07-29  Bruno Haible  <bruno@clisp.org>
75838
75839         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75840
75841 2006-07-29  Bruno Haible  <bruno@clisp.org>
75842
75843         * gnulib-tool (import, update): If there is no Makefile.am, look at
75844         aclocal.m4, instead of bailing out.
75845
75846 2006-07-29  Bruno Haible  <bruno@clisp.org>
75847
75848         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75849         Categorize the options by when they are useful.
75850
75851 2006-07-29  Bruno Haible  <bruno@clisp.org>
75852
75853         * gnulib-tool (func_usage): Document option --no-libtool.
75854         Handle option --no-libtool.
75855         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75856         for changed semantics of $libtool variable.
75857         (func_import): Likewise. If libtool is not used, show this through
75858         an option --no-libtool.
75859         (func_create_testdir): Update.
75860
75861 2006-07-29  Bruno Haible  <bruno@clisp.org>
75862
75863         * gnulib-tool (func_import): Extend error message about missing
75864         --doc-base.
75865
75866 2006-07-29  Bruno Haible  <bruno@clisp.org>
75867
75868         * gnulib-tool (func_import): Don't create the $docbase directory if
75869         there is no file to store there.
75870
75871 2006-07-29  Bruno Haible  <bruno@clisp.org>
75872
75873         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75874         relevant, look for configure.ac there, not in the current directory.
75875         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75876
75877 2006-07-29  Bruno Haible  <bruno@clisp.org>
75878
75879         * gnulib-tool (SORT): New variable.
75880         (func_usage): Undocument --assume-autoconf option.
75881         Remove --assume-autoconf option handling.
75882         (autoconf_minversion): Determine from the contents of configure.ac.
75883         (func_import): Remove autoconf_minversion handling.
75884         Suggested by Eric Blake.
75885
75886 2006-07-29  Bruno Haible  <bruno@clisp.org>
75887
75888         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75889
75890 2006-07-29  Bruno Haible  <bruno@clisp.org>
75891
75892         * config/srclist.txt (*setenv.[ch]): Remove rules.
75893
75894 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75895
75896         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75897
75898 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75899
75900         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75901         arpa/inet.h.
75902
75903 2006-07-28  Simon Josefsson  <jas@extundo.com>
75904
75905         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75906         * modules/inet_pton (Depends-on): Likewise.
75907
75908 2006-07-28  Simon Josefsson  <jas@extundo.com>
75909
75910         * m4/netinet_in_h.m4: New file.
75911
75912 2006-07-28  Simon Josefsson  <jas@extundo.com>
75913
75914         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75915         #include's.
75916
75917 2006-07-28  Simon Josefsson  <jas@extundo.com>
75918
75919         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75920         #include's.
75921
75922 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75925         setgid on directories only if they set these bits.
75926         * lib/modechange.h: Remove obsolete comment about masks.
75927
75928 2006-07-28  Eric Blake  <ebb9@byu.net>
75929
75930         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75931         macro expansion.
75932
75933 2006-07-28  Bruno Haible  <bruno@clisp.org>
75934
75935         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75936
75937 2006-07-28  Bruno Haible  <bruno@clisp.org>
75938
75939         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75940
75941 2006-07-28  Bruno Haible  <bruno@clisp.org>
75942
75943         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75944         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75945         Define fallbacks.
75946         Avoids link error on FreeBSD 4.x.
75947         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75948
75949         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75950         encoding.
75951         * lib/mbswidth.c (iswcntrl): Likewise.
75952
75953 2006-07-27  Bruno Haible  <bruno@clisp.org>
75954
75955         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75956         test.
75957
75958 2006-07-27  Bruno Haible  <bruno@clisp.org>
75959
75960         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75961         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75962         defined.
75963
75964 2006-07-26  Eric Blake  <ebb9@byu.net>
75965
75966         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75967
75968 2006-07-26  Eric Blake  <ebb9@byu.net>
75969
75970         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75971         like mingw that lack mkstemp.
75972         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75973         avoid compilation warning on mingw.
75974
75975 2006-07-26  Bruno Haible  <bruno@clisp.org>
75976
75977         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75978         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75979         INT_FAST*_MIN, INTPTR_MIN.
75980
75981 2006-07-25  Bruno Haible  <bruno@clisp.org>
75982
75983         * modules/version-etc (Depends-on): Add stdarg.
75984
75985 2006-07-25  Bruno Haible  <bruno@clisp.org>
75986
75987         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75988         complex commands.
75989
75990 2006-07-25  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75993         defined in <stdarg.h> or config.h.
75994
75995 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75998         (gl_STDIO_SAFER): Remove.
75999
76000 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76001
76002         * MODULES.html.sh (File stream based Input/Output):
76003         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76004         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76005         * modules/fopen-safer, modules/tmpfile-safer: New files.
76006         * modules/stdio-safer: Remove.
76007
76008 2006-07-24  Bruno Haible  <bruno@clisp.org>
76009
76010         * modules/tmpdir: New file.
76011         * MODULES.html.sh (File system functions): Add it.
76012
76013 2006-07-24  Bruno Haible  <bruno@clisp.org>
76014
76015         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76016         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76017
76018 2006-07-24  Bruno Haible  <bruno@clisp.org>
76019
76020         * modules/clean-temp: New file.
76021
76022 2006-07-24  Bruno Haible  <bruno@clisp.org>
76023
76024         * m4/tmpdir.m4: New file, from GNU gettext.
76025
76026 2006-07-24  Bruno Haible  <bruno@clisp.org>
76027
76028         * lib/tmpdir.h: New file, from GNU gettext.
76029         * lib/tmpdir.c: New file, from GNU gettext.
76030
76031 2006-07-24  Bruno Haible  <bruno@clisp.org>
76032
76033         * lib/clean-temp.h: New file, from GNU gettext.
76034         * lib/clean-temp.c: New file, from GNU gettext.
76035
76036 2006-07-23  Eric Blake  <ebb9@byu.net>
76037
76038         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76039         (Depends-on): Add binary-io.
76040
76041 2006-07-23  Eric Blake  <ebb9@byu.net>
76042
76043         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76044
76045 2006-07-23  Eric Blake  <ebb9@byu.net>
76046
76047         * lib/tmpfile-safer.c: New file.
76048         * lib/stdio-safer.h (fopen_safer): Add prototype.
76049         * lib/stdio--.h (tmpfile): Make safer.
76050
76051 2006-07-23  Bruno Haible  <bruno@clisp.org>
76052
76053         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76054         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76055         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76056         gl_linked_remove_at): Use it.
76057
76058 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76059         and Simon Josefsson <jas@extundo.com>
76060
76061         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76062
76063         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76064
76065 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76066
76067         * modules/close-stream: New file.
76068         * modules/closeout (Description): Make it clear that it exits
76069         with a diagnostic on error.
76070         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76071         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76072
76073 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * m4/close-stream.m4: New file.
76076
76077 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76078
76079         * lib/close-stream.c, lib/close-stream.h: New files.
76080
76081 2006-07-22  Bruno Haible  <bruno@clisp.org>
76082
76083         Merge from GNU gettext 0.15.
76084
76085         2006-05-01  Bruno Haible  <bruno@clisp.org>
76086
76087                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76088
76089         2006-07-22  Bruno Haible  <bruno@clisp.org>
76090
76091                 * modules/javaversion: New file.
76092                 * MODULES.html.sh (Java): Add javaversion.
76093
76094         2006-03-12  Bruno Haible  <bruno@clisp.org>
76095
76096                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76097
76098         2005-12-04  Bruno Haible  <bruno@clisp.org>
76099
76100                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76101                 (untested).
76102
76103         2006-06-21  Bruno Haible  <bruno@clisp.org>
76104
76105                 Avoid warnings from recent versions of mcs.
76106                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76107                 -o, -L, -r any more. Use options documented since mcs-1.0
76108                 instead. Similarly for -g.
76109
76110         2005-12-04  Bruno Haible  <bruno@clisp.org>
76111
76112                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76113                 .resources, not .resource.
76114
76115         2005-07-09  Bruno Haible  <bruno@clisp.org>
76116
76117                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76118                 add a .dll suffix.
76119                 Reported by Mark Junker <mjscod@gmx.de>.
76120
76121         2006-07-22  Bruno Haible  <bruno@clisp.org>
76122
76123                 * modules/gettext: Upgrade to gettext-0.15.
76124                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76125                 m4/visibility.m4.
76126                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76127
76128 2006-07-22  Bruno Haible  <bruno@clisp.org>
76129
76130         Merge from GNU gettext 0.15.
76131
76132         2006-03-25  Bruno Haible  <bruno@clisp.org>
76133
76134                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76135
76136         2006-07-21  Bruno Haible  <bruno@clisp.org>
76137
76138                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76139                 "1.1".
76140
76141         2006-05-09  Bruno Haible  <bruno@clisp.org>
76142
76143                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76144                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76145                 for the conftestver execution.
76146
76147         2006-05-01  Bruno Haible  <bruno@clisp.org>
76148
76149                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76150                 optional target-version argument. Verify that the compiler
76151                 groks source of the specified source-version, or add -source
76152                 option as necessary. Verify that the compiler produces
76153                 bytecode in the specified target-version, or add -target and
76154                 -source options as necessary. Make the result of the test
76155                 available as variable CONF_JAVAC. Also log error output in
76156                 config.log.
76157
76158         2006-03-11  Bruno Haible  <bruno@clisp.org>
76159
76160                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76161
76162         2006-05-09  Bruno Haible  <bruno@clisp.org>
76163
76164                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76165                 CLASSPATH_SEPARATOR to a semicolon.
76166
76167         2006-03-12  Bruno Haible  <bruno@clisp.org>
76168
76169                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76170                 available as variable CONF_JAVA, for subsequent autoconf
76171                 tests. Also log error output in config.log.
76172
76173         2006-07-19  Bruno Haible  <bruno@clisp.org>
76174
76175                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76176                 that getline works on glibc2 systems. Needed to avoid trouble
76177                 in relocatable.c.
76178                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76179
76180         2005-12-04  Bruno Haible  <bruno@clisp.org>
76181
76182                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76183                 launcher (untested).
76184
76185         2005-12-04  Bruno Haible  <bruno@clisp.org>
76186
76187                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76188
76189         2006-07-22  Bruno Haible  <bruno@clisp.org>
76190
76191                 * gettext.m4: Update from GNU gettext-0.15.
76192                 * nls.m4: Likewise.
76193                 * po.m4: Likewise.
76194                 * inttypes-pri.m4: Likewise.
76195                 * inttypes-h.m4: Renamed from inttypes.m4.
76196                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76197
76198 2006-07-22  Bruno Haible  <bruno@clisp.org>
76199
76200         Merge from GNU gettext 0.15.
76201
76202         2005-07-05  Bruno Haible  <bruno@clisp.org>
76203
76204                 * printf-args.c (printf_fetchargs): Work around broken
76205                 definition of wint_t on mingw.
76206
76207         2005-02-12  Bruno Haible  <bruno@clisp.org>
76208
76209                 * xallocsa.h: Add extern "C" for C++.
76210
76211         2006-05-17  Bruno Haible  <bruno@clisp.org>
76212
76213                 Cygwin portability.
76214                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76215
76216         2006-04-30  Bruno Haible  <bruno@clisp.org>
76217
76218                 * progreloc.c: Include <mach-o/dyld.h> if available.
76219                 (find_executable): Use _NSGetExecutablePath when possible.
76220
76221         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76222
76223                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76224                 function.
76225
76226         2005-12-29  Bruno Haible  <bruno@clisp.org>
76227
76228                 * progreloc.c (set_program_name_and_installdir): Fix
76229                 compilation error.
76230
76231         2005-12-04  Bruno Haible  <bruno@clisp.org>
76232
76233                 Cygwin portability.
76234                 * progreloc.c: Include <windows.h> also on Cygwin.
76235                 (find_executable): Add support for Cygwin.
76236                 (set_program_name_and_installdir): Handle also platforms with
76237                 nonempty EXEEXT.
76238
76239         2006-07-11  Bruno Haible  <bruno@clisp.org>
76240
76241                 * javacomp.c: Fix a comment.
76242                 Reported by Jim Meyering.
76243
76244         2006-04-30  Bruno Haible  <bruno@clisp.org>
76245
76246                 * javacomp.h (compile_java_class): Add source_version,
76247                 target_version arguments.
76248                 * javacomp.c: Rewritten to choose only a compiler that
76249                 respects the specified source_version and target_version.
76250
76251         2006-06-27  Bruno Haible  <bruno@clisp.org>
76252
76253                 Assume correct S_ISDIR macro.
76254                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76255
76256         2006-07-22  Bruno Haible  <bruno@clisp.org>
76257
76258                 * javaversion.h: New file, from GNU gettext.
76259                 * javaversion.c: New file, from GNU gettext.
76260                 * javaversion.java: New file, from GNU gettext.
76261                 * javaversion.class: New file, from GNU gettext.
76262
76263         2006-05-17  Bruno Haible  <bruno@clisp.org>
76264
76265                 Cygwin portability.
76266                 * javaexec.c (execute_java_class): Test for jview program
76267                 also on Cygwin.
76268
76269         2006-04-09  Bruno Haible  <bruno@clisp.org>
76270
76271                 * fatal-signal.c: Don't include string.h.
76272                 (at_fatal_signal): Use a copying loop instead of memcpy.
76273
76274         2005-12-04  Bruno Haible  <bruno@clisp.org>
76275
76276                 * csharpexec.c: Add support for 'clix' launcher (untested).
76277                 (execute_csharp_using_sscli): New function.
76278                 (execute_csharp_program): Call it.
76279
76280         2006-06-21  Bruno Haible  <bruno@clisp.org>
76281
76282                 Avoid warnings from recent versions of mcs.
76283                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76284                 -o, -L, -r any more. Use options documented since mcs-1.0
76285                 instead. Similarly for -g.
76286
76287         2005-07-09  Bruno Haible  <bruno@clisp.org>
76288
76289                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76290                 add a .dll suffix.
76291                 Reported by Mark Junker <mjscod@gmx.de>.
76292
76293         2006-06-17  Bruno Haible  <bruno@clisp.org>
76294
76295                 * config.charset: Update for NetBSD 3.0.
76296
76297         2006-05-17  Bruno Haible  <bruno@clisp.org>
76298
76299                 Cygwin portability.
76300                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76301
76302         2006-05-16  Bruno Haible  <bruno@clisp.org>
76303
76304                 * localcharset.c [CYGWIN]: Include <windows.h>.
76305                 (get_charset_aliases): For Cygwin, return the same CPxxx
76306                 aliases list as under WIN32.
76307                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76308                 the environment variables. Fall back to GetACP().
76309
76310         2006-04-05  Bruno Haible  <bruno@clisp.org>
76311
76312                 * config.charset: Update Juan Manuel Guerrero's address.
76313
76314         2005-02-12  Bruno Haible  <bruno@clisp.org>
76315
76316                 * allocsa.h: Add extern "C" for C++.
76317
76318         2005-02-10  Bruno Haible  <bruno@clisp.org>
76319
76320                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76321                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76322
76323         2006-07-22  Bruno Haible  <bruno@clisp.org>
76324
76325                 * gettext.h: Update to GNU gettext-0.15.
76326
76327 2006-07-22  Bruno Haible  <bruno@clisp.org>
76328
76329         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76330         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76331         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76332
76333 2006-07-21  Eric Blake  <ebb9@byu.net>
76334
76335         * modules/stdlib-safer: New file.
76336         * MODULES.html.sh (File stream based Input/Output): Add
76337         stdlib-safer.
76338
76339 2006-07-21  Eric Blake  <ebb9@byu.net>
76340
76341         * lib/stdlib-safer.h: New file from coreutils, required by
76342         stdlib--.h.
76343
76344 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76345
76346         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76347
76348 2006-07-20  Bruno Haible  <bruno@clisp.org>
76349
76350         * gnulib-tool: Recognize new option --assume-autoconf.
76351         (autoconf_minversion): New variable.
76352         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76353
76354 2006-07-20  Bruno Haible  <bruno@clisp.org>
76355
76356         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76357
76358 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76359
76360         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76361         Reindent and repaginate.
76362
76363 2006-07-19  Derek Price  <derek@ximbiot.com>
76364
76365         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76366         Correct grammar.
76367
76368 2006-07-17  Bruno Haible  <bruno@clisp.org>
76369
76370         * modules/list: New file.
76371         * modules/array-list: New file.
76372         * modules/carray-list, modules/carray-list-tests: New files.
76373         * modules/linked-list, modules/linked-list-tests: New files.
76374         * modules/avltree-list, modules/avltree-list-tests: New files.
76375         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76376         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76377         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76378         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76379         * modules/oset: New file.
76380         * modules/array-oset: New file.
76381         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76382         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76383         * tests/test-carray_list.c: New file.
76384         * tests/test-linked_list.c: New file.
76385         * tests/test-avltree_list.c: New file.
76386         * tests/test-rbtree_list.c: New file.
76387         * tests/test-linkedhash_list.c: New file.
76388         * tests/test-avltreehash_list.c: New file.
76389         * tests/test-rbtreehash_list.c: New file.
76390         * tests/test-avltree_oset.c: New file.
76391         * tests/test-rbtree_oset.c: New file.
76392         * MODULES.html.sh (Container data structures): New section.
76393
76394 2006-07-17  Bruno Haible  <bruno@clisp.org>
76395
76396         * m4/gl_list.m4: New file.
76397
76398 2006-07-17  Bruno Haible  <bruno@clisp.org>
76399
76400         * lib/gl_list.h: New file.
76401         * lib/gl_list.c: New file.
76402         * lib/gl_array_list.h: New file.
76403         * lib/gl_array_list.c: New file.
76404         * lib/gl_carray_list.h: New file.
76405         * lib/gl_carray_list.c: New file.
76406         * lib/gl_linked_list.h: New file.
76407         * lib/gl_linked_list.c: New file.
76408         * lib/gl_anylinked_list1.h: New file.
76409         * lib/gl_anylinked_list2.h: New file.
76410         * lib/gl_avltree_list.h: New file.
76411         * lib/gl_avltree_list.c: New file.
76412         * lib/gl_anyavltree_list1.h: New file.
76413         * lib/gl_anyavltree_list2.h: New file.
76414         * lib/gl_rbtree_list.h: New file.
76415         * lib/gl_rbtree_list.c: New file.
76416         * lib/gl_anyrbtree_list1.h: New file.
76417         * lib/gl_anyrbtree_list2.h: New file.
76418         * lib/gl_anytree_list1.h: New file.
76419         * lib/gl_anytree_list2.h: New file.
76420         * lib/gl_linkedhash_list.h: New file.
76421         * lib/gl_linkedhash_list.c: New file.
76422         * lib/gl_anyhash_list1.h: New file.
76423         * lib/gl_anyhash_list2.h: New file.
76424         * lib/gl_avltreehash_list.h: New file.
76425         * lib/gl_avltreehash_list.c: New file.
76426         * lib/gl_rbtreehash_list.h: New file.
76427         * lib/gl_rbtreehash_list.c: New file.
76428         * lib/gl_anytreehash_list1.h: New file.
76429         * lib/gl_anytreehash_list2.h: New file.
76430
76431         * lib/gl_oset.h: New file.
76432         * lib/gl_oset.c: New file.
76433         * lib/gl_array_oset.h: New file.
76434         * lib/gl_array_oset.c: New file.
76435         * lib/gl_avltree_oset.h: New file.
76436         * lib/gl_avltree_oset.c: New file.
76437         * lib/gl_rbtree_oset.h: New file.
76438         * lib/gl_rbtree_oset.c: New file.
76439         * lib/gl_anytree_oset.h: New file.
76440
76441 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76442
76443         * m4/mkancesdirs.m4: New file.
76444         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76445         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76446         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76447         it.
76448
76449 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76452         * lib/mkancesdirs.h: New files.
76453         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76454         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76455         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76456         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76457         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76458         callers changed.  Revamp internals significantly, by not
76459         attempting to create directories that are temporarily more
76460         permissive than the final results.  Do not attempt to use
76461         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76462         This removes some race conditions, fixes some bugs, and simplifies
76463         things.  Use new dirchownmod function to do owner and mode changes.
76464         * lib/mkdir-p.h: Likewise.
76465         * lib/modechange.c (octal_to_mode): New function.
76466         (struct mode_change): New member mentioned.
76467         (make_node_op_equals): New arg mentioned.  All callers changed.
76468         (mode_compile): Keep track of which mode bits the user has explicitly
76469         mentioned.
76470         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76471         New arg PMODE_BITS, to keep track of which mode bits the user
76472         mentioned; it treats S_ISUID and S_ISGID speciall.
76473         All callers changed.
76474         * lib/modechange.h: Likewise.
76475
76476 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76477
76478         * MODULES.html.sh: Add mkancestors.
76479         * modules/mkancesdirs: New module.
76480         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76481         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76482         The chdir-safer and afs files are now orphans; I'll remove them
76483         unless someone speaks up.
76484         Add lib/dirchownmod.c, lib/dirchownmod.h.
76485         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76486         Add lchown, mkancesdirs.
76487         (Maintainer): Add self.
76488
76489 2006-07-15  Karl Berry  <karl@gnu.org>
76490
76491         * gnulib-tool: help message wording/arrangement.
76492
76493 2006-07-14  Simon Josefsson  <jas@extundo.com>
76494
76495         * doc/gnulib.texi (Libtool and Windows): New section.
76496
76497 2006-07-12  Simon Josefsson  <jas@extundo.com>
76498
76499         * modules/gendocs (License): Fix license, approved by Karl.
76500
76501 2006-07-12  Eric Blake  <ebb9@byu.net>
76502
76503         * MODULES.html.sh: Add gendocs.
76504
76505 2006-07-11  Eric Blake  <ebb9@byu.net>
76506
76507         * modules/fdl: New module, to install doc/fdl.texi.
76508         * MODULES.html.sh: Add new section for documentation modules.
76509         * gnulib-tool: Avoid space-tab.
76510         (--doc-base): New option, to manage files from doc.
76511
76512 2006-07-11  Eric Blake  <ebb9@byu.net>
76513
76514         * m4/absolute-header.m4: Fix comments to match recent change.
76515
76516 2006-07-11  Eric Blake  <ebb9@byu.net>
76517
76518         * gnulib-tool: List --doc-base before --tests-base.
76519
76520 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76521
76522         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76523
76524 2006-07-11  Bruno Haible  <bruno@clisp.org>
76525
76526         * README: Mention where to put documentation.
76527
76528 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76529
76530         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76531
76532 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76533
76534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76535         to stdint.m4.
76536
76537 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76538
76539         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76540         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76541         "no/such/file/stdint.h" when there is no such file, so that
76542         the resulting C code can be parsed by dodgy compilers.
76543         Problems reported by Bob Proulx.
76544
76545 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76546
76547         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76548         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76549         macros into the GNU _D_EXACT_NAMLEN.
76550         * lib/savedir.c:  Likewise.
76551         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76552
76553 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76554         and Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76557         * m4/savedir.m4:
76558         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76559         macros into the GNU _D_EXACT_NAMLEN.
76560
76561 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76564         around the absolute name, to work around a problem with the HP-UX
76565         11.23 native C compiler, reported by Bob Proulx.
76566
76567 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * doc/maintain.texi, make-stds.texi: Sync from
76570         <http://savannah.gnu.org/projects/gnustandards>.
76571
76572 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76575
76576 2006-07-09  Jim Meyering  <jim@meyering.net>
76577
76578         * m4/glob.m4: Remove a doubled word in a comment.
76579
76580 2006-07-09  Jim Meyering  <jim@meyering.net>
76581
76582         * lib/argp-pv.c: Remove a doubled word in a comment.
76583         * lib/check-version.c (check_version): Likewise.
76584         * lib/javacomp.c (compile_java_class): Likewise.
76585
76586 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76589         for the benefit of people using Autoconf 2.60.  If you want to
76590         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76591         (or m4/onceonly.m4, if pre-2.57) manually.
76592
76593 2006-07-08  Jim Meyering  <jim@meyering.net>
76594
76595         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76596         comment.
76597         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76598         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76599         comment.
76600
76601 2006-07-08  Jim Meyering  <jim@meyering.net>
76602
76603         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76604
76605 2006-07-07  Simon Josefsson  <jas@extundo.com>
76606
76607         * tests/test-crc.c: Change expected crc value, the test vector
76608         were probably computed using the old broken crc.c?
76609
76610 2006-07-06  Simon Josefsson  <jas@extundo.com>
76611
76612         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76613         now the canonical place for the M4 file).
76614
76615         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76616         from the sys_socket dependency now.
76617
76618         * modules/inet_pton (Files): Ditto.
76619
76620         * modules/inet_ntop (Files): Ditto.
76621
76622 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76623
76624         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76625         not gl_PREREQ_GETUSERSHELL.
76626
76627 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76628
76629         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76630         with only one argument, for Autoconf 2.60.
76631         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76632         expand to nothing, so add a shell command to avoid syntax error.
76633         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76634
76635 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76636
76637         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76638
76639 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76640
76641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76642         no longer needed.  Check for isblank decl.
76643         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76644         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76645         of existence.
76646
76647 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76648
76649         * lib/getloadavg.c: Use __VMS, not VMS.
76650         * lib/getopt.c: Likewise.
76651         * lib/getpagesize.h: Likewise.
76652         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76653         and probably does not work.
76654
76655 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76656
76657         * lib/.cppi-disable: Add wcwidth.
76658         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76659         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76660         (ISGRAPH): Remove.  All uses changed to isgraph.
76661         (FOLD) [!defined _LIBC]: Remove special case.
76662         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76663         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76664         HAVE_ISBLANK.
76665         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76666         case.
76667
76668 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76669
76670         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76671         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76672         brackets.  Other minor changes to suppress some compiler
76673         warnings.
76674
76675 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76676         and Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76679         of invoking obsolescent AC_HEADER_DIRENT macro.
76680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76681         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76682         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76683         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76684         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76685         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76686         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76687         * m4/readdir.m4: Remove; no longer needed.
76688
76689 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76690         and Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76693         Don't worry about this obsolete case any more.
76694         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76695         directories.
76696         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76697         worry about this obsolete case any more.
76698         * lib/fts.c: Likewise.
76699         * lib/getcwd.c: Likewise.
76700         * lib/glob.h: Likewise.
76701         * lib/savedir.c: Likewise.
76702
76703 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76706         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76707         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76708         needed.
76709         All uses removed.
76710         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76711         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76712         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76713         needed.
76714         * m4/getdate.m4 (gl_GETDATE): Likewise.
76715         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76716         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76717         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76718         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76719         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76721         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76722         needed.
76723
76724 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * lib/memcasecmp.c: Include <limits.h>.
76727         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76728         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76729         Don't assume isdigit succeeds only on '0' through '9'.
76730
76731 2006-07-05  Eric Blake  <ebb9@byu.net>
76732
76733         * modules/getaddrinfo (Depends-on): Add snprintf.
76734
76735 2006-07-05  Eric Blake  <ebb9@byu.net>
76736
76737         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76738         to avoid 'header present but could not be compiled' on cygwin.
76739
76740 2006-07-05  Eric Blake  <ebb9@byu.net>
76741
76742         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76743         missing from netdb.h.
76744         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76745
76746 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76747
76748         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76749         no longer needed.
76750         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76751         * m4/getdate.m4 (gl_GETDATE): Likewise.
76752         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76753         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76754         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76755         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76756         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76757
76758 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76759
76760         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76761         All uses of is_space replaced by isspace.
76762         * lib/exit.h: Don't talk about STDC_HEADERS.
76763         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76764         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76765         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76766         replaced by isprint etc.
76767         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76768         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76769         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76770         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76771         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76772         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76773
76774 2006-07-05  Bruno Haible  <bruno@clisp.org>
76775
76776         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76777         the function exists, before testing against AIX.
76778         Reported by Martin Lambers <marlam@marlam.de>.
76779
76780 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76783         From Mark D. Baushke.
76784
76785 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76786
76787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76788         to the absolute name, not just one, to bypass Sun C 5.8's
76789         "warning: #include of /usr/include/... may be non-portable".
76790
76791 2006-07-04  Eric Blake  <ebb9@byu.net>
76792
76793         * modules/dirname-tests: New test module.
76794         * tests/test-dirname.c: New file, replacing dirname.c
76795         TEST_DIRNAME section that was recently deleted.
76796
76797 2006-07-04  Bruno Haible  <bruno@clisp.org>
76798
76799         Assume ANSI C header files and <ctype.h> functions.
76800         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76801         (mbsnwidth): Use isprint, iscntrl instead.
76802
76803 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76804
76805         Merge from coreutils.
76806         * MODULES.html.sh: Add xstrtold.
76807         * modules/xstrtold: New file.
76808         * modules/cycle-check (Files): Add lib/same-inode.h.
76809         * modules/dirname (Files): Add m4/double-slash-root.m4.
76810         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76811         * modules/mkdir-p (Files): Add lib/same-inode.h.
76812         * modules/same (Files): Add lib/same-inode.h.
76813
76814 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76815
76816         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76817         This is to keep the terminology clean; POSIX talks about
76818         "absolute pathnames", not "full pathnames", but the GNU
76819         Coding Standards say to use "path" for something else;
76820         so use "absolute" to keep both sides happy.
76821         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76822         Set gl_absolute_header, not gl_full_header_path.
76823         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76824         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76825         All uses changed.
76826
76827         Merge from coreutils.
76828
76829         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76830
76831         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76832         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76833         want to require the building of c-strtod.o.
76834         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76835         needs -lm directly.
76836         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76837
76838         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76839
76840         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76841         --as-needed option if available.  Problem reported by Albert Chin in
76842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76843         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76844         cc merely issues a bunch of annoying warnings for --as-needed
76845         (this problem was reported by Bob Proulx).  Also, try linking with
76846         -lm to detect a bug in binutils 2.16 (this problem was reported
76847         by Ralf Wildenhues).
76848
76849         2006-06-18  Jim Meyering  <jim@meyering.net>
76850
76851         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76852         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76853         macro.
76854         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76855         also check for glibc-2.4's abort-inducing bug.
76856
76857         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76858         Low-probability clean-up should be to use rmdir to get rid of
76859         the just-created directory, not unlink.
76860
76861         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76862         configure fail, and request a bug report to inform us about it.
76863         Add a comment that, barring reports to the contrary, in 2007 we'll
76864         assume ftruncate is universally available.
76865
76866         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76867
76868         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76869
76870         2006-03-12  Jim Meyering  <jim@meyering.net>
76871
76872         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76873         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76874         * m4/same.m4 (gl_SAME): Likewise.
76875         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76876
76877         2006-03-11  Eric Blake  <ebb9@byu.net>
76878
76879         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76880         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76881         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76882         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76883
76884 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76885
76886         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76887         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76888         reported by Mark D. Baushke, one in
76889         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76890
76891         Merge from coreutils.
76892
76893         * lib/.cppi-disable: Add stdint_.h.
76894         * lib/.cvsignore: Add stdint.h.
76895
76896         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76897
76898         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76899         both double and long double versions.
76900         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76901         * lib/xstrtold.c: New file.
76902         * lib/xstrtod.h (xstrtold): New decl.
76903
76904         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * lib/filemode.c (setst): Remove.
76907         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76908         (arguably) clearer, and the generated code is a bit smaller on my
76909         Debian GNU/Linux stable x86 host.
76910
76911         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76912
76913         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76914         Assume that filemode.h includes sys/types.h and sys/stat.h.
76915         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76916         (ftypelet): Reorder to put common cases first, for efficiency.
76917         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76918         to do 'M'.
76919         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76920         of 10, for compatibility with FreeBSD.  All callers changed.
76921         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76922         types that can't be deduced solely from st_mode.  First arg is now a
76923         const pointer.
76924         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76925         (strmode): Renamed from mode_string.
76926         (filemodestring): New decl.
76927         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76928         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76929         needed.
76930         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76931
76932         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76935         fsusage.h now does that.  Include fsusage.h first, to test interface.
76936         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76937         at most one method (the old code could have generated decls that
76938         didn't conform to C89, not that this was ever exercised).
76939         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76940
76941         2006-03-19  Jim Meyering  <jim@meyering.net>
76942
76943         Work even in a chroot where d_ino values for entries in "/"
76944         don't match the stat.st_ino values for the same names.
76945         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76946         number, iterate through all entries again, using lstat instead.
76947         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76948         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76949
76950         * lib/getcwd.c (__getcwd): Clarify a comment.
76951         Use memcpy in place of a call to strcpy.
76952
76953         2006-03-12  Jim Meyering  <jim@meyering.net>
76954
76955         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76956         matches that of the current directory (which we're about to chdir ".."
76957         out of), then save the dev-ino of the parent, instead.
76958
76959         * lib/same-inode.h (SAME_INODE): New file/macro.
76960         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76961         Include "same-inode.h", instead.
76962         * lib/same.c: Likewise.
76963         * lib/cycle-check.h: Include "same-inode.h".
76964         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76965         * lib/cycle-check.c (SAME_INODE): Remove definition.
76966         * lib/root-dev-ino.h: Include "same-inode.h".
76967
76968         2006-03-11  Eric Blake  <ebb9@byu.net>
76969
76970         * lib/same.c (same_name): s/base_name/last_component/
76971         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76972         * lib/filenamecat.c (file_name_concat): Likewise.
76973
76974         2006-03-11  Eric Blake  <ebb9@byu.net>,
76975                     Paul Eggert  <eggert@cs.ucla.edu>
76976
76977         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76978         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76979         drive prefix.
76980         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76981         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76982         (last_component): New method.
76983         * lib/dirname.c (dir_len): Determine when drive letters need a
76984         subsequent slash.  Preserve // when it is special.
76985         (dir_name): Don't append dot when drive letter is absolute.
76986         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76987         * lib/basename.c (base_name): New semantics - malloc the result.
76988         Preserve // when it is special.  Preserve relative files that look
76989         like drive letters.
76990         (base_len): Preserve // when it is special.
76991         (last_component): New method, similar to old base_name semantics.
76992         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76993         base_name.  Strip redundant slashes from ///.
76994
76995 2006-07-03  Jim Meyering  <jim@meyering.net>
76996
76997         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76998         macro is used before the first cycle_check call.
76999
77000 2006-07-03  Eric Blake  <ebb9@byu.net>
77001
77002         * modules/dirname (Depends-on): Add xstrndup.
77003
77004 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77005
77006         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77007         test cases, so that config.log is a bit easier to follow.
77008
77009 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77012         both are 64 bits, since this seems to be the tradition, and this
77013         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77014         we ever run into a host that prefers long long to long in this
77015         case, we'll need another configure-time test.  Problem reported by
77016         Jim Meyering.
77017
77018 2006-07-02  Eric Blake  <ebb9@byu.net>
77019
77020         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77021
77022 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * modules/inttypes (Depends-on): No longer depends on stdint.
77025         * modules/stdint (Description): Say more about assumptions.
77026         Say that the fast types might differ.  Say macros are used.
77027         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77028         (Makefile.am): Revise list of substituted symbols to match
77029         new stdint.m4.
77030         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77031         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77032         * tests/test-stdint.c (verify_same_types)
77033         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77034         the code conforms to C99/C89.
77035         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77036         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77037
77038 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77041         but fix a bug, by requiring at least 64 bits.
77042         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77043         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77044         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77045         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77046
77047         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77048         changes.  Make 2.59 a prerequisite.  Check and substitute for
77049         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77050         inttypes.h.  Do not use special include files; just use the
77051         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77052         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77053         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77054         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77055         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77056         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77057         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77058         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77059         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77060         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77061         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77062         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77063         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77064         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77065         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77066         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77067         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77068         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77069         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77070         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77071         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77072         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77073         not check for things that C99 does not require, e.g., int8_t.  If
77074         a test isn't needed unless <stdint.h> isn't working, and is
77075         unlikely to be needed for any other reason, then don't do it
77076         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77077         size_t, since we assume C89 freestanding at least.  Do not check
77078         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77079         the right thing even if the types are not defined.  Instead use:
77080         (gl_STDINT_TYPE_PROPERTIES): New macro.
77081         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77082         testing whether <sys/types.h> clashes, as Autoconf does this for
77083         us now.  All uses removed.
77084         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77085         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77086         (gl_CHECK_TYPE_SAME):
77087         Remove; no longer needed.
77088         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77089         exists, since we'll return 0 anyway in that case.
77090         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77091
77092 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77095         possible collision with system files.
77096         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77097         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77098         WCHAR_MIN and WCHAR_MAX in this case.
77099         (<stddef.h>): Do not include; no longer needed.
77100         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77101         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77102         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77103         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77104         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77105         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77106         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77107         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77108         !defined(__c99))]: Include in this case too, since it's harmless
77109         now.
77110         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77111         dangerous to do so.
77112         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77113         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77114         (_STDINT_MIN, _STDINT_MAX): New macros.
77115         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77116         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77117         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77118         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77119         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77120         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77121         macros, not typedefs; this simplifies things quite a bit.
77122         Use long int for all types narrower than int64_t.
77123         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77124         Define in terms of long long int or int64_t or long int,
77125         not int64_t or int32_t.  This saves some compile-time testing.
77126         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77127         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77128         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77129         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77130         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77131         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77132         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77133         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77134         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77135         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77136         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77137         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77138         undef any previous version and define our own version, for
77139         simplicity and consistency with the new macros for types.
77140         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77141         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77142         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77143         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77144         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77145         @WINT_T_SUFFIX@ to keep things simple here.
77146         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77147         Simplify by assuming typical 8/16/32/64 host, since we're
77148         already doing that elsewhere anyway.
77149         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77150         and assume long long int is 64 bits if available.  This
77151         speeds up 'configure'.
77152
77153 2006-07-01  Eric Blake  <ebb9@byu.net>
77154
77155         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77156         Reported by Andreas Buening.
77157
77158 2006-07-01  Eric Blake  <ebb9@byu.net>
77159
77160         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77161
77162 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77163
77164         * lib/getaddrinfo.c: fixed typo
77165
77166 2006-06-29  Jim Meyering  <jim@meyering.net>
77167
77168         * modules/strftime (Maintainer): Add my name, since with the
77169         FPRINTFTIME changes strftime.c has forked from glibc.
77170
77171 2006-06-29  Eric Blake  <ebb9@byu.net>
77172
77173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77174
77175 2006-06-29  Eric Blake  <ebb9@byu.net>
77176
77177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77178
77179 2006-06-29  Eric Blake  <ebb9@byu.net>
77180
77181         * lib/stat_.h: New file.
77182
77183 2006-06-29  Eric Blake  <ebb9@byu.net>
77184
77185         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77186         unused static function.
77187
77188 2006-06-29  Eric Blake  <ebb9@byu.net>
77189
77190         * doc/functions.texi (Function Portability): Document missing lstat
77191         on mingw.
77192
77193 2006-06-29  Eric Blake  <ebb9@byu.net>
77194
77195         * MODULES.html.sh: Add sys_stat.
77196         * modules/sys_stat: New module.
77197         * modules/mkstemp (Depends-on): Add sys_stat.
77198
77199 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77200
77201         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77202
77203 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77204
77205         * m4/c-bs-a.m4: Removed.
77206
77207 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77208
77209         * lib/strftime.c: Assume strftime() exists.
77210
77211 2006-06-29  Derek Price  <derek@ximbiot.com>
77212
77213         * modules/c-bs-a: Removed - \a is C89.
77214         * MODULES.html.sh: Remove c-bs-a.
77215
77216 2006-06-29  Bruno Haible  <bruno@clisp.org>
77217
77218         * modules/wcwidth (License): Change to LGPL.
77219
77220 2006-06-28  Simon Josefsson  <jas@extundo.com>
77221
77222         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77223         on _WIN32.
77224
77225         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77226         getnameinfo.
77227
77228 2006-06-28  Simon Josefsson  <jas@extundo.com>
77229
77230         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77231
77232 2006-06-28  Simon Josefsson  <jas@extundo.com>
77233
77234         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77235         functions there.  It will succeed on Windows XP, but on Windows
77236         2000 and (presumably) earlier, it will fail, and use the internal
77237         re-implementation.
77238         (use_win32_p): New function.
77239         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77240         Support AI_NUMERICSERV to disable getservbyname.
77241         (getnameinfo): New function, only supports
77242         NI_NUMERICHOST|NI_NUMERICSERV for now.
77243
77244         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77245         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77246         getnameinfo.
77247
77248 2006-06-28  Eric Blake  <ebb9@byu.net>
77249
77250         * modules/wcwidth: New file.
77251         * modules/mbchar (Depends-on): Add wcwidth.
77252         * modules/mbswidth (Depends-on): Add wcwidth.
77253         * MODULES.html.sh: Add wcwidth.
77254
77255 2006-06-28  Eric Blake  <ebb9@byu.net>
77256
77257         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77258         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77259
77260 2006-06-28  Eric Blake  <ebb9@byu.net>
77261
77262         * lib/xvasprintf.h: Fix comments.
77263
77264 2006-06-28  Eric Blake  <ebb9@byu.net>
77265
77266         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77267         * lib/mbswidth.c (wcwidth): Move from here...
77268         * lib/wcwidth.h: ...to this new file.
77269
77270 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77271
77272         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77273
77274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77275         it's obsolete.
77276         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77277
77278 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77279
77280         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77281         Autoconf 2.60 says this stuff was obsolete.
77282
77283 2006-06-28  Bruno Haible  <bruno@clisp.org>
77284
77285         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77286
77287 2006-06-28  Bruno Haible  <bruno@clisp.org>
77288
77289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77290         gt_TYPE_WCHAR_T.
77291
77292 2006-06-28  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77295         declaration for wcwidth.
77296         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77297
77298 2006-06-28  Bruno Haible  <bruno@clisp.org>
77299
77300         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77301         (mkdir): Define using _mkdir.
77302
77303 2006-06-28  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/getaddrinfo.h: Fix POSIX URL.
77306         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77307         _WIN32.
77308         (use_win32_p): Make static.
77309         (getaddrinfo): Reject service name if it is empty or does not consist
77310         solely of decimal digits, or if its value is > 65535.
77311         (getnameinfo): Remove useless casts.
77312
77313 2006-06-27  Simon Josefsson  <jas@extundo.com>
77314
77315         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77316         Eggert and Martin Lambers.
77317
77318 2006-06-27  Simon Josefsson  <jas@extundo.com>
77319
77320         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77321         Eggert and Martin Lambers.
77322
77323 2006-06-27  Bruno Haible  <bruno@clisp.org>
77324
77325         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77326         result to 0, not to empty.
77327         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77328
77329 2006-06-27  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77332
77333 2006-06-26  Simon Josefsson  <jas@extundo.com>
77334
77335         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77336         present.
77337
77338 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77341         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77342         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77343
77344 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77345
77346         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77347
77348 2006-06-26  Bruno Haible  <bruno@clisp.org>
77349
77350         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77351
77352 2006-06-26  Bruno Haible  <bruno@clisp.org>
77353
77354         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77355
77356 2006-06-26  Bruno Haible  <bruno@clisp.org>
77357
77358         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77359         SGI C compiler in pre-C99 mode.
77360         Suggested by Mark D. Baushke and Larry Jones.
77361
77362 2006-06-26  Bruno Haible  <bruno@clisp.org>
77363
77364         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77365         WCHAR_MAX.
77366         Reported by Mark D. Baushke and Larry Jones.
77367
77368 2006-06-26  Bruno Haible  <bruno@clisp.org>
77369
77370         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77371         in pre-C99 mode.
77372         Suggested by Mark D. Baushke and Larry Jones.
77373
77374 2006-06-23  Simon Josefsson  <jas@extundo.com>
77375             Bruno Haible  <bruno@clisp.org>
77376
77377         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77378         Emit mostlyclean-local rule.
77379         (func_emit_tests_Makefile_am): Likewise.
77380         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77381
77382 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77383
77384         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77385
77386 2006-06-23  Bruno Haible  <bruno@clisp.org>
77387
77388         * tests/test-stdint.c: Update to match ISO C 99 Technical
77389         Corrigendum 1.
77390
77391 2006-06-23  Bruno Haible  <bruno@clisp.org>
77392
77393         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77394
77395 2006-06-23  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/stdint_.h: Treat IRIX like OpenBSD.
77398
77399 2006-06-23  Bruno Haible  <bruno@clisp.org>
77400
77401         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77402         ISO C 99 Technical Corrigendum 1.
77403
77404 2006-06-22  Simon Josefsson  <jas@extundo.com>
77405
77406         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77407         MinGW.
77408
77409 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77410
77411         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77412         needed.  Some compiler complained about some of them.  Problem reported
77413         by Larry Jones in
77414         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77415
77416 2006-06-21  Simon Josefsson  <jas@extundo.com>
77417
77418         * tests/test-getaddrinfo.c: New file.
77419
77420         * modules/getaddrinfo-tests: New file.
77421
77422         * MODULES.html.sh: Add inet_pton.
77423
77424         * modules/inet_pton: New file.
77425
77426 2006-06-21  Simon Josefsson  <jas@extundo.com>
77427
77428         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77429         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77430         of using the (limited) gnulib implementation on Windows XP.
77431
77432         * m4/inet_pton.m4: New file.
77433
77434 2006-06-21  Simon Josefsson  <jas@extundo.com>
77435
77436         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77437         variable.
77438
77439         * lib/socket_.h: Don't define WINVER.
77440
77441         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77442         slightly modified to work in gnulib.
77443
77444 2006-06-21  Simon Josefsson  <jas@extundo.com>
77445
77446         * doc/gnulib.texi (Windows sockets): Add.
77447
77448 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * lib/read-file.c (fread_file): Start with buffer allocation of
77451         0 bytes rather than 1 byte; this simplifies the code.
77452         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77453         code to free buffer and save/restore errno.
77454         (internal_read_file): Remove unused local.
77455
77456 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77459         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77460         Problem reported by Denis Excoffier in
77461         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77462
77463 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77464
77465         * modules/sys_socket, modules/socklen: Include sys/types since
77466         FreeBSD 4.x's sys/socket.h needs it.
77467
77468 2006-06-19  Simon Josefsson  <jas@extundo.com>
77469
77470         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77471
77472 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77473
77474         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77475
77476 2006-06-19  Bruno Haible  <bruno@clisp.org>
77477
77478         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77479         and FULL_PATH_INTTYPES_H in angle brackets.
77480         Reported by Mark D. Baushke <mdb@gnu.org>.
77481
77482 2006-06-17  Eric Blake  <ebb9@byu.net>
77483
77484         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77485         errno.
77486
77487 2006-06-17  Bruno Haible  <bruno@clisp.org>
77488
77489         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77490         <sys/inttypes.h>.
77491
77492 2006-06-17  Bruno Haible  <bruno@clisp.org>
77493
77494         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77495         whether errno is declared. Assume <errno.h> declares errno.
77496
77497 2006-06-17  Bruno Haible  <bruno@clisp.org>
77498
77499         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77500
77501 2006-06-17  Bruno Haible  <bruno@clisp.org>
77502
77503         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77504         problem on Solaris 2.5.1.
77505
77506 2006-06-16  Eric Blake  <ebb9@byu.net>
77507
77508         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77509         * lib/unicodeio.c [!defined errno]: Likewise.
77510         * lib/strtol.c [!defined errno]: Likewise.
77511         * lib/strtod.c [!defined errno]: Likewise.
77512
77513 2006-06-15  Eric Blake  <ebb9@byu.net>
77514
77515         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77516
77517 2006-06-15  Eric Blake  <ebb9@byu.net>
77518
77519         * config/srclist.txt (ssize_t.m4): Lose sync.
77520
77521 2006-06-15  Bruno Haible  <bruno@clisp.org>
77522
77523         * modules/stdint (Files): Include m4/full-header-path.m4,
77524         m4/size_max.m4, m4/wchar_t.m4.
77525         (Makefile.am): Many more substitutions.
77526         * modules/stdint-tests: New file.
77527         * tests/test-stdint.c: New file.
77528
77529 2006-06-15  Bruno Haible  <bruno@clisp.org>
77530
77531         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77532         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77533         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77534         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77535         gl_CHECK_TYPE_SAME): New macros.
77536
77537 2006-06-15  Bruno Haible  <bruno@clisp.org>
77538
77539         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77540
77541 2006-06-15  Bruno Haible  <bruno@clisp.org>
77542
77543         * lib/stdint_.h: Rewritten to be fully auto-configured.
77544         Fixes bug on HP-UX/IA64.
77545
77546 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * lib/getdate.y (__attribute__): Don't define if already defined.
77549         Problem reported by Larry Jones.
77550         * lib/utimens.c (__attribute__): Likewise.
77551
77552 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77555         reported by Andreas Schwab.
77556
77557 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77558             Bruno Haible  <bruno@clisp.org>
77559
77560         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77561         check for the declaration of strnlen and a run test that exposes the
77562         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77563         rpl_strndup.
77564
77565 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77566             Bruno Haible  <bruno@clisp.org>
77567
77568         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77569
77570 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77571
77572         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77573         compile test, for Tru64 4.0D.
77574
77575 2006-05-28  Karl Berry  <karl@gnu.org>
77576
77577         * config/srclist.txt (printf-args.c): lose sync.
77578
77579 2006-05-26  Martin Lambers  <marlam@marlam.de>
77580
77581         * lib/getpass.c: Updates the test for the native W32 API, and adds
77582         missing includes, thus fixing compilation warnings.
77583
77584 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77585
77586         * lib/exclude.c (exclude_fnmatch): New function.
77587         (excluded_file_name): Call exclude_fnmatch.
77588         * lib/exclude.h (excluded_file_name): New prototype
77589
77590 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77591
77592         * lib/tempname.c (small_open, large_open): New macros.
77593         (__open, __open64) [!_LIBC]: Remove.
77594         (__gen_tempname): Use small_open and large_open instead of __open
77595         and __open64.  This fixes a portability bug on HP-UX 11.11i
77596         reported by Simon Wing-Tang in
77597         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77598
77599 2006-05-24  Bruno Haible  <bruno@clisp.org>
77600
77601         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77602         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77603         Reported by Thorsten Maerz <torte@netztorte.de> via
77604         Aaron Stone <aaron@serendipity.cx>.
77605
77606 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77607
77608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77609         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77610         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77611         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77612         not really conditional on the cache.
77613         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77614
77615 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77616
77617         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77618         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77619         (my_usleep): Don't mishandle maximum value.
77620
77621 2006-05-19  Jim Meyering  <jim@meyering.net>
77622
77623         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77624
77625 2006-05-17  Bruno Haible  <bruno@clisp.org>
77626
77627         Cygwin portability.
77628         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77629
77630 2006-05-17  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/stdint_.h: Fix recognition of Cygwin.
77633
77634 2006-05-15  Bruno Haible  <bruno@clisp.org>
77635
77636         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77637         on libtool patch by Ralf Wildenhues.
77638
77639 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77642         test for C99 conformance; (bool) 0.5 is an integer constant
77643         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77644         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77645
77646 2006-05-11  Simon Josefsson  <jas@extundo.com>
77647
77648         * m4/xvasprintf.m4: Fix obvious typo.
77649
77650 2006-05-11  Jim Meyering  <jim@meyering.net>
77651
77652         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77653         James Lemley.
77654
77655 2006-05-10  Simon Josefsson  <jas@extundo.com>
77656
77657         * lib/md4.c: Typo fix, update copyright years.
77658         (K1, K2): Don't use L because it turn computations into 64-bit on
77659         64-bit platforms.
77660
77661 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77662
77663         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77664         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77665         unwanted sign propagation, e.g., on hosts with 64-bit int.
77666         There still are some problems with reeelly weird theoretical hosts
77667         (e.g., 33-bit int) but it's not worth worrying about now.
77668         * lib/sha1.c (rol): Likewise.
77669         (K1, K2, K3, K4): Remove unnecessary L suffix.
77670
77671 2006-05-10  Bruno Haible  <bruno@clisp.org>
77672
77673         * lib/des.c: Cast to avoid warnings.
77674
77675 2006-05-09  Bruno Haible  <bruno@clisp.org>
77676
77677         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77678         (Depends-on): Depend also on xsize, stdarg.
77679         (configure.ac): Add gl_XVASPRINTF.
77680
77681 2006-05-09  Bruno Haible  <bruno@clisp.org>
77682
77683         * m4/xvasprintf.m4: New file.
77684
77685 2006-05-09  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77688         (EOVERFLOW): Define fallback value.
77689         (xstrcat): New function.
77690         (xvasprintf): Recognize the special case of a string concatenation.
77691
77692 2006-05-08  Eric Blake  <ebb9@byu.net>
77693
77694         * gnulib-tool (func_version): Base copyright year on CVS date.
77695         (func_emit_copyright_notice): New function.
77696         (func_emit_lib_Makefile_am): Use it.
77697         (func_emit_tests_Makefile_am): Likewise.
77698         (func_import): Likewise.
77699
77700 2006-05-08  Bruno Haible  <bruno@clisp.org>
77701
77702         * modules/stdarg: New file.
77703         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77704
77705 2006-05-08  Bruno Haible  <bruno@clisp.org>
77706
77707         * m4/stdarg.m4: New file, from GNU gettext.
77708
77709 2006-05-08  Bruno Haible  <bruno@clisp.org>
77710
77711         * config/srclist.txt (build-aux/config.rpath): different from latest
77712         release.
77713
77714 2006-05-08  Bruno Haible  <bruno@clisp.org>
77715
77716         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77717
77718 2006-05-05  Jim Meyering  <jim@meyering.net>
77719
77720         * m4/warning.m4: New file, derived from bison's file by the same name.
77721
77722 2006-05-03  Bruno Haible  <bruno@clisp.org>
77723
77724         * lib/stdint_.h: Shorter URL.
77725         * lib/inttypes.h: Likewise.
77726
77727 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77728
77729         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77730
77731 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         * lib/verify.h: Document the internals better.  Most of this change
77734         was written by Bruno Haible.
77735
77736 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * doc/verify.texi: New file, partly based on a proposal by
77739         Bruno Haible.
77740
77741 2006-05-02  Bruno Haible  <bruno@clisp.org>
77742
77743         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77744         test from here...
77745         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77746
77747 2006-04-29  Bruno Haible  <bruno@clisp.org>
77748
77749         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77750         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77751
77752 2006-04-29  Bruno Haible  <bruno@clisp.org>
77753
77754         * gnulib-tool: Make --update option actually work.
77755
77756 2006-04-29  Bruno Haible  <bruno@clisp.org>
77757
77758         * doc/gcd.texi: New file.
77759         * doc/gnulib.texi: Include it.
77760
77761 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * lib/getdate.y (get_date): When adding relative date, start with the
77764         initial time, not with the result of the first mktime call.
77765
77766 2006-04-25  Bruno Haible  <bruno@clisp.org>
77767
77768         * gnulib-tool (func_import): Output the include directives in three
77769         blocks, sorted separately.
77770         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77771
77772 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77775         to define main with arguments, for C++.  Reported by Eric Blake.
77776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77777         Prefer 'int main ()' to 'int main (void)', for C++.
77778         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77779         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77780         for 'main', for C99 and C++.
77781
77782 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77785         Don't assume that exit status -1 is valid.
77786         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77788         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77789         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77790         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77791         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77792         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77793         functions can be used without declaring them, or that you can
77794         exit with status -1.
77795         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77796
77797 2006-04-24  Karl Berry  <karl@gnu.org>
77798
77799         * config/srclist.txt (longdouble.m4): sync lost.
77800
77801 2006-04-24  Eric Blake  <ebb9@byu.net>
77802
77803         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77804
77805 2006-04-24  Bruno Haible  <bruno@clisp.org>
77806
77807         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77808         poll() implementation in AIX.
77809         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77810
77811 2006-04-24  Bruno Haible  <bruno@clisp.org>
77812
77813         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77814         assigned exactly once.
77815
77816 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77817             Bruno Haible  <bruno@clisp.org>
77818
77819         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77820         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77821         for AM_CPPFLAGS.
77822
77823 2006-04-23  Bruno Haible  <bruno@clisp.org>
77824
77825         * modules/copy-file: Depend on unistd.
77826         * modules/execute: Likewise.
77827         * modules/fatal-signal: Likewise.
77828         * modules/findprog: Likewise.
77829         * modules/mkdtemp : Likewise.
77830         * modules/pipe: Likewise.
77831         * modules/wait-process: Likewise.
77832
77833 2006-04-23  Bruno Haible  <bruno@clisp.org>
77834
77835         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77836         condition was already detected.
77837         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77838
77839 2006-04-23  Bruno Haible  <bruno@clisp.org>
77840
77841         * lib/copy-file.c: Include <unistd.h> unconditionally.
77842         * lib/execute.c: Likewise.
77843         * lib/fatal-signal.c: Likewise.
77844         * lib/findprog.c: Likewise.
77845         * lib/mkdtemp.c: Likewise.
77846         * lib/pipe.h: Likewise.
77847         * lib/pipe.c: Likewise.
77848         * lib/wait-process.h: Likewise.
77849
77850 2006-04-23  Bruno Haible  <bruno@clisp.org>
77851
77852         * gnulib-tool (func_usage): Fix --import description. Document
77853         --update.
77854         (func_import): Create temporary file in a temporary directory, if
77855         --dry-run is specified. Silence errors from 'grep' when there are no
77856         m4 files in $m4dir.
77857         (func_create_testdir): Silence errors from 'grep' when there are no
77858         m4 files in $m4dir.
77859         Reported by Karl Berry <karl@freefriends.org>.
77860
77861 2006-04-20  Bruno Haible  <bruno@clisp.org>
77862
77863         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77864         one argument, so that the code will be portable to Autoconf 2.60.
77865         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77866         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77867         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77868
77869 2006-04-19  Derek Price  <derek@ximbiot.com>
77870             Eric Blake  <ebb9@byu.net>
77871
77872         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77873         rather than "/full/path.h".  Update comment to match.  Shorten &
77874         generalize m4_translit call via AS_TR_CPP.
77875
77876 2006-04-19  Derek Price  <derek@ximbiot.com>
77877             Eric Blake  <ebb9@byu.net>
77878
77879         * lib/inttypes.h: Correct grammar in comment.
77880
77881 2006-04-18  Derek Price  <derek@ximbiot.com>
77882             Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * modules/inttypes: New file.
77885         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77886
77887 2006-04-18  Derek Price  <derek@ximbiot.com>
77888             Paul Eggert  <eggert@cs.ucla.edu>
77889
77890         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77891         New files.
77892
77893 2006-04-18  Derek Price  <derek@ximbiot.com>
77894             Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * lib/inttypes.h: New file.
77897         * lib/strtoimax.c: Assume <inttypes.h>.
77898
77899 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77900
77901         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77902         isn't mounted.  Problem reported by Kir Kolyshkin.
77903
77904 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77907         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77908         Derek R. Price.
77909         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77910         implementation.
77911
77912 2006-04-12  Eric Blake  <ebb9@byu.net>
77913
77914         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77915         is now done automatically by the corresponding Autoconf macro.
77916
77917 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77918
77919         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77920         time_r.h.
77921
77922 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77923
77924         Merge regex changes from libc, removing some of our
77925         POSIX-conformance changes that were rejected and redoing them in a
77926         less-intrusive way.
77927
77928         * lib/regcomp.c (re_compile_internal, init_dfa):
77929         Length arg is now size_t, not Idx.  All uses changed.
77930         (peek_token): Forward decl now says internal_function.
77931         (__re_error_msgid, __re_error_msgid_idx):
77932         Now static rather than extern with attribute_hidden.
77933         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77934         For some reason libc prefers K&R style defns for external functions.
77935         (regerror) [!defined _LIBC]: Likewise.
77936         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77937         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77938         (build_range_exp, build_collating_symbol):
77939         Use K&R-style defn.
77940         (re_compile_fastmap): Use '\0' to memset, not 0.
77941         (utf8_sb_map): Make the calculations more obvious.
77942         (init_dfa, parse_bracket_exp, build_charclass_op):
77943         Call calloc and cast result, as glibc does.
77944         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77945         (build_range_exp, build_collating_symbol):
77946         Now internal functions.
77947
77948         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77949
77950         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77951         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77952         Don't depend on VMS; depend on __VMS instead, for POSIX
77953         namespace cleanness.
77954         (regoff_t): Define to ssize_t, not long int.
77955
77956         Remove the REG_ macros named below.  Instead, make the old names
77957         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77958         __USE_GNU_REGEX.
77959         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77960         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77961         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77962         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77963         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77964         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77965         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77966         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77967         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77968         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77969         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77970         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77971         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77972         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77973         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77974         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77975         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77976         (REG_NREGS):
77977         Remove.  All uses replaced by the old RE_* names.
77978         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77979         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77980         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77981         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77982         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77983         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77984         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77985         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77986         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77987         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77988         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77989         Don't bother having these macros be independent of each others'
77990         values, since they no longer exist in the POSIX name space.
77991
77992         Rename the following member names back to their old names,
77993         unless !__USE_GNU_REGEX.  All uses changed back.
77994         (buffer): Renamed from re_buffer.
77995         (allocated): Renamed from re_allocated.
77996         (used): Renamed from re_used.
77997         (syntax): Renamed from re_syntax.
77998         (fastmap): Renamed from re_fastmap.
77999         (translate): Renamed from re_translate.
78000         (can_be_null): Renamed from re_can_be_null.
78001         (regs_allocated): Renamed from re_regs_allocated.
78002         (fastmap_accurate): Renamed from re_fastmap_accurate.
78003         (no_sub): Renamed from re_no_sub.
78004         (not_bol): Renamed from re_not_bol.
78005         (not_eol): Renamed from re_not_eol.
78006         (newline_anchor): Renamed from re_newline_anchor.
78007         (num_regs): Renamed from rm_num_regs.
78008         (start): Renamed from rm_start.
78009         (end): Renamed from rm_end.
78010
78011         (free_state): Move up a bit.
78012
78013         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78014         #define to be empty.
78015         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78016         when that is what is intended.
78017         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78018         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78019         (MAX): New macro.
78020         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78021         All uses changed back to re_malloc, etc.  It's now the caller's
78022         responsibility to check for overflow; all callers changed.
78023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78024         (re_x2nrealloc): Remove.
78025         (free_state): Remove decl.
78026
78027         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78028         (re_set_registers, re_exec):
78029         Use K&R-style defn.
78030
78031         2006-01-31  Roland McGrath  <roland@redhat.com>
78032
78033         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78034         Reported by Mike Frysinger <vapier@gentoo.org>.
78035
78036         2006-01-15  Andreas Jaeger  <aj@suse.de>
78037
78038         [BZ #1950]
78039         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78040         build_wcs_upper_buffer change.
78041         (build_wcs_upper_buffer): Change return type.
78042
78043         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78044
78045         * lib/regex_internal.h: Include <stdint.h> if available.
78046
78047         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78048
78049         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78050
78051         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78052
78053         * lib/regcomp.c: Adjust for changed secondary hash function.
78054
78055         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78056
78057         * lib/regex.h: Pretty printing.
78058         Clean up namespace a bit.
78059
78060         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78061
78062         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78063         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78064
78065         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78066                     Ulrich Drepper  <drepper@redhat.com>
78067
78068         [BZ #1302]
78069         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78070         changed.
78071         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78072
78073         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78074
78075         [BZ #281]
78076         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78077         * lib/regcomp.c: Remove unnecessary uses of
78078         unsigned RE_TRANSLATE_TYPE.
78079         * lib/regex_internal.h: Likewise.
78080         * lib/regex_internal.c: Likewise.
78081         * lib/regexec.c: Likewise.
78082         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78083
78084         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78085
78086         * lib/regexec.c (find_recover_state): Remove unnecessary
78087         initialization.
78088         (transit_state_bkref): Make DFA a const pointer.
78089         (get_subexp): Likewise.
78090         (check_arrival): Likewise.
78091         (update_cur_sifted_state): Likewise.
78092         (re_search_internal): Likewise.
78093         (prune_impossible_nodes): Likewise.
78094         (acquire_init_state_context): Likewise.
78095         (proceed_next_node): Likewise.
78096         (set_regs): Likewise.
78097         (free_fail_stack_return): Likewise.
78098         (check_arrival_expand_ecl): Mark DFA parameter as const.
78099         (check_arrival_expand_ecl_sub): Likewise.
78100         (check_subexp_limits): Likewise.
78101         (sub_epsilon_src_nodes):  Likewise.
78102         (add_epsilon_src_nodes):  Likewise.
78103         (merge_state_array): Likewise.
78104         (update_regs): Likewise.
78105         (build_trtable): Likewise.
78106         (sift_states_backward): Mark MCTX parameter as const.
78107         (build_sifted_states): Likewise.
78108         (update_cur_sifted_state): Likewise.
78109         (sift_states_mkref): Likewise.
78110         (check_arrival_expand_ecl): Mark eclosure as const.
78111         (check_dst_limits_calc_pos_1): Likewise.
78112         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78113         pointer.
78114
78115         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78116
78117         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78118         (transit_state_sb): Likewise.
78119         (transit_state_mb): Likewise.
78120         (sift_states_iter_mb): Likewise.
78121         (check_arrival_add_next_nodes): Likewise.
78122         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78123         [_LIBC] (re_search_2_stub): Use mempcpy.
78124
78125         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78126         mbrtowc for very simple UTF-8 case.
78127
78128         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78129         a pointer-to-const.
78130         (re_acquire_state_context): Likewise.
78131         * lib/regex_internal.h: Adjust prototypes.
78132
78133         * lib/regex.c: Prevent using C++ compilers.
78134
78135         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78136         (re_acquire_state_context): Likewise.
78137
78138 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78139
78140         * modules/regex (Depends-on): Add ssize_t.
78141
78142 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78145         translation table.
78146
78147 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78150
78151 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78152             Bruno Haible  <bruno@clisp.org>
78153
78154         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78155         <sys/types.h> and <inttypes.h>.
78156
78157 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78158
78159         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78160         `__error_t_defined', so argp.h will not typedef the former.
78161
78162 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78163
78164         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78165         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78166         glibc names.  Even if glibc is changed to conform to POSIX, the
78167         traditional names will be available anyway, since regex depends on
78168         the extensions module.  Also, fix a longstanding typo in the
78169         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78170         reported by Emanuele Giaquinta.  Also, change sense of cached
78171         variable, so that the message makes sense.
78172
78173 2006-03-24  Simon Josefsson  <jas@extundo.com>
78174
78175         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78176         including some doc fixes.
78177         (base64_encode_alloc): Fix +1 bug on allocation failures.
78178
78179 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78180
78181         * lib/base64.c (base64_encode): Do not read past end of array with
78182         unsanitized input on systems with CHAR_BIT > 8.
78183
78184 2006-03-24  Eric Blake  <ebb9@byu.net>
78185
78186         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78187
78188 2006-03-22  Karl Berry  <karl@gnu.org>
78189
78190         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78191         * config/srclistvars.sh (COREUTILS): new var.
78192
78193 2006-03-17  Jim Meyering  <jim@meyering.net>
78194
78195         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78196         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78197
78198 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78199
78200         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78201         no longer needs it.  Instead, check that regoff_t is as least
78202         as wide as ptrdiff_t.
78203
78204         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78205         so that our regex.h stays compatible with the installed regex.
78206         This is helpful for installers who configure --without-included-regex.
78207         Problem reported by Emanuele Giaquinta.
78208
78209 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78210
78211         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78212         Typedef to long int, not to off_, as POSIX will likely change
78213         in that direction.
78214
78215 2006-03-15  Eric Blake  <ebb9@byu.net>
78216
78217         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78218
78219 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78220
78221         * lib/argp-help.c (validate_uparams): Fix typo
78222         * lib/argp-parse.c (argp_default_options): Consistently begin help
78223         messages with a lowercase letter.
78224
78225 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78226
78227         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78228         overrun buffers and shouldn't be used (much as gets shouldn't be
78229         used).
78230         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78231
78232 2006-03-08  Simon Josefsson  <jas@extundo.com>
78233
78234         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78235         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78236
78237 2006-03-08  Simon Josefsson  <jas@extundo.com>
78238
78239         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78240         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78241
78242 2006-03-08  Simon Josefsson  <jas@extundo.com>
78243
78244         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78245         signal that configure disabled the device.
78246
78247 2006-03-08  Simon Josefsson  <jas@extundo.com>
78248
78249         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78250         languages.
78251
78252 2006-03-07  Simon Josefsson  <jas@extundo.com>
78253
78254         * modules/getopt (Depends-on): Add unistd.
78255
78256         * modules/unistd: New file.
78257
78258 2006-03-07  Simon Josefsson  <jas@extundo.com>
78259
78260         * modules/gc-random: New file.
78261
78262 2006-03-07  Simon Josefsson  <jas@extundo.com>
78263
78264         * m4/unistd_h.m4: New file.
78265
78266 2006-03-07  Simon Josefsson  <jas@extundo.com>
78267
78268         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78269         test to be side-effect free by storing the result in the cache
78270         variable gl_cv_lib_readline, and moving the assignment of
78271         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78272         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78273
78274 2006-03-07  Simon Josefsson  <jas@extundo.com>
78275
78276         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78277         error on missing devices (the functions will return an error).
78278
78279         * m4/gc.m4: Move random stuff to gc-random.m4
78280
78281 2006-03-07  Simon Josefsson  <jas@extundo.com>
78282
78283         * lib/unistd_.h: New file.
78284
78285 2006-03-07  Simon Josefsson  <jas@extundo.com>
78286
78287         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78288
78289 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78292         Problem reported by Juan Manuel Guerrero.
78293
78294 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78297         the unistd module.
78298         * lib/getlogin_r.c: Likewise.
78299         * lib/getlogin_r.h: Likewise.
78300         * lib/glob.c: Likewise.
78301         * lib/pagealign_alloc.c: Likewise.
78302         * lib/unistd_.h: Remove; no longer needed.
78303
78304 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78305
78306         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78307         Add unistd.
78308         * modules/c-stack (Depends-on): Add unistd.
78309         * modules/getlogin_r: Likewise.
78310         * modules/glob: Likewise.
78311         * modules/pagealign_alloc: Likewise.
78312         * modules/unistd (Files): Remove lib/unistd_.h.
78313         (EXTRA_DIST): Remove.
78314         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78315         need unistd_.h.
78316         (MOSTLYCLEANFILES): Remove unistd.h-t.
78317
78318 2006-03-03  Simon Josefsson  <jas@extundo.com>
78319
78320         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78321
78322 2006-03-03  Simon Josefsson  <jas@extundo.com>
78323
78324         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78325         libidn and bison.
78326
78327 2006-03-03  Simon Josefsson  <jas@extundo.com>
78328
78329         * build-aux/maint.mk: Add indent target.
78330
78331 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78332
78333         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78334         our replacement poll.h in any case, to avoid a differing
78335         declaration from a system header.  Seen on AIX.
78336
78337 2006-03-01  Simon Josefsson  <jas@extundo.com>
78338
78339         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78340         <kasal@ucw.cz>.
78341
78342 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         * modules/gettime (Depends-on): Add extensions module.
78345         * modules/nanosleep (Depends-on): Likewise.
78346         * modules/settime (Depends-on): Likewise.
78347
78348 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78351         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78352         pedantically.
78353         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78354         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78355
78356         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78357         not "==".  Reported by Ralf Wildenhues.
78358
78359 2006-03-01  Karl Berry  <karl@gnu.org>
78360
78361         * doc/Copyright/request-*: new files, synced from gnuorg.
78362
78363 2006-03-01  Karl Berry  <karl@gnu.org>
78364
78365         * config/srclist.txt (Copyright/*): new entries.
78366
78367 2006-02-28  Simon Josefsson  <jas@extundo.com>
78368
78369         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78370
78371 2006-02-27  Simon Josefsson  <jas@extundo.com>
78372
78373         * lib/base64.h: Indent #define's.  From Jim Meyering
78374         <jim@meyering.net>.
78375
78376 2006-02-27  Jim Meyering  <jim@meyering.net>
78377
78378         Revert the change of 2006-02-24, so these files can continue
78379         to be sync'd from gettext.
78380         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78381         of `config.h'.
78382
78383 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78384
78385         * modules/intprops: New file.
78386         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78387         Add intprops.
78388         * modules/getloadavg (Files): Remove lib/intprops.h.
78389         (Depends-on): Add intprops.
78390         * modules/human: Likewise.
78391         * modules/inttostr: Likewise.
78392         * modules/openat: Likewise.
78393         * modules/sig2str: Likewise.
78394         * modules/userspec: Likewise.
78395         * modules/utimecmp: Likewise.
78396         * modules/xnanosleep: Likewise.
78397         * modules/xstrtol: Likewise.
78398
78399 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78400
78401         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78402         * modules/lock-tests (TESTS): Use $(EXEEXT).
78403         * modules/tls-tests: Likewise.
78404         * modules/argp-tests: Likewise.
78405         (check_PROGRAMS): New var, replacing...
78406         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78407
78408 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78409
78410         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78411         `config.h'.
78412
78413 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78416
78417 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78418
78419         Sync from coreutils.
78420         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78421         gl_CHDIR_SAFER.
78422
78423 2006-02-22  Jim Meyering  <jim@meyering.net>
78424
78425         Sync from coreutils.
78426         * m4/chdir-safer.m4: New file.
78427
78428 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78431         AT_FDCWD exceeds INT_MAX.
78432         * lib/openat.h (AT_FDCWD): Likewise.
78433
78434 2006-02-17  Eric Blake  <address@hidden>
78435
78436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78437
78438 2006-02-16  Simon Josefsson  <jas@extundo.com>
78439
78440         * modules/getaddrinfo (Depends-on): Add sys_socket.
78441
78442 2006-02-15  Simon Josefsson  <jas@extundo.com>
78443
78444         * build-aux/maint.mk: Add dsyntax-check rule.
78445
78446 2006-02-15  Eric Blake  <ebb9@byu.net>
78447
78448         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78449         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78450         'present but cannot compile' warnings on cygwin.
78451         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78452         use ws2tcpip.h if sys/socket.h works.
78453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78454         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78455
78456 2006-02-14  Simon Josefsson  <jas@extundo.com>
78457
78458         * modules/maintainer-makefile (Files): Rename.
78459
78460         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78461         and (the local) Makefile.cfg to maint-cfg.mk.
78462
78463         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78464         to the latter.
78465
78466         * modules/maintainer-makefile: New module.
78467
78468         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78469         severaly stripped to make it possible to build it up from scratch
78470         with reliable tests.
78471
78472         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78473         fixes to permit overriding the default actions when configure and
78474         makefile are not available.
78475
78476 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         Sync from coreutils.
78479         * modules/lstat (Depends-on): Don't depend on xalloc.
78480         (License): Change from GPL to LGPL, since this is now simply a
78481         replacement for a libc function.
78482
78483 2006-02-14  Jim Meyering  <jim@meyering.net>
78484
78485         Sync from coreutils.
78486
78487         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78488         failure on deficient systems, and simplify gnulib lgpl dependencies.
78489         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78490         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78491
78492         * lib/xalloc-die.c: Remove unused definition of N_.
78493
78494 2006-02-14  Jim Meyering  <jim@meyering.net>
78495
78496         Sync from coreutils.
78497         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78498         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78499         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78500         double-quote uses of that variable, to accommodate the rare case in
78501         which getmntent is available in none of the libraries checked.  This
78502         happens at least on FreeBSD 5.0.
78503
78504 2006-02-13  Simon Josefsson  <jas@extundo.com>
78505
78506         * gnulib-tool (Usage): Fix --import, from
78507         karl@freefriends.org (Karl Berry).
78508
78509 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78510
78511         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78512
78513 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78514
78515         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78516         "autoupdate" on 2005-12-12.
78517
78518 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78519
78520         * modules/closeout (Depends-on): Remove atexit.
78521
78522 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78525         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78526
78527 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78530         __EXTENSIONS__ if this causes compilation to fail.  Problem
78531         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78532         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78533
78534 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78537         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78538         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78539         All uses changed.
78540
78541 2006-01-26  Simon Josefsson  <jas@extundo.com>
78542
78543         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78544         prototype is visible on mingw32.
78545
78546         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78547         for mingw32.
78548
78549         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78550         mingw32).
78551
78552 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78553
78554         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78555         attempt to open for write; this always fails, at least on POSIX
78556         hosts.  This reinstates the 2006-01-09 change, which was
78557         inadvertently removed.
78558
78559 2006-01-26  Bruno Haible  <bruno@clisp.org>
78560
78561         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78562         Reported by Paul Eggert.
78563
78564 2006-01-26  Bruno Haible  <bruno@clisp.org>
78565             Paul Eggert  <eggert@cs.ucla.edu>
78566
78567         * lib/stdbool_.h (_Bool)
78568         [(! (defined __cplusplus || defined __BEOS__)
78569           && !defined __GNUC__
78570           && !(defined __HP_cc || defined __xlc__
78571                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78572                || defined __sgi))]:
78573         #define to signed char in these cases too; this simplifies
78574         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78575         etc., separately) and makes it more conservative.
78576
78577 2006-01-25  Simon Josefsson  <jas@extundo.com>
78578
78579         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78580         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78581         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78582
78583 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78584
78585         * lib/argp-namefrob.h: Bugfix. Remove stray #
78586
78587 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78588
78589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78590         so that we test the test.
78591         Check for yet another HP-UX cc bug involving *bool |= bool.
78592
78593 2006-01-25  Karl Berry  <karl@gnu.org>
78594
78595         * config/srclist.txt (vasnprintf.c): sync lost.
78596
78597 2006-01-25  Jim Meyering  <jim@meyering.net>
78598
78599         Sync from the stable (b5) branch of coreutils:
78600
78601         * lib/fts.c (fts_children): Don't let close() clobber errno from
78602         failed fchdir().
78603
78604         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78605         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78606         a dangling symlink.  That can also happen at least for ELOOP.
78607         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78608         FYI, this bug predates the inclusion of fts.c in coreutils.
78609
78610         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78611         in their own block, so pre-c99 compilers don't object.
78612
78613         Avoid the double-free (first in fts_read, second in fts_close) that
78614         would occur when an `active' directory is made inaccessible (e.g.,
78615         via chmod a-x) during a traversal.
78616         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78617         before returning.  Reproduce this failure by
78618         mkdir -p a/b; cd a; chmod a-x . b
78619         Reported by Stavros Passas.
78620
78621 2006-01-25  Jim Meyering  <jim@meyering.net>
78622
78623         * lib/fileblocks.c: Remove more useless parentheses.
78624         * lib/readutmp.h: Likewise.
78625
78626 2006-01-25  Bruno Haible  <bruno@clisp.org>
78627
78628         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78629         warnings.
78630         Reported by Paul Eggert.
78631
78632 2006-01-25  Bruno Haible  <bruno@clisp.org>
78633
78634         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78635         rid of a trap command. For Solaris sh.
78636         Reported by Mark D. Baushke <mdb@gnu.org>.
78637
78638 2006-01-24  Simon Josefsson  <jas@extundo.com>
78639
78640         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78641         Bruno.
78642
78643 2006-01-24  Karl Berry  <karl@gnu.org>
78644
78645         * config/srclist.txt (argp-namefrob.h): sync lost.
78646
78647 2006-01-24  Jim Meyering  <jim@meyering.net>
78648
78649         * modules/openat (Files): Add lib/intprops.h.
78650         From Mark D. Baushke.
78651
78652 2006-01-24  Jim Meyering  <jim@meyering.net>
78653
78654         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78655         Reported by Mark D. Baushke.
78656
78657 2006-01-24  Jim Meyering  <jim@meyering.net>
78658
78659         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78660
78661 2006-01-24  Bruno Haible  <bruno@clisp.org>
78662
78663         * modules/strnlen (Maintainer): Change from glibc to all.
78664
78665 2006-01-24  Bruno Haible  <bruno@clisp.org>
78666
78667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78668         Patch by Paul Eggert.
78669
78670 2006-01-24  Bruno Haible  <bruno@clisp.org>
78671
78672         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78673         already has it.
78674         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78675         2005-11-26.
78676
78677         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78678         'signed char' to avoid problems with the built-in _Bool type.
78679         Reported by Paul Eggert on 2005-11-26.
78680
78681 2006-01-24  Bruno Haible  <bruno@clisp.org>
78682
78683         * gnulib-tool (func_import): Avoid constructing complicated sed
78684         expressions inside backquote.
78685         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78686
78687 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78688
78689         These changes imported from libc.
78690         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78691         test and two separate function calls.
78692         * lib/strndup.c (__strndup): Add libc_hidden_def.
78693
78694 2006-01-23  Simon Josefsson  <jas@extundo.com>
78695
78696         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78697         Remove the test_*_SOURCES variable: automake infers it by default.
78698         * modules/tls-tests: Likewise.
78699
78700 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78701
78702         Work around porting bugs reported by Dieter in
78703         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78704         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78705         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78706         Include "getopt.h" first, to check interface.
78707         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78708         !HAVE_DECL_GETENV.
78709         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78710         (__strndup): Revert to K&R-style function dfns, the glibc style.
78711         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78712         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78713         Include strnlen.h first, to get prototype properly.
78714         (strnlen): Renamed from __strnlen.
78715         Remove weak alias.
78716
78717 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78718
78719         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78720
78721 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * config/srclist.txt: Adjust to reflect glibc reorganization.
78724         This affects only comments.
78725
78726 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78727
78728          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78729          Reported by Bruce Korb <bkorb@gnu.org>.
78730
78731 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78734         to pacify gcc -Wswitch-default.
78735
78736 2006-01-22  Bruno Haible  <bruno@clisp.org>
78737
78738         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78739         temporary buffer for sprintf, take into account the precision also
78740         for 'd', 'i', 'u', 'o', 'x', 'X'.
78741
78742 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78743
78744         * modules/argp-tests: New module
78745         * tests/test-argp.c: New file
78746         * tests/test-argp-2.sh: New file
78747
78748 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78749
78750         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78751         (__argp_base_name): Removed
78752         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78753         typo.
78754         (__argp_base_name): Provide macro definition or extern declaration
78755         depending on the configuration
78756
78757 2006-01-20  Simon Josefsson  <jas@extundo.com>
78758
78759         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78760
78761 2006-01-20  Simon Josefsson  <jas@extundo.com>
78762
78763         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78764
78765 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78768         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78769         Suggested by Bruno Haible.
78770
78771 2006-01-20  Karl Berry  <karl@gnu.org>
78772
78773         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78774         until changes propagate, I guess.
78775
78776 2006-01-19  Simon Josefsson  <jas@extundo.com>
78777
78778         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78779
78780 2006-01-19  Simon Josefsson  <jas@extundo.com>
78781
78782         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78783
78784 2006-01-19  Simon Josefsson  <jas@extundo.com>
78785
78786         * gnulib-tool: Set check_PROGRAMS.
78787
78788         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78789         modules/des-tests, modules/gc-arcfour-tests,
78790         modules/gc-arctwo-tests, modules/gc-des-tests,
78791         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78792         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78793         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78794         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78795         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78796         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78797         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78798         test_*_SOURCES.
78799
78800 2006-01-18  Simon Josefsson  <jas@extundo.com>
78801
78802         * modules/socklen (Depends-on): Depend on sys_socket.
78803
78804 2006-01-18  Simon Josefsson  <jas@extundo.com>
78805
78806         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78807         modules/des-tests, modules/gc-arcfour-tests,
78808         modules/gc-arctwo-tests, modules/gc-des-tests,
78809         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78810         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78811         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78812         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78813         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78814         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78815         $(EXEEXT) to automake TESTS variable, for mingw32.
78816
78817 2006-01-17  Simon Josefsson  <jas@extundo.com>
78818
78819         * modules/socklen (Include): Need sys/socket.h.
78820
78821 2006-01-17  Bruno Haible  <bruno@clisp.org>
78822
78823         * modules/ssize_t (Include): Add <sys/types.h>.
78824
78825 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78826
78827         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78828         it's not portable and it doesn't work with cross-compiles.
78829         Problem reported by Bruno Haible.  Fix missing-$ typo in
78830         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78831         -zignore from being used with Sun's C compiler.
78832
78833 2006-01-12  Simon Josefsson  <jas@extundo.com>
78834
78835         * lib/base64.c: Fix warning, reported by Bruno Haible
78836         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78837
78838 2006-01-12  Bruno Haible  <bruno@clisp.org>
78839
78840         * modules/ldd: New file.
78841         * build-aux/ldd.sh.in: New file.
78842         * MODULES.html.sh (Support for building libraries and executables): Add
78843         ldd.
78844
78845 2006-01-12  Bruno Haible  <bruno@clisp.org>
78846
78847         * m4/ldd.m4: New file.
78848
78849 2006-01-12  Bruno Haible  <bruno@clisp.org>
78850
78851         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78852         endless loop while replacing $auxdir with build-aux.
78853
78854 2006-01-11  Simon Josefsson  <jas@extundo.com>
78855
78856         * lib/stdint_.h (SIZE_MAX): Add missing (.
78857
78858 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         Sync from coreutils.
78861         * lib/md5.c: Fix commentary typos.
78862         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78863         * lib/md5.h (__attribute__): Remove; unused.
78864         * lib/sha1.c: Fix commentary to match md5 better.
78865         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78866         so that we don't need to worry about alignment.  All uses changed.
78867         This merges the 2005-10-28 md5 change into sha1.
78868
78869 2006-01-11  Jim Meyering  <jim@meyering.net>
78870
78871         Sync from coreutils.
78872         * lib/md5.c (OP): Fix spacing.
78873
78874 2006-01-11  Bruno Haible  <bruno@clisp.org>
78875
78876         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78877         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78878         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78879
78880 2006-01-11  Bruno Haible  <bruno@clisp.org>
78881
78882         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78883         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78884         the "early" section as well.
78885
78886 2006-01-11  Bruno Haible  <bruno@clisp.org>
78887
78888         Avoid "ar: no archive members specified" error on MacOS X.
78889         * gnulib-tool (func_modules_add_dummy): New function.
78890         (func_import, func_create_testdir): Invoke it.
78891
78892 2006-01-11  Bruno Haible  <bruno@clisp.org>
78893
78894         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78895         with $auxdir in AC_CONFIG_FILES statements.
78896
78897 2006-01-11  Bruno Haible  <bruno@clisp.org>
78898
78899         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78900         Initialize also noinst_HEADERS to empty.
78901
78902 2006-01-11  Bruno Haible  <bruno@clisp.org>
78903
78904         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78905         variables.
78906         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78907         autoreconf.
78908
78909 2006-01-11  Bruno Haible  <bruno@clisp.org>
78910
78911         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78912         overridable by the user.
78913         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78914
78915 2006-01-10  Simon Josefsson  <jas@extundo.com>
78916
78917         * modules/sys_socket: New file.
78918
78919 2006-01-10  Simon Josefsson  <jas@extundo.com>
78920
78921         * m4/sys_socket_h.m4: New file.
78922
78923 2006-01-10  Simon Josefsson  <jas@extundo.com>
78924
78925         * lib/socket_.h: New file.
78926
78927 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78928
78929         * modules/readutmp (Maintainer): Add myself.
78930
78931 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78932
78933         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78934         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78935         People who are still concerned with buggy memcmp implementations
78936         can invoke gl_FUNC_MEMCMP themselves.
78937
78938 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78939
78940         * lib/regex_internal.h (BITSET_WORD_BITS):
78941         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78942         preprocessor mishandles large unsigned values as if they were signed.
78943         Problem reported by Claudio Fontana in
78944         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78945
78946 2006-01-10  Jim Meyering  <jim@meyering.net>
78947
78948         Avoid the double-free (first in fts_read, second in fts_close) that
78949         would occur when an `active' directory is made inaccessible (e.g.,
78950         via chmod a-x) during a traversal.
78951         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78952         before returning.  Reproduce this failure by
78953         mkdir -p a/b; cd a; chmod a-x . b
78954         Reported by Stavros Passas.
78955
78956         Sync from coreutils.
78957         * lib/sha1.c: Tweak grammar in a comment.
78958
78959 2006-01-10  Jim Meyering  <jim@meyering.net>
78960
78961         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78962         Patch by Joerg Sonnenberger.
78963
78964 2006-01-10  Bruno Haible  <bruno@clisp.org>
78965
78966         * modules/readutmp: Depend on module free.
78967         * modules/strtok_r: Depend on module restrict.
78968
78969 2006-01-10  Bruno Haible  <bruno@clisp.org>
78970
78971         * modules/gettext (configure.ac): Add an invocation of
78972         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78973
78974 2006-01-10  Bruno Haible  <bruno@clisp.org>
78975
78976         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78977         Reported by Werner Lemberg <wl@gnu.org>.
78978
78979 2006-01-10  Bruno Haible  <bruno@clisp.org>
78980
78981         * lib/localcharset.c: Update from GNU gettext.
78982
78983 2006-01-10  Bruno Haible  <bruno@clisp.org>
78984
78985         * lib/argp.h (__const): Remove macro. Use const instead.
78986         * lib/argp-fmtstream.h (__const): Likewise.
78987         * lib/glob_.h (__const): Remove macro.
78988         * lib/glob-libc.h: Use const instead of __const.
78989
78990 2006-01-10  Bruno Haible  <bruno@clisp.org>
78991
78992         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78993         variable.
78994         Needed to avoid an automake error regarding the 'gettext' module.
78995
78996 2006-01-09  Simon Josefsson  <jas@extundo.com>
78997
78998         * modules/inet_ntop (Depends-on): Add restrict.
78999
79000 2006-01-09  Simon Josefsson  <jas@extundo.com>
79001
79002         * modules/gc-rijndael-tests (License): Put under LGPL.
79003
79004         * modules/gc-des-tests (License): Likewise.
79005
79006         * modules/gc-arcfour-tests (License): Likewise.
79007
79008         * modules/gc-arctwo-tests (License): Likewise.
79009
79010         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79011
79012         * modules/gc-hmac-sha1-tests (Files): Likewise.
79013
79014         * modules/gc-hmac-md5-tests (License): Likewise.
79015
79016         * modules/gc-sha1-tests (License): Likewise.
79017
79018         * modules/gc-md5-tests (License): Likewise.
79019
79020         * modules/gc-md4-tests (License): Likewise.
79021
79022         * modules/gc-md2-tests (License): Likewise.
79023
79024         * modules/gc-tests (License): Likewise.
79025
79026         * modules/des-tests (License): Likewise.
79027
79028         * modules/md4-tests (License): Likewise.
79029
79030         * modules/md2-tests (License): Likewise.
79031
79032 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         Sync from coreutils:
79035
79036         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79037         * modules/lib-ignore: New file.
79038         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79039         chdir-safer.m4, lchmod.m4.
79040         * modules/openat: Add mkdirat.c, openat-priv.h.
79041
79042 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79043
79044         Sync from coreutils.
79045         * m4/lib-ignore.m4: New file.
79046         * m4/lchmod.m4: New file.
79047
79048 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79049
79050         Sync from coreutils.
79051         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79052         for write access: POSIX says that must fail.
79053         * lib/fts.c (diropen): Likewise.
79054         * lib/save-cwd.c (save_cwd): Likewise.
79055         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79056         well, for minor improvements on hosts that lack O_DIRECTORY.
79057         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79058         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79059         Fall back on chown if open failed with EACCES.
79060
79061         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79062         Report an error at compile-time if only a 1-second nominal clock
79063         resolution is found.
79064
79065         * lib/lchmod.h: New file.
79066         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79067         (make_dir_parents): Use lchown rather than chown, and
79068         lchmod rather than chmod.
79069
79070         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79071         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79072         "proc" reported by n0dalus.
79073
79074         * lib/mountlist.c: Include <limits.h>.
79075         (dev_from_mount_options)
79076         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79077         New function.  It no longer assumes "dev=" has the System V meaning
79078         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79079         (read_file_system_list)
79080         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79081         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79082         dev= in that case.
79083
79084         * lib/posixtm.h (PDS_PRE_2000): New macro.
79085         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79086         allow_century.  All usages changed.  Reject dates outside the range
79087         1969-1999 if PDS_PRE_2000 is used.
79088
79089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79090
79091         Sync from coreutils.
79092         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79093         (Time of day items): Mention the possibility of leap seconds.
79094         Problem reported by Dr. David Alan Gilbert.
79095
79096 2006-01-09  Jim Meyering  <jim@meyering.net>
79097
79098         Sync from coreutils.
79099
79100         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79101
79102         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79103
79104         * lib/modechange.c (mode_compile): Reject an invalid mode string
79105         that starts with an octal digit.  From Andreas Gruenbacher.
79106
79107         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79108         and dup to open_safer and dup_safer, respectively.
79109         (openat_permissive): Fix typo in comment.
79110
79111         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79112         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79113         (_): Remove; no longer needed.
79114         (openat): Renamed from rpl_openat; no need for rpl_openat
79115         since openat.h renames openat for us.
79116         Replace most of the body with a call to openat_permissive,
79117         to avoid duplicate code.
79118         Port to (probably hypothetical) environments were mode_t is
79119         wider than int.
79120         (openat_permissive): Require mode arg, so that we can check
79121         types better.  Put it just after flags.  Change cwd failure
79122         indicator from pointer-to-bool to pointer-to-errno-value.
79123         All callers changed.
79124         Invoke openat_save_fail and/or openat_restore_fail if
79125         cwd_errno is null, so that openat can call us.
79126         (openat_permissive, fdopendir, fstatat, unlinkat):
79127         Simplify errno handling to avoid some duplicate code,
79128         as it's OK to set errno on success.
79129         * lib/openat.h: Revamp code so that function macros depend on
79130         __OPENAT_PREFIX only, not also on AT_FDCWD.
79131         (openat_ro): Remove.  Caller changed to use openat_permissive.
79132         (openat_permissive): Now a macro, if not a function.
79133         (openat_restore_fail, openat_save_fail): Now always functions,
79134         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79135
79136         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79137         and openat.c.
79138         * lib/mkdirat.c: Include openat-priv.h.
79139         Remove definitions of macros defined therein.
79140         * lib/openat.c: Likewise.
79141
79142         * lib/mkdirat.c (mkdirat): New file and function.
79143         * lib/openat.h (mkdirat): Declare.
79144
79145         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79146
79147         * lib/openat.h (openat_permissive): Declare.
79148         (openat_ro): Define.
79149
79150         * lib/openat.c (EXPECTED_ERRNO): New macro.
79151         (openat_permissive): New function -- used in remove.c rewrite.
79152         (all functions): Set errno just before returning, only if there
79153         was an actual failure.
79154         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79155
79156         Emulate openat-family functions using Linux's procfs, if possible.
79157         Idea and some code based on Ulrich Drepper's glibc changes.
79158
79159         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79160         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79161         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79162         before falling back on save_cwd and restore_cwd.
79163         (fdopendir, fstatat, unlinkat): Likewise.
79164
79165         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79166         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79167
79168         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79169         as second argument to va_arg.  Otherwise, some versions of gcc
79170         warn that `if this code is reached, the program will abort'.
79171
79172 2006-01-09  Jim Meyering  <jim@meyering.net>
79173
79174         Sync from coreutils.
79175         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79176         Require openat-priv.h.
79177
79178 2006-01-09  Bruno Haible  <bruno@clisp.org>
79179
79180         * modules/strnlen (Include): Use strnlen.h.
79181
79182 2006-01-09  Bruno Haible  <bruno@clisp.org>
79183
79184         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79185
79186 2006-01-09  Bruno Haible  <bruno@clisp.org>
79187
79188         * lib/sysexit_.h (EX_OK): New macro.
79189         Suggested by Martin Lambers <marlam@marlam.de>.
79190
79191 2006-01-09  Bruno Haible  <bruno@clisp.org>
79192
79193         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79194         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79195
79196 2006-01-09  Bruno Haible  <bruno@clisp.org>
79197
79198         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79199         numbers.
79200
79201 2006-01-09  Bruno Haible  <bruno@clisp.org>
79202
79203         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79204         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79205         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79206         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79207
79208 2006-01-09  Bruno Haible  <bruno@clisp.org>
79209
79210         * build-aux/javacomp.sh.in: New file, moved from lib/.
79211         * modules/javacomp-script (Files): Update.
79212         (configure.ac): Add AC_CONFIG_FILES invocation.
79213         (EXTRA_DIST): Remove variable.
79214
79215         * build-aux/javaexec.sh.in: New file, moved from lib/.
79216         * modules/javaexec (Files): Update.
79217         (configure.ac): Add AC_CONFIG_FILES invocation.
79218         (EXTRA_DIST): Remove javaexec.sh.in.
79219
79220         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79221         * modules/csharpcomp-script (Files): Update.
79222         (configure.ac): Add AC_CONFIG_FILES invocation.
79223         (EXTRA_DIST): Remove variable.
79224
79225         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79226         * modules/csharpexec (Files): Update.
79227         (configure.ac): Add AC_CONFIG_FILES invocation.
79228         (EXTRA_DIST): Remove csharpexec.sh.in.
79229
79230 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79231
79232         Sync from coreutils.
79233
79234         Add POSIX ACL support
79235         * lib/acl.h (copy_acl, set_acl): Add declarations.
79236         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79237         systems other than Linux.
79238         (chmod_or_fchmod): New function: use fchmod when possible,
79239         and chmod otherwise.
79240         (file_has_acl): Add a POSIX ACL implementation, with a
79241         Linux-specific subcase.
79242         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79243         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79244         acls are unsupported.
79245         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79246         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79247         are unsupported.
79248
79249 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79250
79251         Sync from coreutils.
79252         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79253
79254 2006-01-07  Bruno Haible  <bruno@clisp.org>
79255
79256         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79257         gl_EARLY.
79258
79259 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79260
79261         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79262         Problem reported for Mingw by Mark Junker.
79263
79264 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * README: Gnulib normally doesn't generate a tarball.
79267
79268 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79271         long int, not int, for nanosecond counts, so that people who are
79272         used to POSIX struct timespec won't be surprised.  Reported by Jim
79273         Meyering.
79274
79275 2005-12-28  Bruno Haible  <bruno@clisp.org>
79276
79277         * build-aux/config.rpath: Update from GNU gettext.
79278
79279 2005-12-16  Jim Meyering  <jim@meyering.net>
79280
79281         * modules/fprintftime: New module.
79282         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79283
79284 2005-12-16  Jim Meyering  <jim@meyering.net>
79285
79286         * m4/fprintftime.m4: New file.
79287
79288 2005-12-16  Jim Meyering  <jim@meyering.net>
79289
79290         * lib/fprintftime.c, lib/fprintftime.h: New files.
79291
79292 2005-12-15  Simon Josefsson  <jas@extundo.com>
79293
79294         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79295         new m4/socklen.m4.
79296
79297 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79298
79299         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79300         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79301
79302 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79303
79304         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79305         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79306         struct uparams is valid. Fall back to the default values if it is
79307         not.
79308
79309 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79310
79311         * modules/argp (Files): Add argp-pin.c
79312         (Depends-on): dirname
79313         (lib_SOURCES): Add argp-pin.c
79314
79315 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79316
79317         * m4/argp.m4:  Check if program_invocation_name and
79318         program_invocation_short_name are declared and define appropriate
79319         macros if they are not.
79320
79321 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79322
79323         * lib/argp-help.c (__argp_base_name): New function
79324         (__argp_short_program_name): Rewrite using __argp_base_name
79325         * lib/argp-namefrob.h: Define program_invocation_name and
79326         program_invocation_short_name if requested
79327         (__argp_base_name): Add prototype
79328         * lib/argp-parse.c (argp_def): Use gettext wrappers
79329         (argp_default_parser): Use __argp_base_name
79330         * lib/argp-pin.c: New file. Defines program_invocation_name and
79331         program_invocation_short_name on systems that lack them.
79332
79333 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79336         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79337         porting problem reported by Georg Schwarz in
79338         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79339
79340 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79343         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79344         porting problem reported by Georg Schwarz in
79345         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79346
79347 2005-12-05  Bruno Haible  <bruno@clisp.org>
79348
79349         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79350         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79351         Reported by Mark Junker <mjscod@gmx.de>.
79352
79353 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79356         Use implementation from Albert Chin, with some
79357         comments/corrections by Stepan Kasal and myself.
79358
79359 2005-12-02  Bruno Haible  <bruno@clisp.org>
79360
79361         * gnulib-tool (func_import): Accept GPLed build tool modules when
79362         --lgpl is given.
79363         * modules/csharpcomp-script: New file.
79364         * modules/csharpcomp: Depend on it.
79365         * modules/javacomp-script: New file.
79366         * modules/javacomp: Depend on it.
79367         Suggested by Simon Josefsson.
79368
79369 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79372         statement, to work around an HP-UX 10.20 compiler bug reported by
79373         Peter O'Gorman.
79374
79375 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * modules/savedir (Depends-on): Add openat.
79378
79379 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79380
79381         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79382         (uintmax_t) [defined uintmax_t]: Do not declare.
79383         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79384         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79385         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79386         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79387         sake of portability to weird hosts that C allows (though we don't
79388         know of any practical examples).
79389
79390         * lib/savedir.h (fdsavedir): New decl.
79391         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79392         contains most of the former guts of savedir.
79393         (savedir): Use savedirstream.
79394         Include "openat.h".
79395
79396 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * modules/obstack (Files): Add m4/ulonglong.m4.
79399         Problem reported by Davide Angelocola.
79400
79401 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79404         coreutils no longer futzes with rounding modes.
79405
79406 2005-11-14  Jim Meyering  <jim@meyering.net>
79407
79408         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79409         replacement of mkstemp.
79410
79411 2005-11-10  Simon Josefsson  <jas@extundo.com>
79412
79413         * lib/readline.c: Remove EOL.
79414
79415 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * modules/gethrxtime (Depends-on): Add gettime.
79418
79419 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79420
79421         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79422         or gettimeofday; no longer needed.
79423
79424 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79427         time business.
79428         (gethrxtime) [! (HAVE_NANOUPTIME
79429         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79430         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79431         our own approximation.
79432
79433 2005-11-08  Eric Blake  <ebb9@byu.net>
79434
79435         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79436
79437 2005-11-08  Eric Blake  <ebb9@byu.net>
79438
79439         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79440
79441 2005-11-04  Bruno Haible  <bruno@clisp.org>
79442
79443         * gnulib-tool: Implement --update mode.
79444
79445 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         Fix porting problem reported by Theodoros V. Kalamatianos.
79448         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79449         Don't assume that futimes failing means we must fail.
79450
79451 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79454         variables to suggest the intended function of the PATH_MAX check.
79455
79456 2005-10-30  Kean Johnston  <jkj@sco.com>
79457
79458         Trivial changes to support SCO systems.
79459         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79460         as PATH_MAX.
79461         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79462         where __ptr is null when no I/O is pending.
79463
79464 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79467         leave errno alone.  Problem reported by Dmitry V. Levin.
79468
79469 2005-10-28  Simon Josefsson  <jas@extundo.com>
79470
79471         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79472         Test more.
79473
79474         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79475
79476         * modules/md2, modules/md2-tests: New files.
79477
79478 2005-10-28  Simon Josefsson  <jas@extundo.com>
79479
79480         * m4/inet_ntop.m4: More tests.
79481
79482         * m4/gc-md2.m4, md2.m4: New file.
79483
79484 2005-10-28  Simon Josefsson  <jas@extundo.com>
79485
79486         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79487         "restrict" keywords, as per POSIX.  Protect the function
79488         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79489         Don't use K&R prototypes.  Check the sprintf return values.
79490         Re-define EAFNOSUPPORT if not present.  Indent.
79491
79492         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79493         suggested by Bruno Haible <bruno@clisp.org>.
79494
79495         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79496
79497         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79498
79499         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79500         libgcrypt).
79501
79502         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79503
79504         * lib/md2.h, lib/md2.c: New files.
79505
79506 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79507
79508         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79509         errno alone.  Problem reported by Frederic Jolliton.
79510
79511 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * modules/verify (License): Change from GPL to LGPL.  This is a
79514         tiny module and there are apparently near-equivalents that are
79515         under the BSD license.
79516
79517 2005-10-24  Simon Josefsson  <jas@extundo.com>
79518
79519         * modules/sha1: Relicense to LGPL.
79520
79521 2005-10-24  Simon Josefsson  <jas@extundo.com>
79522
79523         * lib/md4.h: Shrink buffer size, now that we changed the type.
79524
79525 2005-10-23  Simon Josefsson  <jas@extundo.com>
79526
79527         * gnulib-tool (func_import): Fix --tests-base.
79528
79529 2005-10-22  Simon Josefsson  <jas@extundo.com>
79530
79531         * modules/arcfour (Depends-on): Need stdint.
79532
79533 2005-10-22  Simon Josefsson  <jas@extundo.com>
79534
79535         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79536         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79537
79538 2005-10-22  Simon Josefsson  <jas@extundo.com>
79539
79540         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79541         suggested by Bruno Haible <bruno@clisp.org>.
79542
79543 2005-10-22  Simon Josefsson  <jas@extundo.com>
79544
79545         * lib/crc.h: Include stddef.h, for size_t.
79546
79547 2005-10-22  Simon Josefsson  <jas@extundo.com>
79548
79549         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79550         arcfour_context struct (simplify test vector testing in GNU
79551         Shishi).
79552
79553 2005-10-21  Simon Josefsson  <jas@extundo.com>
79554
79555         * modules/des, modules/des-tests: New files.
79556
79557         * modules/gc-des, modules/gc-des-tests: New files.
79558
79559         * tests/test-des.c, tests/test-gc-des.c: New file.
79560
79561 2005-10-21  Simon Josefsson  <jas@extundo.com>
79562
79563         * modules/arctwo, modules/arctwo-tests: New files.
79564
79565         * tests/test-arctwo.c: New file.
79566
79567         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79568
79569         * tests/test-gc-arctwo.c: New file.
79570
79571 2005-10-21  Simon Josefsson  <jas@extundo.com>
79572
79573         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79574         Bruno Haible <bruno@clisp.org>.
79575
79576         * m4/gc-des.m4: New file.
79577
79578 2005-10-21  Simon Josefsson  <jas@extundo.com>
79579
79580         * m4/arctwo.m4: New file.
79581
79582         * m4/gc-arctwo.m4: New file.
79583
79584 2005-10-21  Simon Josefsson  <jas@extundo.com>
79585
79586         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79587         block.
79588
79589 2005-10-21  Simon Josefsson  <jas@extundo.com>
79590
79591         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79592         <bruno@clisp.org>.
79593
79594         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79595
79596         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79597         Bruno Haible <bruno@clisp.org>.
79598
79599         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79600         <bruno@clisp.org>.
79601
79602 2005-10-21  Simon Josefsson  <jas@extundo.com>
79603
79604         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79605
79606 2005-10-21  Simon Josefsson  <jas@extundo.com>
79607
79608         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79609
79610 2005-10-21  Simon Josefsson  <jas@extundo.com>
79611
79612         * lib/des.h, lib/des.c: New files.
79613
79614         * lib/gc-gnulib.c: Support DES.c
79615
79616 2005-10-21  Simon Josefsson  <jas@extundo.com>
79617
79618         * lib/arctwo.h, lib/arctwo.c: New files.
79619
79620         * lib/gc-gnulib.c: Support ARCTWO.
79621
79622 2005-10-21  Simon Josefsson  <jas@extundo.com>
79623
79624         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79625         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79626
79627 2005-10-21  Simon Josefsson  <jas@extundo.com>
79628
79629         * gnulib-tool (func_import, func_create_testdir): Define automake
79630         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79631         Makefile.am snippet),
79632         suggested by Bruno Haible <bruno@clisp.org>.
79633
79634         * modules/gc (Makefile.am): Use it.
79635
79636 2005-10-21  Bruno Haible  <bruno@clisp.org>
79637
79638         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79639         patch.
79640
79641 2005-10-19  Simon Josefsson  <jas@extundo.com>
79642
79643         * tests/test-gc-rijndael.c: New file.
79644
79645         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79646
79647 2005-10-19  Simon Josefsson  <jas@extundo.com>
79648
79649         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79650         interface too.
79651
79652 2005-10-19  Simon Josefsson  <jas@extundo.com>
79653
79654         * tests/test-gc-arcfour.c: New file.
79655
79656         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79657
79658 2005-10-19  Simon Josefsson  <jas@extundo.com>
79659
79660         * modules/gc-md4, modules/gc-md4-tests: New file.
79661
79662         * tests/test-gc-md4.c: New file.
79663
79664 2005-10-19  Simon Josefsson  <jas@extundo.com>
79665
79666         * m4/gc-md4.m4: New file.
79667
79668 2005-10-19  Simon Josefsson  <jas@extundo.com>
79669
79670         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79671         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79672         <kasal@ucw.cz>.
79673
79674 2005-10-19  Simon Josefsson  <jas@extundo.com>
79675
79676         * m4/gc-arcfour.m4: New file.
79677
79678         * m4/gc-rijndael.m4: New file.
79679
79680 2005-10-19  Simon Josefsson  <jas@extundo.com>
79681
79682         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79683
79684 2005-10-19  Simon Josefsson  <jas@extundo.com>
79685
79686         * lib/gc-gnulib.c: Support ARCFOUR.
79687
79688 2005-10-19  Simon Josefsson  <jas@extundo.com>
79689
79690         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79691         support.
79692
79693         * lib/gc.h: Add ECB enum type.
79694
79695         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79696
79697 2005-10-18  Simon Josefsson  <jas@extundo.com>
79698
79699         * tests/test-md5.c: New file.
79700
79701         * modules/md5-tests: New file.
79702
79703 2005-10-18  Simon Josefsson  <jas@extundo.com>
79704
79705         * tests/test-md4.c: New file.
79706
79707         * modules/md4, modules/md4-tests: New files.
79708
79709 2005-10-18  Simon Josefsson  <jas@extundo.com>
79710
79711         * m4/md4.m4: New file.
79712
79713 2005-10-18  Simon Josefsson  <jas@extundo.com>
79714
79715         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79716
79717 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79718
79719         * gnulib-tool (func_create_testdir): Omit the second check whether
79720         BUILT_SOURCES in nonempty.
79721
79722 2005-10-17  Simon Josefsson  <jas@extundo.com>
79723
79724         * tests/test-rijndael.c: New file.
79725
79726 2005-10-17  Simon Josefsson  <jas@extundo.com>
79727
79728         * modules/sha1: Depend on stdint instead of md5.
79729
79730         * modules/md5: Depend on stdint, remove uint32_t.
79731
79732 2005-10-17  Simon Josefsson  <jas@extundo.com>
79733
79734         * modules/gc-sha1-tests: New file.
79735
79736         * tests/test-gc-sha1.c: New file.
79737
79738 2005-10-17  Simon Josefsson  <jas@extundo.com>
79739
79740         * m4/md5.m4: Remove call to uint32_t.m4.
79741
79742 2005-10-17  Simon Josefsson  <jas@extundo.com>
79743
79744         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79745
79746         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79747         md5.h.
79748
79749         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79750
79751         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79752
79753 2005-10-17  Simon Josefsson  <jas@extundo.com>
79754
79755         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79756
79757 2005-10-17  Simon Josefsson  <jas@extundo.com>
79758
79759         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79760
79761 2005-10-17  Simon Josefsson  <jas@extundo.com>
79762
79763         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79764
79765         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79766
79767 2005-10-17  Bruno Haible  <bruno@clisp.org>
79768
79769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79770         that it can also be used in a test.
79771
79772 2005-10-16  Bruno Haible  <bruno@clisp.org>
79773
79774         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79775         TESTS_ENVIRONMENT, so that individual tests can augment it.
79776
79777         * gnulib-tool (func_create_testdir): Use an intermediate target for
79778         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79779         macros, like $(ALLOCA_H), which cannot be passed through the command
79780         line.
79781
79782 2005-10-15  Simon Josefsson  <jas@extundo.com>
79783
79784         * modules/rijndael-tests: New file.
79785
79786         * modules/rijndael: New file.
79787
79788 2005-10-15  Simon Josefsson  <jas@extundo.com>
79789
79790         * m4/rijndael.m4: New file.
79791
79792 2005-10-15  Simon Josefsson  <jas@extundo.com>
79793
79794         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79795
79796         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79797
79798 2005-10-14  Simon Josefsson  <jas@extundo.com>
79799
79800         * tests/test-arcfour.c: New file.
79801
79802         * modules/arcfour, modules/arcfour-tests: New files.
79803
79804 2005-10-14  Simon Josefsson  <jas@extundo.com>
79805
79806         * m4/arcfour.m4: New file.
79807
79808 2005-10-14  Simon Josefsson  <jas@extundo.com>
79809
79810         * lib/arcfour.h, lib/arcfour.c: New files.
79811
79812 2005-10-14  Roland McGrath  <roland@redhat.com>
79813
79814         Import from libc.  [BZ #1331]
79815         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79816         macro argument.
79817         Reported by Matej Vela <vela@debian.org>.
79818
79819 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79822         include <wchar.h>; no longer needed.
79823
79824 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79827
79828 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79829         and  Ulrich Drepper  <drepper@redhat.com>
79830
79831         Import from libc.
79832         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79833         instead of inline stream orientation test and two separate
79834         function calls.  Pay no attention to USE_IN_LIBIO.
79835
79836 2005-10-13  Simon Josefsson  <jas@extundo.com>
79837
79838         * modules/gc-hmac-md5-tests: New file.
79839
79840         * tests/test-gc-hmac-sha1.c: New file.
79841
79842         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79843
79844         * modules/gc-hmac-md5-tests: New file.
79845
79846         * tests/test-gc-md5.c: New file.
79847
79848         * modules/gc-md5-tests: New file.
79849
79850 2005-10-13  Simon Josefsson  <jas@extundo.com>
79851
79852         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79853         Move memory allocation outside of loop.
79854
79855 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79856
79857         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79858         intermediate directory is in a read-only file system.  Problem
79859         reported by Eric Blake.
79860
79861 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79862
79863         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79864
79865 2005-10-12  Simon Josefsson  <jas@extundo.com>
79866
79867         * tests/test-hmac-sha1.c: New file.
79868
79869         * modules/hmac-sha1-tests: New file.
79870
79871         * modules/hmac-sha1: New file.
79872
79873 2005-10-12  Simon Josefsson  <jas@extundo.com>
79874
79875         * modules/gc-sha1: New file.
79876
79877 2005-10-12  Simon Josefsson  <jas@extundo.com>
79878
79879         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79880
79881         * tests/test-gc-pbkdf2-sha1.c: New file.
79882
79883 2005-10-12  Simon Josefsson  <jas@extundo.com>
79884
79885         * modules/gc-md5, modules/gc-hmac-md5: New files.
79886
79887         * modules/gc (Files): Remove md5, memxor and hmac files.
79888
79889 2005-10-12  Simon Josefsson  <jas@extundo.com>
79890
79891         * m4/gc-pbkdf2-sha1.m4: New file.
79892
79893         * m4/gc-hmac-sha1.m4: New file.
79894
79895         * m4/gc-sha1: New file.
79896
79897         * m4/hmac-sha1.m4: New file.
79898
79899 2005-10-12  Simon Josefsson  <jas@extundo.com>
79900
79901         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79902
79903         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79904
79905 2005-10-12  Simon Josefsson  <jas@extundo.com>
79906
79907         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79908         suggested by Bruno Haible <bruno@clisp.org>.
79909
79910 2005-10-12  Simon Josefsson  <jas@extundo.com>
79911
79912         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79913
79914 2005-10-12  Simon Josefsson  <jas@extundo.com>
79915
79916         * lib/gc-pbkdf2-sha1.c: New file.
79917
79918         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79919
79920 2005-10-12  Simon Josefsson  <jas@extundo.com>
79921
79922         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79923
79924         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79925
79926 2005-10-12  Simon Josefsson  <jas@extundo.com>
79927
79928         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79929         GC_USE_HMAC_MD5, respectively.
79930
79931         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79932         (gc_md5): Fix typo.
79933
79934         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79935
79936         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79937
79938         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79939
79940 2005-10-12  Bruno Haible  <bruno@clisp.org>
79941
79942         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79943         Reported by Stepan Kasal <kasal@ucw.cz>.
79944
79945 2005-10-11  Simon Josefsson  <jas@extundo.com>
79946
79947         * tests/test-crc.c: New file.
79948
79949         * modules/crc, modules/crc-tests: New files.
79950
79951 2005-10-11  Simon Josefsson  <jas@extundo.com>
79952
79953         * m4/crc.m4: New file.
79954
79955 2005-10-11  Simon Josefsson  <jas@extundo.com>
79956
79957         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79958
79959         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79960
79961         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79962
79963 2005-10-11  Simon Josefsson  <jas@extundo.com>
79964
79965         * lib/crc.h, lib/crc.c: New files.
79966
79967         * lib/gc.h (gc_hash_buffer): Add doc.
79968
79969 2005-10-11  Bruno Haible  <bruno@clisp.org>
79970
79971         * modules/c-strcasestr: New file.
79972         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79973
79974 2005-10-11  Bruno Haible  <bruno@clisp.org>
79975
79976         * modules/c-strcase: New file.
79977         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79978
79979 2005-10-11  Bruno Haible  <bruno@clisp.org>
79980
79981         * lib/strcasecmp.c: Include limits.h.
79982         (strcasecmp): Avoid integer overflow on exotic platforms.
79983         * lib/strncasecmp.c: Include limits.h.
79984         (strncasecmp): Avoid integer overflow on exotic platforms.
79985         Reported by Paul Eggert.
79986
79987 2005-10-11  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/c-strcasestr.h: New file, from GNU gettext.
79990         * lib/c-strcasestr.c: New file, from GNU gettext.
79991
79992 2005-10-11  Bruno Haible  <bruno@clisp.org>
79993
79994         * lib/c-strcase.h: New file, from GNU gettext.
79995         * lib/c-strcasecmp.c: New file, from GNU gettext.
79996         * lib/c-strncasecmp.c: New file, from GNU gettext.
79997
79998 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * modules/mempcpy (License): GPL -> LGPL.
80001         * modules/strchrnul (License): Likewise.
80002         * modules/sysexits (License): Likewise.
80003
80004 2005-10-08  Simon Josefsson  <jas@extundo.com>
80005
80006         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80007
80008 2005-10-07  Simon Josefsson  <jas@extundo.com>
80009
80010         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80011
80012 2005-10-06  Simon Josefsson  <jas@extundo.com>
80013
80014         * tests/test-hmac-md5.c: New file.
80015
80016         * modules/hmac-md5-tests: New file.
80017
80018         * modules/hmac-md5: New file.
80019
80020 2005-10-06  Simon Josefsson  <jas@extundo.com>
80021
80022         * m4/hmac-md5.m4: New file.
80023
80024         * m4/memxor.m4: Require gl_C_RESTRICT.
80025
80026 2005-10-06  Simon Josefsson  <jas@extundo.com>
80027
80028         * lib/memxor.c (memxor): Avoid casts and warnings.
80029
80030 2005-10-06  Simon Josefsson  <jas@extundo.com>
80031
80032         * lib/hmac-md5.c: New file.
80033
80034         * lib/hmac.h: New file.
80035
80036 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80039         promotes to int, not unsigned int, to catch the AIX 5.3
80040         compiler bug.
80041
80042 2005-10-05  Simon Josefsson  <jas@extundo.com>
80043
80044         * modules/memxor: New file.
80045
80046         * modules/iconv (Files): Move config.rpath to havelib, it is used
80047         there.
80048
80049         * modules/havelib (Files): Add config.rpath.
80050
80051 2005-10-05  Simon Josefsson  <jas@extundo.com>
80052
80053         * m4/memxor.m4: New file.
80054
80055 2005-10-05  Simon Josefsson  <jas@extundo.com>
80056
80057         * lib/memxor.c (memxor): Fix compiler error.
80058
80059         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80060         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80061
80062         * lib/memxor.h, lib/memxor.c: New files.
80063
80064         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80065         we assume all systems have it, suggested by Jim Meyering
80066         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80067         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80068         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80069         same reasons.
80070
80071 2005-10-05  Simon Josefsson  <jas@extundo.com>
80072
80073         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80074
80075 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80076
80077         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80078         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80079         needed, since the source code now assumes these .h files.
80080
80081 2005-10-05  Derek Price  <derek@ximbiot.com>
80082
80083         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80084
80085 2005-10-05  Bruno Haible  <bruno@clisp.org>
80086
80087         * modules/stdint (License): Change to LGPL.
80088
80089 2005-10-04  Simon Josefsson  <jas@extundo.com>
80090
80091         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80092         D. Baushke" <mdb@gnu.org>.
80093
80094 2005-10-04  Bruno Haible  <bruno@clisp.org>
80095
80096         * lib/verify.h (verify_true): Provide alternative definition for C++.
80097
80098 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80101         (SSIZE_MAX): New macro, if not already defined.
80102         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80103         than 2 GiB.
80104
80105 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80106
80107         Sync from coreutils.
80108         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80109         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80110         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80111         ULLONG_MAX doesn't work with 2.7.2.1.
80112
80113 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80114
80115         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80116         From Ben Pfaff.
80117
80118         * modules/exclude (Depends-on): Depend on verify.
80119         * modules/strtoimax (Depends-on): Likewise.
80120         * modules/utimecmp (Depends-on): Likewise.
80121
80122 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80123
80124         * lib/exclude.c: Include verify.h.
80125         (verify): Remove.  All callers changed to use verify.h's version.
80126         * lib/strtoimax.c: Likewise.
80127         * lib/utimecmp.c: Likewis.e
80128
80129         Sync from coreutils.
80130         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80131         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80132         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80133         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80134         bother returning ENOSYS if settimeofday or stime fails; just let
80135         them return whatever errno they want to return.
80136         * lib/utimens.c: Include unistd.h, for dup2.
80137         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80138         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80139
80140 2005-10-02  Jim Meyering  <jim@meyering.net>
80141
80142         Sync from coreutils.
80143         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80144         from glibc-2.2.5 that fails for read-only files.
80145
80146 2005-10-02  Jim Meyering  <jim@meyering.net>
80147
80148         Sync from coreutils.
80149         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80150         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80151         `#if HAVE_CONFIG_H'.
80152         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80153         Remove AT_FDCWD test.
80154         Do not consume the fd unless successful.
80155         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80156         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80157         block, so that we don't even try to compile it if settimeofday is
80158         available.  This works around a compilation failure on OSF1 V5.1,
80159         due to stime requiring a `long int*' while tv_sec is `int'.
80160
80161 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80162
80163         Sync from coreutils.
80164         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80165         against `yes', rather than just testing for nonempty.
80166
80167 2005-10-01  Simon Josefsson  <jas@extundo.com>
80168
80169         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80170         and Darwin.
80171
80172         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80173         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80174         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80175         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80176         Check if struct addrinfo is declared.
80177
80178 2005-10-01  Simon Josefsson  <jas@extundo.com>
80179
80180         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80181         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80182         AI_* and EAI_* definitions.  Protect function declarations.
80183
80184 2005-10-01  Jim Meyering  <jim@meyering.net>
80185
80186         Sync from coreutils.
80187
80188         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80189         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80190         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80191         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80192         in the inet and nsl libraries.  Required on Solaris 5.7.
80193
80194 2005-10-01  Jim Meyering  <jim@meyering.net>
80195
80196         Sync from coreutils.
80197         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80198         in the inet and nsl libraries.  Required on Solaris 5.7.
80199
80200 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80201
80202         * lib/getdelim.c (getdelim): Remove unused variables.
80203
80204 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80205
80206         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80207         so that the code works even with ancient cpp.  Portability problem
80208         with GCC 2.7.2.1 reported by Thomas M.Ott.
80209
80210 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * modules/regex (Depends-on): Add strcase.
80213
80214         * modules/gethostname (Licence): Change from GPL to LGPL, since
80215         gethostname.c is a trivial implementation of a standard library
80216         function.
80217         * modules/poll (License): Change from GPL to LGPL, since it's
80218         derived from LGPL code.
80219
80220 2005-09-27  Jim Meyering  <jim@meyering.net>
80221
80222         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80223         HAVE_CONFIG_H.
80224
80225         * lib/intprops.h (signed_type_or_expr__): Define.
80226         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80227         for unsigned types.
80228
80229 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * lib/verify.h (verify_expr): Remove, replacing with:
80232         (verify_true): New macro that returns true instead of void.
80233         (verify_type__): Remove.
80234         (verify): Use verify_true rather than verify_type__.
80235
80236 2005-09-26  Bruno Haible  <bruno@clisp.org>
80237
80238         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80239         is necessary.
80240         (lib_SOURCES): Remove mbchar.c.
80241         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80242         (Files): Add m4/mbrtowc.m4.
80243         * modules/mbiter: Likewise.
80244         * modules/mbuiter: Likewise.
80245
80246 2005-09-26  Bruno Haible  <bruno@clisp.org>
80247
80248         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80249         compile mbchar.c if they are not both present.
80250         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80251         * m4/mbiter.m4 (gl_MBITER): Likewise.
80252         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80253         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80254         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80255
80256 2005-09-25  Jim Meyering  <jim@meyering.net>
80257
80258         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80259         also uses socklen_t.
80260
80261 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80262
80263         * lib/utimens.c (ENOSYS): Define if not already defined.
80264         (futimens): Support having a null PATH if the file descriptor
80265         is nonnegative.
80266
80267         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80268         Remove.
80269         (__attribute): Define to empty unless GCC 3.1 or later.
80270         This works around a core dump on OpenBSD 3.4, which has GCC
80271         2.95.3, which dumps core when given __attribute__(()).  It also
80272         simplifies other tests, since we really don't want to bother with
80273         worrying about which ancient version of GCC supported what.
80274         Original problem reported by Yoann Vandoorselaere, with part of
80275         the fix suggested by Derek Price.
80276
80277 2005-09-24  Jim Meyering  <jim@meyering.net>
80278
80279         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80280         so we can once again use a positive bitfield width of 1 -- now we
80281         don't have to explain why we were using a bitfield width of 2.
80282
80283 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80286         and similarly for the other external symbols.  Problem reported
80287         by James Gallager.
80288
80289         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80290         bug reported by Jim Meyering.
80291
80292         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80293         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80294         not needed, since socklen is a prerequisite module.
80295
80296 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80299         Problem reported by Eric Blake.
80300         (getaddrinfo): Initialize se so that it's not garbage.
80301         Redo internal storage allocation so that it doesn't make unportable
80302         assumptions about alignment.
80303         Fix a memory leak.
80304
80305         * lib/utimens.c (futimens): Use futimesat if available.
80306         Prefer it to futimes since it doesn't have the futimes bug.
80307
80308         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80309         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80310         Instead, declare a function that returns a pointer to an array,
80311         and use verify_type__ to declare the size of the array.
80312         Problem and germ of a solution reported by Bruno Haible.
80313         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80314         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80315
80316 2005-09-23  Jim Meyering  <jim@meyering.net>
80317
80318         Sync from coreutils.
80319         Correct build failure (socklen_t not defined) on at least
80320         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80321         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80322
80323 2005-09-23  Jim Meyering  <jim@meyering.net>
80324
80325         * modules/getaddrinfo (Depends-on): Add socklen.
80326
80327 2005-09-23  Bruno Haible  <bruno@clisp.org>
80328
80329         * tests/test-verify.c: New file.
80330
80331 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80332
80333         Sync from coreutils.
80334
80335         * modules/argmatch (Depends-on): Add verify.
80336         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80337         unistd-safer.
80338         * modules/save-cwd (Depends-on): Likewise.
80339
80340         * modules/openat (Files): Add lib/openat-die.c.
80341         (Depends-on): Remove error, exitfail.
80342         Add dirname.
80343
80344         * modules/verify: New file.
80345         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80346         with "verify" module.
80347
80348 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80349
80350         Sync from coreutils.
80351
80352         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80353         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80354         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80355         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80356         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80357         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80358         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80359         Don't bother checking for string.h, stdlib.h, unistd.h.
80360         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80361         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80362         module's job.
80363         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80364         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80365
80366         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80367         (gl_GETDATE): Use it.
80368
80369         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80370
80371 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80372
80373         Sync from coreutils.
80374
80375         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80376         stat-time.h.
80377         * lib/argmatch.h: Include verify.h
80378         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80379         (ARGMATCH_ASSERT): Remove; unused.
80380         * lib/canonicalize.c: Assume STDC_HEADERS.
80381         * lib/exclude.c: Include "strcase.h".
80382         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80383         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80384         and stdio-safer.h.
80385         (getusershell): Call fopen, not fopen_safer.
80386         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80387         Do not include unistd-safer.h.
80388         (save_cwd): Don't call fd_safer; no longer needed
80389         now that we include fcntl--.h.
80390
80391         * lib/getdate.y (relative_time): New type.
80392         (RELATIVE_TIME_0): New constant.
80393         (parser_control): Use relative_time instead of doing it ourselves.
80394         (%union): Add new relative_time rel member.
80395         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80396         Now typeless.
80397         (relunit, relunit_snumber): Now of type rel.
80398         (zone, rel, relunit, get_date): Adjust to above changes.
80399
80400         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80401         Do not include unistd-safer.h.
80402         (getloadavg): Don't call fd_safer; no longer needed
80403         now that we include fcntl--.h.
80404
80405         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80406         (make_dir_parents): Treat ENOSYS like EEXIST.
80407
80408         Improve quality of diagnostics on restore_cwd failure.
80409         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80410         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80411         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80412         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80413         each time through the loop.  Do not diagnose restore_cwd failure;
80414         that is the caller's job (and perhaps the caller does not care).
80415
80416         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80417         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80418         If the file already exists but is not a directory, don't bother
80419         to try to make its parents.
80420         Close potential file descriptor leak if we can't chdir("/") (!).
80421         Don't always return true if chdir($PWD) fails; return true only
80422         if the requested action was done successfully (except for the
80423         chdir($PWD)).
80424         Don't log final directory unless we actually made it.
80425         Refactor to avoid duplicate code to fix up permissions.
80426         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80427
80428         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80429         to make it a bit faster and (I hope) clearer.
80430         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80431         Fix bug in formats like %2N.
80432
80433         * lib/verify.h: New file.
80434
80435 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80436
80437         Sync from coreutils.
80438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80439
80440 2005-09-22  Jim Meyering  <jim@meyering.net>
80441
80442         Sync from coreutils.
80443
80444         * m4/lstat.m4 (gl_FUNC_LSTAT):
80445         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80446         Remove obsolete comment.
80447         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80448         * m4/xstrtod.m4: Likewise.
80449
80450         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80451
80452 2005-09-22  Jim Meyering  <jim@meyering.net>
80453
80454         Sync from coreutils.
80455
80456         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80457
80458         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80459         the .tm_year member, since otherwise gcc-4.0 would now warn about
80460         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80461
80462         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80463         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80464
80465         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80466         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80467         when run in a time zone for which daylight savings time is in effect
80468         for the starting date.
80469
80470         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80471         stop us from restricting permissions of just-created absolute-named
80472         directories.
80473         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80474         to restore initial working directory.
80475         * lib/mkdir-p.c (make_dir_parents): New parameter:
80476         different_working_dir, to tell caller if/when we change the working
80477         directory and are unable to return to the initial one.
80478         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80479         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80480         `return false'.  This fixes a bug introduced on 2004-07-30.
80481
80482         * lib/openat.c (fdopendir): Be sure to close the supplied
80483         file descriptor before returning.  This makes our replacement
80484         implementation a little closer to Solaris's, where fdopendir
80485         ties the file descriptor to the returned DIR* pointer.
80486         * lib/openat.c (unlinkat): New function.
80487         * lib/openat.h (unlinkat): Add prototype.
80488         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80489         (openat_restore_fail): Rename from openat_restore_die.
80490         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80491
80492         Provide an alternative to exiting immediately upon save_cwd or
80493         restore_cwd failure.  Now, an application can arrange e.g.,
80494         to perform a longjump in that case.
80495         * lib/openat.c: Include dirname.h.
80496         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80497         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80498         and openat_restore_die rather than calling error directly.
80499         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80500
80501         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80502         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80503         define.
80504
80505         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80506         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80507                             int utc, int nanoseconds);
80508         Background:
80509         date should not have to allocate a megabyte of virtual memory to
80510         handle a format argument like +%1048575T.  When implemented with
80511         strftime, it must allocate such a buffer, use strftime to fill it
80512         in, print it, then free it.
80513         With fprintftime, it simply prints everything and exits.
80514         With no need for memory allocation, that's one fewer way to fail.
80515         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80516         optional field width, not before, so we accept %9:z, not %:9z.
80517         (my_strftime): Be sure to use L_('x') for literals.
80518
80519         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80520         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80521         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80522         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80523         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80524         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80525         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80526         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80527         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80528         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80529         * lib/xgethostname.c, lib/xreadlink.c:
80530         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80531
80532         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80533         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80534         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80535         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80536         and don't include <sys/file.h>).
80537
80538 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80539
80540         Sync from coreutils.
80541
80542         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80543         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80544         [!LDAV_DONE]: Avoid unused variable warning.
80545
80546 2005-09-21  Bruno Haible  <bruno@clisp.org>
80547
80548         * lib/unicodeio.h (unicode_to_mb): New declaration.
80549
80550 2005-09-20  Derek Price  <derek@ximbiot.com>
80551
80552         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80553         getaddrinfo.h.
80554
80555 2005-09-20  Bruno Haible  <bruno@clisp.org>
80556
80557         * gnulib-tool: Remove trailing slashes from the values specified for
80558         --source-base, --m4-base, --tests-base, --aux-dir.
80559         Suggested by Simon Josefsson <jas@extundo.com>.
80560
80561 2005-09-20  Bruno Haible  <bruno@clisp.org>
80562
80563         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80564         func_modules_to_filelist, func_import, func_create_testdir): Make all
80565         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80566         change when gnulib-tool is invoked in a different locale.
80567
80568 2005-09-19  Simon Josefsson  <jas@extundo.com>
80569
80570         * m4/socklen.m4: Fix typo.
80571
80572 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80573
80574         Use a consistent style for including <config.h>.
80575         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80576         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80577         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80578         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80579         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80580         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80581         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80582         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80583         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80584         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80585         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80586         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80587         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80588         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80589         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80590         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80591         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80592         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80593         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80594         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80595         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80596         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80597         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80598         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80599         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80600         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80601         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80602         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80603         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80604         lib/xstrtoumax.c, lib/yesno.c:
80605         Standardize inclusion of config.h.
80606         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80607         lib/inttostr.h:  Removed inclusion of config.h from header files.
80608         * lib/inttostr.c:  Adjusted in-tree users.
80609         * lib/timespec.h: Remove superfluous warning to include config.h.
80610         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80611         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80612         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80613         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80614         config.h with HAVE_CONFIG_H.
80615
80616 2005-09-19  Jim Meyering  <jim@meyering.net>
80617
80618         * modules/pathmax (License): Change to LGPL.
80619
80620 2005-09-19  Derek Price  <derek@ximbiot.com>
80621
80622         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80623
80624 2005-09-19  Bruno Haible  <bruno@clisp.org>
80625
80626         * gnulib-tool (import): Provide default for --tests-base.
80627
80628 2005-09-19  Bruno Haible  <bruno@clisp.org>
80629
80630         * doc/quote.texi: New file, extracted from gnulib.texi.
80631         * doc/ctime.texi: New file, extracted from gnulib.texi.
80632         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80633         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80634         * doc/gnulib.texi: Include them.
80635
80636 2005-09-18  Bruno Haible  <bruno@clisp.org>
80637
80638         Portability fix.
80639         * gnulib-tool (func_readlink): New function.
80640         (func_ln_if_changed): Use it.
80641
80642 2005-09-18  Bruno Haible  <bruno@clisp.org>
80643
80644         * gnulib-tool: Support --with-tests also with --import.
80645         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80646         (func_import): Use variables $testsbase and $inctests. Emit a
80647         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80648         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80649         SUBDIRS += $testsdir.
80650         (func_create_testdir): Update.
80651
80652 2005-09-18  Bruno Haible  <bruno@clisp.org>
80653
80654         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80655         instead of $dry_run.
80656         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80657         (func_ln_if_changed): Don't handle dry-run here.
80658         (func_import): In dry-run mode, detect more precisely which actions
80659         would be performed, and don't use "...ing" verbs.
80660
80661 2005-09-18  Bruno Haible  <bruno@clisp.org>
80662
80663         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80664         (func_import): Use join on two temporary files instead of three nested
80665         loops, in order to determine which files are new or old.
80666
80667 2005-09-18  Bruno Haible  <bruno@clisp.org>
80668
80669         * gnulib-tool (func_import): Comment out code that spits out the
80670         new files with --dry-run.
80671
80672 2005-09-18  Bruno Haible  <bruno@clisp.org>
80673
80674         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80675
80676 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80677
80678         * lib/stat-time.h: New file.
80679         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80680         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80681         in a different way.
80682         (timespec_cmp): New function.
80683         * lib/utimecmp.c: Include stat-time.h.
80684         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80685         members exist, not on the obsolescent ST_MTIM_NSEC.
80686         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80687
80688 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80689
80690         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80691
80692 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80693
80694         * MODULES.html.sh (File system functions): Add stat-time.
80695         * modules/stat-time: New file.
80696         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80697         is now done in a different way, by the stat-time module.
80698         * modules/utimecmp (Depends-on): Add stat-time.
80699
80700 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80701
80702         * m4/st_mtim.m4: Remove.  Superseded by...
80703         * m4/stat-time.m4: New file.
80704         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80705         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80706
80707 2005-09-15  Derek Price  <derek@ximbiot.com>
80708
80709         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80710
80711 2005-09-15  Derek Price  <derek@ximbiot.com>
80712
80713         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80714         * lib/regex_internal.c: Ditto, using this...
80715         (__GNUC_PREREQ): ...new macro.
80716         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80717         using...
80718         (__GNUC_PREREQ): ...this new macro.
80719
80720         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80721
80722 2005-09-15  Derek Price  <derek@ximbiot.com>
80723             Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80726         changes, consolidating in...
80727         * lib/regex_internal.h: ...this file.
80728
80729 2005-09-13  Jim Meyering  <jim@meyering.net>
80730
80731         * lib/canon-host.c: Filter through gnu indent and reword comments
80732         slightly.
80733         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80734
80735 2005-09-13  Derek Price  <derek@ximbiot.com>
80736
80737         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80738         failure.
80739         Reported by Jim Meyering  <jim@meyering.net>.
80740
80741 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80742
80743         * lib/base64.c: Typo.
80744         (base64_encode): Put b64str in initialized data section.
80745
80746 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80747
80748         Merge glibc and coreutils changes into gnulib, plus a few
80749         extra fixes.
80750         * lib/md5.c: Use #error rather than a string.
80751         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80752         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80753         (__attribute__): Define to empty for non recent-GCC.
80754         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80755         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80756         Renamed from their non-__ counterparts, with new macros replacing
80757         them if not _LIBC.  Add __THROW attribute.
80758         (rol): Remove.
80759         (struct md5_ctx): Align buffer if using GCC.
80760         * lib/sha1.h (struct sha1_ctx): Likewise.
80761         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80762         The old name was backwards.
80763         (NOTSWAP): Remove; not used.
80764         (rol): New macro, moved here from md5.h.
80765         (sha1_process_block): Remove a FIXME that doesn't make sense.
80766
80767 2005-09-12  Derek Price  <derek@ximbiot.com>
80768
80769         Return usable errors from canon-host.
80770         * lib/canon-host.h: New file.
80771         * lib/canon-host.c (canon_host): Wrap...
80772         (canon_host_r): ...this new function, which now relies exclusively on
80773         getaddrinfo.
80774         (ch_strerror): New function.
80775         (last_cherror): New global.
80776         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80777         interface.
80778         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80779         void *.
80780         (freeaddrinfo): Free ai->ai_canonname when set.
80781
80782 2005-09-12  Derek Price  <derek@ximbiot.com>
80783
80784         Make canon-host require getaddrinfo.
80785         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80786         AC_LIBSOURCE canon-host.h.  Call...
80787         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80788         gl_GETADDRINFO.
80789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80790
80791 2005-09-12  Derek Price  <derek@ximbiot.com>
80792
80793         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80794         LGPL.
80795         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80796
80797 2005-09-12  Derek Price  <derek@ximbiot.com>
80798
80799         * lib/gai_strerror.c: Include config.h when available.  Include
80800         getaddrinfo.h before other headers to test interface.
80801         Reported by Larry Jones <lawrence.jones@ugs.com>.
80802
80803 2005-09-12  Derek Price  <derek@ximbiot.com>
80804             Paul Eggert  <eggert@cs.ucla.edu>
80805
80806         * modules/glob (Files): Add glob-libc.h.
80807
80808 2005-09-12  Derek Price  <derek@ximbiot.com>
80809             Paul Eggert  <eggert@cs.ucla.edu>
80810
80811         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80812         glob_.h, glob-libc.h.
80813         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80814
80815 2005-09-12  Derek Price  <derek@ximbiot.com>
80816             Paul Eggert  <eggert@cs.ucla.edu>
80817
80818         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80819         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80820         protecting things that should be done only in gnulib contexts.
80821         * lib/glob_.h: New file, containing only the glob things needed for
80822         gnulib.
80823         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80824         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80825         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80826         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80827         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80828         and to respect the namespace rules better.
80829
80830 2005-09-08  Simon Josefsson  <jas@extundo.com>
80831
80832         * modules/socklen: New file.
80833
80834 2005-09-08  Simon Josefsson  <jas@extundo.com>
80835
80836         * m4/socklen.m4: New file.
80837
80838 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80839
80840         * modules/utimens (Files): Add m4/utimbuf.m4, since
80841         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80842         Reported by Sergey Poznyakoff.
80843
80844 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80847         definitions, since that's the preferred style in glibc.
80848         Fix a minor spacing issue, and update copyright notice to match
80849         glibc's.
80850
80851 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80852
80853         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80854
80855 2005-09-06  Simon Josefsson  <jas@extundo.com>
80856
80857         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80858         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80859
80860 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80861
80862         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80863         warning.
80864
80865 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * config/srclist.txt: Add glibc bug 1302.
80868
80869 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80870
80871         Change bitset word type from unsigned int to unsigned long int,
80872         as this has better performance on typical 64-bit hosts.
80873         Port bitset code to hosts with unusual word sizes.
80874         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80875         (build_collating_symbol):
80876         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80877         argument is a bitset.  This is merely a style issue, but it makes
80878         it clearer that an entire array is expected.
80879         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80880         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80881         Port to the case where bitset_word is not the same as unsigned int.
80882         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80883         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80884         Likewise.
80885         * lib/regexec.c (check_dst_limits_calc_pos_1,
80886         check_subexp_matching_top):
80887         (build_trtable, group_nodes_into_DFAstates):
80888         Likewise.
80889         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80890         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80891         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80892         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80893         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80894         * lib/regcomp.c (optimize_subexps, lower_subexp):
80895         Work even if bitset_word has holes in its bitwise representation.
80896         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80897         * lib/regexec.c (check_dst_limits_calc_pos_1,
80898         check_subexp_matching_top):
80899         Likewise.
80900         * lib/regex_internal.c (re_string_reconstruct):
80901         Don't assume UCHAR_MAX == 255.
80902         * lib/regex_internal.h (bitset_set_all): Likewise.
80903         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80904         All uses changed.
80905         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80906         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80907         All uses changed.
80908         (BITSET_WORD_MAX): New macro.
80909         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80910         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80911         (bitset_empty, bitset_copy):
80912         Prefer sizeof (bitset) to multiplying it out ourselves.
80913         (bitset_not_merge): Remove; unused.
80914         (bitset_contain): Return bool, not unsigned int with one bit on.
80915         All callers changed.
80916         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80917         alignment than re_node_set; do this by defining a new internal
80918         type struct dests_alloc and using it to allocate memory.
80919
80920 2005-09-05  Bruno Haible  <bruno@clisp.org>
80921
80922         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80923         links.
80924
80925 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80926
80927         * modules/size_max (Makefile.am): Add size_max.h
80928
80929 2005-09-04  Derek Price  <derek@ximbiot.com>
80930
80931         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80932
80933 2005-09-03  Simon Josefsson  <jas@extundo.com>
80934
80935         * gnulib-tool: Fix typo.
80936
80937 2005-09-03  Simon Josefsson  <jas@extundo.com>
80938
80939         * config/srclist.txt: Add glibc bug 1293.
80940
80941 2005-09-03  Derek Price  <derek@ximbiot.com>
80942
80943         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80944         From Larry Jones <lawrence.jones@ugs.com>.
80945
80946 2005-09-02  Simon Josefsson  <jas@extundo.com>
80947
80948         * modules/socklen: New file.
80949
80950 2005-09-02  Simon Josefsson  <jas@extundo.com>
80951
80952         * modules/havelib: New module.
80953
80954         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80955         Use havelib.
80956
80957 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80958
80959         Check for arithmetic overflow when calculating sizes, to prevent
80960         some buffer-overflow issues.  These patches are conservative, in the
80961         sense that when I couldn't determine whether an overflow was possible,
80962         I inserted a run-time check.
80963         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80964         macros.
80965         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80966         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80967         (re_xnrealloc, re_x2nrealloc): New inline functions.
80968         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80969         parse_bracket_exp):
80970         (build_equiv_class, build_charclass): Check for arithmetic overflow
80971         in size expression calculations.
80972         * lib/regex_internal.c (re_string_realloc_buffers):
80973         (build_wcs_upper_buffer, re_node_set_add_intersect):
80974         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80975         (re_dfa_add_node, register_state): Likewise.
80976         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80977         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80978         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80979         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80980
80981 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80984         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80985
80986 2005-09-02  Bruno Haible  <bruno@clisp.org>
80987
80988         Support for lib vs. lib64 distinction on biarch platforms.
80989         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80990         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80991         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80992
80993 2005-09-02  Bruno Haible  <bruno@clisp.org>
80994
80995         * gnulib-tool (import): In the other first-use case, provide defaults
80996         as well.
80997
80998 2005-09-02  Bruno Haible  <bruno@clisp.org>
80999
81000         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81001         patches not yet found in the latest gettext release.
81002
81003 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81006         to avoid a collision with bits/local_lim.h in glibc.
81007         All uses changed.  Problem reported by Dmitry V. Levin in
81008         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81009
81010         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81011         bugs in int versus size_t comparisons.
81012         (re_string_context_at): Fix bug where the code assumed that
81013         Idx is signed.
81014
81015         Use bool where appropriate.
81016         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81017         All callers changed.
81018         (calc_eclosure_iter): Likewise, for ROOT arg.
81019         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81020         (build_charclass_op): Likewise, for NON_MATCH arg.
81021         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81022         (re_string_construct_common): Likewise, for ICASE arg.
81023         * lib/regexec.c (re_search_2_stub, re_search_stub):
81024         Likewise, for RET_LEN arg.
81025         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81026         (set_regs): Likewise, for FL_BACKTRACK arg.
81027         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81028         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81029         (calc_eclosure_iter, parse_bracket_exp):
81030         Use bool for internal variables that are booleans.
81031         * lib/regexec.c (re_search_internal, check_matching,
81032         proceed_next_node):
81033         (set_regs, build_sifted_states, sift_states_bkref):
81034         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81035         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81036         (find_collation_sequence_value):
81037         Likewise.
81038         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81039         (re_node_set_compare):
81040         Return bool, not int. All callers changed.
81041         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81042         (build_trtable, check_node_accept): Likewise.
81043         * lib/regex_internal.h: Include stdbool.h.
81044
81045         Fix bugs uncovered when converting to bool.
81046         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81047         failure instead of charging ahead blindly.
81048         * lib/regex_internal.c (register_state): Likewise.
81049         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81050         for freeing internal storage.
81051         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81052         bitset pieces used as boolean, to avoid undefined behavior
81053         on hosts that do int overflow checking.
81054
81055 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81056
81057         * config/srclist.txt: Add glibc bugs 1285-1287.
81058
81059 2005-09-01  Jim Meyering  <jim@meyering.net>
81060
81061         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81062         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81063         Require gl_STAT_MACROS, too.
81064
81065 2005-09-01  Bruno Haible  <bruno@clisp.org>
81066
81067         * gnulib-tool (import): In the first-use case, provide defaults.
81068
81069 2005-09-01  Bruno Haible  <bruno@clisp.org>
81070
81071         * gnulib-tool (func_import): Remove the .tmp files.
81072
81073 2005-09-01  Bruno Haible  <bruno@clisp.org>
81074
81075         * gnulib-tool (func_import): Fix handling of symbolic links.
81076
81077 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81080         old glibc regex code mishandles strings longer than 2**31 bytes.
81081         This patch fixes this when the regex code is used in gnulib
81082         (i.e., outside glibc).
81083
81084         This patch should not affect the use of the regex code inside
81085         glibc.  No doubt this problem also needs to be handled for glibc
81086         as well, but the result will be an incompatible change to the
81087         glibc ABI, and the old ABI will have to be supported too.  That
81088         can be the the subject for another patch.
81089
81090         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81091         governing whether the rest of this patch is active.  By default,
81092         the macro is disabled and the patch has no effect.
81093         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81094         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81095         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81096         (re_match_2, re_set_registers): Use the new types.
81097         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81098         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81099         New macros.
81100         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81101         (re_string_context_at, bin_tree_t, re_dfastate_t):
81102         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81103         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81104         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81105         (re_string_char_size_at, re_string_wchar_at):
81106         (re_string_elem_size_at):
81107         Use the new types and macros to port to 64-bit hosts.
81108         Use unsigned types for internal values, so that the code
81109         mostly works even for arrays larger than SSIZE_MAX.
81110         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81111         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81112         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81113         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81114         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81115         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81116         (calc_inveclosure, parse_dup_op, build_range_exp):
81117         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81118         (fetch_number, create_token_tree, mark_opt_subexp):
81119         Likewise.
81120         * lib/regex_internal.c (re_string_construct_common,
81121         create_ci_newstate):
81122         (create_cd_newstate, re_string_allocate, re_string_construct):
81123         (re_string_realloc_buffers, build_wcs_upper_buffer):
81124         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81125         (re_string_reconstruct, re_string_peek_byte_case):
81126         (re_string_fetch_byte_case, re_string_context_at):
81127         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81128         (re_node_set_init_copy, re_node_set_add_intersect):
81129         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81130         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81131         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81132         (re_acquire_state, re_acquire_state_context, register_state):
81133         Likewise.
81134         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81135         search_cur_bkref_entry):
81136         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81137         (re_search_internal, re_search_2_stub, re_search_stub)
81138         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81139         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81140         (update_cur_sifted_state, check_dst_limits):
81141         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81142         (check_subexp_limits, sift_states_bkref, merge_state_array):
81143         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81144         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81145         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81146         (expand_bkref_cache, check_node_accept_bytes):
81147         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81148         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81149         (acquire_init_state_context, check_halt_node_context):
81150         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81151         (sift_states_backward, clean_state_log_if_needed):
81152         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81153         (find_recover_state, transit_state_sb, transit_state_mb):
81154         (transit_state_bkref, build_trtable, match_ctx_clean):
81155         Likewise.
81156         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81157         to work around an assumption that REG_MISSING is negative.
81158
81159         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81160         (seek_collating_symbol_entry) [defined _LIBC]:
81161         (lookup_collation_sequence_value) [defined _LIBC]:
81162         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81163         Use prototypes rather than old-style function definitions.
81164         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81165         (transit_state_sb) [0]:
81166         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81167
81168         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81169         rm_eo.
81170
81171         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81172         (optimize_subexps, lower_subexp):
81173         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81174         since the signed shift might overflow.  Use 1u<<31 instead.
81175         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81176         Likewise.
81177         * lib/regexec.c (check_dst_limits_calc_pos_1,
81178         check_subexp_matching_top): Likewise.
81179
81180         * lib/regcomp.c (optimize_subexps, lower_subexp):
81181         Use CHAR_BIT rather than 8, for clarity.
81182         * lib/regexec.c (check_dst_limits_calc_pos_1):
81183         (check_subexp_matching_top): Likewise.
81184         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81185         have to worry about portability issues when shifting it left.
81186         Remove no-longer-needed test for table_size > 0.
81187         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81188         in a word, as the resulting behavior is undefined.
81189         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81190         in one case, a <= should have been an <, and in another case the
81191         whole test was missing.
81192         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81193         the standard name CHAR_BIT.
81194         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81195         this is not true on one's complement and signed-magnitude hosts.
81196
81197         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81198         next_last_offset.
81199         (struct re_dfa_t): Remove unused member states_alloc.
81200         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81201
81202 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81205         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81206         and large-file glibc and in 32-bit large-file Solaris.
81207
81208 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81209
81210         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81211         lengths fit in regoff_t; this isn't true if regoff_t is the same
81212         width as size_t.
81213         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81214         (= START + RANGE) instead of RANGE.  This avoids overflow
81215         problems when regoff_t is the same width as size_t.
81216         All callers changed.
81217         (re_search_2_stub): Check for overflow when adding the
81218         sizes of the two strings.
81219         (re_search_stub): Check for overflow when adding START
81220         to RANGE; if it occurs, substitute the extreme value.
81221
81222 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81225
81226 2005-08-31  Jim Meyering  <jim@meyering.net>
81227
81228         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81229         a pointer-to-const.
81230         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81231         (register_state): Likewise.
81232         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81233         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81234         (group_nodes_into_DFAstates): Likewise.
81235
81236 2005-08-31  Jim Meyering  <jim@meyering.net>
81237
81238         * check-module: Add a FIXME comment.
81239
81240 2005-08-31  Eric Blake  <ebb9@byu.net>
81241
81242         * modules/unistd-safer (Files): Add unistd--.h.
81243         * modules/stdio-safer (Files): Add stdio--.h.
81244
81245 2005-08-31  Derek Price  <derek@ximbiot.com>
81246
81247         * lib/getdelim.c (getdelim): Return EOF on EOF.
81248         Reported by Larry Jones <lawrence.jones@ugs.com>.
81249
81250 2005-08-31  Bruno Haible  <bruno@clisp.org>
81251
81252         Avoid unnecessary diffs in the generated lib/Makefile.am.
81253         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81254         the generated files.
81255         (func_import): Don't set cmd.
81256
81257 2005-08-31  Bruno Haible  <bruno@clisp.org>
81258
81259         * lib/strstr.c: Include <stddef.h>, for NULL.
81260         * lib/strcasestr.c: Likewise.
81261         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81262
81263 2005-08-31  Bruno Haible  <bruno@clisp.org>
81264
81265         * gnulib-tool: New option --macro-prefix.
81266         (func_import): Use macro_prefix.
81267         (import): Handle option --macro-prefix.
81268
81269 2005-08-31  Bruno Haible  <bruno@clisp.org>
81270
81271         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81272         Also use new variables cached_lgpl, cached_libtool.
81273
81274 2005-08-31  Bruno Haible  <bruno@clisp.org>
81275
81276         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81277         always instantiating them.
81278
81279 2005-08-31  Bruno Haible  <bruno@clisp.org>
81280
81281         * gnulib-tool (func_import): Read the previous cached settings
81282         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81283         earlier added by gnulib but are now dropped. Warn when a gnulib file
81284         overwrites a non-gnulib file.
81285
81286 2005-08-31  Bruno Haible  <bruno@clisp.org>
81287
81288         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81289         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81290         projects that don't keep autogenerated files in CVS. Put into
81291         actioncmd only the specified modules, not the transitive closure.
81292
81293 2005-08-31  Bruno Haible  <bruno@clisp.org>
81294
81295         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81296         Create directories that shall be filled.
81297         (import): Don't look for gl_* macros in configure.ac. Recurse across
81298         all directories containing a gnulib-cache.m4 files, if meaningful.
81299
81300 2005-08-31  Bruno Haible  <bruno@clisp.org>
81301
81302         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81303         (import): Set seen_libtool when we see gl_LIBTOOL.
81304
81305 2005-08-31  Bruno Haible  <bruno@clisp.org>
81306
81307         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81308         declaration macro definitions from generated gnulib.m4.
81309
81310 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81311
81312         * lib/iconvme.h: Add prototype for iconv_alloc.
81313
81314 2005-08-29  Simon Josefsson  <jas@extundo.com>
81315
81316         * lib/iconvme.c: Fix errno.
81317
81318 2005-08-29  Bruno Haible  <bruno@clisp.org>
81319
81320         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81321         that it works when the directory contains spaces.
81322
81323 2005-08-29  Bruno Haible  <bruno@clisp.org>
81324
81325         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81326
81327 2005-08-29  Bruno Haible  <bruno@clisp.org>
81328
81329         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81330         Emit more advice.
81331
81332 2005-08-29  Bruno Haible  <bruno@clisp.org>
81333         and Stepan Kasal  <kasal@ucw.cz>
81334
81335         * check-module: If more parameters are given, check each of them
81336         separately; add more exceptions, as noted by Jim Meyering.
81337         (check_module): New procedure.
81338         (%exempt_header): Now contains all exceptions.
81339
81340 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81341
81342         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81343
81344 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81345
81346         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81347
81348 2005-08-28  Bruno Haible  <bruno@clisp.org>
81349
81350         * m4/gnulib-tool.m4: New file.
81351
81352 2005-08-27  Jim Meyering  <jim@meyering.net>
81353
81354         * modules/unistd-safer (Files): Add pipe-safer.c.
81355         * modules/fcntl-safer (Files): Add creat-safer.c.
81356
81357 2005-08-27  Jim Meyering  <jim@meyering.net>
81358
81359         * m4/stdlib-safer.m4: New file.  From coreutils.
81360         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81361         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81362         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81363         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81364         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81365
81366 2005-08-27  Jim Meyering  <jim@meyering.net>
81367
81368         * lib/fopen-safer.c: Merge minor changes from coreutils.
81369         * lib/dup-safer.c: Likewise.
81370         * lib/fd-safer.c: Likewise.
81371
81372         Merge from coreutils.
81373         * lib/stdio--.h: New file.
81374         * lib/stdlib--.h: New file.
81375         * lib/mkstemp-safer.c: New file.
81376
81377         GNU tar needs these.
81378         * lib/pipe-safer.c: New file.
81379         * lib/creat-safer.c: New file.
81380         * lib/fcntl--.h (creat): Define to creat_safer.
81381         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81382         * lib/unistd--.h (pipe): Define to pipe_safer.
81383         * lib/unistd-safer.h: Declare pipe_safer.
81384
81385 2005-08-26  Simon Josefsson  <jas@extundo.com>
81386
81387         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81388         Haible <bruno@clisp.org>.
81389
81390 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81391
81392         * lib/regex_internal.h: Remove all references to
81393         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81394         or better.
81395         (bitset_not, bitset_merge, bitset_not_merge):
81396         (bitset_mask, re_string_allocate, re_string_construct):
81397         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81398         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81399         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81400         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81401         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81402         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81403         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81404         (re_acquire_state_context):
81405         Remove unnecessary forward decls.
81406         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81407         Put __attribute at function definition,
81408         now that the function decl has been removed.
81409         * lib/regex_internal.c (re_string_peek_byte_case):
81410         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81411         Likewise.
81412
81413 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81414
81415         * m4/regex.m4: Add AC_PREREQ(2.50).
81416         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81417
81418 2005-08-25  Simon Josefsson  <jas@extundo.com>
81419
81420         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81421         __fsetlocking.
81422
81423 2005-08-25  Simon Josefsson  <jas@extundo.com>
81424
81425         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81426         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81427         GLIBC specific code.
81428
81429 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         Make regex safe for g++.  This fixes one real bug (an "err"
81432         that should have been "*err").  g++ problem reported by
81433         Sam Steingold.
81434         * lib/regex_internal.h (re_calloc): New macro, consistent with
81435         re_malloc etc.  All callers of calloc changed to use re_calloc.
81436         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81437         not int.  All callers changed.
81438         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81439         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81440         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81441         (find_recover_state): Change "err" to "*err"; this fixes what
81442         appears to be a real bug.
81443         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81444         versus int.
81445
81446 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81447
81448         * modules/regex (Depends-on): Add malloc, since the code
81449         assumes that !malloc(0) means failure.
81450
81451 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81452
81453         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81454
81455         alloca modernization/simplification for regex.
81456         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81457         needs to be at the start of the file, and can be moved into
81458         regex_internal.h and simplified.
81459         * lib/regex_internal.h: Include <alloca.h>.
81460         (__libc_use_alloca) [!defined _LIBC]: New macro.
81461         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81462         now works outside glibc.
81463
81464 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         * config/srclist.txt: Add glibc bugs 1241, 1245.
81467
81468 2005-08-25  Jim Meyering  <jim@meyering.net>
81469
81470         * lib/open-safer.c: Include <config.h>.
81471         Otherwise, we'd lose LARGEFILE support in any file using
81472         e.g. "fcntl--.h"
81473
81474 2005-08-25  Bruno Haible  <bruno@clisp.org>
81475
81476         * m4/minmax.m4: Require autoconf 2.52.
81477         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81478         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81479         alternatives of translit over the alphabet.
81480         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81481
81482 2005-08-24  Simon Josefsson  <jas@extundo.com>
81483
81484         * tests/test-getpass.c: New file.
81485
81486 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81489         for GNU regex features.
81490
81491 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81492
81493         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81494         * lib/regex.h (regerror): Likewise.
81495
81496         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81497         requires this.  (The code never needed it.)
81498
81499         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81500         All uses of recently-renamed identifiers changed to use the new,
81501         POSIX-compliant names.  The code will build and run just fine
81502         without these changes, but it's better to eat our own dog food
81503         and use the standard-conforming names.
81504
81505         * lib/regex.h: Fix a multitude of POSIX name space violations.
81506         These changes have an effect only for programs that define
81507         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81508         do not change anything for programs compiled in the normal way.
81509         Also, there is no effect on the ABI.
81510
81511         (_REGEX_SOURCE): New macro.
81512         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81513         defined and _GNU_SOURCE is not; this fixes a name space violation.
81514
81515         Rename the following macros to obey POSIX requirements.
81516         The old names are still visible as macros if _REGEX_SOURCE is defined.
81517         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81518         RE_BACKSLASH_ESCAPE_IN_LISTS.
81519         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81520         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81521         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81522         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81523         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81524         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81525         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81526         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81527         (REG_INTERVALS): renamed from RE_INTERVALS.
81528         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81529         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81530         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81531         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81532         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81533         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81534         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81535         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81536         RE_UNMATCHED_RIGHT_PAREN_ORD.
81537         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81538         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81539         (REG_DEBUG): renamed from RE_DEBUG.
81540         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81541         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81542         unusual, since we can't clash with the POSIX REG_ICASE.
81543         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81544         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81545         (REG_NO_SUB): renamed from RE_NO_SUB.
81546         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81547         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81548         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81549         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81550         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81551         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81552         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81553         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81554         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81555         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81556         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81557         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81558         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81559         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81560         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81561         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81562         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81563         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81564         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81565         (REG_FIXED): Renamed from REGS_FIXED.
81566         (REG_NREGS): Renamed from RE_NREGS.
81567
81568         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81569         of other REG_* macros, since POSIX says the user is allowed to
81570         #undef these macros selectively.
81571
81572         (reg_errcode_t): Update comment stating what other tables need
81573         to be consistent.
81574
81575         Rename the following enum values to obey POSIX requirements.
81576         The old names are still visible as macros.
81577         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81578         is not defined, since GNU is supposed to be a superset of POSIX as
81579         much as possible, and since we want reg_errcode_t to be a signed
81580         type for implementation consistency.
81581         (_REG_NOERROR): Renamed from REG_NOERROR.
81582         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81583         (_REG_BADPAT): Renamed from REG_BADPAT.
81584         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81585         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81586         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81587         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81588         (_REG_EBRACK): Renamed from REG_EBRACK.
81589         (_REG_EPAREN): Renamed from REG_EPAREN.
81590         (_REG_EBRACE): Renamed from REG_EBRACE.
81591         (_REG_BADBR): Renamed from REG_BADBR.
81592         (_REG_ERANGE): Renamed from REG_ERANGE.
81593         (_REG_ESPACE): Renamed from REG_ESPACE.
81594         (_REG_BADRPT): Renamed from REG_BADRPT.
81595         (_REG_EEND): Renamed from REG_EEND.
81596         (_REG_ESIZE): Renamed from REG_ESIZE.
81597         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81598         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81599         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81600         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81601         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81602
81603         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81604         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81605         changed.  But support the old name if the new one is not defined
81606         and if _REGEX_SOURCE.
81607
81608         Change the following member names in struct re_pattern_buffer.
81609         The old names are still supported if !_REGEX_SOURCE.
81610         The new names are always supported, regardless of _REGEX_SOURCE.
81611         (re_buffer): Renamed from buffer.
81612         (re_allocated): Renamed from allocated.
81613         (re_used): Renamed from used.
81614         (re_syntax): Renamed from syntax.
81615         (re_fastmap): Renamed from fastmap.
81616         (re_translate): Renamed from translate.
81617         (re_can_be_null): Renamed from can_be_null.
81618         (re_regs_allocated): Renamed from regs_allocated.
81619         (re_fastmap_accurate): Renamed from fastmap_accurate.
81620         (re_no_sub): Renamed from no_sub.
81621         (re_not_bol): Renamed from not_bol.
81622         (re_not_eol): Renamed from not_eol.
81623         (re_newline_anchor): Renamed from newline_anchor.
81624
81625         Change the following member names in struct re_registers.
81626         The old names are still supported if !_REGEX_SOURCE.
81627         The new names are always supported, regardless of _REGEX_SOURCE.
81628         (rm_num_regs): Renamed from num_regs.
81629         (rm_start): Renamed from start.
81630         (rm_end): Renamed from end.
81631
81632         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81633         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81634         Prepend __ to parameter names.
81635
81636         Undo yesterday's changes.
81637
81638 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81639
81640         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81641         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81642         lib/regex.c.
81643
81644 2005-08-24  Jim Meyering  <jim@meyering.net>
81645
81646         Sync from coreutils.
81647         * m4/fcntl-safer.m4: New file.
81648
81649         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81650         and object files for this module.
81651
81652 2005-08-24  Jim Meyering  <jim@meyering.net>
81653
81654         Sync from coreutils.
81655         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81656
81657 2005-08-24  Jim Meyering  <jim@meyering.net>
81658
81659         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81660         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81661
81662 2005-08-24  Jim Meyering  <jim@meyering.net>
81663
81664         * modules/fcntl-safer: New module.
81665         * modules/fts (Depends-on): Add fcntl-safer.
81666         * MODULES.html.sh (File descriptor based Input/Output):
81667         Add fcntl-safer.
81668
81669 2005-08-24  Bruno Haible  <bruno@clisp.org>
81670
81671         Support for unit test modules.
81672         * modules/README: Mention tests modules.
81673         * modules/TEMPLATE-TESTS: New file.
81674         * gnulib-tool: New options --extract-tests-module, --with-tests and
81675         --tests-base (unused for the moment).
81676         (testsbase, inctests): New variables.
81677         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81678         (func_verify_module): Exclude TEMPLATE-TESTS.
81679         (func_verify_nontests_module, func_verify_tests_module): New functions.
81680         (func_get_dependencies): Add implicit dependency for tests modules.
81681         (func_get_tests_module): New function.
81682         (func_modules_transitive_closure): When --with-tests was specified,
81683         include the unit tests as well, unless explicitly avoided.
81684         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81685         (func_emit_tests_Makefile_am): New function.
81686         (func_create_testdir): When --with-tests was specified, emit a
81687         tests/ directory.
81688         * MODULES.html.sh (Future developments): Update.
81689
81690 2005-08-24  Bruno Haible  <bruno@clisp.org>
81691
81692         * modules/tls-tests: New file.
81693         * tests/test-tls.c: New file, from GNU gettext.
81694
81695 2005-08-24  Bruno Haible  <bruno@clisp.org>
81696
81697         * modules/lock-tests: New file.
81698         * tests/test-lock.c: New file, from GNU gettext.
81699
81700 2005-08-24  Bruno Haible  <bruno@clisp.org>
81701
81702         * lib/lock.h: Add multiple inclusion guard.
81703         * lib/tls.h: Add multiple inclusion guard.
81704
81705 2005-08-24  Bruno Haible  <bruno@clisp.org>
81706
81707         * gnulib-tool: Add support for the --aux-dir option to
81708         --create-testdir, --create-megatestdir, --test, --megatest.
81709         (func_create_testdir, func_create_megatestdir): Optionally emit a
81710         AC_CONFIG_AUX_DIR directive.
81711         (create-testdir, create-megatestdir, test, megatest): Provide a
81712         default value for $auxdir.
81713
81714 2005-08-24  Bruno Haible  <bruno@clisp.org>
81715
81716         * gnulib-tool (import): Use compound statement instead of subshell
81717         where possible.
81718
81719 2005-08-24  Bruno Haible  <bruno@clisp.org>
81720
81721         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81722
81723 2005-08-24  Bruno Haible  <bruno@clisp.org>
81724
81725         * gnulib-tool (func_version): Update.
81726
81727 2005-08-24  Bruno Haible  <bruno@clisp.org>
81728
81729         * gnulib-tool (func_import, func_create_testdir,
81730         func_create_megatestdir): Quote all autoconf macro arguments.
81731
81732 2005-08-24  Bruno Haible  <bruno@clisp.org>
81733
81734         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81735         option --force, because --force causes the aclocal.m4 of each
81736         subdirectory to be newer than the corresponding config.h.in.
81737
81738 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81739
81740         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81741         All contents moved to gl_REGEX.
81742         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81743         assume that it does.
81744
81745 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81746
81747         * lib/regex.h (REG_NOSYS)
81748         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81749         Define, since POSIX requires it as of 2001.
81750         (_REG_ENOSYS)
81751         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81752         New private symbol, used to keep the enum signed in all cases.
81753         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81754         Youngman in
81755         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81756
81757         * lib/regex_internal.c (re_string_skip_chars, register_state):
81758         (calc_state_hash):
81759         Remove forward decls; no longer needed now that we use prototypes.
81760         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81761         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81762         (clean_state_log_if_needed): Likewise.
81763
81764 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81765
81766         * config/srclist.txt: Add glibc bugs 1231-1233.
81767
81768 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81769
81770         Fix problems reported by Sam Steingold in
81771         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81772         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81773         assumed that reg_errcode_t is a signed type, which is not
81774         necessarily true if _XOPEN_SOURCE is not defined.
81775         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81776         since some compilers warn about it otherwise.
81777
81778 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81779
81780         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81781         (init_word_char, create_initial_state, duplicate_node_closure):
81782         (fetch_token, peek_token_bracket, build_range_exp):
81783         (build_collating_symbol): Remove forward decls; no longer needed
81784         now that we use prototypes.
81785
81786         * lib/regcomp.c:
81787         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81788         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81789         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81790         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81791         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81792         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81793         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81794         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81795         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81796         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81797         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81798         (build_charclass, build_charclass_op, fetch_number, create_tree):
81799         (create_token_tree, mark_opt_subexp, duplicate_tree):
81800         Use prototypes rather than old-style definitions.
81801
81802         * lib/regex_internal.c:
81803         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81804         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81805         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81806         (re_string_reconstruct, re_string_peek_byte_case):
81807         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81808         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81809         (re_node_set_init_copy, re_node_set_add_intersect):
81810         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81811         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81812         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81813         (re_acquire_state, re_acquire_state_context, register_state):
81814         (create_ci_newstate, create_cd_newstate, free_state):
81815         Likewise.
81816         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81817         re_search_2):
81818         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81819         (re_search_internal, prune_impossible_nodes):
81820         (acquire_init_state_context, check_matching, static):
81821         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81822         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81823         (update_regs, sift_states_backward, build_sifted_states):
81824         (clean_state_log_if_needed, merge_state_array):
81825         (update_cur_sifted_state, add_epsilon_src_nodes):
81826         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81827         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81828         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81829         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81830         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81831         (check_arrival, check_arrival_add_next_nodes):
81832         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81833         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81834         (check_node_accept_bytes, check_node_accept, extend_buffers):
81835         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81836         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81837         (sift_ctx_init):
81838         Likewise.
81839
81840         * lib/regex_internal.h:
81841         (re_string_allocate, re_string_construct, re_string_reconstruct):
81842         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81843         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81844         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81845         (re_string_context_at, re_string_peek_byte_case):
81846         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81847         is defined, since we now use prototypes always.
81848
81849         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81850         C89 or better.  All uses removed.
81851
81852 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * config/srclist.txt: Add glibc bugs 1220-1227.
81855
81856 2005-08-20  Jim Meyering  <jim@meyering.net>
81857
81858         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81859         of unused local, dfa.
81860
81861 2005-08-20  Bruno Haible  <bruno@clisp.org>
81862
81863         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81864
81865 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81868         (re_node_set_insert_last, re_dfa_add_node):
81869         Rename local variables to avoid GCC shadowing warnings.
81870
81871 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81874         [defined lint]: Suppress bogus uninitialized-variable warnings.
81875
81876         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81877         and let the caller return REG_ESPACE if out of space.  This
81878         removes an uninitialied-variable warning with GCC 4.0.1, and also
81879         avoids taking the address of a local variable.  All callers
81880         changed.
81881
81882 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81883
81884         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81885         $LIBCSRC/posix/regexec.c.
81886         Add glibc bug 1217 for regcomp.c.
81887
81888 2005-08-19  Jim Meyering  <jim@meyering.net>
81889
81890         * lib/regexec.c (proceed_next_node): Redo local variables to
81891         avoid GCC shadowing warnings.
81892
81893 2005-08-18  Bruno Haible  <bruno@clisp.org>
81894
81895         * lib/strstr.c (strstr): Fix return value in multibyte case.
81896         * lib/strcasestr.c (strcasestr): Likewise.
81897
81898 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81901
81902 2005-08-17  Jim Meyering  <jim@meyering.net>
81903
81904         Make the %s format (seconds since the epoch) work for a negative
81905         number and when used with a zero-padded field width, e.g. %015s.
81906
81907         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81908         label so that it precedes the code to set `digits'.  Otherwise,
81909         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81910         print `00-22'.  Now, it prints `-0022', as it should.
81911
81912 2005-08-17  Bruno Haible  <bruno@clisp.org>
81913
81914         * modules/strstr (Files): Add m4/mbrtowc.m4.
81915         (Depends-on): Add mbuiter.
81916
81917 2005-08-17  Bruno Haible  <bruno@clisp.org>
81918
81919         * modules/strcasestr: New file.
81920         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81921         strcasestr.
81922
81923 2005-08-17  Bruno Haible  <bruno@clisp.org>
81924
81925         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81926
81927 2005-08-17  Bruno Haible  <bruno@clisp.org>
81928
81929         * modules/mbuiter: New file.
81930         * MODULES.html.sh (Extended multibyte and wide character utilities):
81931         Add mbuiter.
81932
81933 2005-08-17  Bruno Haible  <bruno@clisp.org>
81934
81935         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81936         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81937
81938 2005-08-17  Bruno Haible  <bruno@clisp.org>
81939
81940         * m4/strcasestr.m4: New file.
81941
81942 2005-08-17  Bruno Haible  <bruno@clisp.org>
81943
81944         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81945         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81946
81947 2005-08-17  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/strcasestr.h: New file.
81950         * lib/strcasestr.c: New file.
81951
81952 2005-08-17  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/strcasecmp.c: Use mbuiter.h.
81955
81956 2005-08-17  Bruno Haible  <bruno@clisp.org>
81957
81958         * lib/mbuiter.h: New file.
81959
81960 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81963         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81964         and gl_GETOPT are both invoked via different paths (as happens
81965         with GNU tar CVS because it uses both argp and getopt), the former
81966         wins.
81967
81968 2005-08-16  Bruno Haible  <bruno@clisp.org>
81969
81970         * modules/tls: New file.
81971         * MODULES.html.sh (Multithreading): Add tls.
81972
81973 2005-08-16  Bruno Haible  <bruno@clisp.org>
81974
81975         * modules/strnlen1: New file.
81976         * MODULES.html.sh (String handling): Add strnlen1.
81977
81978 2005-08-16  Bruno Haible  <bruno@clisp.org>
81979
81980         * modules/strcase (Files): Add m4/mbrtowc.m4.
81981         (Depends-on): Add strnlen1, mbchar.
81982
81983 2005-08-16  Bruno Haible  <bruno@clisp.org>
81984
81985         * modules/mbiter: New file.
81986         * MODULES.html.sh (Extended multibyte and wide character utilities):
81987         Add mbiter.
81988
81989 2005-08-16  Bruno Haible  <bruno@clisp.org>
81990
81991         * modules/mbfile: New file.
81992         * MODULES.html.sh (Extended multibyte and wide character utilities):
81993         Add mbfile.
81994
81995 2005-08-16  Bruno Haible  <bruno@clisp.org>
81996
81997         * modules/mbchar: New file.
81998         * MODULES.html.sh (Extended multibyte and wide character utilities):
81999         New section.
82000
82001 2005-08-16  Bruno Haible  <bruno@clisp.org>
82002
82003         * m4/tls.m4: New file, from GNU gettext.
82004
82005 2005-08-16  Bruno Haible  <bruno@clisp.org>
82006
82007         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82008         always.
82009         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82010
82011 2005-08-16  Bruno Haible  <bruno@clisp.org>
82012
82013         * m4/mbiter.m4: New file.
82014
82015 2005-08-16  Bruno Haible  <bruno@clisp.org>
82016
82017         * m4/mbfile.m4: New file.
82018
82019 2005-08-16  Bruno Haible  <bruno@clisp.org>
82020
82021         * m4/mbchar.m4: New file.
82022
82023 2005-08-16  Bruno Haible  <bruno@clisp.org>
82024
82025         * lib/tls.h: New file, from GNU gettext.
82026         * lib/tls.c: New file, from GNU gettext.
82027
82028 2005-08-16  Bruno Haible  <bruno@clisp.org>
82029
82030         * lib/strnlen1.h: New file.
82031         * lib/strnlen1.c: New file.
82032
82033 2005-08-16  Bruno Haible  <bruno@clisp.org>
82034
82035         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82036         (mbi_init): Update.
82037         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82038         NUL byte, not after it.
82039
82040 2005-08-16  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/strcase.h (strcasecmp): Add note in comments.
82043         * lib/strncasecmp.c: Use code from strcasecmp.c.
82044         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82045         (strcasecmp): Work correctly in multibyte locales.
82046
82047 2005-08-16  Bruno Haible  <bruno@clisp.org>
82048
82049         * lib/mbiter.h: New file.
82050
82051 2005-08-16  Bruno Haible  <bruno@clisp.org>
82052
82053         * lib/mbfile.h: New file.
82054
82055 2005-08-16  Bruno Haible  <bruno@clisp.org>
82056
82057         * lib/mbchar.h: New file.
82058         * lib/mbchar.c: New file.
82059
82060 2005-08-16  Bruno Haible  <bruno@clisp.org>
82061
82062         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82063         the valid ones. Makes the comparison operations transitive:
82064         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82065         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82066
82067 2005-08-15  Simon Josefsson  <jas@extundo.com>
82068
82069         * modules/ssize_t (License): Change to 'unlimited'.
82070
82071         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82072
82073 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82074
82075         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82076         Add comments for each pending glibc patch.
82077
82078 2005-08-15  Bruno Haible  <bruno@clisp.org>
82079
82080         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82081         __cplusplus is defined.
82082
82083 2005-08-14  Jim Meyering  <jim@meyering.net>
82084
82085         Sync from coreutils.
82086
82087         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82088         Use the hash-table-based cycle-detection code not just when
82089         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82090         Reported by James Youngman in
82091         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82092         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82093         FTS_TIGHT_CYCLE_CHECK.
82094         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82095         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82096         once again.
82097         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82098         * lib/fts.c (fd_safer): Remove decl.
82099         Include fcntl--.h rather than unistd-safer.h
82100         (fts_safe_changedir): Don't call fd_safer; no longer needed
82101         now that we include fcntl--.h.
82102
82103 2005-08-12  Simon Josefsson  <jas@extundo.com>
82104
82105         * modules/getndelim2: Use ssize_t module.
82106         * modules/getnline: Likewise.
82107         * modules/safe-read: Likewise.
82108         * modules/xreadlink: Likewise.
82109
82110         * modules/ssize_t: New file.
82111
82112 2005-08-12  Simon Josefsson  <jas@extundo.com>
82113
82114         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82115
82116 2005-08-12  Simon Josefsson  <jas@extundo.com>
82117
82118         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82119         ssize_t.
82120
82121 2005-08-12  Simon Josefsson  <jas@extundo.com>
82122
82123         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82124         readline, getdelim and check_version.
82125         (Support for systems lacking ISO C 99: Sizes of integer types):
82126         Add size_max.
82127
82128 2005-08-12  Bruno Haible  <bruno@clisp.org>
82129
82130         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82131
82132 2005-08-11  Simon Josefsson  <jas@extundo.com>
82133
82134         * modules/readline: New file.
82135
82136         * modules/strnlen (Files): Add strnlen.h.
82137
82138 2005-08-11  Simon Josefsson  <jas@extundo.com>
82139
82140         * m4/readline.m4: New file.
82141
82142 2005-08-11  Simon Josefsson  <jas@extundo.com>
82143
82144         * lib/readline.h, readline.c: New file.
82145
82146 2005-08-11  Simon Josefsson  <jas@extundo.com>
82147
82148         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82149         gl_AVOID.
82150
82151 2005-08-11  Bruno Haible  <bruno@clisp.org>
82152
82153         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82154
82155 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82156
82157         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82158
82159 2005-08-10  Simon Josefsson  <jas@extundo.com>
82160
82161         * tests/test-iconvme.c: New file.
82162
82163 2005-08-10  Simon Josefsson  <jas@extundo.com>
82164
82165         * m4/strnlen.m4: New file.
82166
82167         * m4/strndup.m4: Don't check for strnlen declaration, done in
82168         strnlen.m4.
82169
82170 2005-08-10  Simon Josefsson  <jas@extundo.com>
82171
82172         * lib/strndup.c: Use strnlen.h.
82173
82174         * lib/strnlen.h: New file.
82175
82176 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82177
82178         * README: Typos.
82179
82180 2005-08-02  Simon Josefsson  <jas@extundo.com>
82181
82182         * modules/readline: New file.
82183
82184 2005-08-02  Simon Josefsson  <jas@extundo.com>
82185
82186         * modules/getdelim: New file.
82187
82188         * modules/getline: Rewrite, don't use getndelim2.
82189
82190 2005-08-02  Simon Josefsson  <jas@extundo.com>
82191
82192         * m4/getline.m4: Separate out getdelim stuff into separate module.
82193
82194         * m4/getdelim.m4: New file.
82195
82196 2005-08-02  Simon Josefsson  <jas@extundo.com>
82197
82198         * lib/getline.h, getline.c: Rewrite.
82199
82200         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82201
82202 2005-07-31  Bruno Haible  <bruno@clisp.org>
82203
82204         * lib/lock.h (gl_lock_initializer): New macro.
82205         (gl_lock_define_initialized): Use it.
82206         (gl_rwlock_initializer): New macro.
82207         (gl_rwlock_define_initialized): Use it.
82208         (gl_recursive_lock_initializer): New macro.
82209         (gl_recursive_lock_define_initialized): Use it.
82210
82211 2005-07-30  Karl Berry  <karl@gnu.org>
82212
82213         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82214         Report from Ben Pfaff, regarding getopt.
82215
82216 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82217
82218         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82219         normal way.
82220         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82221         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82222         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82223         (gl_GETOPT): Use the new macros.  Most of the implementation
82224         is moved to the new macros.  This is for programs like Emacs
82225         that don't want all the functionality of gl_GETOPT.
82226
82227 2005-07-26  Bruno Haible  <bruno@clisp.org>
82228
82229         * m4/lock.m4: Update from GNU gettext.
82230
82231 2005-07-26  Bruno Haible  <bruno@clisp.org>
82232
82233         * lib/lock.h: Update from GNU gettext.
82234         * lib/lock.c: Update from GNU gettext.
82235
82236 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82237
82238         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82239         obsolescent AC_TRY_RUN.  Include the default includes files, for
82240         'exit'.
82241
82242 2005-07-24  Bruno Haible  <bruno@clisp.org>
82243
82244         * modules/visibility: New file.
82245         * MODULES.html.sh (Misc): Add visibility.
82246
82247 2005-07-24  Bruno Haible  <bruno@clisp.org>
82248
82249         * m4/visibility.m4: New file.
82250
82251 2005-07-24  Bruno Haible  <bruno@clisp.org>
82252
82253         * doc/visibility.texi: New file.
82254
82255 2005-07-22  Bruno Haible  <bruno@clisp.org>
82256
82257         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82258         $(ALLOCA_H), redundant through BUILT_SOURCES.
82259         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82260         redundant through BUILT_SOURCES.
82261         * modules/byteswap (Makefile.am): Remove explicit dependency on
82262         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82263         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82264         $(FNMATCH_H), redundant through BUILT_SOURCES.
82265         * modules/getopt (Makefile.am): Remove explicit dependency on
82266         $(GETOPT_H), redundant through BUILT_SOURCES.
82267         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82268         redundant through BUILT_SOURCES.
82269         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82270         redundant through BUILT_SOURCES.
82271         * modules/stdbool (Makefile.am): Remove explicit dependency on
82272         $(STDBOOL_H), redundant through BUILT_SOURCES.
82273         * modules/stdint (Makefile.am): Remove explicit dependency on
82274         $(STDINT_H), redundant through BUILT_SOURCES.
82275         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82276         Remove explicit dependency on $(SYSEXITS_H).
82277         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82278
82279 2005-07-18  Simon Josefsson  <jas@extundo.com>
82280
82281         * lib/check-version.c (check_version): Accept identical versions too.
82282
82283 2005-07-18  Bruno Haible  <bruno@clisp.org>
82284
82285         * modules/lock: New file.
82286         * MODULES.html.sh (Multithreading): New section.
82287
82288 2005-07-18  Bruno Haible  <bruno@clisp.org>
82289
82290         * m4/lock.m4: New file, from GNU gettext.
82291
82292 2005-07-18  Bruno Haible  <bruno@clisp.org>
82293
82294         * lib/lock.h: New file, from GNU gettext.
82295         * lib/lock.c: New file, from GNU gettext.
82296
82297 2005-07-18  Bruno Haible  <bruno@clisp.org>
82298
82299         * lib/lock.h (gl_once_t): New type.
82300         (gl_once_define, gl_once): New macros.
82301         * lib/lock.c (fresh_once): New variable.
82302         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82303         functions.
82304
82305 2005-07-16  Simon Josefsson  <jas@extundo.com>
82306
82307         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82308         workaround, suggested by Bruno.
82309
82310 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82311
82312         * modules/xalloc (Depends-on): Add xalloc-die.
82313         * modules/xvasprintf (Depends-on): Add xalloc-die.
82314
82315 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82318         with a minor change.
82319
82320 2005-07-15  Bruno Haible  <bruno@clisp.org>
82321
82322         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82323         When using lib/poll.c, define poll as rpl_poll.
82324
82325 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82326
82327         * modules/argp (Depends-on): Remove unlocked-io.
82328
82329 2005-07-14  Derek Price  <derek@ximbiot.com>
82330
82331         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82332         for glob symlink bug.
82333
82334 2005-07-14  Bruno Haible  <bruno@clisp.org>
82335
82336         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82337         Instead, test for *_unlocked function declarations directly.
82338
82339 2005-07-11  Simon Josefsson  <jas@extundo.com>
82340
82341         * modules/size_max: New file.
82342
82343         * modules/xsize: Depend on size_max module for size_max.m4.
82344
82345 2005-07-11  Simon Josefsson  <jas@extundo.com>
82346
82347         * lib/size_max.h: New file.
82348
82349 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82352         copyright symbol and the year.
82353         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82354         (version_etc_va): Use parameterized copyright notice.
82355         Reword to conform to the current GNU coding standards.
82356
82357 2005-07-11  Karl Berry  <karl@gnu.org>
82358
82359         * doc/gnulib.texi (Quoting): new node.
82360         (Initial import): more info, from Patrice.
82361
82362 2005-07-11  Bruno Haible  <bruno@clisp.org>
82363
82364         * gnulib-tool (func_usage): Document option --avoid.
82365         (Command line options): Handle --avoid.
82366         (func_acceptable): New function.
82367         (func_modules_transitive_closure): Use it.
82368
82369 2005-07-11  Bruno Haible  <bruno@clisp.org>
82370
82371         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82372         Reported by Jim Meyering.
82373
82374 2005-07-10  Bruno Haible  <bruno@clisp.org>
82375
82376         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82377         Needed when size_t is smaller than 'unsigned int'.
82378         Reported by Paul Eggert.
82379
82380 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82381
82382         * modules/argp (Depends-on): Add unlocked-io
82383
82384 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82385
82386         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82387         block of defines.
82388
82389 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82390
82391         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82392         fix now.
82393
82394 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82395         and Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82398         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82399
82400 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * modules/regex (Files): Add lib/regex_internal.c,
82403         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82404         (Depends-on): Add extensions.
82405         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82406
82407 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82408
82409         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82410         pathconf.
82411         * m4/same.m4 (gl_SAME): Likewise.
82412         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82413
82414         * m4/regex.m4: Adjust to new libc regex implementation.
82415         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82416         all the .c and .h parts of (the new) regex.
82417         Quote the m4 stuff better.
82418         Check for RE_ICASE bug of old gnulib.
82419         Check for REG_STARTEND of recent libc.
82420         Rename local variables from jm_* to gl_*.
82421         Quote operand of "test -f".
82422         Say "recent enough" version of libc, not "version 2".
82423         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82424         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82425         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82426         Remove check for btowc, isascii.
82427         Require AM_LANGINFO_CODESET.
82428
82429 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82430
82431         * lib/regex.c, regex.h: Sync from libc.
82432         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82433         * lib/regexec.c:
82434         New files, synced from libc, except that regex_internal.h
82435         currently has a small porting fix.
82436
82437 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82438
82439         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82440         regex_internal.c, regexec.c.
82441         Add regex_internal.h too, but as a comment, since the libc version
82442         is currently broken in gnulib mode.
82443
82444 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         Support programs like Emacs that use gnulib but not gettext.
82447         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82448         * modules/gettext-h: New file.
82449         * modules/gettext (Files): Remove lib/gettext.h.
82450         (Depends-on): Add gettext-h.
82451         (Makefile.am): Remove lib_SOURCES.
82452         * modules/argmatch, modules/c-stack, modules/closeout:
82453         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82454         * modules/execute, modules/file-type, modules/getaddrinfo:
82455         * modules/getopt, modules/human, modules/javacomp:
82456         * modules/javaexec, modules/mkdir-p, modules/obstack:
82457         * modules/openat, modules/pagealign_alloc, modules/pipe:
82458         * modules/quotearg, modules/regex, modules/rpmatch:
82459         * modules/unicodeio, modules/userspec, modules/version-etc:
82460         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82461         * modules/xsetenv:
82462         Depend on gettext-h, not gettext.
82463
82464 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82465
82466         * gnulib-tool (func_import): Add support for 'public domain' license.
82467         * modules/alloca, modules/atexit, modules/memmove:
82468         Now public domain, not GPL.
82469         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82470         * modules/realloc, modules/strerror, modules/strtod:
82471         Now LGPL, not GPL.
82472
82473 2005-07-05  Bruno Haible  <bruno@clisp.org>
82474
82475         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82476         autoconf CVS. Needed for mingw.
82477
82478 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         Remove the dependency of the strftime module on the tzset module.
82481         * modules/strftime (Depends-on): Remove dependency on tzset.
82482
82483 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82484
82485         Remove the dependency of the strftime module on the tzset module.
82486         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82487         gl_FUNC_TZSET_CLOBBER.
82488
82489 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         Remove the dependency of the strftime module on the tzset module.
82492         * lib/strftime.c (my_strftime)
82493         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82494         Copy the input structure, to work around some of the bug with
82495         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82496         Solaris releases, you should also use the tzset module, but we won't
82497         require it as a dependency any more since we don't want LGPLed code
82498         to depend on GPLed code.
82499
82500 2005-07-02  Jim Meyering  <jim@meyering.net>
82501
82502         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82503         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82504         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82505         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82506
82507 2005-07-02  Jim Meyering  <jim@meyering.net>
82508
82509         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82510
82511 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82514         declares only 'struct timespec;' (!).
82515
82516 2005-07-01  Jim Meyering  <jim@meyering.net>
82517
82518         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82519         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82520         * lib/save-cwd.c, tempname.c:
82521         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82522         and don't include <sys/file.h>).
82523
82524 2005-06-29  Jim Meyering  <jim@meyering.net>
82525
82526         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82527         type name.  Use the variable name instead.
82528         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82529         Likewise.
82530
82531 2005-06-28  Simon Josefsson  <jas@extundo.com>
82532
82533         * modules/check-version (Files): Add check-version.m4.
82534
82535 2005-06-28  Simon Josefsson  <jas@extundo.com>
82536
82537         * m4/check-version.m4: New file, suggested by Jim Meyering
82538         <jim@meyering.net>.
82539
82540 2005-06-28  Simon Josefsson  <jas@extundo.com>
82541
82542         * lib/check-version.h, lib/check-version.c: New files.
82543
82544 2005-06-28  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82547         collision with global variable.  Better indentation.  Don't
82548         increment buffer pointer beyond buffer end.  Based on comments
82549         from Paul Eggert <eggert@cs.ucla.edu>.
82550
82551         * lib/base64.h: Indent.
82552
82553 2005-06-28  Simon Josefsson  <jas@extundo.com>
82554
82555         * doc/gnulib.texi (Library version handling): New section.
82556
82557 2005-06-28  Jim Meyering  <jim@meyering.net>
82558
82559         * check-module (find_included_lib_files): Hard-code another
82560         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82561         but modules/fts-lgpl (correctly) does not list those files.
82562
82563         * modules/canonicalize (Files): Add lib/pathmax.h.
82564
82565 2005-06-25  Simon Josefsson  <jas@extundo.com>
82566
82567         * modules/check-version: New file.
82568
82569 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82570
82571         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82572         initializer of struct addrinfo, as an indication that we don't
82573         care how many members the structure has.
82574
82575 2005-06-24  Derek Price  <derek@ximbiot.com>
82576         and Bruno Haible  <bruno@clisp.org>
82577
82578         Remove stat module & update lstat.
82579         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82580         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82581         * m4/stat.m4: Remove this file.
82582
82583 2005-06-24  Derek Price  <derek@ximbiot.com>
82584         and Bruno Haible  <bruno@clisp.org>
82585
82586         Remove stat module & update lstat.
82587         * lib/stat.c: Remove this file...
82588         (slash_aware_lstat): ...moving this content and its support...
82589         * lib/lstat.c (rpl_lstat): ...into here.
82590         * lib/lstat.h: New file.
82591
82592 2005-06-24  Derek Price  <derek@ximbiot.com>
82593         and Bruno Haible  <bruno@clisp.org>
82594
82595         Remove stat module & update lstat.
82596         * config/srclist.txt (libc sources): Remove stat.
82597
82598 2005-06-24  Derek Price  <derek@ximbiot.com>
82599         and Bruno Haible  <bruno@clisp.org>
82600
82601         Remove stat module & update lstat.
82602         * MODULES.html.sh (stat): Remove.
82603         * MODULES.html: Regenerated.
82604         * modules/lstat (Description): Correct function name.
82605         (Files): Add "lstat.h".
82606         (Depends-on): Remove stat, add xalloc, stat-macros.
82607         * modules/stat: Remove this file.
82608         (Include): Add "lstat.h", remove <sys/stat.h>.
82609
82610 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82611
82612         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82613         (ranged_convert): Don't save conversion in a temporary struct.
82614         This causes a warning with GCC 4.0.0, and anyway in the typical
82615         case it's not worth the extra 100 bytes or so of code.
82616         (ranged_convert, __mktime_internal): When calling a function via a
82617         pointer P, use P () rather than (*P) (), as we now assume C89 or
82618         better.
82619
82620 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82621
82622         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82623         "who -r" failed to give output.  Problem reported by Tim Waugh.
82624
82625         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82626         (xcalloc): Use it to avoid needless tests.
82627         Problem reported by Jim Meyering.
82628
82629 2005-06-20  Derek Price  <derek@ximbiot.com>
82630
82631         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82632         unnecessary for Autoconfs > 2.59c.
82633
82634 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82635
82636         * lib/argp.h (__option_is_short): Check upper limit of
82637         __key. Isprint() requires its argument to have the value
82638         of an unsigned char or EOF.
82639
82640 2005-06-16  Jim Meyering  <jim@meyering.net>
82641
82642         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82643         when either N or S is zero.
82644
82645 2005-06-16  Derek Price  <derek@ximbiot.com>
82646
82647         * m4/bison.m4: Declare YACC & YFLAGS precious.
82648
82649 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82650
82651         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82652         multibyte string or pattern, fall back on unibyte matching.
82653         Problem reported by James Youngman.
82654
82655 2005-06-08  Bruno Haible  <bruno@clisp.org>
82656
82657         * modules/csharpcomp: New file.
82658         * MODULES.html.sh (C#): Add csharpcomp.
82659
82660 2005-06-08  Bruno Haible  <bruno@clisp.org>
82661
82662         * m4/csharpcomp.m4: New file, from GNU gettext.
82663
82664 2005-06-08  Bruno Haible  <bruno@clisp.org>
82665
82666         * lib/csharpcomp.h: New file, from GNU gettext.
82667         * lib/csharpcomp.c: New file, from GNU gettext.
82668         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82669
82670 2005-06-08  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82673         warning on mingw.
82674
82675 2005-06-07  Derek Price  <derek@ximbiot.com>
82676
82677         Sync from CVS.
82678         * lib/glob_.h: Indent nested #ifdef.
82679
82680 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82681
82682         Sync from coreutils.
82683         Use "file name" when talking about file names, instead of "filename"
82684         or "path", as per the GNU coding standards.
82685         * lib/mkdir-p.c: Renamed from makepath.c.
82686         (make_dir_parents): Renamed from make_path.  All callers changed.
82687         * lib/mkdir-p.h: Likewise.  All includers changed.
82688         * lib/filenamecat.c: Renamed from path-concat.c.
82689         (file_name_concat): Renamed from path_concat.  All callers changed.
82690         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82691         * lib/filenamecat.h: Likewise.  All includers changed.
82692         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82693         in comments or local variable names.
82694         * lib/basename.c: Likewise.
82695         * lib/canonicalize.c, canonicalize.h: Likewise.
82696         * lib/dirname.c, dirname.h: Likewise.
82697         * lib/euidaccess.c: Likewise.
82698         * lib/exclude.c: Likewise
82699         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82700         * lib/fsusage.c, fsuage.h: Likewise.
82701         * lib/fts.c, fts_.h: Likewise.
82702         * lib/getcwd.c: Likewise.
82703         * lib/getloadavg.c: Likewise.
82704         * lib/mkstemp.c: Likewise.
82705         * lib/mountlist.c, mountlist.h: Likewise.
82706         * lib/openat.c, openat.h: Likewise.
82707         * lib/readlink-stub.c: Likewise.
82708         * lib/readutmp.c, readutmp.h: Likewise.
82709         * lib/rename.c: Likewise.
82710         * lib/rmdir.c: Likewise.
82711         * lib/same.c: Likewise.
82712         * lib/savedir.c: Likewise.
82713         * lib/stripslash.c: Likewise.
82714         * lib/tempname.c: Likewise.
82715         * lib/xreadlink.c: Likewise.
82716         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82717         All uses changed.
82718         * lib/exclude.h: Likewise.
82719
82720         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82721         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82722         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82723         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82724         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82725         files have been getting away with it for years (MORE/BSD 4.3
82726         is extinct now).
82727         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82728         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82729
82730         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82731         Define to 256, not 255, as per modern POSIX.
82732
82733 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         Sync from coreutils.
82736         Use "file name" when talking about file names, instead of "filename"
82737         or "path", as per the GNU coding standards.
82738         * MODULES.html.sh: mkdir-p renamed from makepath.
82739         filenamecat renamed from path-concat.
82740         * modules/filenamecat: Renamed from modules/path-concat.
82741         (Files): filenamecat.h and filenamecat.c renamed from
82742         path-concat.h and path-concat.c.
82743         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82744         (Include): filenamecat.h, not path-concat.h.
82745         * modules/mkdir-p: Renamed from modules/makepath.
82746         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82747         makepath.c.
82748         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82749         (Include): mkdir-p.h, not makepath.h.
82750
82751 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         Sync from coreutils.
82754         * m4/mkdir-p.m4: Renamed from makepath.m4.
82755         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82756         Rename files from makepath.c to mkdir-p.c, and from
82757         makepath.h to mkdir-p.h.
82758         * m4/filenamecat.m4: Renamed from path-concat.m4.
82759         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82760         Rename files from path-concat.c to filenamecat.c,
82761         and from path-concat.h to filenamecat.h.
82762         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82763         "file name" in local variables or comments.
82764         * m4/rename.m4: Likewise.
82765
82766 2005-06-01  Bruno Haible  <bruno@clisp.org>
82767
82768         * modules/csharpexec: New file.
82769         * MODULES.html.sh (C#): New section.
82770
82771 2005-06-01  Bruno Haible  <bruno@clisp.org>
82772
82773         * m4/csharp.m4: New file, from GNU gettext.
82774         * m4/csharpexec.m4: New file, from GNU gettext.
82775
82776 2005-06-01  Bruno Haible  <bruno@clisp.org>
82777
82778         * lib/csharpexec.h: New file, from GNU gettext.
82779         * lib/csharpexec.c: New file, from GNU gettext.
82780         * lib/csharpexec.sh.in: New file, from GNU gettext.
82781
82782 2005-05-31  Derek Price  <derek@ximbiot.com>
82783             Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         Sync from cvs.
82786         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82787
82788 2005-05-31  Derek Price  <derek@ximbiot.com>
82789             Paul Eggert  <eggert@cs.ucla.edu>
82790
82791         Sync from cvs.
82792         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82793
82794 2005-05-29  Derek Price  <derek@ximbiot.com>
82795
82796         * config/srclist.txt (glob_.h, glob.c): Add these files.
82797
82798 2005-05-29  Derek Price  <derek@ximbiot.com>
82799
82800         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82801         * modules/glob: New file.
82802         * modules/getlogin_r: Add link to POSIX spec in description.
82803
82804 2005-05-29  Derek Price  <derek@ximbiot.com>
82805             Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         * m4/glob.m4: New file.
82808
82809 2005-05-29  Derek Price  <derek@ximbiot.com>
82810             Paul Eggert  <eggert@cs.ucla.edu>
82811
82812         * lib/glob_.h, lib/glob.c: New files.
82813
82814 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82815
82816         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82817         * modules/fts-lgpl (Depends-on): Remove gettext.
82818
82819 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82822         and don't require gt_INTTYPES_PRI.
82823
82824 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82825
82826         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82827
82828         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82829         the configuration hassle isn't worth it.
82830         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82831         (LONGEST_MODIFIER, PRIuMAX): Remove.
82832
82833 2005-05-27  Bruno Haible  <bruno@clisp.org>
82834
82835         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82836
82837 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82840         _POSIX_PTHREAD_SEMANTICS for Solaris.
82841
82842 2005-05-25  Derek Price  <derek@ximbiot.com>
82843
82844         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82845
82846 2005-05-25  Derek Price  <derek@ximbiot.com>
82847             Paul Eggert  <eggert@cs.ucla.edu>
82848
82849         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82850         * lib/getlogin_r.c, getlogin_r.h: New files.
82851
82852 2005-05-25  Bruno Haible  <bruno@clisp.org>
82853             Derek Price  <derek@ximbiot.com>
82854
82855         * lib/getlogin_r.h: Simplify API documentation.
82856
82857 2005-05-23  Derek Price  <derek@ximbiot.com>
82858
82859         * modules/minmax (Files): Add m4/minmax.m4.
82860         (configure.ac): Add gl_MINMAX.
82861
82862 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82863
82864         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82865         so that unistd-safer.h (GPL'ed code) need not be included.
82866
82867 2005-05-22  Bruno Haible  <bruno@clisp.org>
82868
82869         * m4/minmax.m4: New file.
82870         Based on a patch by Derek Price <derek@ximbiot.com>.
82871
82872 2005-05-22  Bruno Haible  <bruno@clisp.org>
82873
82874         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82875         (INT64_MIN): Fix definition.
82876         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82877
82878         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82879         NEED_SIGNED_INT_TYPES.
82880
82881         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82882         HAVE_SYSTEM_INTTYPES.
82883
82884 2005-05-22  Bruno Haible  <bruno@clisp.org>
82885
82886         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82887         Also include <sys/param.h> if it defines MIN, MAX.
82888         Based on a patch by Derek Price <derek@ximbiot.com>.
82889
82890 2005-05-21  Jim Meyering  <jim@meyering.net>
82891
82892         * modules/fts (Files): Add m4/inttypes-pri.m4.
82893         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82894
82895 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82896
82897         New fts module.
82898         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82899         (setup_dir, free_dir): New functions.
82900         (enter_dir, leave_dir): Define trivial
82901         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82902         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82903         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82904         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82905         Move to fts-cycle.c.
82906         (fts_open): Use setup_dir.
82907         (fts_close): Use free_dir.
82908         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82909         This adds a label and some gotos, but the alternatives were messier.
82910         Check for memory allocation failure when entering a dir.
82911         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82912         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82913         (FTS): New member fts_cycle, that is a union that contains the
82914         old active_dir_ht and cycle_state.  All uses changed to mention
82915         fts_cycle.ht and fts_cycle.state.
82916         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82917         fts.c, with the following changes:
82918         (setup_dir, free_dir): New functions.
82919         (enter_dir): Now returns bool.  Return true if successful, false
82920         if memory exhausted.  All callers changed.
82921         Do not bother partly cleaning up on
82922         memory allocation failure; that is free_dir's job.
82923         However, free ad if hash_insert fails, to avoid memory leak.
82924         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82925         fts->fts_options to see which union member to use.
82926
82927 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82928
82929         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82930         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82931
82932 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82935
82936 2005-05-20  Jim Meyering  <jim@meyering.net>
82937
82938         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82939         Now a macro, to pacify GCC.
82940
82941 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82942
82943         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82944         of -1.
82945
82946 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82947
82948         * lib/chown.c (rpl_chown): Return -1 on failure.
82949
82950 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82951
82952         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82953         Don't check for stddef.h.
82954         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82955         don't use its results.
82956         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82957         since we include them unconditionally.  Don't require
82958         AM_STDBOOL_H, since stdbool is a prerequisite.
82959         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82960         since we assume C89 or better.
82961         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82962         as we don't use their results.
82963         Don't check for fchdir, memmove, memset, strrchr, as we use
82964         them unconditionally.
82965         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82966         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82967
82968 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82969
82970         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82971         Include <stddef.h> unconditionally, since we assume C89 now.
82972         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82973         * lib/fts.c: Include fts_.h first, to check interface.
82974         Do not include intprops.h; no longer needed.
82975         Include cycle-check.h and hash.h, since fts_.h no longer does.
82976         Remove unnecessary casts of closedir to void.
82977         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82978         decide whether to decrement nlinks.
82979         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82980         (FTS): Use struct hash_table * instead of Hash_table, so that
82981         we no longer need to include hash.h here.
82982
82983 2005-05-18  Jim Meyering  <jim@meyering.net>
82984
82985         * modules/dirfd (License): Change to LGPL.  Most of the code
82986         is already in the public domain.
82987
82988 2005-05-18  Jim Meyering  <jim@meyering.net>
82989
82990         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82991         Reported by Yoann Vandoorselaere.
82992
82993 2005-05-17  Jim Meyering  <jim@meyering.net>
82994
82995         * m4/fts.m4: New file, from coreutils.
82996
82997 2005-05-17  Jim Meyering  <jim@meyering.net>
82998
82999         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83000
83001 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83002
83003         Sync from coreutils.
83004         * m4/unlinkdir.m4: New file.
83005
83006 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83007
83008         Sync from coreutils.
83009         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83010         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83011         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83012         White space changes only.
83013         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83014         special.
83015         * lib/yesno.c: Include getline.h, not ctype.h.
83016         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83017         Use getline to remove arbitrary restriction on response length.
83018
83019 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * config/srclist-update: Spell out "Street" in FSF postal
83022         mail address; this is the style the FSF seems to prefer.
83023
83024         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83025         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83026         this updates FSF postal mail address.
83027
83028         Sync from coreutils.
83029         * modules/unlinkdir: New file.
83030         * modules/yesno (Depends-on): Add getline.
83031         * MODULES.html.sh (File system functions): Add unlinkdir.
83032
83033 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83034
83035         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83036         lib/strsep.h:
83037         Change the initial comment to refer to GPL, not LGPL.
83038         gnulib-tool will change it to LGPL as needed.
83039
83040         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83041         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83042         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83043         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83044         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83045         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83046         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83047         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83048         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83049         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83050         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83051         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83052         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83053         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83054         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83055         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83056         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83057         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83058         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83059         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83060         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83061         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83062         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83063         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83064         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83065         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83066         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83067         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83068         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83069         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83070         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83071         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83072         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83073         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83074         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83075         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83076         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83077         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83078         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83079         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83080         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83081         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83082         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83083         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83084         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83085         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83086         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83087         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83088         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83089         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83090         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83091         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83092         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83093         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83094         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83095         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83096         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83097         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83098         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83099         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83100         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83101         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83102         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83103         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83104         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83105         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83106         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83107         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83108         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83109         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83110         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83111         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83112         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83113         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83114         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83115         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83116         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83117         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83118         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83119         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83120         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83121         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83122         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83123         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83124         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83125         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83126         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83127         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83128         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83129         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83130         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83131         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83132         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83133         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83134         lib/yesno.c, lib/yesno.h:
83135         Update FSF postal mail address.
83136
83137 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83138
83139         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83140         tests/test-memmem.c, tests/test-stpncpy.c:
83141         Update FSF postal mail address.
83142
83143 2005-05-13  Bruno Haible  <bruno@clisp.org>
83144
83145         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83146         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83147         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83148         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83149         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83150         Add support for 64-bit integers in the MSVC compiler.
83151
83152 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83153
83154         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83155
83156 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83157
83158         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83159
83160 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         * doc/getdate.texi (General date syntax): Don't say that date
83163         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83164         Problem reported by Nic Ferrier.
83165
83166 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83167
83168         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83169         specified in ai_socktype. Fix invalid ai_protocol
83170         check. ai_protocol is usually set to 0 or depending on
83171         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83172         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83173         ai_socktype / ai_protocol in the returned addrinfo structure.
83174
83175 2005-05-10  Simon Josefsson  <jas@extundo.com>
83176
83177         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83178         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83179
83180 2005-05-10  Karl Berry  <karl@gnu.org>
83181
83182         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83183         (from http://www.gnu.org/licenses).
83184         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83185         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83186         fdl.texi suffices.
83187
83188 2005-05-10  Karl Berry  <karl@gnu.org>
83189
83190         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83191         (COPYING.DOC): remove.
83192
83193         * config/srclist-update: new FSF address.
83194
83195 2005-05-10  Derek Price  <derek@ximbiot.com>
83196
83197         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83198         possible.
83199
83200 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83201             Bruno Haible  <bruno@clisp.org>
83202
83203         * modules/inet_ntop: New file.
83204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83205         inet_ntop.
83206
83207 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83208             Bruno Haible  <bruno@clisp.org>
83209
83210         * m4/inet_ntop.m4: New file.
83211
83212 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83213             Bruno Haible  <bruno@clisp.org>
83214
83215         * lib/inet_ntop.h: New file.
83216         * lib/inet_ntop.c: New file, from glibc with modifications.
83217
83218 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83219
83220         * modules/time_r (License): Change to LGPL.
83221         * modules/extensions (License): Change to LGPL.  Actually,
83222         the license is more permissive than that, but currently gnulib-tool
83223         doesn't know how to handle more-permissive licenses.
83224
83225         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83226         Problem reported by Dave Love.
83227
83228 2005-05-08  Jim Meyering  <jim@meyering.net>
83229
83230         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83231         blank.
83232
83233 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83234
83235         * modules/argmatch (Depends-on): Add stdbool.
83236         * modules/backupfile (Depends-on): Likewise.
83237         * modules/chdir-long (Depends-on): Likewise.
83238         * modules/closeout (Depends-on): Likewise.
83239         * modules/cycle-check (Depends-on): Likewise.
83240         * modules/dirname (Depends-on): Likewise.
83241         * modules/fnmatch (Depends-on): Likewise.
83242         * modules/fsusage (Depends-on): Likewise.
83243         * modules/fwriteerror (Depends-on): Likewise.
83244         * modules/getcwd (Depends-on): Likewise.
83245         * modules/getloadavg (Depends-on): Likewise.
83246         * modules/hard-locale (Depends-on): Likewise.
83247         * modules/makepath (Depends-on): Likewise.
83248         * modules/mountlist (Depends-on): Likewise.
83249         * modules/nanosleep (Depends-on): Likewise.
83250         * modules/posixtm (Depends-on): Likewise.
83251         * modules/quotearg (Depends-on): Likewise.
83252         * modules/readtokens (Depends-on): Likewise.
83253         * modules/readtokens0 (Depends-on): Likewise.
83254         * modules/readutmp (Depends-on): Likewise.
83255         * modules/save-cwd (Depends-on): Likewise.
83256         * modules/strftime (Depends-on): Likewise.
83257         * modules/userspec (Depends-on): Likewise.
83258         * modules/utimecmp (Depends-on): Likewise.
83259         * modules/xgetcwd (Depends-on): Likewise.
83260         * modules/xnanosleep (Depends-on): Likewise.
83261         * modules/xstrtod (Depends-on): Likewise.
83262         * modules/yesno (Depends-on): Likewise.
83263
83264 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83265
83266         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83267         needless checks.
83268
83269 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83270
83271         Merge from coreutils.  Among other things,
83272         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83273         * lib/fd-safer.c: New file.
83274         * lib/fcntl-safer.h, open-safer.c: Remove.
83275         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83276         * lib/dup-safer.c: Include unistd-safer.h first.
83277         Don't include errno.h.
83278         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83279         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83280         * lib/file-type.c: Rely on file-type.h change.
83281         * lib/getloadavg.c: Include unistd-safer.h.
83282         (getloadavg): Use safer open.
83283         * lib/getusershell.c: Include "stdio-safer.h".
83284         (getusershell): Use safer fopen.
83285         * lib/long-options.c (long_options): Use NULL rather than 0.
83286         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83287         'free'.
83288         * lib/modechange.c: Likewise.
83289         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83290         (MODE_DONE): New constant.
83291         (struct mode_change): Remove 'next' member.
83292         (make_node_op_equals): New function; like the old one of the
83293         same name, except it allocates an array.
83294         (mode_compile, mode_create_from_ref): Use it.
83295         (mode_compile): Allocate result as an array, not a linked list.
83296         Parse octal string ourself, so that we catch mistakes like "+0".
83297         (mode_adjust): Arg is an array, not a linked list.
83298         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83299         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83300         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83301         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83302         Remove.  This is now stat-macros.h's job.
83303         (talloc): Remove.  All callers replaced by xalloc, so that
83304         our invokers don't have to worry about reporting memory failures.
83305         (make_node_op_equals): Remove.
83306         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83307         New constants.
83308         (struct mode_change): Moved here from modechange.h.
83309         (mode_append_entry): Remove.
83310         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83311         apps to have incorrect behavior.  Use simpler algorithm for head
83312         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83313         Detect more invalid usages rather than having somewhat-random behavior.
83314         Don't insert an "a=" action, as that leads to incorrect behavior.
83315         (mode_compile, mode_create_from_ref): Return NULL on error instead
83316         of an enum, since now there's only one way to have an error.  All
83317         callers changed.
83318         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83319         at the correct time.  Simplify calculation of "+u" and its ilk.
83320         Don't mishandle "+X".
83321         (mode_free): Remove "register" and localize decls.
83322         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83323         (struct mode_change): Move to modechange.c; callers don't
83324         need to see this stuff.
83325         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83326         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83327         (mode_change, mode_adjust): Reflect the new signatures noted above.
83328         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83329         that might redefine system include files.
83330         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83331         (my_usleep): Use NULL rather than (void *) 0.
83332         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83333         Use siginterrupt to specify that system calls should be interrupted.
83334         (rpl_nanosleep): Move initialization of suspended closer to call of
83335         my_usleep.
83336         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83337         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83338         (desirable_utmp_entry): New function.
83339         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83340         using x2nrealloc, to simplify logic.
83341         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83342         size calculation.  Do not assume utmp file is a regular file.
83343         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83344         (READ_UTMP_CHECK_PIDS): New constant.
83345         * lib/save-cwd.c: Include unistd-safer.h.
83346         (save_cwd): Use fd_safer.
83347         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83348         [!_LIBC] Include "stat-macros.h" instead.
83349         * lib/unistd-safer.h (fd_safer): New decl.
83350
83351 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83352
83353         * modules/getloadavg (Depends-on): Add unistd-safer.
83354         * modules/getusershell (Depends-on): Add stdio-safer.
83355         * modules/lstat (Depends-on): Remove xalloc.
83356         * modules/mkstemp (Depends-on): Add stat-macros.
83357         * modules/modechange (Depends-on): Remove xstrtol.
83358         Add stat-macros, xalloc.
83359         * modules/save-cwd (Depends-on): Add unistd-safer.
83360         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83361         * modules/unistd-safer (Files): Add lib/fd-safer.c
83362         (Makefile.am): Remove lib_SOURCES.
83363
83364         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83365         Remove fcntl-safer; unistd-safer supersedes it.
83366
83367 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83370         AC_HEADER_STAT.
83371         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83372         (gl_PREREQ_CHOWN): Remove.
83373         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83374         it.  Don't require AC_HEADER_STAT.
83375         (gl_PREREQ_LSTAT): Remove.
83376         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83377         Don't require AC_HEADER_STAT.
83378         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83379         (gl_PREREQ_RMDIR): Remove.
83380         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83381         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83382         the stat-macros module a prerequisite.
83383         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83384         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83385         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83386         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83387         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83388         variable names.
83389         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83390         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83391         variable prefixes.
83392         * m4/fcntl-safer.m4: Remove.
83393         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83394         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83395         Invoke gl_PREREQ_FD_SAFER.
83396         (gl_PREREQ_FD_SAFER): New macro.
83397         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83398         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83399         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83400         Remove duplicate call to AC_LIBOBJ(readutmp).
83401         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83402
83403         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83404         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83405
83406 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * MODULES.html.sh (Misc): Add byteswap.
83409
83410 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83411
83412         * modules/getcwd (Depends-on): Add extensions.
83413         * modules/openat (Depends-on): Likewise.
83414
83415 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83416
83417         * modules/byteswap: New file.
83418
83419 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83420
83421         * m4/byteswap.m4: New file.
83422
83423 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83424
83425         * lib/byteswap_.h: New file.
83426
83427 2005-04-25  Karl Berry  <karl@gnu.org>
83428
83429         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83430
83431 2005-04-25  Albert Chin  <china@thewrittenword.com>
83432
83433         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83434         Toolkit C bug.
83435
83436 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83437
83438         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83439         (func_ln_if_changed): Remove forcibly for no error message
83440         in case file does not exist.
83441
83442 2005-04-19  Simon Josefsson  <jas@extundo.com>
83443
83444         * gnulib-tool (Options): Make --symlink mean --symbolic.
83445
83446 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83447
83448         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83449
83450 2005-04-16  Simon Josefsson  <jas@extundo.com>
83451
83452         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83453
83454 2005-04-15  Simon Josefsson  <jas@extundo.com>
83455
83456         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83457
83458 2005-04-15  Simon Josefsson  <jas@extundo.com>
83459
83460         * gnulib-tool: Rename --symlink to --symbolic.
83461
83462 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83463
83464         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83465         symbolic links to files instead of copying/moving.  Add --aux-dir,
83466         specifying directory relative --dir where auxiliary build tools
83467         are placed.
83468
83469 2005-04-14  Bruno Haible  <bruno@clisp.org>
83470
83471         * modules/allocsa (License): Change to LGPL.
83472         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83473
83474 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83475
83476         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83477         that "UTC +1 second" continues to work.  Problem reported
83478         by Dmitry V. Levin.
83479         (relunit_snumber): New rule.
83480         (relunit): Use it.
83481
83482 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83483
83484         * lib/getdate.y (universal_time_zone_table): New constant.
83485         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83486         universal_time_zone_table.
83487         (lookup_zone): Prefer universal_time_zone_table to
83488         local_time_zone_table, so that "GMT" time stamps are allowed in
83489         London during the summer.  Problem reported by Ian Abbott.
83490
83491 2005-04-12  Jim Meyering  <jim@meyering.net>
83492
83493         * lib/human.c (humblock): Set *options even when returning due to
83494         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83495         warning from gcc-4.
83496
83497 2005-04-09  Jim Meyering  <jim@meyering.net>
83498
83499         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83500         -Wuninitialized: initialize tm0.tm_year.
83501
83502 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83505         count, since there's no maximum.  All uses changed.
83506         Add member dsts_seen.
83507         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83508         not being INT_MAX.
83509         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83510         Use pc_rels_seen to decide whther a date is absolute.
83511
83512         * lib/getdate.y (number): Don't overwrite year.
83513         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83514         check.
83515
83516 2005-04-02  Simon Josefsson  <jas@extundo.com>
83517
83518         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83519         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83520
83521 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83522
83523         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83524         where no absolute path name can be longer than PATH_MAX.
83525
83526 2005-03-27  Jim Meyering  <jim@meyering.net>
83527
83528         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83529
83530 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83531
83532         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83533         "one's complement" -> "ones' complement" in comment, as per Knuth.
83534         "value of type" -> "type or expression" in comment.
83535         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83536
83537 2005-03-26  Jim Meyering  <jim@meyering.net>
83538
83539         Comment nits.
83540         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83541         Correct typos: s/or/of/.
83542
83543 2005-03-26  Jim Meyering  <jim@meyering.net>
83544
83545         * modules/check-include-files: Move to ../ and rename to...
83546         * check-module: ...this.
83547
83548 2005-03-25  Jim Meyering  <jim@meyering.net>
83549
83550         * modules/xvasprintf (Files): Add xalloc.h.
83551
83552 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         * modules/gettext (Files): config/config.rpath ->
83555         build-aux/config.rpath
83556         * modules/iconv (Files): Likewise.
83557         Problem reported by Oskar Liljeblad.
83558
83559 2005-03-23  Jim Meyering  <jim@meyering.net>
83560
83561         * modules/check-include-files: New script to check for
83562         missing dependencies, multiple includes, etc.
83563
83564         * modules/c-strtold (Depends-on): Add xalloc.
83565         * modules/c-strtod (Depends-on): Add xalloc.
83566         * modules/hash (Depends-on): Add xalloc.
83567         (Files): Remove lib/xalloc.h.
83568
83569         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83570         * modules/userspec (Files): Add lib/inttostr.h.
83571
83572 2005-03-23  Jim Meyering  <jim@meyering.net>
83573
83574         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83575
83576 2005-03-22  Jim Meyering  <jim@meyering.net>
83577
83578         * modules/stat-macros: New module.
83579         * modules/canonicalize, modules/euidaccess, modules/file-type,
83580         * modules/filemode, modules/lchown, modules/makepath,
83581         * modules/rmdir, modules/stat: Depend on new stat-macros module
83582         rather than listing lib/stat-macros.h manually.
83583         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83584
83585 2005-03-22  Jim Meyering  <jim@meyering.net>
83586
83587         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83588
83589 2005-03-22  Bruno Haible  <bruno@clisp.org>
83590
83591         * config/srclist.txt: Replace target directory 'config' with
83592         'build-aux'.
83593         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83594         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83595         ../build-aux/.
83596
83597 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83598
83599         * modules/chdir-long (Depends-on): Add mempcpy.
83600
83601         * modules/acl, modules/backupfile, modules/c-strtod,
83602         modules/c-strtold, modules/canon-host, modules/canonicalize,
83603         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83604         modules/exclude, modules/exitfail, modules/file-type,
83605         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83606         modules/getdate, modules/getline, modules/getpagesize,
83607         modules/getpass, modules/getugroups, modules/group-member,
83608         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83609         modules/inttostr, modules/long-options, modules/makepath,
83610         modules/md5, modules/memcasecmp, modules/memcoll,
83611         modules/modechange, modules/mountlist, modules/path-concat,
83612         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83613         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83614         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83615         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83616         modules/strftime, modules/strndup, modules/strverscmp,
83617         modules/timespec, modules/unlocked-io, modules/userspec,
83618         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83619         modules/yesno:
83620         Remove lib_SOURCES line from Makefile.am section, as this is now
83621         done automatically by the corresponding Autoconf macro.
83622
83623 2005-03-21  Jim Meyering  <jim@meyering.net>
83624
83625         Changes imported from coreutils.
83626
83627         * lib/cycle-check.c: Don't include xalloc.h.
83628
83629         * lib/path-concat.c: Don't include assert.h.
83630         (path_concat): Remove assertion that would have triggered
83631         for ABASE starting with more than one slash.
83632         Reported by Andreas Schwab.
83633
83634         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83635         properly when ABASE is an absolute file name.
83636         Correct the description of this function.
83637         Include <assert.h>.
83638         Add an assertion and a test driver.
83639         This fixes a bug introduced on 2004-07-02.
83640         Andreas Schwab reported the resulting failure of cp --parents:
83641         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83642
83643 2005-03-21  Jim Meyering  <jim@meyering.net>
83644
83645         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83646         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83647
83648 2005-03-21  Jim Meyering  <jim@meyering.net>
83649         and  Paul Eggert  <eggert@cs.ucla.edu>
83650
83651         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83652         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83653         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83654         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83655         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83656         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83657         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83658         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83659         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83660         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83661         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83662         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83663         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83664         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83665         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83666         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83667         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83668         for these modules.
83669
83670 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83671
83672         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83673         (which shouldn't happen), generate nothing instead of returning 0
83674         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83675
83676 2005-03-16  Bruno Haible  <bruno@clisp.org>
83677
83678         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83679         HAVE_LONGLONG_64BIT.
83680
83681 2005-03-16  Bruno Haible  <bruno@clisp.org>
83682
83683         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83684         HAVE_LONGLONG_64BIT.
83685
83686 2005-03-16  Bruno Haible  <bruno@clisp.org>
83687
83688         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83689         HAVE_LONGLONG_64BIT.
83690
83691 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83692
83693         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83694         reliably distinguish strftime failure from empty output on POSIX
83695         hosts.
83696
83697 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83700         (iconv_string): Don't guess a size-zero buffer, as that might cause
83701         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83702         result would be 'too large', where 'too large' is (heuristically)
83703         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83704         overflow concerns.  This will prevent some unwanted malloc failures
83705         when the inputs are very large.
83706
83707 2005-03-15  Karl Berry  <karl@gnu.org>
83708
83709         * config/srclist.txt (config.rpath): from gettext.
83710         * config/config.rpath: update.
83711
83712 2005-03-15  Bruno Haible  <bruno@clisp.org>
83713
83714         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83715         to 'negate'.
83716
83717         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83718         variable.
83719
83720         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83721         results.
83722
83723 2005-03-14  Simon Josefsson  <jas@extundo.com>
83724
83725         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83726         <fx@gnu.org>.
83727
83728 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83731         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83732         intprops.h.
83733         * lib/strtol.c: Likewise.
83734
83735 2005-03-14  Jim Meyering  <jim@meyering.net>
83736
83737         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83738         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83739         to be nonzero so that we (and caller) can detect the difference
83740         between a valid zero-length expansion and an error return, even
83741         when the underlying strftime fails before writing anything into
83742         that location.
83743
83744 2005-03-14  Bruno Haible  <bruno@clisp.org>
83745
83746         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83747         Update from GNU gettext 0.14.3.
83748
83749 2005-03-10  Jim Meyering  <jim@meyering.net>
83750
83751         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83752
83753 2005-03-10  Jim Meyering  <jim@meyering.net>
83754
83755         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83756         so that this module works on systems without fchdir.
83757
83758 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83759
83760         Factor int-properties macros into a single file, except for
83761         glibc-related files.
83762         * lib/intprops.h: New file.
83763         * lib/getloadavg.c: Include it instead of limits.h.
83764         (INT_STRLEN_BOUND): Remove.
83765         * lib/human.c: Include intprops.h.
83766         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83767         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83768         302/1000.
83769         * lib/inttostr.h: Include intprops.h instead of limits.h.
83770         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83771         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83772         for consistency with intprops.h.
83773         (time_t_is_integer, twos_complement_arithmetic): Use them.
83774         * lib/sig2str.h: Include <signal.h>, intprops.h.
83775         (INT_STRLEN_BOUND): Remove.
83776         * lib/strftime.c (TYPE_SIGNED): Remove.
83777         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83778         * lib/strtol.c: Adjust comments to match intprops.h.
83779         * lib/userspec.c: Include intprops.h.
83780         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83781         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83782         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83783         instead of rolling our own expressions.
83784         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83785
83786         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83787         instead of int.
83788         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83789         the right thing even if adding 1900 would overflow.  Similarly
83790         for tm_mon + 1 and tm_yday + 1.
83791         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83792         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83793         (DO_SIGNED_NUMBER): New macro.
83794         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83795
83796 2005-03-07  Bruno Haible  <bruno@clisp.org>
83797
83798         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83799
83800 2005-03-07  Bruno Haible  <bruno@clisp.org>
83801
83802         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83803
83804 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83805
83806         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83807         (func_import): Only replace files via --import when they have actually
83808         changed.
83809
83810 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83811
83812         * m4/mmap-anon.m4: New file.
83813         * m4/pagealign_alloc.m4: New file.
83814
83815 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83816             Bruno Haible  <bruno@clisp.org>
83817
83818         * modules/pagealign_alloc: New file.
83819         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83820
83821 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83822             Bruno Haible  <bruno@clisp.org>
83823
83824         * lib/pagealign_alloc.h: New file.
83825         * lib/pagealign_alloc.c: New file.
83826
83827 2005-03-03  Bruno Haible  <bruno@clisp.org>
83828
83829         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83830         Use an all-permissive copyright notice, recommended by RMS.
83831
83832 2005-03-02  Bruno Haible  <bruno@clisp.org>
83833
83834         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83835         of AIX, the replacement has to be done only after <string.h> is
83836         included, therefore not in config.h. stpncpy.h does the replacement,
83837         and stpncpy.c uses it.
83838
83839 2005-03-02  Bruno Haible  <bruno@clisp.org>
83840
83841         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83842         stpncpy.c uses it.
83843
83844 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83845
83846         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83847         The workaround isn't strictly needed for POSIX conformance, and
83848         it's too much of a pain to configure and maintain.  We'll ask
83849         people to fix their kernels instead.
83850         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83851         (NANOSLEEP_BUG_WORKAROUND): Remove.
83852         (xnanosleep): Remove the workaround.
83853
83854 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83855
83856         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83857         Reported by Derek Price.
83858         (Include): Add "timespec.h".
83859
83860         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83861
83862 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83863
83864         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83865         to detect nanosleep bug.
83866
83867 2005-03-01  Bruno Haible  <bruno@clisp.org>
83868
83869         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83870
83871 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * modules/gethrxtime: New file.
83874         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83875         (Depends-on): Add gethrxtime.
83876         (configure.ac): Add gl_XNANOSLEEP.
83877         (Makefile.am): Remove lib_SOURCES line.
83878
83879 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83882         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83883
83884 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83885
83886         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83887         * lib/timespec.h (gettime): Return void, since it always
83888         succeeds now.  All uses changed.
83889         * lib/gettime.c (gettime): Likewise.
83890         [HAVE_NANOTIME]: Prefer nanotime.
83891         Assume gettimeofday succeeds, as POSIX requires.
83892         Assime time () succeeds, since other code already does.
83893         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83894         (timespec_subtract): Remove.
83895         (NANOSLEEP_BUG_WORKAROUND): New constant.
83896         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83897         things considerably.  Use it only on GNU/Linux hosts, since the
83898         workaround shouldn't be needed elsewhere.
83899
83900 2005-02-24  Bruno Haible  <bruno@clisp.org>
83901
83902         * modules/gettext (Files): Add m4/glibc2.m4.
83903
83904 2005-02-24  Bruno Haible  <bruno@clisp.org>
83905
83906         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83907         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83908         * m4/progtest.m4:
83909         Update from GNU gettext 0.14.2.
83910         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83911
83912 2005-02-24  Bruno Haible  <bruno@clisp.org>
83913
83914         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83915         * lib/config.charset: Update from GNU gettext 0.14.2.
83916
83917 2005-02-24  Bruno Haible  <bruno@clisp.org>
83918
83919         * lib/gettext.h: Update from GNU gettext 0.14.2.
83920
83921 2005-02-23  Simon Josefsson  <jas@extundo.com>
83922
83923         * m4/iconvme.m4: New file.
83924
83925 2005-02-23  Jim Meyering  <jim@meyering.net>
83926
83927         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83928         change.
83929         Thanks to Bruno Haible for catching it.
83930
83931 2005-02-22  Simon Josefsson  <jas@extundo.com>
83932
83933         * modules/iconvme: New file.
83934
83935         * MODULES.html.sh: Add iconvme.
83936
83937 2005-02-22  Simon Josefsson  <jas@extundo.com>
83938
83939         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83940
83941 2005-02-22  Simon Josefsson  <jas@extundo.com>
83942
83943         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83944
83945 2005-02-22  Jim Meyering  <jim@meyering.net>
83946
83947         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83948         s/ifndef/ifdef/.
83949
83950 2005-02-20  Neil Conway  <neilc@samurai.com>
83951
83952         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83953         returned by OSX/Darwin if the specified buffer is not large
83954         enough for the hostname.
83955
83956 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83957
83958         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83959         pass it to _help, otherwise the latter coredumps trying to
83960         dereference state.root_argp.
83961
83962 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * modules/chdir-long (Depends-on): Add memrchr.
83965         * modules/memrchr (Files): Add lib/memrchr.h.
83966         (Include): "memrchr.h".
83967
83968 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83971
83972 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83973
83974         * lib/memrchr.h: New file.
83975         * lib/chdir-long.c: Include it.
83976         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83977         Don't bother including stddef.h.
83978
83979 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83980
83981         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83982         inclusion.
83983         Include <sys/types.h>, for dev_t.
83984         (ME_DUMMY, ME_REMOTE): Move from here....
83985         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83986         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83987         Dmitry V. Levin.
83988         Include mountlist.h first, to test the interface.
83989
83990 2005-01-29  Bruno Haible  <bruno@clisp.org>
83991
83992         * lib/progname.c (program_name): Initialize.
83993         Needed when linking statically on MacOS X.
83994
83995 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83996
83997         Sync from coreutils.
83998         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83999         (Depends-on): Add c-strtod.
84000         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84001
84002 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84003
84004         Sync from coreutils.
84005         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84006
84007         Remove files that are specific to coreutils.
84008         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84009
84010 2005-01-28  Bruno Haible  <bruno@clisp.org>
84011
84012         * modules/javacomp: New file.
84013         * MODULES.html.sh (Java): Add javacomp.
84014
84015 2005-01-28  Bruno Haible  <bruno@clisp.org>
84016
84017         * m4/javacomp.m4: New file, from GNU gettext.
84018
84019 2005-01-28  Bruno Haible  <bruno@clisp.org>
84020
84021         * lib/javacomp.sh.in: New file, from GNU gettext.
84022         * lib/javacomp.h: New file, from GNU gettext.
84023         * lib/javacomp.c: New file, from GNU gettext.
84024
84025 2005-01-26  Simon Josefsson  <jas@extundo.com>
84026
84027         * lib/gai_strerror.c: Use GPL in header.
84028
84029 2005-01-26  Bruno Haible  <bruno@clisp.org>
84030
84031         * modules/javaexec: New file.
84032         * MODULES.html.sh (Java): Add javaexec.
84033
84034 2005-01-26  Bruno Haible  <bruno@clisp.org>
84035
84036         * m4/javaexec.m4: New file, from GNU gettext.
84037
84038 2005-01-26  Bruno Haible  <bruno@clisp.org>
84039
84040         * lib/javaexec.sh.in: New file, from GNU gettext.
84041         * lib/javaexec.h: New file, from GNU gettext.
84042         * lib/javaexec.c: New file, from GNU gettext.
84043
84044 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84045
84046         * modules/lchown (Depends-on): Remove lchown.h
84047
84048 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84049
84050         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84051         must be defined if the header file was not found, in order
84052         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84053
84054 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84055
84056         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84057         initializers for struct pentry_state.
84058         (__argp_error): Check return value of __asprintf
84059         (__argp_failure): Translate error message
84060
84061         * lib/argp-parse.c: Removed braces around the expansion of N_()
84062
84063 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84064
84065         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84066         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84067         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84068         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84069         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84070         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84071         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84072         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84073         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84074         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84075         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84076         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84077         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84078         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84079         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84080         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84081         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84082         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84083         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84084         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84085         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84086         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84087         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84088         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84089         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84090         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84091         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84092         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84093         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84094         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84095         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84096         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84097         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84098         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84099         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84100         Use an all-permissive copyright notice, recommended by RMS.
84101
84102 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84103
84104         * modules/chdir-long (Depends-on): Remove mempcpy.
84105
84106 2005-01-21  Jim Meyering  <jim@meyering.net>
84107
84108         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84109         same value as for Solaris 9.
84110
84111         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84112         component length.  This included changing the parameter to be
84113         of type `char *' rather than `char const *'.
84114         * lib/chdir-long.h (chdir_long): Update prototype.
84115
84116         * lib/openat.c (fdopendir, fstatat): New functions.
84117         * lib/openat.h: Include headers required for use of DIR and struct
84118         stat.
84119         [AT_SYMLINK_NOFOLLOW]: Define.
84120         (fdopendir, fstatat): Add prototypes.
84121
84122 2005-01-21  Bruno Haible  <bruno@clisp.org>
84123
84124         * modules/classpath: New file.
84125         * MODULES.html.sh (Java): Add classpath.
84126
84127 2005-01-21  Bruno Haible  <bruno@clisp.org>
84128
84129         * lib/classpath.h: New file, from GNU gettext.
84130         * lib/classpath.c: New file, from GNU gettext.
84131
84132 2005-01-20  Simon Josefsson  <jas@extundo.com>
84133
84134         * modules/version-etc-fsf: New file.
84135
84136 2005-01-20  Simon Josefsson  <jas@extundo.com>
84137
84138         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84139         * lib/version-etc.c: Remove version_etc_copyright.
84140         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84141         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84142
84143 2005-01-20  Simon Josefsson  <jas@extundo.com>
84144
84145         * lib/base64.h (isbase64): Add.
84146
84147         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84148         using a unsigned prototype, don't inline.
84149         (base64_decode): Use it.
84150
84151 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84154         it.
84155
84156 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84157
84158         * lib/save-cwd.c (save_cwd): Remove code to support the case
84159         where fchdir is missing or flaky.
84160
84161 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84162
84163         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84164
84165 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84168         AC_LIBSOURCES now does this.
84169         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84170         with new ullong_max module.
84171
84172 2005-01-19  Bruno Haible  <bruno@clisp.org>
84173
84174         * modules/sh-quote: New file.
84175         * MODULES.html.sh (Executing programs): Add sh-quote.
84176
84177 2005-01-19  Bruno Haible  <bruno@clisp.org>
84178
84179         * lib/sh-quote.h: New file, from GNU gettext.
84180         * lib/sh-quote.c: New file, from GNU gettext.
84181
84182 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         Merge from coreutils.
84185         * m4/ullong_max.m4: New file.
84186         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84187         (gl_MACROS): Assume localeconv exists.
84188
84189 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84190
84191         Merge changes from coreutils, as described below in several
84192         changelogs dated today.
84193
84194         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84195         (O_DIRECTORY): Remove; not needed here, since "." must be
84196         a directory.  All uses removed.
84197         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84198         universal on Suns, and we also need to test for IRIX.
84199         Revamp code to use 'if' rather than '#if'.
84200         Avoid unnecessary comparison of cwd->desc to 0.
84201
84202         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84203         for known valid error numbers rather than observed invalid ones.
84204
84205 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         * modules/ullong_max: New file.
84208
84209         * modules/chdir-long, modules/openat: New files.
84210         * modules/save-cwd (Depends-on): Depend on chdir-long.
84211         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84212
84213 2005-01-18  Jim Meyering  <jim@meyering.net>
84214
84215         Merge from coreutils.
84216         * m4/chdir-long.m4, m4/openat.m4: New files.
84217         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84218         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84219         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84220         is sane and DOES follow symlinks.  Besides, testing 20 different
84221         systems found no broken chown implementations.
84222         Prompted by a change in rsync's copy of this macro.
84223         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84224
84225         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84226
84227         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84228         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84229         NULL-means-set-to-current-time semantics.
84230         Remove temporary file immediately, rather than waiting
84231         for configure's at-exit trap code to do it.
84232
84233 2005-01-18  Jim Meyering  <jim@meyering.net>
84234
84235         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84236
84237         * lib/utimens.c (futimens): Account for the fact that futimes
84238         can also fail with errno == ENOSYS or errno == ENOENT.
84239         Patch from Dmitry V. Levin.
84240
84241         Change the name of the robust chdir function from chdir to chdir_long.
84242         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84243         (restore_cwd): Use chdir_long, not chdir.
84244         * lib/chdir-long.c: Renamed from chdir.c.
84245         * lib/chdir-long.h: Renamed from chdir.h.
84246         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84247         Hurd.
84248
84249 2005-01-18  Bruno Haible  <bruno@clisp.org>
84250
84251         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84252         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84253         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84254         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84255         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84256         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84257         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84258         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84259         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84260         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84261         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84262         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84263         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84264         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84265         Use an all-permissive copyright notice, recommended by RMS.
84266
84267 2005-01-18  Bob Proulx  <bob@proulx.com>
84268
84269         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84270         simplify offsetof() macro construct to avoid compile failure with
84271         native HP-UX 11.0 ANSI C compiler.
84272
84273 2005-01-17  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84276         redundant because stpncpy.m4 takes care of it.
84277
84278 2005-01-17  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84281
84282 2005-01-17  Bruno Haible  <bruno@clisp.org>
84283
84284         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84285         used.
84286
84287 2005-01-17  Bruno Haible  <bruno@clisp.org>
84288
84289         * lib/fwriteerror.h (fwriteerror): Change specification to include
84290         fclose.
84291         * lib/fwriteerror.c: Include <stdbool.h>.
84292         (fwriteerror): At the end, close the file stream. Record whether
84293         stdout was already closed.
84294
84295 2005-01-17  Bruno Haible  <bruno@clisp.org>
84296
84297         * lib/execute.c (environ): Declare if needed.
84298         * lib/pipe.c (environ): Likewise.
84299         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84300
84301 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84302
84303         * modules/argp: Depend on vsnprintf
84304
84305 2005-01-10  Jim Meyering  <jim@meyering.net>
84306
84307         * modules/closeout (Depends-on): Add atexit.
84308
84309 2005-01-06  Bruno Haible  <bruno@clisp.org>
84310
84311         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84312
84313 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84314
84315         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84316         definitions to be after all include files, to avoid collisions.
84317         Problem reported by Bob Proulx.
84318
84319 2005-01-04  Jim Meyering  <jim@meyering.net>
84320
84321         Changes imported from coreutils.
84322         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84323         as the mkstemp template, use a temporary directory and an
84324         8.3-friendly template to avoid trouble on systems like DJGPP.
84325         Reported by Juan M. Guerrero via Stepan Kasal.
84326         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84327         close. Remove the temporary directory right away, rather than waiting
84328         for configure's at-exit trap code to do it.
84329         Suggestion from Stepan Kasal.
84330
84331 2005-01-01  Simon Josefsson  <jas@extundo.com>
84332
84333         * gnulib-tool: Print #include directives when --import'ing.
84334
84335 2004-12-28  Simon Josefsson  <jas@extundo.com>
84336
84337         * tests/test-base64.c: Include required header files.  Remove
84338         unused variables.
84339
84340 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * modules/error (Depends-on): Remove gettext.
84343
84344 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84345
84346         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84347         not needed.  This removes a dependency on the gettext module.
84348         [defined _LIBC]: Do not include <libintl.h>; not needed.
84349
84350 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84353         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84354
84355 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84358         HAVE_DECL_STRTOLD.
84359
84360 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84361
84362         * modules/getdate (Depends-on): Remove alloca-opt.
84363
84364 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84365
84366         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84367
84368 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84369
84370         * lib/argp-parse.c: Include <stddef.h>.
84371         (alignof, alignto): New macros.
84372         (parser_init): Don't assume that void * is aligned sufficiently
84373         for struct option.
84374
84375         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84376         need to extend the stack.
84377         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84378         large.
84379
84380 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84381
84382         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84383
84384 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84385
84386         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84387         (2004-10-24) change.  Apparently this was a false alarm.
84388
84389         * modules/getdate: Depend on alloca-opt, not alloca.
84390
84391 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84392
84393         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84394         Remove now-obsolete comment about AIX.
84395         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84396         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84397         (YYMAXDEPTH): New macro.
84398
84399 2004-12-18  Simon Josefsson  <jas@extundo.com>
84400
84401         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84402
84403 2004-12-18  Bruno Haible  <bruno@clisp.org>
84404
84405         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84406
84407 2004-12-18  Bruno Haible  <bruno@clisp.org>
84408
84409         * lib/fatal-signal.c (fatal_signals): Make non-const.
84410         (init_fatal_signals): New function.
84411         (uninstall_handlers, install_handlers): Ignore signals that were set to
84412         SIG_IGN.
84413         (at_fatal_signal): Call init_fatal_signals.
84414         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84415         SIG_IGN.
84416         Reported by Paul Eggert.
84417
84418 2004-12-18  Bruno Haible  <bruno@clisp.org>
84419
84420         * doc/alloca.texi: New file.
84421         * doc/alloca-opt.texi: New file.
84422
84423 2004-12-17  Jim Meyering  <jim@meyering.net>
84424
84425         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84426         Otherwise, install-sh could exit with improper exit status when
84427         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84428
84429 2004-12-16  Simon Josefsson  <jas@extundo.com>
84430
84431         * tests/test-base64.c: Add license.
84432
84433 2004-12-15  Stepan Kasal  <address@hidden>
84434
84435         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84436
84437 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         * modules/getcwd (Files): Add m4/d-ino.m4.
84440         Suggested by Mark D. Baushke.
84441
84442 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * lib/getdate.y (textint): New member "negative".
84445         (time_zone_hhmm): New function.
84446         Expect 14 shift-reduce conflicts, not 13.
84447         (o_colon_minutes): New rule.
84448         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84449         (yylex): Set the "negative" member of signed numbers.
84450
84451 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84452
84453         * doc/getdate.texi (Time of day items, Time zone items):
84454         Describe new formats +00:00, UTC+00:00.
84455
84456 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84459         spurious "-l"s.  Problem reported by Stepan Kasal.
84460
84461 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84462
84463         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84464         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84465
84466 2004-12-04  Simon Josefsson  <jas@extundo.com>
84467
84468         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84469         Vandoorselaere <yoann@prelude-ids.org>.
84470
84471 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84472
84473         Changes imported from coreutils.
84474         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84475         exist.
84476         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84477
84478 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         Changes imported from coreutils.
84481         * lib/hard-locale.c: Assume <locale.h> exists.
84482         Include "strdup.h".
84483         (GLIBC_VERSION): New macro.
84484         (hard_locale): Assume setlocale exists.
84485         Rewrite to avoid #ifdef.
84486         Use strdup rather than malloc + strcpy.
84487         * lib/human.c: Assume <locale.h> exists.
84488         (human_readable): Assume localeconv exists.
84489
84490 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84491
84492         * modules/hard-locale (Depends-on): Add strdup.
84493
84494 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84495
84496         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84497         convert T2, not T.  (Imported from libc.)
84498
84499 2004-11-30  Simon Josefsson  <jas@extundo.com>
84500
84501         * modules/restrict (License): Change to LGPL.
84502
84503 2004-11-30  Simon Josefsson  <jas@extundo.com>
84504
84505         * m4/restrict.m4: Add copyright and copying conditions.
84506
84507 2004-11-30  Simon Josefsson  <jas@extundo.com>
84508
84509         * m4/base64.m4: New file.
84510
84511 2004-11-30  Simon Josefsson  <jas@extundo.com>
84512
84513         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84514         base64.
84515
84516         * tests/test-base64.c: New file.
84517
84518         * modules/base64: New file.
84519
84520 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84523         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84524
84525         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84526
84527 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84530         (__getcwd.c): Don't restore errno; glibc doesn't.
84531         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84532         first, falling back to our code only if its results look suspicious.
84533         Ensure that the resulting buffer is only as large as necessary.
84534
84535         * lib/readutmp.c: Include readutmp.h first.
84536         Include <errno.h>, since readutmp.h no longer does that.
84537         * lib/readutmp.h: Don't include <errno.h>,
84538         <sys/param.h>, <time.h>; not needed to establish interface.
84539         (errno): Remove decl.
84540         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84541         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84542         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84543
84544 2004-11-28  Simon Josefsson  <jas@extundo.com>
84545
84546         * lib/base64.h, base64.c: New file.
84547
84548 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84549
84550         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84551
84552 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84555         (Depends-on): Remove pathmax, same.  Add mempcpy.
84556         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84557         (Makefile.am): Append getcwd.h to lib_SOURCES.
84558         (Include): Add getcwd.h.
84559         (Maintainer): Change from Jim Meyering to "all, glibc",
84560         since getdate now uses intended-for-glibc code.
84561         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84562         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84563
84564 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84565
84566         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84567         HP's ANSI C compiler.
84568         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84569         Declaring int functions causes warnings on some modern systems and
84570         shouldn't be needed to compile on ancient ones.
84571         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84572         defined.
84573
84574         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84575         with the following changes.
84576         (__set_errno): Parenthesize properly.
84577         Include <stdbool.h>.
84578         (MIN, MAX, MATCHING_INO): New macros.
84579         (__getcwd): Define with prototype, not K&R form.
84580         Use heuristics to allocate default buffer on stack if possible.
84581         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84582         behavior, and to avoid the PATH_MAX limit when computing
84583         ../../../../...
84584         Use MATCHING_INO to compare inode number to file.
84585         Check for arithmetic overflow in size calculations.
84586         Fix bug in reallocation of dot array that caused getcwd to fail
84587         on directories nested deeper than 75.
84588         Be more careful about saving errno on error.
84589         Do not use realloc; use only free+malloc, as this is a bit
84590         more flexible and avoids a needless copy operation.
84591         Do not inspect st_dev and st_ino for symbolic links; POSIX
84592         doesn't specify the latter.
84593         Check for closedir errors.
84594         Avoid needless casts.
84595         Use "#ifdef weak_alias" around weak_alias, to be like other
84596         glibc code.
84597         The following changes to getcwd.c have effect only when used in
84598         gnulib; they have no effect inside glibc proper.
84599         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84600         as alloca isn't used.
84601         (alloca, __alloca): Likewise.
84602         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84603         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84604         unconditionally, as gnulib assumes C89 or better.
84605         Do not include <sys/param.h>.
84606         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84607         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84608         better.
84609         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84610         Include <dirent.h> in a way that is compatible with modern Autoconf.
84611         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84612         New macros, if not already defined.
84613         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84614         Use "_LIBC", not "defined _LIBC", for consistency.
84615         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84616         a mempcpy module.
84617         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84618         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84619         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84620         credit only to Jim Meyering and adjust the copyright dates.
84621         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84622         <stdlib.h>, <unistd.h>, "pathmax.h".
84623         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84624         (INITIAL_BUFFER_SIZE): Remove.
84625         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84626
84627 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84628
84629         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84630         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84631         Use the _ONCE methods, for efficiency.
84632         Check for fcntl.h.  In test program, include <errno.h>
84633         and <fcntl.h> if available.  Remove old K&R cruft from
84634         test program.  Check for common errors in GNU/Linux,
84635         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84636         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84637         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84638         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84639         name accordingly.
84640         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84641         accommodate new getcwd.c.
84642         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84643         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84644         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84645         that's all we need now.
84646
84647 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84648
84649         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84650         argp-parse.c depends on getopt internals, that means we should
84651         always use our getopt, to be on the safe side.
84652         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84653         order not to spoil the result of an eventual previous invocation
84654         of gl_GETOPT_SUBSTITUTE.
84655
84656 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84657
84658         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84659         redefinition warnings. To avoid them, include the defines
84660         in `#if !defined __need_getopt ... #endif'. The only place
84661         where __getopt_argv_const is used is in definitions
84662         of getopt_long and getopt_long_only below, which are as well
84663         protected by `#ifndef __need_getopt'.
84664         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84665         __need_getopt after including <stdio.h> and <unistd.h> These
84666         headers might have defined it.
84667
84668 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84671
84672 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84673
84674         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84675         (futimens): New function, which uses futimes if available.
84676         (futimens, utimens): Support timespec==NULL, with same semantics
84677         as utime and utimens.
84678         * lib/utimens.h (futimens): New decl.
84679
84680 2004-11-23  Jim Meyering  <jim@meyering.net>
84681
84682         * lib/getopt_.h: Remove trailing blanks.
84683
84684 2004-11-23  Jim Meyering  <jim@meyering.net>
84685
84686         * lib/__fpending.c: Add comment.
84687
84688 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84689
84690         * modules/canonicalize (Depends-on): Add xreadlink.
84691         Problem reported by James Youngman.
84692
84693 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84694
84695         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84696         New macros.
84697         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84698         optopt): Use them instead of invoking ## directly; otherwise, the
84699         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84700
84701 2004-11-19  Bruno Haible  <bruno@clisp.org>
84702
84703         * lib/strtok_r.c: Move comments from here...
84704         * lib/strtok_r.h: ... to here.
84705
84706 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84707
84708         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84709         implementations that mishandle size_t overflow.
84710
84711 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84712
84713         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84714         might fail.  Problem reported by Yoann Vandoorselaere.
84715         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84716         implementations that mishandle size_t overflow.
84717
84718 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84719
84720         * modules/canon-host (Depends-on): Add strdup.
84721
84722 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84725
84726 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84727
84728         * lib/canon-host.c: Include "strdup.h".
84729         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84730         Use strdup instead of malloc/strcpy to duplicate strings.
84731
84732         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84733         (human_space_before_unit): New constant.
84734         * lib/human.c (human_readable): Support it.
84735
84736         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84737         (xgetcwd): Set errno correctly when failing.
84738         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84739         the failure is actually due to a PATH_MAX problem.
84740
84741         Further getopt changes to make it more likely that glibc will
84742         buy the changes back.
84743         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84744         (getopt): Use it, so to preserve glibc semantic
84745         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84746         when compiling for libc.
84747         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84748         (getopt_long, getopt_long_only): Use it.
84749
84750         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84751         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84752         (getopt): Argv is now char * const *, as per standard.
84753         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84754         not char *__getopt_argv_const *.
84755         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84756         _getopt_long_only_r): Likewise.
84757         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84758         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84759         _getopt_long_r, _getopt_long_only_r): Likewise.
84760         * lib/getopt_.h (__getopt_argv_const): Remove.
84761         (getopt): Argv is now char * const *, as per standard.
84762
84763         * lib/getdate.y (tORDINAL): New token.
84764         (day, relunit): Allow it for relative times.
84765         (relative_time_table): Use tORDINAL for ordinals.
84766
84767 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84770         Document that "second" isn't allowed as an ordinal number.
84771
84772 2004-11-16  Jim Meyering  <jim@meyering.net>
84773
84774         * modules/closeout (Depends-on): Add fpending.
84775
84776 2004-11-15  Jim Meyering  <jim@meyering.net>
84777
84778         * lib/closeout.c: Include "__fpending.h" once again.
84779         Include <stdbool.h>.
84780         (close_stdout): Don't fail just because stdout was closed initially,
84781         since some programs don't write to stdout in the normal course of
84782         operation (other than --version and --help), and we don't want this
84783         function to make e.g. `touch file >&-' fail.
84784         But do fail if it was closed and someone has tried to write to it.
84785         E.g., `printf foo >&-' must fail.
84786
84787 2004-11-13  Jim Meyering  <jim@meyering.net>
84788
84789         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84790
84791 2004-11-12  Simon Josefsson  <jas@extundo.com>
84792
84793         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84794         small doc fix is still pending.
84795
84796 2004-11-11  Simon Josefsson  <jas@extundo.com>
84797
84798         * modules/strtok_r: New file.
84799
84800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84801         strtok_r.
84802
84803 2004-11-11  Simon Josefsson  <jas@extundo.com>
84804
84805         * m4/strtok_r.m4: New file.
84806
84807         * m4/getopt.m4: Replace opterr.
84808
84809 2004-11-11  Simon Josefsson  <jas@extundo.com>
84810
84811         * lib/strtok_r.h, strtok_r.c: New file.
84812
84813 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84816         of replacing opterr, getopt, etc.  This should handle the
84817         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84818
84819 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84822         we can stop lying to compilers about the constness of argv when we
84823         are compiled outside glibc.
84824         (getopt, getopt_long, getopt_long_only): Use it.
84825         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84826         _getopt_internal, getopt): Likewise.
84827         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84828         _getopt_long_only_r): Likewise.
84829         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84830         _getopt_long_r, _getopt_long_only_r): Likewise.
84831
84832         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84833         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84834         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84835         the other external symbols.
84836         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84837         declaration, since the above renaming now works around collisions.
84838
84839 2004-11-11  Jim Meyering  <jim@meyering.net>
84840
84841         * lib/linebreak.c: Remove trailing blanks.
84842         * lib/alloca_.h: Likewise.
84843         * lib/acosl.c: Likewise.
84844         * lib/euidaccess.c: Likewise.
84845         * lib/allocsa.h: Likewise.
84846
84847 2004-11-10  Simon Josefsson  <jas@extundo.com>
84848
84849         * m4/getaddrinfo.m4: New file.
84850
84851 2004-11-10  Simon Josefsson  <jas@extundo.com>
84852
84853         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84854
84855 2004-11-10  Simon Josefsson  <jas@extundo.com>
84856
84857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84858         getaddrinfo.
84859
84860         * modules/getaddrinfo: New file.
84861
84862 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84865
84866 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84867
84868         * lib/mktime.c (SHR): New macro, which is a portable
84869         substitute for >> that should work even on Crays.
84870         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84871         Problem reported by Mark D. Baushke in
84872         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84873         * lib/getdate.y (SHR): Likewise.
84874         (tm_diff): Use it.
84875         * lib/strftime.c (SHR): Likewise.
84876         (tm_diff): Use it.
84877         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84878         quote_these_too, so that right shifts are well defined.  All uses
84879         changed.
84880
84881 2004-11-10  Jim Meyering  <jim@meyering.net>
84882
84883         Ensure that no close failure goes unreported.
84884         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84885         return early when it seems there's nothing to flush.
84886         Don't include __fpending.h.
84887
84888 2004-11-10  Jim Meyering  <jim@meyering.net>
84889
84890         * modules/closeout (Depends-on): Remove fpending.
84891
84892 2004-11-10  Jim Meyering  <jim@meyering.net>
84893
84894         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84895
84896 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84897
84898         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84899         gl_FUNC_STRFTIME.
84900         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84901         and AC_REQUIRE when possible, to avoid duplicate checks.
84902         Check for <wchar.h>.
84903
84904 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84905
84906         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84907
84908 2004-11-09  Bruno Haible  <bruno@clisp.org>
84909
84910         * m4/sockpfaf.m4: New file.
84911
84912 2004-11-05  Bruno Haible  <bruno@clisp.org>
84913
84914         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84915         Reported by Mark D. Baushke <mdb@cvshome.org>.
84916
84917 2004-11-04  Bruno Haible  <bruno@clisp.org>
84918
84919         2004-09-11  Bruno Haible  <bruno@clisp.org>
84920                 * allocsa.valgrind: New file.
84921         2004-02-06  Bruno Haible  <bruno@clisp.org>
84922                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84923                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84924                 Reported by Christopher Seip <chris.seip@hp.com>.
84925
84926 2004-11-04  Bruno Haible  <bruno@clisp.org>
84927
84928         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84929         (Makefile.am): Distribute it.
84930
84931 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84932
84933         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84934         with errno == ERANGE if the buffer is too small.
84935         Problem reported by Mark D. Baushke.
84936
84937 2004-11-03  Albert Chin  <china@thewrittenword.com>
84938             Paul Eggert  <eggert@cs.ucla.edu>
84939
84940         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84941         equivalent, substitute $ac_type for equivalent type rather than
84942         blindly using uint32_t *always* which won't work if uint32_t is not
84943         available.  Define _UINT32_T to work around typedef of uint32_t if
84944         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84945         2.5.1.
84946
84947 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84948
84949         * m4/jm-macros.m4: Sync from coreutils.
84950         (gl_MACROS): Check for mbrlen, for pathchk.
84951         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84952
84953 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         * lib/xreadlink.c (MAXSIZE): New macro.
84956         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84957         size does not exceed MAXSIZE.  Avoid cast.
84958         As suggested by Mark D. Baushke in
84959         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84960         if readlink fails with buffer size just under MAXSIZE, try again
84961         with MAXSIZE.
84962
84963 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84964
84965         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84966
84967 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84968         and  Paul Eggert  <eggert@cs.ucla.edu>
84969
84970         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84971         (get_date): Overparenthesize to avoid GCC warning.
84972
84973 2004-11-02  Bruno Haible  <bruno@clisp.org>
84974
84975         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84976         returns void.
84977
84978 2004-11-02  Bruno Haible  <bruno@clisp.org>
84979
84980         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84981         function returns void.
84982
84983 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84984
84985         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84986         fflush_unlocked, flockfile, funlockfile, funlockfile,
84987         fputs_unlocked, putc_unlocked.
84988
84989 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84990
84991         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84992         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84993         already declared.
84994
84995 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84996
84997         * modules/getdate (Files): Add doc/getdate.texi.
84998         (Depends-on): Add setenv, xalloc.
84999
85000 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * lib/getdate.y: Add support for TZ="foo" within a date string.
85003         Fix some bugs near time_t boundaries.  Reject dates with
85004         out-of-range components, e.g., "Sept 31".
85005         Include <stdlib.h>, "setenv.h", "xalloc.h".
85006         (ISDIGIT_LOCALE): Remove; unused.
85007         Note that the TZ and time functions used here are not reentrant.
85008         (mktime_ok, get_tz): New functions.
85009         (TZBUFSIZE): New constant.
85010         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85011         This requires that we sometimes generate our own TZ="XXX..." setting.
85012
85013 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         * doc/getdate.texi: New file, from coreutils with modifications for
85016         the new TZ parsing.
85017
85018 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85019
85020         * lib/mktime.c (not_equal_tm): Remove redundant check.
85021
85022 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * modules/regex (lib_SOURCES): Add regex.c.
85025         Reported by James Youngman in
85026         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85027
85028 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85029
85030         * lib/getdate.y: Use Bison 1.875 features, and some minor
85031         code cleanups.  This change does not affect semantics.
85032         Don't include <stdlib.h>; no longer needed.
85033         Don't include unlocked-io.h; only the "#if TEST" code uses
85034         stdio, and performance isn't crucial there.
85035         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85036         Bison 1.875 features as described below.
85037         All uses of "PC." replaced by "pc->".
85038         (YYSTYPE): Add a forward declaration.
85039         (yylex, yyerror): Use full prototypes in forward decls.
85040         Use "%pure-parser" rather than obsolescent "%pure_parser".
85041         Use %parse-param and %lex-param instead of obsolescent
85042         YYPARSE_PARAM and YYLEX_PARAM.
85043         (meridian_table, month_and_day_table, time_units_table,
85044         relative_time_table, time_zone_table, military_table,
85045         lookup_zone, lookup_word, get_date):
85046         Use NULL instead of 0 where appropriate.
85047         (to_hour): Avoid abort (), to avoid a dependency on
85048         stdlib.h.
85049         (yyerror, yylex): Now accepts parser_control * arg.
85050         (main) [TEST]: Use '\0' rather than 0 for char.
85051
85052 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85055
85056 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85059         It's now the caller's responsibility to handle the case where
85060         !HAVE_GETPAGESIZE && !defined getpagesize.
85061
85062         * lib/mktime.c (leapyear): Arg is long int, not int.
85063
85064 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85065
85066         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85067
85068 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85069
85070         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85071         missing.  Problem reported by James Youngman.
85072
85073 2004-10-16  Simon Josefsson  <jas@extundo.com>
85074
85075         * gnulib-tool: Fix comments.  Fix parse problem.
85076         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85077
85078 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85081         implementation of getopt_long.  Problem reported by Alexander Taler in:
85082         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85083
85084 2004-10-15  Bruno Haible  <bruno@clisp.org>
85085
85086         * gnulib-tool: Untabify. Initialize supplied_libname.
85087         (func_usage): More homogenous output.
85088         (func_modules_transitive_closure, func_modules_to_filelist,
85089         func_emit_lib_Makefile_am): New functions.
85090         (func_import): New function, extracted from big case statement. Use
85091         func_get_license, func_modules_transitive_closure,
85092         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85093         opt_lgpl. Don't use test -a, as it's not portable.
85094         (func_create_testdir): Use func_modules_transitive_closure,
85095         func_modules_to_filelist, func_emit_lib_Makefile_am.
85096
85097 2004-10-15  Bruno Haible  <bruno@clisp.org>
85098
85099         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85100
85101 2004-10-15  Bruno Haible  <bruno@clisp.org>
85102
85103         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85104         the portions belonging to each module.
85105         Suggested by Derek Robert Price <derek@ximbiot.com>.
85106
85107 2004-10-12  Simon Josefsson  <jas@extundo.com>
85108
85109         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85110         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85111         to real functions.
85112
85113 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85114
85115         * modules/vsnprintf: New file.
85116
85117 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85118
85119         * m4/vsnprintf.m4: New file.
85120
85121 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85122
85123         * lib/vsnprintf.h: New file.
85124         * lib/vsnprintf.c: New file.
85125
85126 2004-10-11  Bruno Haible  <bruno@clisp.org>
85127
85128         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85129         vsnprintf.
85130
85131 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85134
85135 2004-10-07  Bruno Haible  <bruno@clisp.org>
85136
85137         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85138         fits into the provided buffer.
85139
85140 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85141
85142         * lib/diacrit.c, diacrit.h: Add GPL notice.
85143
85144         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85145         notice.
85146         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85147         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85148         This avoids a potential constant-folding bug.
85149
85150 2004-10-05  Bruno Haible  <bruno@clisp.org>
85151
85152         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85153         for the declaration of strsep.
85154
85155 2004-10-05  Bruno Haible  <bruno@clisp.org>
85156
85157         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85158
85159 2004-10-04  Simon Josefsson  <jas@extundo.com>
85160
85161         * modules/memmem: New file.
85162         * tests/test-memmem.c: New file.
85163         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85164
85165 2004-10-04  Simon Josefsson  <jas@extundo.com>
85166
85167         * m4/memmem.m4: New file.
85168
85169 2004-10-04  Simon Josefsson  <jas@extundo.com>
85170
85171         * lib/memmem.h: New file.
85172         * lib/memmem.c: New file, taken from glibc.
85173
85174 2004-10-04  Simon Josefsson  <jas@extundo.com>
85175
85176         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85177         '#ifdef USE_UNLOCKED_IO'.
85178
85179 2004-10-04  Simon Josefsson  <jas@extundo.com>
85180
85181         * config/srclist.txt: Add memmem from glibc.
85182
85183 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85186
85187         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85188         modules/exclude, modules/getdate, modules/getline,
85189         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85190         modules/getusershell, modules/linebuffer, modules/md5,
85191         modules/mountlist, modules/posixtm, modules/readtokens,
85192         modules/readutmp, modules/regex, modules/sha1,
85193         modules/version-etc, modules/yesno:
85194         Remove dependency on unlocked-io.
85195
85196 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85199
85200         * m4/unlocked-io.m4: Add copyright notice.
85201         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85202
85203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85204
85205         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85206         * lib/xmalloc.c (xmemdup): Likewise.
85207         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85208         XFREE): Remove these long-obsolescent macros.
85209         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85210         * lib/xstrdup.c: Remove.
85211
85212         * lib/regex.c (re_comp): Cast gettext return value to char *,
85213         Problem reported by Martin Neitzel via Mark D. Baushke.
85214
85215 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85216
85217         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85218         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85219         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85220         regex.c, sha1.c, version-etc.c, yesno.c:
85221         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85222         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85223         the includer's responsibility.
85224
85225         Sync from coreutils.
85226
85227         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85228         points to the start of a string, as the C Standard says the
85229         resulting behavior is undefined.
85230
85231         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85232         simple -> simple_backups, numbered_existing ->
85233         numbered_existing_backups, numbered -> numbered_backups
85234         to avoid shadowing problems.  All uses changed.
85235         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85236         * lib/backupfile.c (check_extension, numbered_backup):
85237         Rename locals to avoid shadowing 'basename'.
85238         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85239         once.
85240
85241         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85242         * lib/.cvsignore: Add getopt.h.
85243
85244 2004-10-04  Bruno Haible  <bruno@clisp.org>
85245
85246         * modules/README: New file.
85247         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85248         not a module.
85249
85250 2004-10-02  Jim Meyering  <jim@meyering.net>
85251
85252         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85253
85254 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85255
85256         * modules/strsep: New file.
85257
85258 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85259
85260         * m4/strsep.m4: New file.
85261
85262 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85263
85264         * lib/strsep.h: New file.
85265         * lib/strsep.c: New file.
85266
85267 2004-10-01  Simon Josefsson  <jas@extundo.com>
85268
85269         * lib/snprintf.c (snprintf): Handle size==0.
85270
85271 2004-10-01  Simon Josefsson  <jas@extundo.com>
85272             Bruno Haible  <bruno@clisp.org>
85273
85274         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85275         (snprintf): Declare 'args'.
85276
85277 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85278
85279         * lib/snprintf.c: Remove comments as to why each header is needed.
85280
85281 2004-10-01  Bruno Haible  <bruno@clisp.org>
85282
85283         * MODULES.html.sh: Add strsep.
85284
85285 2004-09-30  Simon Josefsson  <jas@extundo.com>
85286
85287         * modules/snprintf: New file.
85288
85289 2004-09-30  Simon Josefsson  <jas@extundo.com>
85290
85291         * m4/snprintf.m4: New file.
85292
85293 2004-09-30  Simon Josefsson  <jas@extundo.com>
85294
85295         * lib/snprintf.h, lib/snprintf.c: New files.
85296
85297 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85298
85299         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85300         (hol_entry_help): Never translate an empty string.
85301         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85302         * lib/argp.h (OPTION_NO_TRANS): New option.
85303
85304 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         * modules/argp (Maintainer): Replace Simon Josefsson
85307         by Sergey Poznyakoff.
85308
85309 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85312         changes merged back into glibc.
85313
85314 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85317
85318 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85319
85320         * lib/xvasprintf.c: Include xalloc.h.
85321         (xvasprintf): Use xalloc_die, not xmalloc_die.
85322
85323 2004-09-29  Bruno Haible  <bruno@clisp.org>
85324
85325         * modules/alloca-opt: New file, derived from modules/alloca.
85326         * modules/allocsa: Depend on alloca-opt instead of alloca.
85327         * modules/setenv: Likewise.
85328         * modules/vasnprintf: Likewise.
85329         * MODULES.html.sh: Add alloca-opt.
85330
85331 2004-09-28  Simon Josefsson  <jas@extundo.com>
85332
85333         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85334         LGPL, and to replace license template from GPL to LGPL.
85335
85336 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         * modules/dummy: Change license to LGPL.
85339
85340 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85341
85342         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85343
85344 2004-09-24  Simon Josefsson  <jas@extundo.com>
85345
85346         * modules/minmax (License): Change from GPL to LGPL.
85347
85348 2004-09-23  Simon Josefsson  <jas@extundo.com>
85349
85350         * gnulib-tool (--import): Typo.
85351
85352 2004-09-23  Simon Josefsson  <jas@extundo.com>
85353
85354         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85355
85356 2004-09-22  Bruno Haible  <bruno@clisp.org>
85357
85358         * modules/*: Add 'License' field.
85359         * gnulib-tool: Accept --extract-license option.
85360         (func_get_license): New function.
85361
85362 2004-09-21  Bruno Haible  <bruno@clisp.org>
85363
85364         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85365         Reported by Simon Josefsson.
85366
85367 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85370         gl_AC_TYPE_LONG_LONG.
85371
85372 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85375
85376 2004-09-18  Simon Josefsson  <jas@extundo.com>
85377         and  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85380         calls with autoreconf.  Define GL_LIB.
85381
85382 2004-09-14  Karl Berry  <karl@gnu.org>
85383
85384         * config/srclist.txt: unsync setenv.c, sigh.
85385
85386 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85387
85388         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85389         Problem reported by Bruno Haible in:
85390         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85391
85392 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85393
85394         * config/srclist.txt: Comment out argp-pvh.c.
85395
85396 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85397
85398         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85399         in case some system header has #define'd it.  Problem reported by
85400         Soeren D. Schulze in
85401         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85402
85403 2004-09-09  Karl Berry  <karl@gnu.org>
85404
85405         * regex.[ch]: delete from the root.  These were supposed to be
85406                 synced with emacs cvs, but this has not happened for about
85407                 a year, and anyway nothing else uses emacs regex.[ch].
85408                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85409                 lib/regex[.ch] is untouched.
85410
85411 2004-09-09  Bruno Haible  <bruno@clisp.org>
85412
85413         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85414
85415 2004-09-09  Bruno Haible  <bruno@clisp.org>
85416
85417         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85418         modifications.
85419         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85420
85421 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85422
85423         * modules/xvasprintf: New file.
85424         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85425
85426 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85427
85428         * lib/xvasprintf.h: New file.
85429         * lib/xvasprintf.c: New file.
85430         * lib/xasprintf.c: New file.
85431
85432 2004-09-08  Bruno Haible  <bruno@clisp.org>
85433
85434         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85435
85436 2004-09-08  Bruno Haible  <bruno@clisp.org>
85437
85438         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85439         length is > INT_MAX.
85440         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85441         more.
85442
85443 2004-09-08  Bruno Haible  <bruno@clisp.org>
85444
85445         * lib/stdint_.h: New file, taken from GNU clisp.
85446
85447 2004-09-08  Bruno Haible  <bruno@clisp.org>
85448             Oskar Liljeblad  <oskar@osk.mine.nu>
85449
85450         * modules/stdint: New file.
85451         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85452
85453 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         Import from coreutils.
85456         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85457         strings on unbounded length.  alloca's performance benefits aren't
85458         that important here.
85459         (V_STRDUP): Remove.
85460         (parse_with_separator): New function, with most of the internals
85461         of the old parse_user_spec.  Allow user to omit both user and group,
85462         for compatibility with FreeBSD.
85463         Clone only the user name, not the entire spec.
85464         Do not set *uid, *gid unless entirely successful.
85465         Avoid memory leak in some failing cases.
85466         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85467         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85468         (parse_user_spec): Rewrite to use parse_with_separator.
85469
85470 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85471
85472         * modules/userspec: Don't depend on alloca.
85473
85474 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85475
85476         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85477
85478 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85479
85480         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85481         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85482         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85483
85484 2004-08-16  Simon Josefsson  <jas@extundo.com>
85485
85486         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85487         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85488         Add --dry-run for --import.
85489         Let user provided command line parameters override configure.ac
85490         settings.
85491
85492 2004-08-12  Simon Josefsson  <jas@extundo.com>
85493
85494         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85495         as discussed with Paul Eggert in threads rooted at
85496         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85497         and
85498         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85499         Before, the test was empty, and relied on ELIDE_CODE in source
85500         code.)
85501         (gl_PREREQ_GETOPT): New macro.
85502         (gl_GETOPT): Use them.
85503
85504 2004-08-12  Simon Josefsson  <jas@extundo.com>
85505
85506         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85507         * lib/getopt_.h: Renamed from getopt.h.
85508
85509 2004-08-12  Simon Josefsson  <jas@extundo.com>
85510
85511         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85512         Change default library name from libfoo to libgnu.
85513         Now, if you have a configure.ac that says:
85514                 gl_SOURCE_BASE(gl)
85515                 gl_M4_BASE(gl/m4)
85516                 gl_MODULES(error getopt etcetera)
85517                 gl_INIT
85518         you can import all you need by running:
85519                 ../gnulib/gnulib-tool --import
85520
85521         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85522         (Makefile.am): Rewrite, use logic from argz.
85523         (Include): Use <getopt.h> instead of "getopt.h".
85524
85525 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85526
85527         * modules/argp (Files): Add m4/unlocked-io.m4.
85528         (Depends-on): Add extensions.
85529
85530 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85531
85532         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85533         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85534         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85535         Check for program_invocation_name, program_invocation_short_name,
85536         flockfile, funlockfile, features.h, _getopt_long_only_r.
85537
85538 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85541         its complicated substitute.
85542         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85543         and program_invocation_name.
85544         (__argp_basename) [!_LIBC]: Remove; the only use was
85545         replaced by its body.
85546         (__argp_short_program_name): Change condition from
85547         !defined __argp_short_program_name to
85548         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85549         to match argp-namefrob.h.
85550         (__argp_failure): Don't assume strerror_r returns char *.
85551         * lib/argp-parse.c (N_): Define unconditionally.
85552         (argp_default_options): Fill out initializers with 0 to avoid
85553         gcc warnings.
85554
85555 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85558         getopt1.c.
85559
85560 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         Merge from coreutils.
85563
85564         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85565
85566         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85567         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85568
85569 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85570
85571         Merge from coreutils.
85572
85573         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85574         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85575         for Reliant Unix 5.43.
85576
85577         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85578         (union fooround): Use uintmax_t, not long int.
85579         The rest is a merge from libc:
85580         [defined _LIBC]: Include <shlib-compat.h>.
85581         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85582
85583         * lib/settime.c (settime): Recode to avoid warning with
85584         Sun Forte C 6U2.
85585
85586         * lib/strverscmp.c: Convert to UTF-8.
85587
85588 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85589
85590         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85591         m4/uintmax_t.m4.
85592
85593 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85594
85595         * modules/xalloc-die: New file.
85596         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85597
85598         * modules/md5 (Files): Add m4/uint32_t.m4.
85599         * modules/sha1: Renamed from modules/sha.
85600         (Files):
85601         Rename lib/sha.h to lib/sha1.h.
85602         Rename lib/sha.c to lib/sha1.c.
85603         Rename m4/sha.m4 to m4/sha1.m4.
85604         (lib_SOURCES): Likewise.
85605         (configure.ac): Rename gl_SHA to gl_SHA1.
85606         (Include): sha.h -> sha1.h.
85607
85608 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85609
85610         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85611         * m4/sha1.m4: Renamed from sha.m4.
85612         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85613
85614 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85615
85616         * lib/obstack.h (obstack_empty_p):
85617         Don't assume that chunk->contents is suitably aligned.
85618         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85619         Likewise. Problem reported by Benno in
85620         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85621
85622         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85623         readable.  This could be improved further but it'd take some work.
85624
85625 2004-08-08  Simon Josefsson  <jas@extundo.com>
85626
85627         * modules/xgethostname (Depends-on): Remove exit and error (not
85628         used).
85629
85630         * modules/getpass-gnu: Add getpass.h.
85631         (Depends-on): Add stdbool.
85632         * modules/getpass: Add getpass.h.
85633
85634 2004-08-08  Simon Josefsson  <jas@extundo.com>
85635
85636         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85637         Check getpass declaration.
85638
85639 2004-08-08  Simon Josefsson  <jas@extundo.com>
85640
85641         * lib/xgethostname.c: Don't include error.h (not used).
85642
85643         * lib/getpass.h: Add.
85644         * lib/getpass.c: Include getpass.h first.
85645
85646 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85647
85648         * lib/xalloc-die.c: New file.
85649         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85650         All uses removed.
85651         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85652         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85653         xalloc-die.c.
85654         (_, N_, xalloc_die): Move to xalloc-die.c.
85655         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85656         so that we needn't mess with xalloc_msg_memory_exhausted.
85657
85658         * lib/sha1.h: Renamed from sha.h.
85659         (SHA1_H): Renamed from _SHA_H.
85660         (sha1_ctx): Renamed from sha_ctx.
85661         (sha1_init_ctx): Renamed from sha_init_ctx.
85662         (sha1_process_block): Renamed from sha_process_block.
85663         (sha1_process_bytes): Renamed from sha_process_bytes.
85664         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85665         (sha1_read_ctx): Renamed from sha_read_ctx.
85666         (sha1_stream): Renamed from sha_stream.
85667         (sha1_buffer): Renamed from sha_buffer.
85668         * lib/sha1.c: Likewise; renamed from sha.c.
85669         Do not include <sys/types.h>.
85670         Include <stddef.h> rather than <stdlib.h>.
85671
85672 2004-08-08  Bruno Haible  <bruno@clisp.org>
85673
85674         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85675         FILESYSTEM_PREFIX_LEN.
85676         * lib/progreloc.c: Likewise.
85677         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85678
85679 2004-08-06  Simon Josefsson  <jas@extundo.com>
85680
85681         * modules/progname (Depends-on): Don't depend on stdbool.
85682
85683 2004-08-06  Simon Josefsson  <jas@extundo.com>
85684
85685         * modules/getsubopt: New file.
85686         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85687         getsubopt.
85688
85689 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85690
85691         More merge from coreutils.
85692
85693         * m4/utimens.m4, m4/utimecmp.m4: New files.
85694         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85695         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85696         prereq.m4, sha.m4: Import changes from coreutils.
85697
85698 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85699
85700         More merge from coreutils.
85701         * modules/raise, modules/readtokens0, modules/utimens:
85702         * modules/utimecmp, module/xnanosleep: New files.
85703         * modules/strftime: Add lib/strftime.h.
85704         Change include from <time.h> to "strftime.h".
85705         * modules/yesno: Add lib/yesno.h.
85706         * modules/backupfile: Remove lib/addext.c.
85707         * modules/euidaccess: Add stat-macros.h.
85708         * modules/canonicalize, modules/euidaccess,
85709         modules/filemode, modules/lchown, modules/makepath,
85710         modules/rmdir, modules/stat: Likewise.
85711
85712 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85713
85714         Merge from tar.
85715         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85716         SIZE_MAX is a valid preprocessor constant.
85717         (__argp_basename): Change from "#ifndef _LIBC"
85718         to "#ifndef __argp_short_program_name", so that
85719         we don't compile these functions for tar.
85720
85721         More merges from coreutils.
85722         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85723         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85724         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85725         * lib/addext.c: Remove; no longer needed.
85726         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85727         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85728         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85729         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85730         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85731         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85732         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85733         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85734         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85735         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85736         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85737         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85738         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85739         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85740         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85741         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85742         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85743         Import changes from coreutils.
85744
85745 2004-08-05  Simon Josefsson  <jas@extundo.com>
85746
85747         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85748
85749 2004-08-05  Simon Josefsson  <jas@extundo.com>
85750
85751         * m4/getsubopt.m4: New file.
85752
85753 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85754
85755         Merge from coreutils.
85756
85757         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85758         * m4/getcwd-path-max.m4: New files.
85759
85760         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85761         FILESYSTEM_PREFIX_LEN ->
85762         FILE_SYSTEM_PREFIX_LEN.
85763         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85764         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85765         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85766         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85767
85768         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85769         prerequisite modules now handle the DOS stuff.
85770         Don't check for unistd.h.
85771
85772 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85773
85774         Merge from coreutils.
85775
85776         * lib/.gdb-history: Remove; this doesn't belong here.
85777
85778         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85779         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85780         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85781         * lib/getcwd.c: New files.
85782
85783         * lib/dirname.h: Include <stdbool.h>.
85784         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85785         for consistency with POSIX terminology.  All uses changed.
85786         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85787         (strip_trailing_slashes): Use bool for booleans.
85788         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85789
85790         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85791         sometimes returns a positive errno value even when it succeeds.
85792         (print_errno_message) [!LIBC]: Fall back on strerror if
85793         __strerror_r fails.
85794
85795         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85796         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85797         (longest_relative_suffix): New function.
85798         (path_concat): Use it.  Assume first argument is not NULL.
85799         Port to DOS.  Omit redundant separators.
85800         Report an error instead of returning NULL.
85801         Use mempcpy instead of memcpy.
85802         (xpath_concat): Remove: not declared or used.
85803
85804         * lib/same.h: Include <stdbool.h>
85805         (same_name): Return bool, not int.
85806         * lib/same.c (same_name): Likewise.
85807         (errno): Don't declare; we assume C89 or better now.
85808
85809         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85810         if not already defined.
85811
85812         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85813         * lib/dup-safer.c (errno): Likewise.
85814
85815 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         Merge from coreutils.
85818         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85819         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85820         * modules/path-concat: Don't depend on strdup.
85821
85822 2004-08-03  Simon Josefsson  <jas@extundo.com>
85823
85824         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85825         * lib/progname.h: Don't include stdbool.h.
85826
85827 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85830         * MODULES.html.sh (func_all_modules): Remove fatal.
85831
85832 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85835
85836 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85839         working.
85840
85841 2004-08-02  Simon Josefsson  <jas@extundo.com>
85842
85843         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85844         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85845         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85846
85847 2004-08-01  Simon Josefsson  <jas@extundo.com>
85848
85849         * lib/xgetdomainname.c: Include stdlib.h, for free().
85850
85851 2004-07-19  Bruno Haible  <bruno@clisp.org>
85852
85853         * MODULES.html.sh (func_all_modules): Add dummy.
85854
85855 2004-07-16  Simon Josefsson  <jas@extundo.com>
85856
85857         * modules/dummy: New file.
85858
85859 2004-07-16  Simon Josefsson  <jas@extundo.com>
85860
85861         * lib/dummy.c: New file.
85862
85863 2004-07-16  Bruno Haible  <bruno@clisp.org>
85864
85865         * lib/backupfile.h: Add extern "C" for C++.
85866         * lib/closeout.h: Likewise.
85867         * lib/copy-file.h: Likewise.
85868         * lib/findprog.h: Likewise.
85869         * lib/full-write.h: Likewise.
85870         * lib/pathname.h: Likewise.
85871         * lib/progname.h: Likewise.
85872         * lib/stpcpy.h: Likewise.
85873         * lib/stpncpy.h: Likewise.
85874         * lib/strcase.h: Likewise.
85875         * lib/strstr.h: Likewise.
85876         * lib/xalloc.h: Likewise.
85877
85878         * lib/mbswidth.h: Add extern "C" for C++.
85879         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85880
85881 2004-07-13  Robert Millan  <robertmh@gnu.org>
85882
85883         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85884
85885 2004-07-09  Simon Josefsson  <jas@extundo.com>
85886
85887         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85888         failed without this.)
85889
85890 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85891
85892         * modules/chown (Files): Add lib/fchown-stub.c, since
85893         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85894
85895 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85896
85897         * lib/fchown-stub.c: New file.
85898
85899 2004-06-24  Jim Meyering  <jim@meyering.net>
85900
85901         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85902
85903 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85904
85905         * modules/argz: Omit "#include".
85906
85907         * MODULES.html.sh (func_all_modules): Add calloc, to match
85908         2004-06-01 addition of calloc module.
85909
85910 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85911
85912         * m4/argz.m4: New file, which is autoupdated from libtool.
85913
85914 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85915
85916         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85917         libtool.
85918
85919 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85920
85921         * config/srclist-update: Don't insist on "USA." before the
85922         close-comment, as libtool omits the period and puts the */ on a
85923         separate line.
85924         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85925         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85926
85927 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85928
85929         * modules/argz: New file.
85930         * MODULES.html.sh (func_all_modules): Add argz.
85931
85932 2004-06-12  Jim Meyering  <jim@meyering.net>
85933         and  Paul Eggert  <eggert@cs.ucla.edu>
85934
85935         * modules/hash (Files): Add lib/xalloc.h.
85936         * modules/pipe (Depends-on): Add wait-process.
85937         * modules/stat (Depends-on): Add xalloc.
85938         * modules/userspec (Files): Add lib/userspec.h.
85939         * modules/xstrto
85940
85941         Upgrade from gettext-0.13.
85942         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85943         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85944         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85945
85946 2004-06-10  Jim Meyering  <jim@meyering.net>
85947
85948         * lib/calloc.c: New file.
85949
85950 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85951
85952         * lib/getdate.y (yylex): Allow space between sign and number.
85953         Problem reported by Dan Jacobson.
85954
85955 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85956
85957         Merge from coreutils CVS.
85958
85959         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85960         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85961         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85962         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85963         xstrtol.m4: Fix copyright date and/or serial number.
85964
85965         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85966         See if we need an fchown replacement.
85967         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85968         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85969         and use the replacement function if we detect either defect.
85970
85971         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85972         gl_UTIMECMP.
85973
85974 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85975         and  Jim Meyering  <jim@meyering.net>
85976
85977         Merge from coreutils CVS.
85978
85979         * lib/stat-macros.h: New file, with contents from file-type.h
85980         and coreutils' system.h.
85981         * lib/file-type.c: Include "stat-macros.h".
85982         * lib/file-type.h (file_type): Move all macro definitions to new file,
85983         stat-macros.h.
85984
85985         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85986         Wrap old code with this conditional.
85987         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85988         function that does not dereference symlinks.
85989         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85990
85991         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85992         dependency problems.
85993         (xreadlink): Accept new arg SIZE, for efficiency.
85994         All decls and uses changed.
85995         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85996
85997         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85998         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85999
86000         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86001         sysexits.h.
86002
86003 2004-06-01  Jim Meyering  <jim@meyering.net>
86004
86005         * m4/calloc.m4: New file.
86006
86007 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86010         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86011         Also, fix a typo in a diagnostic.
86012
86013 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86014
86015         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86016         or AC_FUNC_REALLOC.
86017
86018 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86019
86020         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86021         macros to be defined.
86022         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86023         the allocator returns NULL because the requested size is zero.
86024
86025 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86026
86027         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86028         var.  Add comment explaining why libc still defines it.  This
86029         merges the following patch from glibc:
86030         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86031
86032 2004-05-20  Andreas Schwab  <schwab@suse.de>
86033
86034         * m4/free.m4: Replace free if it not known to work, not the other
86035         way round.
86036
86037 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86038
86039         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86040         present in glibc since revision 1.1 of this file.
86041         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86042         obstack_alignment_mask, obstack_alloc, obstack_base,
86043         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86044         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86045         obstack_grow0, obstack_init, obstack_int_grow,
86046         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86047         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86048         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86049         nonexistent functions.
86050
86051 2004-05-18  Karl Berry  <karl@gnu.org>
86052
86053         * config/srclist.txt: break link for vasnprintf.c.
86054
86055 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86056
86057         Port obstack to the AS/400, where pointers are 16 bytes wide and
86058         you cannot cast an integer to a valid pointer.  This patch is
86059         currently waiting to be integrated into glibc; see
86060         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86061
86062         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86063         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86064         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86065         (struct obstack): temp member is now a union of a pointer and
86066         an integer, instead of an integer.  All integer uses changed.
86067         This does not affect the physical layout of struct obstack,
86068         except on hosts (like the AS/400) where the size or alignment of
86069         void * is greater than that of ptrdiff_t.
86070         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86071         __STDC__)]: Store temporary in pointer member of union, not
86072         integer member.
86073         * lib/obstack.c: Include <stddef.h>, for offsetof.
86074         (struct fooalign): Remove; it doesn't need a name.
86075         (union fooround): Change double to long double, and add void *.
86076         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86077         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86078         not a macro.  Hence the values are always int; so remove all
86079         casts-to-int in uses.
86080
86081 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86084         we can get this patch merged into glibc.
86085
86086 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86087             Paul Eggert  <eggert@cs.ucla.edu>
86088
86089         * m4/argp: Depend on alloca.
86090
86091 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86092             Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86095         freecoding.
86096
86097 2004-05-17  Bruno Haible  <bruno@clisp.org>
86098
86099         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86100         precision that consists of a '.' followed by an empty digit string.
86101         Patch by Tor Lillqvist <tml@iki.fi>.
86102
86103 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86106         for backward compatibility with older code.  We need our own
86107         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86108         it under some other name, and our alloca.h will define it.
86109
86110 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86111             Derek Price  <derek@ximbiot.com>
86112
86113         * lib/alloca.c: Include <alloca.h>, to get our interface.
86114         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86115         include <alloca.h> first.  Use C89 prototype for alloca; this
86116         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86117         Use #elif for simplicity, since we can assume C89 now.
86118         Don't try to source the system alloca.h since it will not be found
86119         and to prevent recursively including its replacement.
86120         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86121         * lib/regex.c: Likewise.
86122
86123 2004-05-16  Derek Price  <derek@ximbiot.com>
86124             Paul Eggert  <eggert@cs.ucla.edu>
86125
86126         getline cleanup.  This changes the getndelim2 API: both order of
86127         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86128         no delimiter).
86129
86130         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86131         interface does that.
86132         (getline): Always use getdelim, so that we don't have two
86133         copies of this code.
86134         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86135         if available.
86136         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86137         (GETNDELIM2_MAXIMUM): New macro.
86138         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86139         instead of the old practice of delim2==0.  All callers changed.
86140         Return -1 on overflow, instead of returning junk.
86141         Do not set *linesize unless allocation succeeds.
86142         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86143         that we include sys/types.h.
86144         * lib/getnline.h: Likewise.
86145         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86146         (getndelim2): Reorder arguments.
86147         * lib/getnline.c (getnline, getndelim):
86148         Don't discard the NMAX argument.
86149         (getnline): Invoke getndelim, to avoid code duplication.
86150         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86151         of (size_t) -1 by callers of the getnline family.
86152
86153 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86154
86155         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86156         Check for gettimeofday.
86157         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86158         Check for settimeofday, stime.
86159
86160 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * lib/nanosleep.c (suspended): Change its type from int to
86163         sig_atomic_t volatile.
86164         (first_call): Make it private to rpl_nanosleep, and have it
86165         be zero initially as that's a bit faster.
86166         (my_usleep): Round up fractional times instead of truncating them,
86167         as this is the usual meaning for 'sleep'.
86168
86169         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86170         doesn't work.
86171         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86172         (ENOSYS): Define if not defined.
86173         (settime): Fall back on stime if it exists and settimeofday fails.
86174         But don't bother with fallbacks if a method fails with errno == EPERM.
86175
86176 2004-05-11  Jim Meyering  <jim@meyering.net>
86177
86178         Prior to this change, the save_cwd caller required read access to the
86179         current directory on most systems (ones with the fchdir function).
86180
86181         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86182         fails, try write-only, and finally, resort to using xgetcwd.
86183
86184 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86185
86186         * lib/obstack.c, obstack.h: Import changes from libc.
86187
86188 2004-04-28  Bruno Haible  <bruno@clisp.org>
86189
86190         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86191         also implicitly appends .exe to executables.
86192         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86193         accepts Windows pathnames.
86194         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86195         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86196         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86197         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86198         Reported by Derek Robert Price <derek@ximbiot.com>.
86199
86200 2004-04-21  Karl Berry  <karl@gnu.org>
86201
86202         * config/srclist.txt (localcharset.c): break sync.
86203
86204 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86205
86206         * m4/host-os.m4: Add a copyright notice.
86207
86208 2004-04-20  Jim Meyering  <jim@meyering.net>
86209
86210         Change UTILS_ to gl_ in AC_DEFINE'd names.
86211         Change utils_- and jm_-prefixed variables, too.
86212         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86213         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86214         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86215
86216         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86217         Don't emit trailing blanks.
86218         Also rename jm_-prefixed variables to have gl_ prefix.
86219
86220         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86221         Also rename jm_-prefixed variables to have gl_ prefix.
86222
86223         * m4/jm-macros.m4: Reflect the renamings.
86224         * m4/prereq.m4: Likewise.
86225
86226 2004-04-20  Jim Meyering  <jim@meyering.net>
86227
86228         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86229         memory.
86230
86231 2004-04-20  Jim Meyering  <jim@meyering.net>
86232             Bruno Haible  <bruno@clisp.org>
86233
86234         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86235         memory when realloc fails.
86236
86237 2004-04-19  Jim Meyering  <jim@meyering.net>
86238
86239         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86240         now that readutmp.c may call `free (0)'.
86241
86242 2004-04-19  Bruno Haible  <bruno@clisp.org>
86243
86244         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86245         * m4/inttypes_h.m4: Likewise.
86246         * m4/stdint_h.m4: Likewise.
86247         * m4/intmax_t.m4: Likewise.
86248         * m4/uintmax_t.m4: Likewise.
86249
86250 2004-04-18  Jim Meyering  <jim@meyering.net>
86251
86252         * m4/prereq.m4: Don't forbid jm_ prefix.
86253
86254         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86255         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86256         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86257         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86258         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86259         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86260         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86261         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86262         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86263         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86264         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86265         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86266         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86267         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86268         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86269         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86270         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86271         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86272         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86273
86274 2004-04-18  Jim Meyering  <jim@meyering.net>
86275
86276         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86277         failure, don't leak memory and do call END_UTMP_ENT.
86278
86279 2004-04-16  Jim Meyering  <jim@meyering.net>
86280
86281         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86282         coreutils' stat program.
86283         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86284
86285 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86286
86287         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86288         C89.
86289         (CHAR_BIT): Remove, since we assume C89.
86290         Include <stdint.h> if available, as per current Autoconf CVS advice.
86291
86292 2004-03-31  Jim Meyering  <jim@meyering.net>
86293
86294         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86295         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86296         * m4/xalloc.m4: Likewise.
86297
86298 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86299
86300         Merge from coreutils.
86301
86302         * m4/inttostr.m4: New file.
86303         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86304         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86305         Require gl_CLOCK_TIME.
86306         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86307
86308 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86309
86310         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86311         not bool, to be more consistent with Unix conventions.
86312         Suggested by Bruno Haible.
86313
86314         Merge from coreutils.
86315
86316         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86317         * lib/umaxtostr.c: New files.
86318
86319         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86320         the usual <time.h> dance.
86321         (get_date): Change signature to support fractional time stamps.
86322         All callers changed.
86323         * lib/getdate.y: Include "getdate.h" first, as we can now
86324         assume C89 and don't need to worry about 'const'.
86325         Similarly, include "unlocked-io.h" near start, not in middle.
86326         Include <limits.h>.
86327         (textint.value): Use long int rather than int.
86328         (textint.digits): Use size_t rather than int.
86329         (BILLION, LOG10_BILLION): New constants.
86330         (parser_control): New member rel_ns.  Members day_ordinal,
86331         time_zone, month, day, hour, minutes, rel_year, rel_month,
86332         rel_day, rel_hour, rel_minutes, rel_seconds
86333         are now long int, not int.  Member seconds is now struct timespec,
86334         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86335         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86336         not int.
86337         (%union.intval): Now long int, not int.
86338         New member timespec.
86339         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86340         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86341         (spec): Now is a timespec or an item list.
86342         (timespec, items): New nonterminals.
86343         (time, rel, relunit, number, get_date):
86344         Add support for fractional seconds.
86345         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86346         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86347         (to_hour): First arg is now long int, not int.
86348         (to_year): Returns long int, not int.
86349         Don't treat year -70 like 70.
86350         (tm_diff): Returns long int, not int.
86351         (lookup_word): Use bool instead of int when appropriate.
86352         (yylex): Use size_t for count, not int.
86353         Detect overflow when parsing large integer constants.
86354         Add support for fractions.
86355         (get_date): Make pointers 'const' if possible.
86356         Use more-portable code to detect integer overflow.
86357         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86358         Don't use ctime; it's not reliable if the year has >4 digits.
86359
86360         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86361         This is for compatibility with BSD.
86362
86363         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86364         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86365         From coreutils' system.h.
86366
86367         * lib/userspec.c: Don't include "posixver.h".
86368         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86369         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86370         compatible extension.  Simplify code by removing a boolean int
86371         that was always nonzero if a string was nonnull.
86372
86373 2004-03-30  Jim Meyering  <jim@meyering.net>
86374
86375         Merge from coreutils.
86376
86377         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86378         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86379         on some systems one must include <grp.h> before it.
86380         Reported by Christian Krackowizer.
86381
86382 2004-03-30  Jim Meyering  <jim@meyering.net>
86383
86384         Merge from coreutils.
86385
86386         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86387
86388         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86389         an empty input stream.
86390
86391         * lib/readtokens.c: Include <stdbool.h>.
86392         (readtoken): Use `size_t' rather than int/long.
86393         All callers adjusted.
86394         Use `bool' rather than `int' where appropriate.
86395         Use memset rather than an explicit loop.
86396         Use x2nrealloc rather than xrealloc.
86397         Allow the use of `\0' as a delimiter.
86398         (readtokens): Likewise.
86399         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86400
86401 2004-03-30  Jim Meyering  <jim@meyering.net>
86402
86403         * m4/realloc.m4: Remove file, since now it does no more than
86404         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86405         the `configure.ac' section of module/realloc.
86406         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86407
86408 2004-03-30  Bruno Haible  <bruno@clisp.org>
86409
86410         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86411         nonnull.
86412
86413 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86414
86415         Merge changes to getloadavg.c from coreutils and Emacs.
86416
86417         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86418         Define to an expression, not to the empty string.
86419         Include cloexec.h and xalloc.h.
86420         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86421         Use set_cloexec_flag rather than rolling our own.
86422         * lib/cloexec.c, lib/cloexec.h: New files.
86423
86424 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86425
86426         * m4/cloexec.m4: New file.
86427
86428 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86429
86430         * lib/getopt.h: Sync with libc CVS.
86431
86432 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86433             Bruno Haible  <bruno@clisp.org>
86434
86435         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86436         mbswidth.
86437
86438 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86439             Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/mbswidth.h: Include <wchar.h> only if
86442         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86443         <wchar.h>.
86444         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86445
86446 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86447
86448         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86449         Sync with libc CVS.
86450         * lib/getopt_int.h: New file, also synced from libc.
86451
86452 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86453
86454         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86455         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86456         Bring back getopt.c, getopt.h, getopt1.c.
86457
86458 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86459
86460         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86461         All uses changed.  Check for sa_sigaction member; this fixes
86462         a bug first reported by Jason Andrade in
86463         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86464
86465 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86466
86467         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86468         '#if' expressions.  Unlike the code it replaces, it does not
86469         depend on (defined _SC_PAGESIZE).  However, it does depend on
86470         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86471         first reported by Jason Andrade in
86472         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86473
86474 2004-02-25  Simon Josefsson  <jas@extundo.com>
86475
86476         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86477
86478 2004-02-25  Simon Josefsson  <jas@extundo.com>
86479
86480         * lib/strdup.h: New file.
86481         * lib/strdup.c: Include it.
86482         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86483         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86484
86485 2004-02-23  Karl Berry  <karl@gnu.org>
86486
86487         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86488         (from fencepost.gnu.org:/gd/gnuorg).
86489
86490 2004-02-23  Karl Berry  <karl@gnu.org>
86491
86492         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86493         * config/srclist.txt: add maintain/standards documents.
86494
86495 2004-02-18  Bruno Haible  <bruno@clisp.org>
86496
86497         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86498         Reported by Derek Robert Price <derek@ximbiot.com>.
86499
86500 2004-02-16  Karl Berry  <karl@gnu.org>
86501
86502         * config/mkinstalldirs, install-sh: update from automake.
86503
86504 2004-02-06  Karl Berry  <karl@gnu.org>
86505
86506         * m4/po.m4: update from gettext 0.14.1.
86507
86508 2004-02-06  Karl Berry  <karl@gnu.org>
86509
86510         * lib/config.charset: update from gettext 0.14.1.
86511
86512 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86513
86514         Add comments and code, prompted by suggestions from Bruno Haible
86515         for sh-quote.
86516         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86517         describing the enum quoting_style values.
86518         * lib/quotearg.c (quotearg_alloc): New function.
86519         (quotearg_buffer_restyled): Treat lone { and } as special.
86520         Treat = as special.  Work around bug with older shells
86521         that "see" a '\' that is really the 2nd byte of a multibyte char.
86522         Quote empty string with shell_quoting_style.
86523
86524 2004-02-03  Bruno Haible  <bruno@clisp.org>
86525
86526         * m4/pipe.m4: New file, from GNU gettext.
86527
86528 2004-02-03  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/pipe.h: New file, from GNU gettext.
86531         * lib/pipe.c: New file, from GNU gettext.
86532
86533 2004-01-27  Bruno Haible  <bruno@clisp.org>
86534
86535         * m4/execute.m4: New file, from GNU gettext.
86536
86537 2004-01-27  Bruno Haible  <bruno@clisp.org>
86538
86539         * lib/execute.h: New file, from GNU gettext.
86540         * lib/execute.c: New file, from GNU gettext.
86541         * lib/w32spawn.h: New file, from GNU gettext.
86542
86543 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86544
86545         Merge from diffutils.
86546
86547         * lib/file-type.c (file_type): Add typed memory objects.
86548         * lib/file-type.h (S_TYPEISTMO): New macro.
86549
86550         * lib/c-stack.h (c_stack_action): Remove argv argument.
86551         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86552         (die): Don't calculate message unless segv_action returns.
86553         (get_stack_location, min_address_from_argv, max_address_from_argv,
86554         volatile stack_base, volatile_stack_size): Remove.
86555         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86556         that every segmentation violation is a stack overflow.  (Ouch!)
86557         See Debian bug 136249 (still outstanding) for more info about why
86558         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86559
86560 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86561
86562         Exit-status fix from coreutils.
86563
86564         Use exit_failure consistently in place of EXIT_FAILURE,
86565         so that program exit statuses are consistent on failure.
86566
86567         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86568         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86569         * lib/argmatch.h: Comment fix to match the above.
86570         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86571         Now a macro referring to exit_failure, instead of a separate
86572         variable.  Include "exitfail.h" to get it.
86573         * lib/xstrtol.h: Include "exitfail.h".
86574         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86575
86576         * lib/long-options.c (parse_long_options): Use prototype
86577         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86578         for clarity.
86579
86580 2004-01-21  Jim Meyering  <jim@meyering.net>
86581
86582         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86583         so as not to conflict with a different-sized __mktime_internal
86584         function in GNU libc.
86585         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86586         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86587
86588 2004-01-20  Karl Berry  <karl@gnu.org>
86589
86590         * config/config.guess: update from config.
86591
86592         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86593
86594 2004-01-20  Bruno Haible  <bruno@clisp.org>
86595
86596         Safer stack allocation.
86597         * lib/setenv.c: Include allocsa.h.
86598         (alloca): Remove fallback definition.
86599         (freea): Remove macro.
86600         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86601         instead of freea.
86602
86603 2004-01-20  Bruno Haible  <bruno@clisp.org>
86604
86605         * m4/eealloc.m4: New file, from GNU gettext.
86606
86607 2004-01-20  Bruno Haible  <bruno@clisp.org>
86608
86609         * m4/allocsa.m4: New file, from GNU gettext.
86610
86611 2004-01-20  Bruno Haible  <bruno@clisp.org>
86612
86613         * lib/xallocsa.h: New file, from GNU gettext.
86614         * lib/xallocsa.c: New file, from GNU gettext.
86615
86616 2004-01-20  Bruno Haible  <bruno@clisp.org>
86617
86618         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86619
86620 2004-01-20  Bruno Haible  <bruno@clisp.org>
86621
86622         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86623         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86624         specially.
86625
86626 2004-01-20  Bruno Haible  <bruno@clisp.org>
86627
86628         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86629         patch.
86630
86631 2004-01-20  Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86634
86635 2004-01-20  Bruno Haible  <bruno@clisp.org>
86636
86637         * lib/eealloc.h: New file.
86638
86639 2004-01-20  Bruno Haible  <bruno@clisp.org>
86640
86641         * lib/binary-io.h: Avoid warnings on Cygwin.
86642
86643 2004-01-20  Bruno Haible  <bruno@clisp.org>
86644
86645         * lib/allocsa.h: New file, from GNU gettext.
86646         * lib/allocsa.c: New file, from GNU gettext.
86647
86648 2004-01-18  Karl Berry  <karl@gnu.org>
86649
86650         * doc/gpl.texi, doc/lgpl.texi: new files.
86651
86652 2004-01-18  Karl Berry  <karl@gnu.org>
86653
86654         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86655         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86656
86657 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86658
86659         Merge from coreutils.
86660
86661         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86662         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86663         (gl_DEFAULT_POSIX2_VERSION): Move
86664         the documentation from 'configure' into 'config.hin',
86665         so that 'configure --help' isn't burdened by it and
86666         we don't have to worry about its formatting there.
86667         Reword the documentation so that it's more succinct
86668         and can be run together into a single paragraph.
86669         * m4/same.m4 (gl_SAME): Check for pathconf.
86670
86671 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86672
86673         Merge from coreutils.
86674
86675         * lib/posixver.c: Include posixver.h.
86676
86677         * lib/same.c: Include <stdbool.h>, <limits.h>.
86678         (_POSIX_NAME_MAX): Define if not defined.
86679         (MIN): New macro.
86680         (same_name): If file names are silently truncated, report
86681         that the file names are the same if they are the same after
86682         the silent truncation.
86683
86684         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86685         conversion function.
86686         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86687         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86688         longer needed.
86689
86690 2004-01-15  Jim Meyering  <jim@meyering.net>
86691
86692         Merge from coreutils.
86693
86694         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86695         if no library is required.
86696         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86697         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86698         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86699         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86700         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86701         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86702         value, $ac_cv_search_crypt, if it's "none required".
86703         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86704         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86705         not gl_FUNC_GETLOADAVG.
86706         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86707         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86708
86709 2004-01-15  Jim Meyering  <jim@meyering.net>
86710
86711         Merge from coreutils.
86712
86713         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86714         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86715         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86716
86717         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86718         optional configure-time default.
86719
86720         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86721
86722         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86723
86724 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86725
86726         Merge from coreutils.
86727
86728         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86729         value, $ac_cv_search_nanosleep, if it's "none required".
86730
86731 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86732
86733         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86734         with like-named macro in fnmatch.c.
86735         (EXT): Use an internal constant instead.
86736
86737         Merge fnmatch patches from glibc.
86738         * lib/fnmatch.c (mbsinit): Remove define.
86739         Add libc_hidden_ver (__fnmatch, fnmatch).
86740         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86741         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86742
86743 2004-01-14  Karl Berry  <karl@gnu.org>
86744
86745         * config/install-sh: update from automake.
86746
86747 2004-01-13  Karl Berry  <karl@gnu.org>
86748
86749         * config/install-sh: update from automake.
86750
86751 2004-01-09  Karl Berry  <karl@gnu.org>
86752
86753         * config/install-sh: update from automake.
86754
86755 2004-01-05  Karl Berry  <karl@gnu.org>
86756
86757         * config/config.{sub,guess}: update from config.
86758
86759 2003-12-31  Karl Berry  <karl@gnu.org>
86760
86761         * config/depcomp: update from automake.
86762
86763 2003-12-14  Karl Berry  <karl@gnu.org>
86764
86765         * lib/config.charset: update from gettext-runtime.
86766
86767 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86768
86769         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86770         Bug reported by Alfred M. Szmidt.
86771
86772 2003-12-03  Bruno Haible  <bruno@clisp.org>
86773
86774         * m4/gettext.m4: Upgrade from gettext-0.13.
86775         * m4/po.m4: Upgrade from gettext-0.13.
86776         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86777         * m4/intmax.m4: New file, from gettext-0.13.
86778         * m4/printf-posix.m4: New file, from gettext-0.13.
86779
86780 2003-11-29  Karl Berry  <karl@gnu.org>
86781
86782         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86783
86784 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86785             Bruno Haible  <bruno@clisp.org>
86786
86787         * lib/printf-parse.h: Don't include sys/types.h.
86788         (ARG_NONE): New macro.
86789         (char_directive): Change type of *arg_index fields to size_t.
86790         * lib/printf-parse.c: Don't include sys/types.h.
86791         (SSIZE_MAX): Remove macro.
86792         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86793         Remove unnecessary overflow check.
86794         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86795         fields.
86796
86797 2003-11-25  Bruno Haible  <bruno@clisp.org>
86798
86799         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86800
86801 2003-11-25  Bruno Haible  <bruno@clisp.org>
86802
86803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86804         gt_TYPE_SSIZE_T.
86805
86806 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86807
86808         * modules/alloca: Remove dependency on xalloc.
86809
86810 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86811
86812         * lib/alloca.c: Remove dependency on xalloc module.
86813         (xalloc_die): Remove.
86814         (memory_full) [!defined emacs]: New macro.
86815         [!defined emacs]: Don't include xalloc.h.
86816         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86817         address arithmetic overflows.  Change datatypes a bit to avoid
86818         unnecessary casts.
86819
86820 2003-11-22  Jim Meyering  <jim@meyering.net>
86821
86822         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86823         s/size/size_t/.
86824
86825 2003-11-21  Karl Berry  <karl@gnu.org>
86826
86827         * config/config.{sub,guess}: update from config.
86828
86829 2003-11-18  Karl Berry  <karl@gnu.org>
86830
86831         * config/config.{sub,guess}: update from config.
86832
86833         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86834
86835 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86836
86837         * README: Mention that S+T cannot overflow if S is the size of
86838         an existing object and T is sufficiently small.
86839
86840 2003-11-17  Jim Meyering  <jim@meyering.net>
86841
86842         On systems without utime and without a utimes function capable of
86843         dealing with a NULL struct utimbuf* argument, this utime replacement
86844         could -- in unusual circumstances -- leak a file descriptor.
86845         * lib/utime.c: Include <unistd.h> and <errno.h>.
86846         (utime_null): Be sure to close `fd' and to preserve errno.
86847         Reported by Geoff Collyer via Arnold Robbins.
86848
86849 2003-11-17  Bruno Haible  <bruno@clisp.org>
86850
86851         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86852         (Depends-on): Add xsize.
86853
86854 2003-11-17  Bruno Haible  <bruno@clisp.org>
86855
86856         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86857
86858 2003-11-17  Bruno Haible  <bruno@clisp.org>
86859
86860         * lib/vasnprintf.c (alloca): Remove fallback definition.
86861         (freea): Remove definition.
86862         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86863         Reported by Paul Eggert.
86864
86865 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86866             Bruno Haible  <bruno@clisp.org>
86867
86868         Protect against address arithmetic overflow.
86869         * lib/printf-args.h: Include stddef.h.
86870         (arguments): Change type of field 'count' to size_t.
86871         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86872         'unsigned int' where appropriate.
86873         * lib/printf-parse.h: Include sys/types.h.
86874         (char_directive): Change type of *arg_index fields to ssize_t.
86875         (char_directives): Change type of fields 'count', max_*_length to
86876         size_t.
86877         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86878         (SSIZE_MAX): Define fallback value.
86879         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86880         instead of 'int' where appropriate. Check a_allocated, d_allocated
86881         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86882         * lib/vasnprintf.c: Include xsize.h.
86883         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86884         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86885         overflow. Avoid wraparound when converting a width or precision from
86886         decimal to binary.
86887
86888 2003-11-16  Bruno Haible  <bruno@clisp.org>
86889
86890         Update from GNU gettext.
86891         * lib/printf-parse.c: Generalize to it can be compiled for wide
86892         strings.
86893         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86894         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86895         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86896         SNPRINTF): New macros.
86897         Don't include <alloca.h> if the file is used inside libintl.
86898         (local_wcslen): New function, for Solaris 2.5.1.
86899         (VASNPRINTF): Use it instead of wcslen.
86900
86901 2003-11-16  Bruno Haible  <bruno@clisp.org>
86902
86903         * lib/xsize.h (xmax): New function.
86904         (xsum, xsum3, xsum4): Declare as "pure" functions.
86905
86906 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86907
86908         * modules/xalloc (Files): Undo latest change, since xalloc.h
86909         no longer needs SIZE_MAX or PTRDIFF_MAX.
86910
86911 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86912
86913         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86914         gl_PTRDIFF_MAX.
86915
86916 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86917
86918         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86919         "return", to pacify some unknown compiler.  Problem reported
86920         by Joerg Schilling.
86921
86922 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86923
86924         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86925         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86926         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86927         heuristic is just as accurate as far as we know, and it removes a
86928         dependency on size_max.m4 and ptrdiff_max.m4.
86929
86930 2003-11-11  Bruno Haible  <bruno@clisp.org>
86931
86932         * modules/xsize (Files): Add m4/size_max.m4.
86933         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86934
86935 2003-11-11  Bruno Haible  <bruno@clisp.org>
86936
86937         * m4/size_max.m4: New file.
86938         * m4/ptrdiff_max.m4: New file.
86939         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86940         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86941         (gl_XALLOC): Invoke it.
86942
86943 2003-11-11  Bruno Haible  <bruno@clisp.org>
86944
86945         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86946         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86947         defined.
86948
86949 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86950
86951         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86952         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86953         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86954         From Bruno Haible.
86955         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86956         not (size_t) -1, since it's defined here.
86957
86958 2003-11-09  Karl Berry  <karl@gnu.org>
86959
86960         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86961
86962 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86963
86964         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86965         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86966         Reject sizes of exactly SIZE_MAX bytes.
86967         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86968         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86969
86970 2003-11-05  Bruno Haible  <bruno@clisp.org>
86971
86972         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86973         SIZE_MAX defined in <limits.h> on Solaris.
86974
86975 2003-11-04  Jim Meyering  <jim@meyering.net>
86976
86977         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86978         variable names, rather than @VAR@.
86979         * modules/poll: Likewise.
86980
86981 2003-11-04  Bruno Haible  <bruno@clisp.org>
86982
86983         * modules/xsize: New file.
86984         * modules/linebreak: Depend on xsize.
86985         * MODULES.html.sh (func_all_modules): Add xsize.
86986
86987 2003-11-04  Bruno Haible  <bruno@clisp.org>
86988
86989         * m4/xsize.m4: New file.
86990
86991 2003-11-04  Bruno Haible  <bruno@clisp.org>
86992
86993         * lib/xsize.h: New file.
86994         * lib/linebreak.c: Include xsize.h.
86995         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86996         argument for overflow.
86997         Suggested by Paul Eggert.
86998
86999 2003-11-03  Karl Berry  <karl@gnu.org>
87000
87001         * config/config.{guess,sub}: update from config.
87002
87003 2003-11-03  Jim Meyering  <jim@meyering.net>
87004
87005         * modules/userspec (lib_SOURCES): Add userspec.h.
87006         (Include): Add "userspec.h".
87007         Improve description.
87008
87009 2003-11-03  Jim Meyering  <jim@meyering.net>
87010
87011         * lib/userspec.c: Include "userspec.h".
87012         * lib/userspec.h: New file.
87013
87014 2003-11-03  Bruno Haible  <bruno@clisp.org>
87015
87016         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87017
87018 2003-11-03  Bruno Haible  <bruno@clisp.org>
87019
87020         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87021         available, to avoid (extremely rare) race condition.
87022         Suggested by Paul Eggert.
87023
87024 2003-11-02  Karl Berry  <karl@gnu.org>
87025
87026         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87027
87028 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87029
87030         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87031         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87032         (read_filesystem_list): Set and use me_type_malloced.
87033         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87034         whatever the type happens to be), for brevity and consistency.
87035         Check for size calculation overflow on Alphas running OSF/1.
87036
87037 2003-10-31  Jim Meyering  <jim@meyering.net>
87038
87039         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87040
87041         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87042
87043 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87044             Bruno Haible  <bruno@clisp.org>
87045
87046         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87047         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87048
87049 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87050
87051         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87052         netbsd*-gnu*.  Suggested by Robert Millan.
87053
87054 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87055
87056         * modules/group-member: Depend on stdbool.
87057
87058 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87059
87060         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87061
87062 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87063
87064         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87065         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87066         after the 'gnu' in these cases.  This fixes some bugs in the
87067         previous change, and is based on suggestions by Robert Millan.
87068
87069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87070
87071         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87072         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87073         no longer needed.
87074         * lib/quotearg.c (quotearg_n_options): Use it.
87075         * lib/group-member.c: Include <stdbool.h>.
87076         (free_group_info): Arg is now const *; don't free arg.
87077         (get_group_info): Now returns bool and accepts struct group_info *,
87078         rather than returning a malloc'ed struct group_info *.
87079         All uses changed.  Check for overflow in internal size calculation.
87080
87081         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87082         rather than xmalloc/xrealloc.
87083         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87084         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87085         conformance bug: the old code used a pointer after freeing the
87086         storage that it addressed.
87087         * lib/hash.c (hash_initialize): Simplify the code by using
87088         xalloc_oversized rather than doing it by hand.
87089         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87090         the buffer preserved.  Use free and xmalloc instead.
87091         * lib/quotearg.c (quotearg_n_options): Likewise.
87092         Use a simpler test for size overflow.  Don't use xalloc_oversized
87093         because unsigned int might be wider than size_t (!); this suggests
87094         that we should switch from unsigned int to size_t for slot numbers.
87095
87096 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87097
87098         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87099         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87100         NetBSD kernels.  Requested by Richard Stallman.
87101
87102 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87103
87104         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87105         to allocate the returned structure.  Do not allocate a subarray,
87106         as x2nrealloc will do that.
87107         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87108         instead of xnrealloc.
87109         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87110
87111 2003-10-27  Bruno Haible  <bruno@clisp.org>
87112
87113         * lib/stdbool_.h: Better support for BeOS.
87114
87115 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87116
87117         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87118         now uses inline.
87119
87120 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87121
87122         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87123         callers that want to do their own size-overflow checking.  Include
87124         <stdbool.h>, since xalloc_oversized returns bool.
87125         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87126         to use xalloc_oversized.
87127
87128         Add two functions x2realloc, x2nrealloc, for programs that grow
87129         arrays dynamically by doubling their sizes.
87130         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87131         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87132         New functions.
87133
87134         Port to C99 semantics for 'inline' of external functions.
87135         Bug reported by Bruno Haible.
87136         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87137         with the old contents of xnmalloc.
87138         (xnmalloc, xmalloc): Use it.
87139         (xnrealloc_inline): New static inline function,
87140         with the old contents of xnrealloc.
87141         (xnrealloc, xrealloc): Use it.
87142
87143         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87144         that.
87145
87146 2003-10-26  Karl Berry  <karl@gnu.org>
87147
87148         * config/srclist.txt (COPYING.DOC): no longer available from
87149         /gd/gnuorg; don't know where the ultimate source is.
87150
87151 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87152
87153         Fix several address-calculation bugs in the hash modules,
87154         plus some minor code cleanup.
87155
87156         * lib/hash.h: Include <stdbool.h>, for bool.
87157         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87158         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87159         hash_get_n_entries, hash_get_max_bucket_length,
87160         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87161         hash_rehash): Use size_t rather than unsigned.
87162         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87163         hash_get_n_buckets_used, hash_get_n_entries,
87164         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87165         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87166         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87167         Likewise.
87168         (SIZE_MAX): Define if not defined.
87169         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87170         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87171         hash_print):
87172         Use const * when possible.
87173         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87174         (check_tuning): Fix bug: if tuning parameters were very close to
87175         0 or 1, rounding errors could have caused subscript violations.
87176         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87177         (hash_initialize): Add 'fail:' label
87178         to free table and return NULL, and use it to simplify code.
87179         Use calloc rather than clearing the storage ourself.
87180         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87181         buffer size calculations.
87182         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87183         Include <stddef.h>, for size_t.
87184         * lib/hash-pjw.c (hash_pjw): Likewise.
87185         Switch to method described by Bruno Haible.
87186         Include <limits.h>, for CHAR_BIT.
87187         (SIZE_BITS): New macro.
87188
87189 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87190
87191         * m4/getline.m4 (AM_FUNC_GETLINE):
87192         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87193         hosts.  Problem reported by Derek Robert Price in
87194         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87195         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87196         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87197
87198 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87199
87200         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87201         ceiling the allocation at NMAX bytes rather than silently
87202         discarding input bytes before NMAX is reached.  This makes
87203         a difference only if NMAX exceeds SIZE_MAX / 2.
87204
87205         * lib/obstack.c: Merge from glibc.
87206         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87207         Add libc_hidden_def (_obstack_newchunk).
87208         (_obstack_free) [! defined _LIBC]: Remove.
87209         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87210         a clone of the function body.
87211         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87212         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87213
87214         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87215         glibc.
87216         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87217         arg to memcpy.
87218
87219         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87220         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87221         Don't use lvalue casts, as GCC plans to remove support for them
87222         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87223         was also present in the non-GCC version, indicating that this
87224         code had always been buggy and had never been widely used.
87225         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87226         Use the fast variant of each macro, rather than copying the
87227         definiens of the fast variant; that way, we'll be more likely to
87228         catch future bugs in the fast variants.
87229
87230 2003-10-20  Bruno Haible  <bruno@clisp.org>
87231
87232         * modules/wait-process: New file.
87233         * MODULES.html.sh (func_all_modules): Add wait-process.
87234
87235 2003-10-20  Bruno Haible  <bruno@clisp.org>
87236
87237         * m4/wait-process.m4: New file.
87238
87239 2003-10-20  Bruno Haible  <bruno@clisp.org>
87240
87241         * lib/wait-process.h: New file, from GNU gettext.
87242         * lib/wait-process.c: New file, from GNU gettext.
87243
87244 2003-10-19  Jim Meyering  <jim@meyering.net>
87245
87246         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87247         HPUX 10.20.
87248
87249 2003-10-18  Karl Berry  <karl@gnu.org>
87250
87251         * config/config.guess: update from config.
87252
87253 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87254
87255         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87256         (getgroups): First arg is int, not size_t.
87257         Don't let 'free' mangle errno.
87258
87259 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87260
87261         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87262
87263 2003-10-16  Karl Berry  <karl@gnu.org>
87264
87265         * config/config.{guess,sub}: update from config.
87266
87267 2003-10-16  Jim Meyering  <jim@meyering.net>
87268
87269         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87270         memcpy.
87271
87272 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87273
87274         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87275         (SIZE_MAX): Remove.
87276         (new_exclude, add_exclude_file): Initial size no longer needs to
87277         be a power of 2.
87278         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87279         our own address arithmetic overflow checking.
87280
87281         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87282         (fnmatch): Do not alloca more than 2000 wide characters;
87283         instead, use malloc for large buffers.
87284         Check for address arithmetic overflow, and return -1
87285         with errno set to ENOMEM in that case.
87286         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87287         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87288         instead, return -1.  Check for address arithmetic overflow.
87289
87290 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87291
87292         Handle invalid suffixes and overflow independently, so that
87293         callers can treat them independently as needed.  Fix some bugs in
87294         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87295         suffix for a human-readable blocksize.  The major caller-visible
87296         change is the addition of a new
87297         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87298         that both overflow and suffix chars were found.
87299
87300         * lib/human.c (humblock): Don't check separately for invalid suffix
87301         char; that is xstrtoumax's job (now that its bug is fixed).
87302         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87303         INTMAX_MAX]: New macros.
87304         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87305         TYPE_MAXIMUM): New macros.
87306         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87307         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87308         if overflow occurs, as it's what __strtol does and it's more useful
87309         in practice.
87310         (__xstrtol): If __strtol reports some error other than ERANGE,
87311         reflect it to the caller as LONGINT_INVALID.  If it reports
87312         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87313         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87314         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87315         value.
87316         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87317         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87318         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87319         [defined UINTMAX_MAX]: New macros.
87320
87321 2003-10-14  Bruno Haible  <bruno@clisp.org>
87322
87323         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87324
87325 2003-10-14  Bruno Haible  <bruno@clisp.org>
87326
87327         * m4/sig_atomic_t: New file, from GNU gettext.
87328         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87329
87330 2003-10-14  Bruno Haible  <bruno@clisp.org>
87331
87332         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87333         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87334         Also use volatile where needed.
87335
87336 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87337
87338         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87339         Change maintainer from Bruno Haible to 'all'.
87340
87341 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87342
87343         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87344
87345 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87346
87347         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87348         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87349         and define in terms of the other primitives.
87350         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87351         (SIZE_MAX): Define if not already defined.
87352         (array_size_overflow): New function.
87353         (xalloc_die): Abort instead of exiting if 'error' returns.
87354         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87355         (xmalloc, xrealloc): Use them.
87356         (xcalloc): Check for address arithmetic overflow.
87357         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87358         a bit faster than strcpy.
87359
87360 2003-10-10  Simon Josefsson  <jas@extundo.com>
87361
87362         * modules/argp (Depends-on): Add restrict and strcase.
87363
87364 2003-10-10  Simon Josefsson  <jas@extundo.com>
87365
87366         * m4/argp.m4: Add AC_C_INLINE.
87367
87368 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87369
87370         Merge getpass from libc, plus a few fixes.
87371
87372         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87373         Include <stdbool.h>.
87374         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87375         __fsetlocking to empty.
87376         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87377         do include <bits/libc-lock.h>.
87378         Do not include <fcntl.h>; not needed.
87379         [_LIBC]: Include <wchar.h>.
87380         (NOTCANCEL_MODE): New macro.
87381         (flockfile, funlockfile) [_LIBC]: New macros.
87382         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87383         [!_LIBC]: New macros.
87384         (call_fclose): New function.
87385         (getpass): Use it.  Save tty stream separately; this simplifies the
87386         code and makes it more reliable if stdin happens to equal stdout.
87387         Invoke __fsetlocking on tty.
87388         Handle thread cancellation if needed.
87389         Namespace cleanup (use __tcgetattr, __getline).
87390         Use bool for Booleans.
87391         [USE_IN_LIBIO]: Handle wide streams.
87392         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87393         stream might go where.
87394
87395         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87396         doesn't have to include <stdio.h> before us.
87397         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87398         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87399         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87400         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87401         if not declared, so that we can use getpass.c code from libc without
87402         rewriting it.
87403         (flockfile, ftrylockfile, funlockfile): New macros.
87404
87405 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87406
87407         * modules/getpass: Depend on stdbool.
87408
87409 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87410
87411         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87412
87413 2003-10-07  Karl Berry  <karl@gnu.org>
87414
87415         * config/config.{guess,sub}: update from config.
87416
87417 2003-10-06  Jim Meyering  <jim@meyering.net>
87418             Bruno Haible  <bruno@clisp.org>
87419
87420         This lets translators provide better translations for the
87421         "Written by ..." part of --version output.
87422         * lib/version-etc.h: Include stdarg.h.
87423         (version_etc_copyright): Declare as readonly.
87424         (version_etc): Make this function variadic with a NULL-terminated list
87425         of author name strings.
87426         (version_etc_va): New declaration.
87427         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87428         (version_etc_copyright): Declare as readonly.
87429         (version_etc_va): New function. Provide a different translatable string
87430         for each possible number of authors < 10. Abbreviate when there are 10
87431         authors or more.
87432         (version_etc): Make this function variadic. Call version_etc_va.
87433         Suggestion from Gary V. Vaughan.
87434
87435         * lib/long-options.h (parse_long_options): Change prototype: the
87436         authors string is moved to the end and becomes variadic.
87437         * lib/long-options.c: Include stdarg.h.
87438         (parse_long_options): Make this function variadic, too.
87439         Call version_etc_va, not version_etc.
87440
87441 2003-10-06  Bruno Haible  <bruno@clisp.org>
87442
87443         * modules/version-etc-2: Remove file.
87444         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87445
87446 2003-10-06  Bruno Haible  <bruno@clisp.org>
87447
87448         * modules/fatal-signal: New file.
87449         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87450
87451 2003-10-06  Bruno Haible  <bruno@clisp.org>
87452
87453         * m4/fatal-signal.m4: New file.
87454         * m4/signalblocking.m4: New file, from GNU gettext.
87455
87456 2003-10-06  Bruno Haible  <bruno@clisp.org>
87457
87458         * lib/version-etc-2.h: Remove file.
87459         * lib/version-etc-2.c: Remove file.
87460
87461 2003-10-06  Bruno Haible  <bruno@clisp.org>
87462
87463         * lib/fatal-signal.h: New file, from GNU gettext.
87464         * lib/fatal-signal.c: New file, from GNU gettext.
87465
87466 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87467
87468         * README: Rework advice for preventing empty .o files.
87469         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87470         not <sys/types.h>.
87471
87472 2003-10-04  Karl Berry  <karl@gnu.org>
87473
87474         * lib/argp*: update from libc.
87475
87476 2003-10-04  Karl Berry  <karl@gnu.org>
87477
87478         * config/config.{guess,sub}: update from config.
87479
87480 2003-10-02  Bruno Haible  <bruno@clisp.org>
87481
87482         * modules/lchown (Include): Add lchown.h.
87483         * modules/time_r (Include): Use "..." syntax.
87484         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87485
87486 2003-10-01  Simon Josefsson  <jas@extundo.com>
87487
87488         * MODULES.html.sh (func_all_modules): Move gethostname from section
87489         'based on' to section 'lacking' POSIX:2001.
87490
87491 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87492
87493         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87494         to output mode on the same stream.
87495
87496 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87497
87498         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87499         Fix arg typo in previous patch.
87500
87501 2003-09-28  Jim Meyering  <jim@meyering.net>
87502
87503         * lib/error.c: Correct cpp indentation.
87504
87505 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87506
87507         * modules/free: New file.
87508
87509 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87510
87511         * m4/free.m4: New file.
87512
87513 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87514
87515         * lib/minmax.h (MIN, MAX)
87516         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87517         Omit the special code that used __typeof__, since we worry that
87518         it could be more trouble than it's worth.  See:
87519         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87520         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87521
87522         * lib/free.c: New file.
87523
87524 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87525
87526         Trivial fixes to Makefile.am parts of module listings.
87527         * modules/strstr: Append strstr.h to lib_SOURCES.
87528         * modules/strcase: Likewise, for strcase.h.
87529
87530 2003-09-27  Karl Berry  <karl@gnu.org>
87531
87532         * config/mkinstalldirs: update from automake.
87533
87534 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87535
87536         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87537         (error_tail): Do not loop, reallocating temporary buffer, since
87538         the output cannot contain more wide characters than the input
87539         contains bytes, the size must be big enough already.  This avoids
87540         one potential size overflow calculation.  Check for size overflow
87541         when calculating temporary buffer size.  Free temporary buffer
87542         when done, if it was allocated with malloc; this plugs a memory
87543         leak.  Remove casts from void * to pointers, that are no longer
87544         needed now that we're assuming C89 or better.
87545
87546         Merge error changes from glibc.
87547
87548         * lib/error.c, error.h: Update copyright notice header to match glibc.
87549         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87550         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87551         Disable cancellation while printing error.
87552         * lib/error.h: Prepend __ to parameter names.
87553
87554 2003-09-26  Jim Meyering  <jim@meyering.net>
87555
87556         * lib/error.c (error_tail): Move some declarations
87557         into inner scope where the local variables are used.
87558
87559 2003-09-26  Bruno Haible  <bruno@clisp.org>
87560
87561         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87562         stpncpy().
87563         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87564
87565 2003-09-26  Bruno Haible  <bruno@clisp.org>
87566
87567         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87568         (stpncpy): Define as alias for gnu_stpncpy.
87569         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87570
87571 2003-09-25  Simon Josefsson  <jas@extundo.com>
87572
87573         * lib/xgetdomainname.h: New file.
87574         * lib/xgetdomainname.c: New file.
87575
87576 2003-09-25  Simon Josefsson  <jas@extundo.com>
87577             Bruno Haible  <bruno@clisp.org>
87578
87579         * modules/getdomainname: New file.
87580         * modules/xgetdomainname: New file.
87581         * MODULES.html.sh (func_all_modules): Add getdomainname,
87582         xgetdomainname.
87583
87584 2003-09-25  Simon Josefsson  <jas@extundo.com>
87585             Bruno Haible  <bruno@clisp.org>
87586
87587         * m4/getdomainname.m4: New file.
87588
87589 2003-09-25  Simon Josefsson  <jas@extundo.com>
87590             Bruno Haible  <bruno@clisp.org>
87591
87592         * lib/getdomainname.h: New file.
87593         * lib/getdomainname.c: New file.
87594
87595 2003-09-25  Karl Berry  <karl@gnu.org>
87596
87597         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87598
87599 2003-09-25  Karl Berry  <karl@gnu.org>
87600
87601         * config/install-sh: update from automake.
87602
87603 2003-09-25  Bruno Haible  <bruno@clisp.org>
87604
87605         * modules/version-etc-2: New file, from modules/version-etc with
87606         modifications.
87607         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87608
87609 2003-09-25  Bruno Haible  <bruno@clisp.org>
87610
87611         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87612         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87613
87614 2003-09-24  Simon Josefsson  <jas@extundo.com>
87615
87616         * modules/xgethostname: Add xgethostname.h.
87617
87618 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87619
87620         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87621         the buffer associated with the argument.  Bug reported by
87622         Simon Josefsson.
87623
87624 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87625
87626         * README: Document assumptions that 'int' is at least 32 bits
87627         wide, that integer arithmetic is 2's complement without overflow,
87628         that there are no holes in integer values, that adding sizes of
87629         two nonoverlapping objects can't overflow, and that all-bits-zero
87630         yields scalar zero.  Fix spelling and capitalization typos.
87631
87632 2003-09-19  Karl Berry  <karl@gnu.org>
87633
87634         * lib/argp.h: update from libc.
87635
87636 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87637
87638         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87639         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87640         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87641
87642 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87643
87644         * gnulib-tool: Use "test -h", not "test -L", for portability
87645         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87646         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87647         (sed_extract_prog): Issue s commands one-by-one, rather than
87648         using \| in one s command.
87649
87650 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87651
87652         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87653         input error, instead of returning NULL the next time we are called
87654         (and therefore losing track of errno).
87655
87656 2003-09-16  Bruno Haible  <bruno@clisp.org>
87657
87658         * gnulib-tool (func_create_testdir): Warn about duplicated
87659         dependencies.
87660
87661 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87662
87663         * modules/argmatch, modules/fatal, modules/obstack,
87664         modules/xalloc, modules/xgethostname: Sort dependencies by
87665         importance, not alphabetically.
87666
87667 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87668
87669         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87670         fails, so that the caller gets the proper errno.
87671
87672         * lib/readutmp.c (read_utmp): Likewise.
87673         Check for fstat error.  Close stream and free storage
87674         when failing.
87675
87676 2003-09-14  Karl Berry  <karl@gnu.org>
87677
87678         * config/srclist.txt (strdup.c): disable for c89 changes.
87679
87680 2003-09-14  Jim Meyering  <jim@meyering.net>
87681
87682         * lib/getloadavg.c: Correct cpp indentation.
87683         * lib/strdup.c: Likewise.
87684         * lib/vasnprintf.c: Likewise.
87685
87686 2003-09-14  Bruno Haible  <bruno@clisp.org>
87687
87688         * modules/fwriteerror: New file.
87689         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87690
87691 2003-09-14  Bruno Haible  <bruno@clisp.org>
87692
87693         * lib/fwriteerror.h: New file.
87694         * lib/fwriteerror.c: New file.
87695
87696 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87697
87698         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87699         modules/xgethostname, modules/xalloc: Depend on exit.
87700
87701 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87702
87703         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87704
87705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87706         and AC_MINIX, too, so that their extensions are available.
87707
87708         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87709         This macro has been superseded by gl_BACKUPFILE.
87710
87711         More patches to assume C89 or better.
87712
87713         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87714
87715         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87716         unconditionally.
87717         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87718         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87719         Include <string.h>, <stdlib.h> unconditionally.
87720         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87721         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87722         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87723         headers or for string.h.
87724         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87725         or strtoul.
87726
87727         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87728         headers.
87729         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87730         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87731         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87732         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87733         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87734         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87735         memcpy, memset.
87736         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87737         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87738         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87739         strtol.
87740         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87741         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87742         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87743         strtoul.
87744
87745 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87746
87747         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87748         * lib/obstack.c [!defined _LIBC]: Likewise.
87749         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87750         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87751         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87752
87753         More changes to assume C89 or better.
87754
87755         * lib/error.c (error_tail): Assume vprintf.
87756
87757         * lib/argmatch.c (getenv): Remove decl.
87758         * lib/progreloc.c (get_full_program_name): Define via prototype.
87759         * lib/setenv.c (clearenv): Likewise.
87760         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87761         needed.
87762         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87763         (malloc, memcpy): Remove decls.
87764         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87765         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87766         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87767         (memcpy): Remove macro.
87768         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87769         (__P): Remove.  All uses removed.
87770         (PTR): Remove.  All uses changed to void *.
87771         (CHAR_BIT, NULL): Remove.
87772         (spaces, zeros, memset_space, memset_zero)
87773         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87774         Remove.
87775         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87776         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87777         Define with prototype.
87778         Remove now-unnecessary prototype decl.
87779         (extra_args_spec): Assume ANSI C.  All uses changed.
87780         (extra_args_spec_iso): Remove.
87781         (my_strftime, emacs_strftimeu): Define via prototype.
87782         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87783         unconditionally.
87784         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87785         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87786         (strtoul, strtol): Remove decls.
87787         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87788         LONG_MAX): Remove.
87789         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87790         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87791         (LOCALE_PARAM_PROTO): New macro.
87792         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87793         (INTERNAL (strtol), strtol): Define with a prototype.
87794         (PARAMS): Remove.  All uses removed.
87795         * lib/tempname.c: Include <string.h> unconditionally.
87796         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87797         * lib/xgethostname.c (main): Define with a prototype.
87798         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87799         Include <stdlib.h> unconditionally.
87800         (calloc, malloc, realloc, free): Remove decls.
87801         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87802         Include <stdlib.h> unconditionally.  Sort include file names.
87803         (strtod): Remove.
87804         (xstrtod): Define with a prototype.
87805         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87806         (strtol, strtoul): Remove decls.
87807
87808 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87809
87810         More patches to assume C89 or better.
87811         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87812         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87813         string.h, memchr, STDC_HEADERS.
87814
87815 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87816
87817         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87818         Include <stdlib.h>, <string.h> unconditionally.
87819         Remove now-unnecessary cast to char *.
87820         * lib/strnlen.c: Include <string.h> unconditionally.
87821         * lib/yesno.c (yesno): Define with a prototype.
87822
87823 2003-09-11  Bruno Haible  <bruno@clisp.org>
87824
87825         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87826
87827 2003-09-10  Jim Meyering  <jim@meyering.net>
87828
87829         * lib/error.c: Correct indentation of cpp directives.
87830
87831 2003-09-10  Bruno Haible  <bruno@clisp.org>
87832
87833         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87834         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87835         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87836         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87837         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87838         <stdlib.h> and <string.h> checks.
87839         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87840         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87841
87842 2003-09-10  Bruno Haible  <bruno@clisp.org>
87843
87844         * lib/strcspn.c: Include <string.h> unconditionally.
87845         * lib/strpbrk.c: Include <string.h> unconditionally.
87846         * lib/strstr.c: Include <string.h> unconditionally.
87847         * lib/unicodeio.c: Include <string.h> unconditionally.
87848         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87849         * lib/unsetenv.c: Likewise.
87850         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87851         * lib/yesno.c: Include <stdlib.h> unconditionally.
87852         (rpmatch): Add prototype.
87853
87854 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87855
87856         More patches to assume C89 or better.
87857         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87858         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87859         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87860         or for string.h.
87861         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87862         stdlib.h.
87863         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87864         C headers.
87865         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87866         string.h.
87867         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87868         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87869         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87870         or for string.h.
87871         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87872         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87873         C headers.
87874         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87875         memcpy.
87876         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87877         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87878         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87879         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87880         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87881         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87882         string.h, free.
87883         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87884         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87885         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87886         C headers, or for string.h.
87887         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87888         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87889         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87890         headers, memory.h, stdlib.h, string.h, strings.h.
87891         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87892         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87893         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87894         strchr.
87895         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87896         headers, memory.h, string.h.
87897         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87898         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87899         free.
87900         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87901         headers.
87902         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87903         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87904         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87905         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87906         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87907
87908 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87909
87910         More K&R removal.
87911
87912         * lib/acosl.c (main): Use a prototype.
87913         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87914         tanl.c: Likewise.
87915
87916         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87917
87918         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87919         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87920         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87921         with a prototype.
87922         * lib/getopt.c (const): Remove macro.
87923         Include <string.h> unconditionally.
87924         (my_index): Remove; all uses changed to strchr.
87925         (strlen): Remove decl.
87926         (exchange): Remove forward decl; no longer needed.
87927         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87928         Define with prototype.
87929         * lib/getopt1.c (const): Remove macro.
87930         (getopt_long, getopt_long_only, main): Define with prototype.
87931
87932         * lib/getugroups.c: Include <string.h> unconditionally.
87933
87934         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87935         (getusershell, setusershell, endusershell, readname, main):
87936         Define with prototypes.
87937
87938         * lib/group-member.c: Include group-member.h first.
87939         Include <stdlib.h> unconditionally.
87940
87941         * lib/hard-locale.c: Include hard-locale.h first.
87942         Include <stdlib.h>, <string.h> unconditionally.
87943
87944         * lib/hash.c (free, malloc): Remove decls.
87945         Include <stdlib.h> unconditionally.
87946
87947         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87948         (getenv): Do not declare.
87949
87950         * lib/idcache.c: Include <string.h> unconditionally.
87951
87952         * lib/long-options.c: Include long-options.h first, to test interface.
87953         Include <stdlib.h> unconditionally.
87954
87955         * lib/makepath.c: Include makepath.h first, to test interface.
87956         Include <stdlib.h> and <string.h> unconditionally.
87957
87958         * lib/linebuffer.c: Include <stdlib.h>.
87959         (free): Remove decl.
87960
87961         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87962         stddef.h. rpl_malloc returns void *, not char *.
87963         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87964         prototype.
87965
87966         * lib/md5.h: Include <limits.h> unconditionally.
87967         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87968         (__P): Remove; all uses removed.
87969         * lib/md5.c: Include "md5.h" first.
87970         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87971         md5_buffer, md5_process_bytes, md5_process_block):
87972         Define with prototypes.
87973         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87974         * lib/sha.c: Include "sha.h" first.
87975         Include <stdlib.h>, <string.h> unconditionally.
87976
87977         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87978         * lib/memcmp.c (__ptr_t): Likewise.
87979         * lib/memrchr.c (__ptr_t): Likewise.
87980         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87981         Include <string.h> unconditionally.
87982         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87983         * lib/memchr.c: Include <stdlib.h> unconditionally.
87984         * lib/memchr.c (LONG_MAX): Remove.
87985         * lib/memrchr.c (LONG_MAX): Likewise.
87986         * lib/memchr.c (__memchr): Define via a prototype.
87987         * lib/memrchr.c (__memrchr): Likewise.
87988         * lib/memcmp.c (__P): Remove, and remove all uses.
87989         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87990         Remove forward decls; no longer needed.
87991         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87992         Use types required by C89 in prototype.
87993
87994         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87995         * lib/savedir.c: Likewise.
87996         * lib/mkdir.c (free): Remove decl.
87997         * lib/rmdir.c (rmdir): Define with a prototype.
87998         * lib/savedir.c: Include savedir.h first, to test interface.
87999
88000         * lib/mktime.c (STDC_HEADERS): Remove.
88001         Include <stdlib.h>, <string.h> unconditionally.
88002
88003         * lib/modechange.c: Include <stdlib.h> unconditionally.
88004         (malloc): Remove decl.
88005
88006         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88007         (free): Remove decl.
88008
88009         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88010         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88011         (This type really should be intptr_t, but that's a C99ism.)
88012         (_obstack_memcpy): Remove: all uses changed to memcpy.
88013         Include <string.h> unconditionally.
88014         (struct obstack): Assume __STDC__ for types of members
88015         chunkfun, freefun, extra_arg.
88016         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88017         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88018         obstack_begin, obstack_specify_allocation,
88019         obstack_specify_allocation_with_arg, obstack_chunkfun,
88020         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88021         Remove unprototyped decls and the macros that use them.
88022         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88023         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88024         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88025         (defined __STDC__ && __STDC__)]:
88026         Remove nonprototyped code.
88027         Include <stdlib.h> unconditionally.
88028         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88029         _obstack_allocated_p, _obstack_free, obstack_free,
88030         _obstack_memory_used, print_and_abort):
88031         Define using prototypes.
88032         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88033         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88034         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88035         obstack_next_free, obstack_object_size, obstack_room) [0]:
88036         Remove unused, unprototyped code.
88037
88038         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88039
88040         * lib/physmem.c (physmem_total, physmem_available, main): Define
88041         with prototypes.
88042
88043         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88044         (main): Define with a prototype.
88045
88046         * lib/posixver.c (getenv): Remove decl.
88047
88048         * lib/putenv.c (malloc): Returns void *, not char *.
88049         Include <string.h> unconditionally.
88050         (strchr, memcpy, NULL): Do not define.
88051
88052         * lib/readtokens.c: Include readtokens.h first, to test interface.
88053         Include <stdlib.h>, <string.h> unconditionally.
88054         (init_tokenbuffer): Define with a prototype.
88055
88056         * lib/regex.c (PARAMS): Remove.  All uses removed.
88057         All uses of _RE_ARGS removed, too.
88058         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88059         unconditionally.
88060         (bzero): Assume memset exists.
88061         (memcmp, memcpy, NULL): Remove.
88062         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88063         char, or assignments to local vars of type signed char.
88064         (init_syntax_once, PREFIX(extract_number_and_incr),
88065         PREFIX(print_partial_compiled_pattern),
88066         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88067         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88068         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88069         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88070         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88071         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88072         wcs_compile_range, byte_compile_range, truncate_wchar,
88073         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88074         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88075         count_mbs_length, wcs_re_match_2_internal,
88076         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88077         PREFIX(alt_match_null_string_p),
88078         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88079         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88080         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88081         now-unnecessary declaration, if any.
88082         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88083         regcomp, regexec):
88084         Remove now-unnecessary casts among pointer types.
88085         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88086
88087         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88088         (free): Remove decl.
88089
88090         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88091
88092         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88093         (free): Remove decl.
88094
88095         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88096         * lib/xgetcwd.c: Likewise.
88097
88098         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88099         (free): Remove decl.
88100
88101         * lib/strchrnul.c (strchrnul): Define with a prototype.
88102         Fix bug: c_in was not converted to char before searching.
88103
88104         The following changes are not K&R related:
88105
88106         * lib/group-member.h: Include <sys/types.h>, so that this file is
88107         self-contained.
88108         * lib/makepath.h: Likewise.
88109
88110         * lib/getusershell.c (readname, default_index, line_size, readname):
88111         Use size_t, not int, for sizes.
88112         (readname): If the size overflows, report an error instead of
88113         looping forever.
88114
88115 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88116
88117         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88118         libc.
88119
88120 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88121
88122         * README: New section: portability guidelines.
88123
88124 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88125
88126         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88127         C89 spec.
88128
88129 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88130
88131         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88132
88133 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88134
88135         Assume C89 or better; remove K&R cruft.
88136         A few of these changes were first proposed by Derek Robert Price
88137         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88138
88139         * lib/addext.c: Include <string.h> unconditionally.
88140         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88141         Don't declare getenv or malloc.
88142
88143         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88144         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88145         (NULL): Remove.
88146         (find_stack_direction, alloca): Use prototypes.
88147
88148         * lib/atexit.c (atexit): Define using a prototype.
88149
88150         * lib/basename.c, dirname.c, stripslash.c:
88151         Include <string.h> unconditionally.
88152
88153         * lib/bcopy.c: Include <stddef.h>.
88154         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88155
88156         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88157
88158         * lib/error.h (error, error_at_line, error_print_progname)
88159         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88160         * lib/error.c: Include error.h first, to check interface.
88161         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88162         (VA_START): Remove; all uses changeed to va_start.
88163         (exit, strerror): Remove decls.
88164         (error_print_progname): Prototype uncondionally.
88165         Don't include <errno.h>; no longer needed.
88166         (private_strerror): Remove.
88167         (error_tail): Always define.
88168         (error, error_at_line): Assume C89 or better; always use prototypes.
88169         * lib/fatal.c: Include "fatal.h" first, to test interface.
88170         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88171         (VA_START): Remove; all uses changed to va_start.
88172         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88173         this case.
88174         (exit): Remove decl.
88175         (fatal): Prototype unconditionally.  Assume va_start works.
88176         Abort at end, to pacify gcc.
88177
88178         * lib/euidaccess.c (main): Define with a prototype.
88179
88180         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88181
88182         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88183
88184         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88185         prototypes.
88186         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88187         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88188         (getenv): Remove decl.
88189         (fnmatch): Define using a prototype.
88190         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88191         (FCT): Define using a prototype.
88192
88193         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88194
88195         * lib/gethostname.c: Include <stddef.h>.
88196         (gethostname): Define with prototype.  Length is size_t, not int.
88197
88198 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88199
88200         Assume C89 or better; remove K&R cruft.
88201         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88202         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88203         string.h, getenv, malloc.
88204         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88205         headers.
88206         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88207         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88208         do not check for strerror.
88209         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88210         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88211         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88212         do not check for doprnt or vprintf.
88213         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88214         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88215
88216 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88217
88218         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88219         getversion.c should have been removed then, but was accidentally
88220         preserved.
88221
88222         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88223         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88224
88225 2003-09-08  Karl Berry  <karl@gnu.org>
88226
88227         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88228                 config, forget about prep.
88229
88230         * config/depcomp, missing: update from automake.
88231
88232 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88233
88234         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88235         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88236
88237 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88238
88239         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88240         copy_tm_result.  Bug reported by Simon Josefsson in
88241         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88242
88243 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88244
88245         * m4/time_r.m4: New file.
88246         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88247         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88248         is. Check for timegm declaration.
88249         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88250         Do not check for gmtime_r.
88251         Replace mktime if __mktime_internal does not exist and if mktime
88252         hasn't been replaced already.
88253
88254 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88255
88256         * lib/time_r.c, lib/time_r.h: New files.
88257
88258         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88259         __localtime_r.
88260         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88261         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88262
88263         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88264         __gmtime_r.
88265         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88266         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88267         Include <time_r.h>.
88268
88269         * lib/timegm.c: Switch to glibc implementation, with the following
88270         changes:
88271         [defined HAVE_CONFIG_H]: Include <config.h>.
88272         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88273         (__mktime_internal) [!defined _LIBC]: New decl.
88274         (__gmtime_r) [!defined _LIBC]: New macro and function.
88275         (timegm): Use a prototype, since gnulib assumes C89.
88276         Do not bother declaring tmp to be const, as it's not really usefu.
88277         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88278         (timegm): Declare only if HAVE_DECL_TIMEGM.
88279
88280 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88281
88282         * MODULES.html.sh (func_all_modules): Add time_r.
88283         * modules/time_r: New file.
88284         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88285         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88286
88287 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88288
88289         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88290         Bug reported by Lute Kamstra in
88291         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88292
88293         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88294         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88295         course with correspondingly smaller numbers for tomorrow and
88296         yesterday.  From Tadayoshi Funaba.  Originally installed into
88297         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88298         coreutils merge?).
88299
88300 2003-08-31  Simon Josefsson  <jas@extundo.com>
88301
88302         * modules/timegm: New file.
88303         * MODULES.html.sh (func_all_modules): Add timegm.
88304
88305 2003-08-31  Simon Josefsson  <jas@extundo.com>
88306
88307         * m4/timegm.m4: New file.
88308
88309 2003-08-31  Simon Josefsson  <jas@extundo.com>
88310
88311         * lib/timegm.h: New file.
88312         * lib/timegm.c: New file.  Based on
88313         wget-1.8.2/src/http.c:mktime_from_utc.
88314
88315 2003-08-31  Karl Berry  <karl@gnu.org>
88316
88317         * lib/argp.h: update from libc.
88318
88319 2003-08-28  Bruno Haible  <bruno@clisp.org>
88320
88321         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88322         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88323         followed by '#define fnmatch fnmatch_posix' gives an error.
88324
88325 2003-08-28  Bruno Haible  <bruno@clisp.org>
88326
88327         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88328         warning on QNX, which defines O_BINARY to 000000.
88329
88330 2003-08-27  Jim Meyering  <jim@meyering.net>
88331
88332         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88333         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88334         would fail after 32.  Reported by Danny Levinson.  Details here:
88335         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88336
88337 2003-08-24  Bruno Haible  <bruno@clisp.org>
88338
88339         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88340         MSVC7 <stdio.h> is included later.
88341
88342 2003-08-22  Simon Josefsson  <jas@extundo.com>
88343
88344         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88345
88346 2003-08-20  Karl Berry  <karl@gnu.org>
88347
88348         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88349
88350 2003-08-20  Bruno Haible  <bruno@clisp.org>
88351
88352         * modules/progname: New file.
88353         * MODULES.html.sh (func_all_modules): Add progname.
88354
88355 2003-08-20  Bruno Haible  <bruno@clisp.org>
88356
88357         * lib/progname.h: New file, from GNU gettext.
88358         * lib/progname.c: New file, from GNU gettext.
88359         * lib/progreloc.c: New file, from GNU gettext.
88360
88361 2003-08-19  Jim Meyering  <jim@meyering.net>
88362
88363         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88364         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88365
88366 2003-08-19  Bruno Haible  <bruno@clisp.org>
88367
88368         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88369         more.
88370
88371 2003-08-19  Bruno Haible  <bruno@clisp.org>
88372
88373         * lib/xstrdup.c: Assume <string.h> exists.
88374
88375 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88376
88377         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88378         in makefile rules.
88379
88380 2003-08-18  Jim Meyering  <jim@meyering.net>
88381
88382         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88383         * m4/lib-ld.m4: Likewise.
88384
88385 2003-08-18  Jim Meyering  <jim@meyering.net>
88386
88387         * lib/setenv.h: Indent nested cpp directive.
88388         * lib/vasnprintf.c: Remove trailing blanks.
88389
88390 2003-08-17  Simon Josefsson  <jas@extundo.com>
88391
88392         * modules/xstrndup: New file.
88393         * MODULES.html.sh (func_all_modules): Add xstrndup.
88394
88395 2003-08-17  Simon Josefsson  <jas@extundo.com>
88396
88397         * modules/argp: Fix autoconf macro name. Add more dependencies.
88398
88399 2003-08-17  Simon Josefsson  <jas@extundo.com>
88400
88401         * m4/xstrndup.m4: New file.
88402
88403 2003-08-17  Simon Josefsson  <jas@extundo.com>
88404
88405         * m4/argp.m4: New file.
88406
88407 2003-08-17  Simon Josefsson  <jas@extundo.com>
88408             Bruno Haible  <bruno@clisp.org>
88409
88410         * lib/xstrndup.h: New file.
88411         * lib/xstrndup.c: New file.
88412
88413 2003-08-17  Bruno Haible  <bruno@clisp.org>
88414
88415         * modules/strndup (Files, Include): Add lib/strndup.h.
88416
88417 2003-08-17  Bruno Haible  <bruno@clisp.org>
88418
88419         * modules/euidaccess (Files): Add lib/euidaccess.h.
88420
88421 2003-08-17  Bruno Haible  <bruno@clisp.org>
88422
88423         * lib/strndup.h: New file.
88424
88425 2003-08-17  Bruno Haible  <bruno@clisp.org>
88426
88427         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88428         like AC_GNU_SOURCE.
88429         * modules/extensions (configure.ac): Comment out the invocation of
88430         gl_USE_SYSTEM_EXTENSIONS.
88431
88432 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88433
88434         Merges from coreutils, etc.
88435         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88436         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88437         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88438         fixing a typo.
88439         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88440         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88441
88442 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88443
88444         Document merge from coreutils.
88445         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88446         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88447         * modules/utime: Add m4/utimes-null.m4.
88448
88449 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88450
88451         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88452         space, undoing this 2003-08-12 change:
88453         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88454
88455 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88456
88457         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88458         strtoul.c from libc, undoing this 2003-08-12 change:
88459         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88460
88461 2003-08-16  Jim Meyering  <jim@meyering.net>
88462
88463         Merges from coreutils.
88464         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88465         prefix.  Adjust cache variables similarly.  Create 500 rather than
88466         just 300 files, to exercise bug on Darwin6.5, too.
88467         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88468         $missing_dir.
88469         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88470         AM_SYS_POSIX_TERMIOS.
88471         Reported by mkc@mathdogs.com.
88472         Also change use of $am_cv_sys_posix_termios
88473         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88474         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88475         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88476         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88477         in /proc/mounts until it finds one with matching device number.  This
88478         is unnecessary when the FILE argument *is* a mount point.  No stat call
88479         is necessary in that case.  So, disable the statvfs-testing code on
88480         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88481         as RedHat bug# 84846.
88482         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88483         to 1MB, so as not to render systems with no stack size limit (e.g.,
88484         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88485         Include <unistd.h>.  On some systems,
88486         it is required for the definition of _SC_PAGESIZE.
88487
88488 2003-08-16  Jim Meyering  <jim@meyering.net>
88489
88490         Merge from coreutils.
88491         * lib/xstrtoimax.c: #else #if -> #elif.
88492         * lib/xstrtoumax.c: Likewise.
88493
88494 2003-08-16  Jim Meyering  <jim@meyering.net>
88495
88496         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88497         * m4/utimes.m4: Removed.
88498         * m4/utimes-null.m4: Renamed from utimes.m4.
88499
88500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88501         to 1MB, so as not to render systems with no stack size limit (e.g.,
88502         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88503         Include <unistd.h>.  On some systems,
88504         it is required for the definition of _SC_PAGESIZE.
88505
88506 2003-08-16  Jim Meyering  <jim@meyering.net>
88507         and Paul Eggert  <eggert@cs.ucla.edu>
88508
88509         Merges from coreutils, etc.
88510
88511         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88512         using the latest version from cvs.  This avoids problems with #line
88513         directives using a vendor (Sun) compiler.
88514         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88515         Don't set GETGROUPS_LIB here; now it's
88516         done via getgroups.m4's wrapper function.
88517         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88518         rather than just in sh-util/configure.in, so that the
88519         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88520         same.
88521         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88522         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88523         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88524         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88525         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88526         Remove code that is now done by the newly-required macros.
88527         Append $(EXEEXT) to DF_PROG.
88528         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88529         Do not invoke or require the following here,
88530         since prereq.m4 or some gnulib .m4 now does this for us:
88531         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88532         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88533         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88534         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88535         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88536         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88537         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88538         AC_FUNC_OBSTACK.
88539         Do not replace the following functions, as this is now the job
88540         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88541         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88542         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88543         atexit getpass, strdup, getpagesize.
88544         Replace 'raise'.
88545         Do not check for the following functions, as this is now the job
88546         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88547         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88548         setregid.
88549         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88550         Check for sys/sysctl.h.
88551         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88552         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88553         of checking for ssize_t ourselves.
88554
88555         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88556         Require every macro that gnulib/modules/* suggests for us.
88557         (jm_PREREQ_ADDEXT): New macro.
88558         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88559         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88560
88561         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88562         (gl_PHYSMEM): Use it.
88563         Also check for `table' function.
88564         Check for new headers and functions.
88565         Add check for sys/sysmp.h.
88566         With suggestions from Kaveh Ghazi.
88567         Ignore headers that are present but cannot be compiled.  This
88568         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88569         C 5.4.
88570
88571 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88572
88573         Document merge from coreutils.
88574         * modules/userspec: Depend on posixver.
88575         * modules/strftime: Depend on tzset.
88576
88577 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88578
88579         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88580         rather than tab, after '#' in shell-script copyright notices.
88581         Suggested by Bruno Haible.
88582
88583 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88584
88585         * config/srclist-update: Use three spaces, rather than tab, after '#'
88586         in shell-script copyright notices.  Suggested by Bruno Haible.
88587         Remove unnecessary parenthesization in regular expression.
88588
88589 2003-08-15  Jim Meyering  <jim@meyering.net>
88590
88591         Merge from coreutils.
88592         * lib/xgethostname.c: Include <stdlib.h>.
88593         (xghostname): Don't exit for anything other than memory-related
88594         failure; just return NULL.
88595         * lib/userspec.c: Include "posixver.h".
88596         (parse_user_spec): Accept `.' as a separator only
88597         in pre-POSIX-200112 mode.
88598         * lib/strtoimax.c: Use #elif rather than #else #if.
88599         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88600         Remove function, now that we can rely on a working tzset function.
88601         [!_LIBC]: Ensure that the required autoconf test has been run.
88602         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88603         Use underlying_strftime for %r.
88604         * lib/sha.c: Merge in some clean-up and optimization changes from
88605         glibc.
88606         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88607         Ensure that it is a multiple of 64.
88608         Rearrange loop exit tests so as to avoid performing an
88609         additional fread after encountering an error or EOF.
88610         * lib/realloc.c: Update copyright date.
88611
88612 2003-08-15  Jim Meyering  <jim@meyering.net>
88613         and Paul Eggert  <eggert@twinsun.com>
88614
88615         Merge from coreutils.
88616         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88617         member but strut utmpx does not.  Needed for AIX 4.3.3.
88618         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88619
88620 2003-08-15  Jim Meyering  <jim@meyering.net>
88621         and Paul Eggert  <eggert@cs.ucla.edu>
88622
88623         Merges from coreutils, etc.
88624         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88625         Require gl_FUNC_TZSET_CLOBBER.
88626         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88627         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88628         members.
88629
88630 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88631
88632         Help the merge from coreutils.
88633         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88634         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88635         * m4/tzset.m4: Use it too.
88636
88637 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88638
88639         * modules/tzset: New file.
88640
88641 2003-08-14  Jim Meyering  <jim@meyering.net>
88642
88643         Merges from coreutils.
88644         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88645         variable names, rather than @FNMATCH_H@.
88646         * modules/alloca: Likewise for $(ALLOCA_H).
88647
88648         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88649         the three copies of the literal target, `fnmatch.h'.
88650         * modules/alloca (alloca.h): Likewise.
88651
88652 2003-08-14  Jim Meyering  <jim@meyering.net>
88653
88654         Merge from coreutils.
88655         * m4/tzset.m4: New file.
88656         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88657         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88658         otherwise, AIX 5.1 systems would end up using the latter.
88659         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88660         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88661         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88662         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88663
88664 2003-08-14  Jim Meyering  <jim@meyering.net>
88665
88666         Merge from coreutils.
88667         * lib/obstack.h: Whitespace changes.
88668         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88669         and xcalloc return values.
88670         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88671         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88672         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88673         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88674         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88675         error from mntctl.
88676         Use mntctl's return value to drive the entry-processing loop, since
88677         we can't rely on the value of the vmt_length member in the last
88678         entry.  On some systems doing so could result in exhausting
88679         virtual memory.  Based in part on a patch from Mike Jetzer.
88680
88681 2003-08-14  Jim Meyering  <jim@meyering.net>
88682         and Paul Eggert  <eggert@twinsun.com>
88683
88684         Merges from coreutils, plus other fixes.
88685         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88686         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88687         for credits and details.  Thanks to Kaveh Ghazi for helping
88688         to keep these files in sync.
88689         (ARRAY_SIZE): Define it.
88690         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88691         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88692         (memcasecmp): Don't assume size_t fits in unsigned int.
88693         Remove casts and duplicate code.
88694         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88695         (memcpy): Remove definition.
88696         Merge in some clean-up and optimization changes from glibc.
88697         [BLOCKSIZE]: Move definition to top of file.
88698         Ensure that it is a multiple of 64.
88699         Rearrange loop exit tests so as to avoid performing an
88700         additional fread after encountering an error or EOF.
88701         * lib/md5.h (md5_uintptr): Define.
88702         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88703         return to the initial working directory.  Preserve errno
88704         for caller.
88705         * lib/idcache.c: Include "xalloc.h".
88706         (xmalloc, xrealloc): Remove decls.
88707         (getuser): Remove casts no longer required in C89.
88708         * lib/human.c: Include stdio.h, for sprintf.
88709         * lib/group-member.c: Include "xalloc.h".
88710         (xmalloc, xrealloc): Remove decls.
88711         (get_group_info): Remove casts no longer required in C89.
88712         * lib/getusershell.c (readname): Remove casts no longer required in
88713         C89.
88714         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88715         * lib/getline.c: Whitespace fix, from coreutils.
88716
88717 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88718
88719         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88720         Check for isascii.
88721
88722         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88723         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88724         Undo previous (whitespace-only) change.
88725
88726 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88727
88728         * lib/exclude.c: Include <ctype.h>
88729         (IN_CTYPE_DOMAIN): New macro.
88730         (is_space): New fn.
88731         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88732         and empty lines.
88733
88734         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88735         Undo previous (whitespace-only) change.
88736
88737 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88738
88739         * config/srclist-update: Change update back to the old behavior,
88740         leaving whitespace alone.  Use one 'sed' command rather than a
88741         pipeline.
88742         (fixlicense): Now a variable, not a function.
88743         (remove_trailing_blanks): Remove.
88744         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88745         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88746         Undo previous (whitespace-only) change.
88747
88748 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88749
88750         Merge from coreutils.
88751         * modules/euidaccess: Add lib_SOURCES, include for new
88752         file euidaccess.h
88753
88754 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88755
88756         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88757         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88758         Normalize leading white space and remove trailing white space.
88759
88760         Merge from coreutils
88761         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88762
88763         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88764         0.12.1.  These files are now being upgraded automatically by
88765         ../config/srclist-update.
88766
88767 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88768
88769         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88770         Normalize leading white space and remove trailing white space.
88771         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88772         notice, as per ../config/srclist-update.
88773
88774         Merge from coreutils.
88775         * lib/euidaccess.h: New file.
88776         * lib/euidaccess.c: Include it.
88777         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88778         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88779         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88780
88781 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88782
88783         * config/srclist-update: Add copyright notice.
88784         (remove_id_lines, remove_trailing_blanks): New constants.
88785         (fixfile): Use them to normalize spacing a bit in copied files.
88786         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88787         Normalize leading white space and remove trailing white space.
88788
88789         * config/texinfo.tex: Sync with texinfo.
88790
88791         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88792         strtoul.c from libc, to merge coreutils whitespace changes.
88793
88794         * config/srclist.txt: Get the following m4 files from gettext:
88795         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88796         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88797         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88798         wint_t.m4.
88799
88800 2003-08-12  Karl Berry  <karl@gnu.org>
88801
88802         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88803         been made.
88804
88805 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88806
88807         * modules/gnu-source, m4/gnu-source.m4:
88808         Remove; we're assuming Autoconf 2.54 or later now.
88809         Suggested by Bruno Haible.
88810         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88811
88812 2003-08-11  Bruno Haible  <bruno@clisp.org>
88813
88814         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88815
88816 2003-08-11  Bruno Haible  <bruno@clisp.org>
88817
88818         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88819         (vasnprintf): Use it instead of wcslen.
88820
88821 2003-08-11  Bruno Haible  <bruno@clisp.org>
88822
88823         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88824         value to ensure that _Bool promotes to int. Use #define for _Bool when
88825         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88826
88827 2003-08-10  Karl Berry  <karl@gnu.org>
88828
88829         * lib/regex.h: update from libc (whitespace fix).
88830
88831 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88832
88833         Merge some files from coreutils.  These changes were
88834         originally made by Jim Meyering.
88835         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88836         many older Unixes require this.
88837         * lib/alloca.c (alloca): Remove cast to argument of free;
88838         no longer needed in C89.
88839         * lib/alloca_.h, regex.h: Fix white space to match
88840         what GNU indent does.
88841
88842 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88843
88844         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88845         apparently Emacs's Unicode mode got confused before my 2003-08-05
88846         checkin.
88847
88848 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88849
88850         * m4/extensions.m4: New file.
88851         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88852         Require gl_USE_SYSTEM_EXTENSIONS.
88853         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88854         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88855
88856 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88857
88858         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88859         * modules/extensions, modules/gnu-source: New files.
88860         * modules/timespec, modules/unlocked-io: Depend on extensions.
88861
88862 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88863
88864         * modules/restrict: New file.
88865         * MODULES.html.sh (func_all_modules): Add restrict.
88866         * modules/regex: Depend on restrict.
88867
88868 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88869
88870         * m4/restrict.m4: New file.
88871         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88872
88873 2003-08-07  Bruno Haible  <bruno@clisp.org>
88874
88875         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88876         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88877
88878 2003-08-07  Bruno Haible  <bruno@clisp.org>
88879
88880         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88881         makes the module 'getndelim2' compatible with the module 'getline'.
88882
88883 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88884
88885         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88886         byte with "\201" to avoid glitches when editing that source file
88887         with multi-gnome-terminal.
88888
88889 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88890
88891         * lib/bumpalloc.h: Remove.
88892
88893 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88894
88895         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88896         * modules/bumpalloc: Remove.
88897
88898 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88899
88900         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88901         GNU coding style.
88902
88903         Merge from coreutils.
88904         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88905         1. From glibc.
88906         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88907         from Karl Berry, implemented by Jim Meyering.
88908         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88909         from Dmitry V. Levin.
88910         Remove anachronistic cast of xrealloc.
88911         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88912         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88913         type. Otherwise, it wouldn't compile with at least /bin/cc on
88914         ymp-cray-unicos9.0.2.X.
88915         Combine two mostly-identical uses of alloca into one.
88916         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88917
88918 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88919
88920         [From Emacs.]
88921
88922         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88923         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88924         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88925         obsolete NLIST_NAME_UNION.
88926         [__GNU__]: Undef BSD and FSCALE.
88927         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88928
88929 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88930
88931         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88932         an enum type, so that it's guaranteed to promote to int.  See:
88933         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88934
88935 2003-08-03  Karl Berry  <karl@gnu.org>
88936
88937         * config/depcomp: update from automake.
88938
88939 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88940
88941         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88942         (strerror): Don't assume that a printable int fits in 14 bytes.
88943
88944 2003-07-31  Bruno Haible  <bruno@clisp.org>
88945
88946         * modules/getpass-gnu: New file.
88947         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88948
88949 2003-07-31  Bruno Haible  <bruno@clisp.org>
88950
88951         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88952
88953 2003-07-24  Karl Berry  <karl@gnu.org>
88954
88955         * config/missing: update from automake.
88956
88957 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88958             Bruno Haible  <bruno@clisp.org>
88959
88960         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88961         * lib/getline.c (getline, getdelim): Likewise.
88962         Remove _GNU_SOURCE define; now it's defined in config.h through
88963         m4/getline.m4.
88964
88965 2003-07-23  Karl Berry  <karl@gnu.org>
88966
88967         * config/config.sub: update from prep.
88968
88969 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88970
88971         * modules/xalloc (Depends-on): Add exitfail.
88972         * modules/xmemcoll: Likewise.
88973
88974 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88975
88976         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88977         over-parenthesization in macros.
88978
88979         Sync with coreutils.
88980
88981         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88982         required by C99.
88983
88984         Use `exit_failure' for xalloc and xmemcoll instead of their own
88985         private exit-failure variables.
88986         * lib/xalloc.h (xalloc_exit_failure): Remove.
88987         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88988         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88989         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88990         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88991         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88992
88993 2003-07-20  Jim Meyering  <jim@meyering.net>
88994
88995         * modules/closeout (Depends-on): Add exitfail.
88996         Suggestion from Bruno Haible.
88997
88998 2003-07-19  Karl Berry  <karl@gnu.org>
88999
89000         * config/config.sub: update from prep.
89001
89002 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89003
89004         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89005         Remove.
89006         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89007         to test that it can stand by itself.  Include "exitfail.h".
89008         Clients should set exit_failure instead.
89009         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89010
89011 2003-07-18  Bruno Haible  <bruno@clisp.org>
89012
89013         * modules/getndelim2: New file.
89014         * modules/getline: Share files with module getndelim2.
89015         * modules/getnline: Depend on getndelim2 instead of sharing files with
89016         it. Add getnline.c to lib_SOURCES.
89017         * MODULES.html.sh (func_all_modules): Add getndelim2.
89018
89019 2003-07-18  Bruno Haible  <bruno@clisp.org>
89020
89021         * m4/getndelim2.m4: New file.
89022         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89023         invoke gl_PREREQ_GETNDELIM2.
89024         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89025         gl_PREREQ_GETNDELIM2.
89026         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89027         gl_GETNDELIM2.
89028
89029 2003-07-18  Bruno Haible  <bruno@clisp.org>
89030
89031         * lib/getndelim2.h: New file.
89032         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89033         getndelim2.h.
89034         (getndelim2): Make non-static. Change return type to ssize_t.
89035         * lib/getline.h: Change argument names.
89036         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89037         * lib/getnline.c: Include getndelim2.h.
89038
89039 2003-07-18  Andreas Schwab  <schwab@suse.de>
89040
89041         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89042
89043 2003-07-17  Karl Berry  <karl@gnu.org>
89044
89045         * config/config.sub: update from prep.
89046
89047 2003-07-17  Bruno Haible  <bruno@clisp.org>
89048
89049         * modules/getnline: New file.
89050         * modules/getline: Add lib/getndelim2.c to source file list.
89051         * MODULES.html.sh (func_all_modules): Add getnline.
89052
89053 2003-07-17  Bruno Haible  <bruno@clisp.org>
89054
89055         * m4/getnline.m4: New file.
89056
89057 2003-07-17  Bruno Haible  <bruno@clisp.org>
89058
89059         * m4/Makefile.am.in: Remove file.
89060         * m4/Makefile.am: Remove file.
89061         * m4/Makefile.in: Remove file.
89062
89063 2003-07-17  Bruno Haible  <bruno@clisp.org>
89064
89065         * lib/getnline.h: New file.
89066         * lib/getnline.c: New file.
89067         * lib/getndelim2.c: New file, extracted from getline.c.
89068         (getndelim2): Renamed from getdelim2, with added nmax argument.
89069         * lib/getline.c: Include getndelim2.c.
89070         (getdelim2): Moved out to getndelim2.c.
89071         (getline, getdelim): Update.
89072
89073 2003-07-17  Bruno Haible  <bruno@clisp.org>
89074
89075         * lib/Makefile.am: Remove file.
89076         * lib/Makefile.in: Remove file.
89077
89078 2003-07-17  Bruno Haible  <bruno@clisp.org>
89079
89080         * configure.in: Remove file.
89081         * Makefile.in: Remove file.
89082
89083 2003-07-17  Bruno Haible  <bruno@clisp.org>
89084
89085         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89086
89087 2003-07-16  Karl Berry  <karl@gnu.org>
89088
89089         * config/srclist-update: was running fixlicense twice, which caused
89090                 texinfo.tex to be nullified for some reason.  Simplify,
89091                 $gplsrc is no longer needed as far as I can see?
89092
89093 2003-07-16  Jim Meyering  <jim@meyering.net>
89094
89095         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89096
89097 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89098
89099         * config/srclist.txt: Get the following files from gettext-runtime/intl
89100         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89101         ref-del.sin.  From Bruno Haible.
89102         * config/srclist-update (fixfile): Change grep pattern again, since the
89103         previous fix didn't work (there was another trailing $).  Use
89104         '[$]' to escape the $s.
89105
89106 2003-07-15  Karl Berry  <karl@gnu.org>
89107
89108         * lib/vasnprintf.c: update from gettext.
89109
89110 2003-07-15  Karl Berry  <karl@gnu.org>
89111
89112         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89113         gets expanded when surrounded by '$'.
89114
89115 2003-07-15  Jim Meyering  <jim@meyering.net>
89116
89117         * modules/save-cwd: Don't depend on error.  From Derek Price.
89118
89119 2003-07-15  Jim Meyering  <jim@meyering.net>
89120
89121         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89122
89123 2003-07-14  Simon Josefsson  <jas@extundo.com>
89124
89125         * modules/mempcpy: New file.
89126         * MODULES.html.sh (func_all_modules): Add mempcpy.
89127
89128 2003-07-14  Simon Josefsson  <jas@extundo.com>
89129
89130         * m4/mempcpy.m4: New file.
89131
89132 2003-07-14  Simon Josefsson  <jas@extundo.com>
89133
89134         * lib/mempcpy.h: New file.
89135         * lib/mempcpy.c: New file.
89136
89137 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89138
89139         * modules/getdate, modules/posixtm: Depend on mktime.
89140
89141 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89142
89143         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89144         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89145         unicodeio.c, unicodeio.h, unlocked-io.h:
89146         Switch from LGPL to GPL.
89147
89148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89149
89150         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89151         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89152         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89153         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89154         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89155         updated automatically by ../config/srclist-update.  This changes
89156         their license from LPGL to GPL.
89157
89158 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89159
89160         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89161         assumed to refer to the root of the most recent stable gettext version.
89162         * config/srclistvars.sh: Add defaults for eggert.
89163         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89164         Match "This program" as well as "The program".  This is needed
89165         for gettext.
89166
89167 2003-07-14  Jim Meyering  <jim@meyering.net>
89168
89169         Don't emit diagnostics.  Let callers do that.
89170         * lib/save-cwd.c: Don't include "error.h".
89171         (save_cwd): Don't call error.  Ensure that errno is valid
89172         when returning nonzero.
89173
89174         * lib/save-cwd.h (restore_cwd): Update prototype.
89175         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89176         Simplify.  Don't call error upon failure.  Let callers do that.
89177         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89178         when auditing is enabled.  But don't bother updating the #if.
89179
89180 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89181
89182         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89183         it breaks C++ compilation.
89184         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89185
89186 2003-07-10  Simon Josefsson  <jas@extundo.com>
89187
89188         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89189
89190 2003-07-10  Jim Meyering  <jim@meyering.net>
89191
89192         * m4/clock_time.m4: Remove trailing blank.
89193         * m4/intmax_t.m4: Likewise.
89194
89195 2003-07-10  Jim Meyering  <jim@meyering.net>
89196
89197         * lib/vasnprintf.c: Remove trailing blanks.
89198         Make cpp indentation consistent.
89199
89200 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89201
89202         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89203         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89204         Switch from LGPL to GPL.
89205
89206 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89207
89208         * config/srclist.txt: Sort sublists.  Add
89209         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89210         that differ from gnulib for one reason or another; we'd like this list
89211         to be smaller but for now let's document what we have.
89212
89213 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89214
89215         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89216         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89217         and sweeter "eval x=$x".
89218         * config/srclist.txt: Get lib/argp* from glibc.
89219
89220 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89221
89222         * lib/mktime.c: Fix some boundary cases and remove need for floating
89223         point.
89224
89225         Issue a compile-time diagnostic if time_t is floating point, or if
89226         two's complement arithmetic is not in effect, or if arithmetic
89227         right shift does not propagate the sign.  These assumptions were
89228         all in the original code but they weren't checked.
89229
89230         (TIME_T_MIDPOINT, verify): New macros.
89231         (__isleap): Remove; it has integer overflow problems.
89232         (leapyear): New function, without those problems.
89233         (ydhms_tm_diff): Remove; splitting into two parts.
89234         (ydhms_diff): New function, containing the arithmetic part of
89235         the old ydhms_tm_diff function.  Issue a compile-time
89236         diagnostic if we are not using C99 integer division.
89237         Avoid casts when possible.
89238         (guess_time_tm): New function, containing the checking part of
89239         the old ydhms_tm_diff function.  Return the new value, rather than
89240         the difference between it and the old.  Accept a new argument T
89241         so that *T specifies the old value.  Check for overflow in the result.
89242
89243         (__mktime_internal): Use a time_t offset, not a long int offset.
89244         This undoes the 2003-06-04 change, which is no longer needed now
89245         that we have better overflow checking.
89246         (localtime_offset): Likewise.
89247
89248         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89249         and long are 64-bit but int is only 32-bit.
89250         (ydhms_diff): Use long int to store year1 and yday1.
89251         Issue a compile-time diagnostic if long int is not wide enough.
89252
89253         (__mktime_internal): Use long int to store adjusted year and yday.
89254         Use plain C rather than preprocessor commands, if that doesn't
89255         affect efficiency.
89256         Check for overflow (and try to repair) after each probe
89257         rather than checking only at the very end.  This avoids some bugs
89258         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89259         does not equal GMT offset at maximum time).
89260         Use integer to check for overflow rather than floating point; this
89261         is more portable to non-IEEE hosts, and is a tad faster.
89262         When we detect that we are oscillating between two values,
89263         don't check whether tm_isdst has the requested value, since
89264         we already know the answer.  When tm_isdst has the wrong value,
89265         use a different heuristic to find the right one, based on the
89266         extreme values actually observed in practice in tz2003a,
89267         rather than the (overly optimistic) "previous 3 calendar quarters".
89268
89269         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89270         "T const" to accommodate glibc style.
89271         (check_result): Use less-confusing report format.  "long" -> "long int.
89272         (main): Likewise.
89273         Don't loop if the iteration overflows time_t.
89274         Allow a negative step in the iteration.
89275
89276 2003-07-06  Karl Berry  <karl@gnu.org>
89277
89278         * config/depcomp: update from automake.
89279         * config/config.sub: update from prep.
89280
89281 2003-07-03  Karl Berry  <karl@gnu.org>
89282
89283         * config/config.guess: update from prep.
89284
89285 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89286
89287         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89288         xreadlink.c now includes it unconditionally.
89289
89290 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89291
89292         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89293         having it depend on HAVE_SYS_TYPES_H.
89294
89295 2003-07-01  Bruno Haible  <bruno@clisp.org>
89296
89297         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89298         <sys/types.h> should be sufficient.
89299         Reported by Paul Eggert.
89300
89301 2003-06-26  Karl Berry  <karl@gnu.org>
89302
89303         * config/depcomp: update from automake.
89304
89305 2003-06-26  Bruno Haible  <bruno@clisp.org>
89306
89307         * modules/human: Depend on module stdbool.
89308
89309 2003-06-25  Bruno Haible  <bruno@clisp.org>
89310
89311         * modules/readlink: New file.
89312         * modules/xreadlink: Depend on it.
89313         * MODULES.html.sh (func_all_modules): Add readlink.
89314
89315 2003-06-25  Bruno Haible  <bruno@clisp.org>
89316
89317         * m4/readlink.m4: New file.
89318
89319 2003-06-25  Bruno Haible  <bruno@clisp.org>
89320
89321         * lib/readlink.c: New file.
89322
89323 2003-06-22  Karl Berry  <karl@gnu.org>
89324
89325         * config/srclist.txt: update mkinstalldirs from automake.
89326         * config/mkinstalldirs: update.
89327
89328 2003-06-22  Bruno Haible  <bruno@clisp.org>
89329
89330         Portability to mingw32.
89331         * m4/ssize_t.m4: New file, from GNU gettext.
89332         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89333         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89334
89335 2003-06-22  Bruno Haible  <bruno@clisp.org>
89336
89337         * modules/safe-read: Add m4/ssize_t.m4.
89338         * modules/xreadlink: Add m4/ssize_t.m4.
89339
89340 2003-06-20  Bruno Haible  <bruno@clisp.org>
89341
89342         Assume C89, so PARAMS isn't needed.
89343         * lib/unicodeio.h (PARAMS): Remove.
89344         * lib/unicodeio.c: Don't use PARAMS.
89345
89346 2003-06-18  Karl Berry  <karl@gnu.org>
89347
89348         * config/config.{guess,sub}: update from prep.
89349
89350 2003-06-18  Jim Meyering  <jim@meyering.net>
89351
89352         Merge changes from coreutils.
89353         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89354         Remove explicit declarations of xmalloc and realloc.
89355         Include xalloc.h.
89356         (read_utmp): Remove anachronistic cast of xmalloc.
89357
89358 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89359
89360         Assume C89, so PARAMS isn't needed.
89361         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89362         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89363         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89364         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89365         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89366         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89367         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89368         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89369         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89370         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89371         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89372         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89373         no longer needed. Anyway, config.h should always be included before any
89374         other file.
89375
89376 2003-06-11  Simon Josefsson  <jas@extundo.com>
89377
89378         * modules/sysexits: New file.
89379         * MODULES.html.sh (func_all_modules): Add sysexits.
89380
89381 2003-06-11  Simon Josefsson  <jas@extundo.com>
89382
89383         * lib/sysexit_.h: New file.
89384
89385 2003-06-11  Derek Price  <derek@ximbiot.com>
89386
89387         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89388         necessary.
89389
89390 2003-06-11  Bruno Haible  <bruno@clisp.org>
89391
89392         * m4/sysexits.m4: New file.
89393
89394 2003-06-10  Simon Josefsson  <jas@extundo.com>
89395
89396         * lib/argp.h: New file, from glibc.
89397         * lib/argp-ba.c: New file, from glibc.
89398         * lib/argp-eexst.c: New file, from glibc.
89399         * lib/argp-fmtstream.c: New file, from glibc.
89400         * lib/argp-fmtstream.h: New file, from glibc.
89401         * lib/argp-fs-xinl.c: New file, from glibc.
89402         * lib/argp-help.c: New file, from glibc.
89403         * lib/argp-namefrob.h: New file, from glibc.
89404         * lib/argp-parse.c: New file, from glibc.
89405         * lib/argp-pv.c: New file, from glibc.
89406         * lib/argp-pvh.c: New file, from glibc.
89407         * lib/argp-xinl.c: New file, from glibc.
89408
89409 2003-06-10  Simon Josefsson  <jas@extundo.com>
89410
89411         * modules/strchrnul: New file.
89412
89413 2003-06-10  Simon Josefsson  <jas@extundo.com>
89414
89415         * modules/argp: New file.
89416
89417 2003-06-10  Simon Josefsson  <jas@extundo.com>
89418
89419         * m4/strchrnul.m4: New file.
89420
89421 2003-06-10  Simon Josefsson  <jas@extundo.com>
89422
89423         * lib/strchrnul.h: New file.
89424         * lib/strchrnul.c: New file.
89425
89426 2003-06-10  Bruno Haible  <bruno@clisp.org>
89427
89428         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89429
89430 2003-06-07  Karl Berry  <karl@gnu.org>
89431
89432         * config/config.{guess,sub}: update from prep.
89433
89434 2003-06-07  Jim Meyering  <jim@meyering.net>
89435
89436         * modules/strtod: Use $(...) notation, not @...@ for
89437         AC_REPLACE'd variables.
89438         * modules/localcharset: Likewise.
89439
89440 2003-06-07  Jim Meyering  <jim@meyering.net>
89441
89442         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89443         in place of my name in the copyright comment.
89444         Remove definition and uses of __P.
89445
89446         From coreutils.
89447         * lib/stat.c: Don't declare xmalloc explicitly.
89448         Instead, include "xalloc.h".
89449         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89450         xrealloc, and xcalloc return values.
89451         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89452         Improve comment.
89453         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89454
89455 2003-06-07  Bruno Haible  <bruno@clisp.org>
89456
89457         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89458         avoid AC_CONFIG_LINKS.
89459         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89460         fnmatch.h, to avoid AC_CONFIG_LINKS.
89461         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89462
89463 2003-06-07  Bruno Haible  <bruno@clisp.org>
89464
89465         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89466         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89467         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89468         directory.
89469         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89470         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89471         directory.
89472
89473 2003-06-06  Jim Meyering  <jim@meyering.net>
89474
89475         Merge from coreutils.
89476         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89477         Consolidate declarations and initializations of *_base* locals.
89478
89479         Merge from coreutils.
89480         This avoids a core dump on systems without GNU putenv,
89481         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89482         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89483         (unsetenv): New static function, from GNU libc.
89484         (rpl_putenv): Use it.
89485
89486         * lib/modechange.c: Remove trailing blanks.
89487
89488         Merge from coreutils.
89489         * lib/fsusage.c: Remove declaration of statfs.
89490         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89491
89492         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89493
89494 2003-06-06  Jim Meyering  <jim@meyering.net>
89495
89496         * lib/stdbool_.h: Renamed from stdbool.h.in.
89497
89498 2003-06-06  Jim Meyering  <jim@meyering.net>
89499             Bruno Haible  <bruno@clisp.org>
89500
89501         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89502         Adjust Makefile.am snippet not to redirect directly to target.
89503         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89504
89505 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89506
89507         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89508         mismatch, look in future quarters as well as past.  This fixes a
89509         bug when processing fall-backwards gaps immediately after a long
89510         period of daylight-saving time.
89511
89512         * lib/mktime.c: Assume freestanding C89 or better.
89513         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89514         (__P): Remove; not used.
89515         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89516         (mktime, not_equal_tm, print_tm, check_result,
89517         main): Use prototypes.  Use const * where appropriate.
89518         (main): Fix typo in testing code that uncovered by above changes.
89519         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89520
89521 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89522
89523         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89524         locale.h, localeconv.  This merges changes from coreutils.
89525
89526         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89527         It can be removed after the next Autoconf is released.
89528         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89529         needed.
89530
89531 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89532
89533         * lib/mktime.c: Fix Debian bug 177940
89534         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89535         (localtime_offset): Now long int, not time_t, because we want it
89536         to be guaranteed to be signed.  All uses changed.
89537         (__mktime_internal): If overflow would occur when adding offset,
89538         don't add it.
89539
89540         Merge 'human' changes from coreutils.  Rewrite to support
89541         locale-specific notations like thousands separators.
89542         * lib/human.c: Simplify authorship notice.
89543         Include human.h immediately after config.h.
89544         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89545         <limits.h>: Do not include, since human.h does.
89546         (SIZE_MAX, UINTMAX_MAX): New macros.
89547         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89548         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89549         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89550         (power_letter): Renamed from suffixes.
89551         (generate_suffix_backwards): Remove.
89552         (adjust_value): Now takes int style (because of human.h changes)
89553         and long double value (for greater precision on some platforms).
89554         (group_number): New function.
89555         (human_readable): Use it.  Use integer options, not enum.
89556         Put the options before the sizes in the arg list.
89557         Support all the new options.
89558         The old human_readable function has been removed;
89559         use inttostr.h instead.
89560         (human_readable, default_block_size, humblock):
89561         Use uintmax_t, not int, for block sizes.
89562         (human_readable_inexact, block_size_types): Remove.
89563         (block_size_opts): New constant.
89564         (human_options): Renamed from human_block_size, with new signature
89565         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89566         * lib/human.h: Add copyright and authorship notice.
89567         Include <limits.h> and <stdbool.h> unconditionally.
89568         (PARAMS): Remove.  All uses removed.
89569         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89570         (enum human_inexact_style): Remove tag; now a nameless enum.
89571         (human_floor, human_ceiling, human_round_to_even): Now have
89572         values 2, 0, 1 rather than -1, 1, 0.
89573         (human_group_digits, human_suppress_point_zero, human_autoscale,
89574         human_base_1024, human_SI, human_B): New constants.
89575         (human_readable_inexact, human_block_size): Remove.
89576         (human_readable): Size args are now uintmax_t, not int.
89577         (human_options): New decl.
89578
89579         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89580         unnecessary now that we assume C89 or better.  This change
89581         imported from coreutils.
89582
89583         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89584         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89585         in the 2003-05-30 sync from glibc.
89586
89587         .h files should stand alone, but we shouldn't include <sys/types.h>
89588         if we can get away with just <stddef.h>.
89589
89590         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89591         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89592         rather than <sys/types.h>, as we merely need size_t.
89593         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89594         to get size_t.
89595         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89596         Include <stdio.h>, to get FILE.
89597         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89598         memcasecmp.h has included <stddef.h> and all we need is size_t.
89599         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89600         our interface, instead of including <sys/types.h>
89601
89602 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89603
89604         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89605         now, as glibc mktime is buggy on non-glibc systems.
89606
89607 2003-06-03  Karl Berry  <karl@gnu.org>
89608
89609         * config/config.sub: update from prep.
89610
89611 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89612
89613         [from coreutils]
89614         Fix some minor time-related bugs with POSIX time arguments.
89615         Some valid time stamps were being rejected (notably -1, and
89616         time stamps before 1900 on 64-bit hosts).  And some invalid
89617         time stamps were being accepted, e.g. September 31.
89618
89619         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89620         that we can return (time_t) -1 successfully.
89621         * lib/posixtm.c: Likewise.
89622         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89623         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89624         (t): Remove static var.
89625         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89626         of static var.  All uses changed.
89627         (year): Do not reject years before 1900; they can occur with
89628         64-bit time_t.
89629         (posix_time_parse): Do not check for out-of-range components;
89630         that is now the caller's responsibility, since our checks were
89631         only approximations.
89632         (posixtime): Use mktime to check for out-of-range components,
89633         since it knows them exactly.
89634         If mktime returns (time_t) -1, check whether an error actually occurred
89635         by invoking localtime on -1.
89636         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89637         posixtime failures better.
89638         Improve the test data (in comments only).
89639
89640 2003-06-02  Karl Berry  <karl@gnu.org>
89641
89642         * config/mkinstalldirs (version): new variable.
89643         (--version): new option.
89644         (usage): improve message.
89645
89646 2003-05-30  Karl Berry  <karl@gnu.org>
89647
89648         * lib/mktime.c: update from libc.
89649
89650 2003-05-30  Bruno Haible  <bruno@clisp.org>
89651
89652         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89653         * config/config.rpath: Upgrade to gettext-0.12.1.
89654
89655 2003-05-30  Bruno Haible  <bruno@clisp.org>
89656
89657         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89658         * m4/nls.m4: New file, from gettext-0.12.1.
89659         * m4/po.m4: New file, from gettext-0.12.1.
89660         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89661
89662 2003-05-30  Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89665         * lib/localcharset.h: Likewise.
89666         * lib/localcharset.c: Likewise.
89667
89668 2003-05-29  Karl Berry  <karl@gnu.org>
89669
89670         * config/config.rpath: update from gettext.
89671
89672 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89673
89674         Assume the headers required for C89 freestanding compilers.
89675         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89676         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89677         * m4/human.m4 (gl_HUMAN): Likewise.
89678         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89679         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89680         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89681         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89682         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89683         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89684
89685 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89686
89687         Assume the headers required for C89 freestanding compilers.
89688         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89689         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89690         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89691         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89692         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89693         define, since <limits.h> is guaranteed to do that.
89694         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89695         * lib/exclude.c: Include <stdbool.h> unconditionally.
89696         * lib/tempname.c: Include <stddef.h> unconditionally.
89697         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89698         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89699         <stddef.h> does that.
89700         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89701         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89702         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89703         needed.
89704         * lib/xstrtol.c: Likewise.
89705         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89706         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89707
89708         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89709         warnings on some platforms.
89710
89711         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89712         arbitrarily.
89713
89714 2003-05-26  Jim Meyering  <jim@meyering.net>
89715
89716         Merge in a change from coreutils:
89717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89718         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89719         that condition, rather than `-1' which is slightly misleading.
89720         Change the name of the cache variable to have the gl_ prefix.
89721         Prompted by a patch from Richard Dawe for DJGPP.
89722
89723 2003-05-24  Karl Berry  <karl@gnu.org>
89724
89725         * config/config.guess: update from prep.
89726
89727 2003-05-22  Karl Berry  <karl@gnu.org>
89728
89729         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89730
89731 2003-05-20  Karl Berry  <karl@gnu.org>
89732
89733         * config/config.guess: update from prep.
89734
89735 2003-05-18  Karl Berry  <karl@gnu.org>
89736
89737         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89738         might actually be set by the user.
89739
89740         * config/depcomp, install-sh, mdate-sh: update from automake.
89741
89742 2003-05-17  Bruno Haible  <bruno@clisp.org>
89743
89744         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89745         invalid expansion for AC_EGREP_CPP.
89746         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89747         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89748         Suggested by Akim Demaille <akim@epita.fr> in
89749         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89750
89751 2003-05-12  Jim Meyering  <jim@meyering.net>
89752
89753         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89754         the space-padded-by-default conversion specifiers, %e, %k, %l.
89755
89756 2003-05-12  Bruno Haible  <bruno@clisp.org>
89757
89758         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89759         the string is longer than 4 KB.
89760
89761 2003-05-11  Karl Berry  <karl@gnu.org>
89762
89763         * config/config.{guess,sub}: update from prep.
89764
89765 2003-05-09  Bruno Haible  <bruno@clisp.org>
89766
89767         * modules/error: Add m4/strerror_r.m4 to file list.
89768
89769 2003-05-03  Bruno Haible  <bruno@clisp.org>
89770
89771         Upgrade to Unicode-4.0.
89772         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89773         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89774         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89775         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89776         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89777         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89778         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89779         Change width of U+E0100..U+E01EF from 1 to 0.
89780
89781 2003-04-25  Jim Meyering  <jim@meyering.net>
89782
89783         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89784         of type size_t, not int.
89785
89786 2003-04-25  Bruno Haible  <bruno@clisp.org>
89787
89788         * lib/copy-file.c: Include <stddef.h>, for size_t.
89789
89790 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89791
89792         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89793         code which expansion is under static control.  Patch imported from
89794         Akim Demaille's patch to Bison; see
89795         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89796
89797 2003-04-14  Bruno Haible  <bruno@clisp.org>
89798
89799         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89800
89801 2003-04-11  Jim Meyering  <jim@meyering.net>
89802
89803         Merge changes from Coreutils.
89804
89805         2003-03-22  Jim Meyering  <jim@meyering.net>
89806
89807         * lib/strftime.c (widen): Cast alloca return value to proper type.
89808
89809         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89810
89811         From GNU libc.
89812         * lib/strftime.c (my_strftime): Handle very large width
89813         specifications for numeric values correctly.  Improve checks for
89814         overflow.
89815
89816         2003-01-19  Jim Meyering  <jim@meyering.net>
89817
89818         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89819         definitions.
89820         (nl_get_alt_digit) [! defined my_strftime]: Define.
89821         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89822         _nl_get_alt_digit and _nl_get_walt_digit.
89823
89824         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89825         libc. These changes have no effect outside of _LIBC.
89826
89827 2003-04-10  Bruno Haible  <bruno@clisp.org>
89828
89829         * modules/findprog: New file.
89830         * MODULES.html.sh (func_all_modules): Add it.
89831
89832 2003-04-10  Bruno Haible  <bruno@clisp.org>
89833
89834         * m4/findprog.m4: New file.
89835         * m4/eaccess.m4: New file.
89836
89837 2003-04-10  Bruno Haible  <bruno@clisp.org>
89838
89839         * lib/findprog.h: New file, from GNU gettext.
89840         * lib/findprog.c: New file, from GNU gettext.
89841
89842 2003-04-05  Jim Meyering  <jim@meyering.net>
89843
89844         Merge changes from Coreutils.
89845
89846         * lib/exclude.h (PARAMS): Remove definition and uses.
89847         * lib/exclude.c: Remove uses of `PARAMS'.
89848
89849         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89850         Add test-cases for DOS filenames. Declare program_name.
89851         (main): Set up program_name.  Patch by Rich Dawe.
89852
89853         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89854         error from mntctl.
89855         Use mntctl's return value to drive the entry-processing loop, since
89856         we can't rely on the value of the vmt_length member in the last
89857         entry.  On some systems doing so could result in exhausting
89858         virtual memory.  Based in part on a patch from Mike Jetzer.
89859
89860 2003-04-04  Bruno Haible  <bruno@clisp.org>
89861
89862         * modules/linebreak: New file.
89863         * MODULES.html.sh (func_all_modules): Add it.
89864
89865 2003-04-04  Bruno Haible  <bruno@clisp.org>
89866
89867         * m4/linebreak.m4: New file.
89868
89869 2003-04-04  Bruno Haible  <bruno@clisp.org>
89870
89871         * lib/linebreak.h: New file, from GNU gettext.
89872         * lib/linebreak.c: New file, from GNU gettext with slight
89873         modifications.
89874         * lib/lbrkprop.h: New file, from GNU gettext.
89875
89876 2003-04-03  Bruno Haible  <bruno@clisp.org>
89877
89878         * modules/utf8-ucs4: New file.
89879         * modules/utf16-ucs4: New file.
89880         * modules/ucs4-utf8: New file.
89881         * modules/ucs4-utf16: New file.
89882         * MODULES.html.sh (func_all_modules): Add them.
89883
89884 2003-04-03  Bruno Haible  <bruno@clisp.org>
89885
89886         * m4/utf-ucs4.m4: New file.
89887         * m4/ucs4-utf.m4: New file.
89888
89889 2003-04-03  Bruno Haible  <bruno@clisp.org>
89890
89891         * lib/utf8-ucs4.h: New file, from GNU gettext.
89892         * lib/utf16-ucs4.h: New file, from GNU gettext.
89893         * lib/ucs4-utf8.h: New file, from GNU gettext.
89894         * lib/ucs4-utf16.h: New file, from GNU gettext.
89895
89896 2003-04-02  Bruno Haible  <bruno@clisp.org>
89897
89898         * modules/binary-io: New file.
89899         * MODULES.html.sh (func_all_modules): Add it.
89900
89901 2003-04-02  Bruno Haible  <bruno@clisp.org>
89902
89903         * lib/binary-io.h: New file, from GNU gettext.
89904
89905 2003-04-01  Bruno Haible  <bruno@clisp.org>
89906
89907         * modules/pathname: New file.
89908         * MODULES.html.sh (func_all_modules): Add it.
89909
89910 2003-04-01  Bruno Haible  <bruno@clisp.org>
89911
89912         * lib/pathname.h: New file, from GNU gettext.
89913         * lib/concatpath.c: New file, from GNU gettext.
89914
89915 2003-03-30  Bruno Haible  <bruno@clisp.org>
89916
89917         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89918
89919 2003-03-30  Bruno Haible  <bruno@clisp.org>
89920
89921         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89922         function chown() doesn't exist.
89923
89924 2003-03-28  Bruno Haible  <bruno@clisp.org>
89925
89926         * modules/copy-file: New file.
89927         * MODULES.html.sh (func_all_modules): Add it.
89928
89929 2003-03-28  Bruno Haible  <bruno@clisp.org>
89930
89931         * m4/copy-file.m4: New file.
89932
89933 2003-03-28  Bruno Haible  <bruno@clisp.org>
89934
89935         * lib/copy-file.h: New file, from GNU gettext.
89936         * lib/copy-file.c: New file, from GNU gettext.
89937
89938 2003-03-18  Jim Meyering  <jim@meyering.net>
89939
89940         * lib/quote.c (quote_n): Fix typo in comment.
89941
89942 2003-03-18  Bruno Haible  <bruno@clisp.org>
89943
89944         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89945         checking.
89946         * m4/onceonly_2_57.m4: Likewise.
89947
89948 2003-03-17  Bruno Haible  <bruno@clisp.org>
89949
89950         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89951         (m4_quote): Remove macro.
89952         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89953
89954 2003-03-14  Jim Meyering  <jim@meyering.net>
89955
89956         Merge changes from Coreutils.
89957         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89958         to be const, in order to avoid warnings.
89959         (obstack_room): Likewise.
89960         (obstack_empty_p): Likewise.
89961
89962 2003-03-14  Bruno Haible  <bruno@clisp.org>
89963
89964         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89965         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89966
89967 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89968
89969         Merge changes from Bison.
89970         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89971         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89972         when compiling Bison 1.875's `bitset bset = obstack_alloc
89973         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89974         * lib/hash.c: Include <stdbool.h> unconditionally.
89975
89976 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89977
89978         * m4/onceonly.m4 (m4_quote): New macro.
89979         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89980         Quote AC_FOREACH variable-expansions properly.
89981
89982 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89983
89984         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89985
89986 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89987
89988         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89989         Reported by Bruce Becker; see:
89990         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89991
89992 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89993             Bruno Haible  <bruno@clisp.org>
89994
89995         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89996         Reported by John Hughes, see
89997         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89998
89999 2003-02-20  Bruno Haible  <bruno@clisp.org>
90000
90001         * MODULES.html.sh (func_all_modules): Add poll.
90002
90003 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90004
90005         * modules/poll: New file.
90006
90007 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90008
90009         * lib/poll_.h: New file.
90010         * lib/poll.c: New file.
90011
90012 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90013
90014         * m4/poll.m4: New file.
90015
90016 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90017
90018         * modules/mathl: New file.
90019
90020 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90021
90022         * lib/mathl.h: New file.
90023         * lib/acosl.c: New file.
90024         * lib/asinl.c: New file.
90025         * lib/atanl.c: New file.
90026         * lib/ceill.c: New file.
90027         * lib/cosl.c: New file.
90028         * lib/expl.c: New file.
90029         * lib/floorl.c: New file.
90030         * lib/frexpl.c: New file.
90031         * lib/ldexpl.c: New file.
90032         * lib/logl.c: New file.
90033         * lib/sincosl.c: New file.
90034         * lib/sinl.c: New file.
90035         * lib/sqrtl.c: New file.
90036         * lib/tanl.c: New file.
90037         * lib/trigl.c: New file.
90038         * lib/trigl.h: New file.
90039
90040 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90041
90042         * m4/mathl.m4: New file.
90043
90044 2003-02-18  Bruno Haible  <bruno@clisp.org>
90045
90046         * MODULES.html.sh (func_all_modules): Add mathl.
90047
90048 2003-02-17  Bruno Haible  <bruno@clisp.org>
90049
90050         * modules/mkdtemp: New module.
90051         * MODULES.html.sh (func_all_modules): Add it.
90052
90053 2003-02-17  Bruno Haible  <bruno@clisp.org>
90054
90055         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90056
90057 2003-02-17  Bruno Haible  <bruno@clisp.org>
90058
90059         * lib/mkdtemp.h: New file, from GNU gettext.
90060         * lib/mkdtemp.c: New file, from GNU gettext.
90061
90062 2003-02-02  Jim Meyering  <jim@meyering.net>
90063
90064         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90065         e.g. glibc-2.2.93.
90066
90067 2003-01-31  Bruno Haible  <bruno@clisp.org>
90068
90069         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90070         'rpl_rename'.
90071         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90072         'rpl_strnlen'.
90073         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90074         'rpl_strtod'.
90075         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90076         'rpl_utime'.
90077
90078 2003-01-31  Bruno Haible  <bruno@clisp.org>
90079
90080         * lib/rename.c: #undef rename before defining rpl_rename.
90081         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90082
90083 2003-01-30  Bruno Haible  <bruno@clisp.org>
90084
90085         * modules/vasnprintf, modules/vasprintf: New modules.
90086         * MODULES.html.sh (func_all_modules): Add them.
90087
90088 2003-01-30  Bruno Haible  <bruno@clisp.org>
90089
90090         * m4/signed.m4: New file, from GNU gettext.
90091         * m4/longdouble.m4: New file, from GNU gettext.
90092         * m4/wchar_t.m4: New file, from GNU gettext.
90093         * m4/wint_t.m4: New file, from GNU gettext.
90094         * m4/vasnprintf.m4: New file.
90095         * m4/vasprintf.m4: New file.
90096
90097 2003-01-30  Bruno Haible  <bruno@clisp.org>
90098
90099         * lib/printf-args.h: New file, from GNU gettext.
90100         * lib/printf-args.c: New file, from GNU gettext.
90101         * lib/printf-parse.h: New file, from GNU gettext.
90102         * lib/printf-parse.c: New file, from GNU gettext.
90103         * lib/vasnprintf.h: New file, from GNU gettext.
90104         * lib/vasnprintf.c: New file, from GNU gettext.
90105         * lib/asnprintf.c: New file, from GNU gettext.
90106         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90107         * lib/vasprintf.c: New file, from GNU gettext.
90108         * lib/asprintf.c: New file, from GNU gettext.
90109
90110 2003-01-29  Bruno Haible  <bruno@clisp.org>
90111
90112         * modules/stpncpy: New module.
90113         * MODULES.html.sh (func_all_modules): Add it.
90114
90115 2003-01-29  Bruno Haible  <bruno@clisp.org>
90116
90117         * m4/stpncpy.m4: New file.
90118
90119 2003-01-29  Bruno Haible  <bruno@clisp.org>
90120
90121         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90122         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90123
90124 2003-01-28  Bruno Haible  <bruno@clisp.org>
90125
90126         * modules/c-ctype: New module.
90127         * MODULES.html.sh (func_all_modules): Add it.
90128
90129 2003-01-28  Bruno Haible  <bruno@clisp.org>
90130
90131         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90132         Paul Eggert.
90133         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90134         Paul Eggert.
90135
90136 2003-01-27  Bruno Haible  <bruno@clisp.org>
90137
90138         * modules/xsetenv: New module.
90139         * MODULES.html.sh (func_all_modules): Add it.
90140
90141 2003-01-27  Bruno Haible  <bruno@clisp.org>
90142
90143         * lib/xsetenv.h: New file, from GNU gettext.
90144         * lib/xsetenv.c: New file, from GNU gettext.
90145
90146 2003-01-23  Jim Meyering  <jim@meyering.net>
90147
90148         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90149         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90150
90151 2003-01-23  Bruno Haible  <bruno@clisp.org>
90152
90153         * modules/minmax: New module.
90154         * MODULES.html.sh (func_all_modules): Add it.
90155
90156 2003-01-23  Bruno Haible  <bruno@clisp.org>
90157
90158         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90159         Eggert.
90160
90161 2003-01-22  Bruno Haible  <bruno@clisp.org>
90162
90163         * modules/exit: New module.
90164         * MODULES.html.sh (func_all_modules): Add it.
90165
90166 2003-01-22  Bruno Haible  <bruno@clisp.org>
90167
90168         * lib/exit.h: New file, from GNU gettext.
90169
90170 2003-01-19  Bruno Haible  <bruno@clisp.org>
90171
90172         * gnulib-tool: Recognize option --extract-maintainer.
90173         (func_get_maintainer): New function.
90174         * modules/*: Add Maintainer entry.
90175
90176 2003-01-16  Jim Meyering  <jim@meyering.net>
90177
90178         * m4/regex.m4: The `regex' struct is both input and output.
90179         Initialize it before each use.  Patch by Tim Waugh.
90180
90181 2003-01-16  Bruno Haible  <bruno@clisp.org>
90182
90183         * MODULES.html.sh: Add a table of contents. Add the module name as
90184         leftmost column. Add hyperlinks.
90185
90186 2003-01-15  Bruno Haible  <bruno@clisp.org>
90187
90188         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90189
90190 2003-01-15  Bruno Haible  <bruno@clisp.org>
90191
90192         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90193         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90194         suffix.
90195
90196 2003-01-15  Bruno Haible  <bruno@clisp.org>
90197
90198         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90199
90200 2003-01-15  Bruno Haible  <bruno@clisp.org>
90201
90202         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90203         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90204
90205 2003-01-14  Jim Meyering  <jim@meyering.net>
90206
90207         * lib/same.c (same_name): Tweak a comment.
90208
90209 2003-01-14  Bruno Haible  <bruno@clisp.org>
90210
90211         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90212         when a string comparison is sufficient.
90213
90214 2003-01-14  Bruno Haible  <bruno@clisp.org>
90215
90216         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90217         'unsigned int'.
90218
90219 2003-01-14  Bruno Haible  <bruno@clisp.org>
90220
90221         * lib/hash-pjw.c: Add comment about low quality of this function.
90222
90223 2003-01-13  Bruno Haible  <bruno@clisp.org>
90224
90225         * modules/stpcpy: Distribute lib/stpcpy.h.
90226         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90227
90228 2003-01-13  Bruno Haible  <bruno@clisp.org>
90229
90230         * modules/*: Add a description.
90231         * modules/strpbrk: Fix Makefile.am snippet.
90232         * modules/strtoimax: Fix dependencies.
90233         * modules/strtoumax: Likewise.
90234
90235 2003-01-13  Bruno Haible  <bruno@clisp.org>
90236
90237         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90238         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90239         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90240
90241 2003-01-13  Bruno Haible  <bruno@clisp.org>
90242
90243         * gnulib-tool (func_create_testdir): Store config/* files in the main
90244         directory.
90245         * config.rpath: Move to ...
90246         * config/config.rpath: ... here.
90247         * modules/gettext: Contains config/config.rpath, not config.rpath.
90248         * modules/iconv: Likewise.
90249
90250 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90251
90252         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90253         to avoid collisions with libcurses and libreadline.
90254
90255         * m4/getstr.m4: Remove.
90256         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90257
90258 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90259
90260         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90261         to avoid collisions with libcurses and libreadline.
90262
90263         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90264         * lib/getstr.h, getstr.c: Remove.
90265         * lib/getline.c: Include "getline.h", to check interface.
90266         Move body of old getstr.c here: this defines MIN_CHUNK and
90267         declares getdelim2, which is renamed from getstr.
90268         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90269
90270         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90271         All uses changed.
90272         * lib/linebuffer.h: Likewise.
90273         (readline): Remove backward-compatibility macro.
90274
90275 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90276
90277         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90278         to avoid collisions with libcurses and libreadline.
90279         * getstr: Remove.
90280         * MODULES.html.sh: Remove getstr.
90281         * modules/getline: Depend on unlocked-io, not getstr.
90282
90283 2003-01-12  Jim Meyering  <jim@meyering.net>
90284
90285         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90286
90287 2003-01-10  Bruno Haible  <bruno@clisp.org>
90288
90289         * modules/alloca: Change Makefile.am requirements. Simplify Include
90290         requirements. Add lib/alloca_.h to file list.
90291
90292 2003-01-10  Bruno Haible  <bruno@clisp.org>
90293
90294         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90295
90296 2003-01-10  Bruno Haible  <bruno@clisp.org>
90297
90298         * lib/alloca_.h: New file.
90299         * lib/getdate.y: Unconditionally include alloca.h.
90300         * lib/makepath.c: Likewise.
90301         * lib/setenv.c: Likewise.
90302         * lib/userspec.c: Likewise.
90303
90304 2003-01-09  Karl Berry  <karl@gnu.org>
90305
90306         * MODULES.html.sh: include `dirname $0` in PATH, to find
90307         gnulib-tool.
90308
90309 2003-01-09  Bruno Haible  <bruno@clisp.org>
90310
90311         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90312         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90313
90314 2003-01-09  Bruno Haible  <bruno@clisp.org>
90315
90316         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90317
90318 2003-01-09  Bruno Haible  <bruno@clisp.org>
90319
90320         * lib/stdbool.h.in: New file.
90321
90322 2003-01-09  Bruno Haible  <bruno@clisp.org>
90323
90324         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90325         * MODULES.html.sh: Likewise.
90326
90327 2003-01-08  Jim Meyering  <jim@meyering.net>
90328
90329         * lib/full-write.c: Undefine and define-away `const' after inclusion
90330         of errno.h, not before.  Suggestion from Bruno Haible.
90331
90332 2003-01-08  Bruno Haible  <bruno@clisp.org>
90333
90334         * modules/full-read: Depend on full-write.
90335
90336 2003-01-08  Bruno Haible  <bruno@clisp.org>
90337
90338         * lib/safe-read.c: Include specification header first, to ensure its
90339         selfcontainedness.
90340         * lib/full-write.c: Likewise.
90341
90342 2003-01-07  Jim Meyering  <jim@meyering.net>
90343
90344         * lib/full-write.c: Rework so that it may serve to define full_read,
90345         too.
90346         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90347
90348 2003-01-07  Bruno Haible  <bruno@clisp.org>
90349
90350         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90351         <inttypes.h>.
90352         * lib/xstrtol.h: Likewise.
90353         * lib/xstrtoimax.c: Likewise.
90354         * lib/xstrtoumax.c: Likewise.
90355         * lib/human.h: Likewise.
90356
90357         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90358         on systems that have <inttypes.h> but not <stdint.h>.
90359
90360 2003-01-07  Bruno Haible  <bruno@clisp.org>
90361
90362         * MODULES.html.sh: Add copyright notice.
90363         (missed_files): Omit CVS directory entries.
90364         (func_module): Make it work with sed-3.02.
90365         * MODULES.txt: Remove file.
90366
90367 2003-01-06  Jim Meyering  <jim@meyering.net>
90368
90369         * lib/version-etc.c: Update year in translatable copyright string.
90370
90371 2003-01-03  Karl Berry  <karl@gnu.org>
90372
90373         * config/config.{guess,sub}: update from prep.
90374
90375 2003-01-02  Karl Berry  <karl@gnu.org>
90376
90377         * doc/COPYING.DOC: belatedly updated to 1.2.
90378
90379 2003-01-01  Karl Berry  <karl@gnu.org>
90380
90381         * gnulib-tool (func_verify_module): report module name $module in
90382         error message, not $1.
90383         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90384         be created, only if it doesn't exist.
90385         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90386
90387 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90388
90389         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90390
90391 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90392
90393         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90394         memcmp if strcoll doesn't work.
90395
90396 2002-12-31  Bruno Haible  <bruno@clisp.org>
90397
90398         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90399         nonempty.
90400
90401 2002-12-31  Bruno Haible  <bruno@clisp.org>
90402
90403         * lib/memcoll.c (STRCOLL): New macro.
90404         (memcoll): Use it.
90405
90406 2002-12-31  Bruno Haible  <bruno@clisp.org>
90407
90408         * lib/localcharset.h: New file.
90409         * lib/localcharset.c: Include it.
90410         * lib/unicodeio.c: Likewise.
90411
90412 2002-12-31  Bruno Haible  <bruno@clisp.org>
90413
90414         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90415         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90416
90417 2002-12-31  Bruno Haible  <bruno@clisp.org>
90418
90419         * lib/getline.h: Include <stddef.h>, for size_t.
90420
90421         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90422         * lib/unicodeio.c: Don't include <stddef.h>.
90423
90424 2002-12-31  Bruno Haible  <bruno@clisp.org>
90425
90426         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90427         HAVE_TM_ZONE.
90428
90429 2002-12-24  Karl Berry  <karl@gnu.org>
90430
90431         * config/config.guess: update from prep.
90432
90433 2002-12-24  Bruno Haible  <bruno@clisp.org>
90434
90435         General infrasructure.
90436         * m4/README: Rewritten.
90437         * m4/onceonly.m4: New file.
90438         * m4/onceonly_2_57.m4: New file.
90439
90440         Module atexit.
90441         * m4/atexit.m4: New file.
90442
90443         Module strtod.
90444         * m4/strtod.m4: New file.
90445
90446         Module strtol.
90447         * m4/strtol.m4: New file.
90448
90449         Module strtoul.
90450         * m4/strtoul.m4: New file.
90451
90452         Module memchr.
90453         * m4/memchr.m4: New file.
90454
90455         Module memcmp.
90456         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90457         (jm_FUNC_MEMCMP): Invoke it.
90458
90459         Module memcpy.
90460         * m4/memcpy.m4: New file.
90461
90462         Module memmove.
90463         * m4/memmove.m4: New file.
90464
90465         Module memset.
90466         * m4/memset.m4: New file.
90467
90468         Module strcspn.
90469         * m4/strcspn.m4: New file.
90470
90471         Module strpbrk.
90472         * m4/strpbrk.m4: New file.
90473
90474         Module strstr.
90475         * m4/strstr.m4: New file.
90476
90477         Module strerror.
90478         * m4/strerror.m4: New file.
90479
90480         Module mktime.
90481         * m4/mktime.m4: Renamed from jm-mktime.m4.
90482         (gl_PREREQ_MKTIME): New macro.
90483         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90484
90485         Module malloc.
90486         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90487         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90488         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90489
90490         Module realloc.
90491         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90492         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90493         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90494
90495         Module strftime.
90496         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90497         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90498         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90499         gl_TM_GMTOFF.
90500         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90501
90502         Module xalloc.
90503         * m4/xalloc.m4: New file.
90504
90505         Module alloca.
90506         * m4/alloca.m4: New file.
90507
90508         Module putenv.
90509         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90510         (jm_FUNC_PUTENV): Invoke it.
90511
90512         Module setenv.
90513         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90514         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90515         when invoked twice.
90516         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90517         gt_FUNC_SETENV.
90518
90519         Module memrchr.
90520         * m4/memrchr.m4: New file.
90521
90522         Module stpcpy.
90523         * m4/stpcpy.m4: New file.
90524
90525         Module strcase.
90526         * m4/strcase.m4: New file.
90527
90528         Module strdup.
90529         * m4/strdup.m4: New file.
90530
90531         Module strnlen.
90532         * m4/strnlen.m4: New file.
90533
90534         Module strndup.
90535         * m4/strndup.m4: New file.
90536
90537         Module xstrtod.
90538         * m4/xstrtod.m4: New file.
90539
90540         Module xstrtol.
90541         * m4/xstrtol.m4: New file.
90542
90543         Module getdate.
90544         * m4/getdate.m4: New file.
90545
90546         Module unlocked-io.
90547         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90548         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90549         * m4/jm-glibc-io.m4n: Remove file.
90550
90551         Module long-options.
90552         * m4/long-options.m4: New file.
90553
90554         Module md5.
90555         * m4/md5.m4: New file.
90556
90557         Module sha.
90558         * m4/sha.m4: New file.
90559
90560         Module getstr.
90561         * m4/getstr.m4: New file.
90562
90563         Module getline.
90564         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90565         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90566         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90567         simply getline. Infoke gl_PREREQ_GETLINE.
90568
90569         Module obstack.
90570         * m4/obstack.m4: New file.
90571
90572         Module hash.
90573         * m4/hash.m4: New file.
90574
90575         Module readtokens.
90576         * m4/readtokens.m4: New file.
90577
90578         Module strverscmp.
90579         * m4/strverscmp.m4: New file.
90580
90581         Module stdbool.
90582         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90583         OSF/1.
90584
90585         Module strtoll.
90586         * m4/strtoll.m4: New file.
90587
90588         Module strtoull.
90589         * m4/strtoull.m4: New file.
90590
90591         Module strtoimax.
90592         * m4/strtoimax.m4: New file.
90593
90594         Module strtoumax.
90595         * m4/strtoumax.m4: New file.
90596
90597         Module xstrtoimax.
90598         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90599         jm_AC_PREREQ_XSTRTOIMAX.
90600         Moved the strtol prerequisites to strtol.m4.
90601         Moved the strtoll prerequisites to strtoll.m4.
90602         Moved the strtoimax prerequisites to strtoimax.m4.
90603
90604         Module xstrtoumax.
90605         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90606         jm_AC_PREREQ_XSTRTOUMAX.
90607         Moved the strtoul prerequisites to strtoul.m4.
90608         Moved the strtoull prerequisites to strtoull.m4.
90609         Moved the strtoumax prerequisites to strtoumax.m4.
90610
90611         Module chown.
90612         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90613         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90614
90615         Module dup2.
90616         * m4/dup2.m4: New file.
90617
90618         Module ftruncate.
90619         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90620         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90621
90622         Module getgroups.
90623         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90624         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90625
90626         Module gettimeofday.
90627         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90628         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90629         gl_PREREQ_GETTIMEOFDAY.
90630
90631         Module mkdir.
90632         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90633         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90634
90635         Module mkstemp.
90636         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90637         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90638         jm_AC_TYPE_UINTMAX_T.
90639         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90640
90641         Module stat.
90642         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90643         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90644
90645         Module lstat.
90646         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90647         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90648
90649         Module timespec.
90650         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90651         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90652         * m4/st_mtim.m4: Indentation.
90653
90654         Module nanosleep.
90655         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90656         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90657         gl_PREREQ_NANOSLEEP.
90658
90659         Module regex.
90660         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90661         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90662         (gl_REGEX): New macro.
90663
90664         Module rename.
90665         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90666         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90667
90668         Module rmdir.
90669         * m4/rmdir.m4: New file.
90670
90671         Module utime.
90672         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90673         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90674         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90675
90676         Module dirname.
90677         * m4/dirname.m4: New file.
90678
90679         Module getopt.
90680         * m4/getopt.m4: New file.
90681
90682         Module unistd-safer.
90683         * m4/unistd-safer.m4: New file.
90684
90685         Module fnmatch.
90686         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90687         declaration.
90688         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90689         (gl_FUNC_FNMATCH_POSIX): New macro.
90690         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90691         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90692         simply fnmatch.
90693
90694         Module exclude.
90695         * m4/exclude.m4: New file.
90696
90697         Module human.
90698         * m4/human.m4: New file.
90699
90700         Module acl.
90701         * m4/acl.m4: Nop.
90702
90703         Module backupfile.
90704         * m4/backupfile.m4: New file.
90705         * m4/d-ino.m4: Indentation.
90706
90707         Module fsusage.
90708         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90709         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90710         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90711
90712         Module dirfd.
90713         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90714         requirements.
90715
90716         Module euidaccess.
90717         * m4/euidaccess.m4: New file.
90718
90719         Module file-type.
90720         * m4/file-type.m4: New file.
90721
90722         Module fileblocks.
90723         * m4/fileblocks.m4: New file.
90724
90725         Module filemode.
90726         * m4/filemode.m4: New file.
90727
90728         Module isdir.
90729         * m4/isdir.m4: New file.
90730
90731         Module lchown.
90732         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90733         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90734
90735         Module makepath.
90736         * m4/makepath.m4: New file.
90737
90738         Module modechange.
90739         * m4/modechange.m4: New file.
90740
90741         Module mountlist.
90742         * m4/mountlist.m4: New file.
90743         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90744         Indentation.
90745
90746         Module path-concat.
90747         * m4/path-concat.m4: New file.
90748
90749         Module pathmax.
90750         * m4/pathmax.m4: New file.
90751
90752         Module same.
90753         * m4/same.m4: New file.
90754
90755         Module save-cwd.
90756         * m4/save-cwd.m4: New file.
90757
90758         Module savedir.
90759         * m4/savedir.m4: New file.
90760
90761         Module xgetcwd.
90762         * m4/xgetcwd.m4: New file.
90763         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90764
90765         Module xreadlink.
90766         * m4/xreadlink.m4: New file.
90767
90768         Module safe-read.
90769         * m4/safe-read.m4: New file.
90770
90771         Module safe-write.
90772         * m4/safe-write.m4: New file.
90773
90774         Module closeout.
90775         * m4/closeout.m4: New file.
90776
90777         Module stdio-safer.
90778         * m4/stdio-safer.m4: New file.
90779
90780         Module getpass.
90781         * m4/getpass.m4: New file.
90782
90783         Module getugroups.
90784         * m4/getugroups.m4: New file.
90785
90786         Module group-member.
90787         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90788         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90789
90790         Module idcache.
90791         * m4/idcache.m4: New file.
90792
90793         Module userspec.
90794         * m4/userspec.m4: New file.
90795
90796         Module gettime.
90797         * m4/clock_time.m4: New file.
90798         * m4/gettime.m4: New file.
90799
90800         Module settime.
90801         * m4/settime.m4: New file.
90802
90803         Module posixtm.
90804         * m4/posixtm.m4: New file.
90805
90806         Module gethostname.
90807         * m4/gethostname.m4: New file.
90808
90809         Module canon-host.
90810         * m4/canon-host.m4: New file.
90811
90812         Module gettext.
90813         * m4/codeset.m4: New file, from gettext-0.11.5.
90814         * m4/gettext.m4: New file, from gettext-0.11.5.
90815         * m4/glibc21.m4: New file, from gettext-0.11.5.
90816         * m4/iconv.m4: New file, from gettext-0.11.5.
90817         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90818         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90819         * m4/inttypes.m4: New file, from gettext-0.11.5.
90820         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90821         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90822         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90823         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90824         * m4/lib-link.m4: New file, from gettext-0.11.5.
90825         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90826         * m4/progtest.m4: New file, from gettext-0.11.5.
90827         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90828         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90829         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90830
90831         Module localcharset.
90832         * m4/localcharset.m4: New file.
90833
90834         Module hard-locale.
90835         * m4/hard-locale.m4: New file.
90836
90837         Module mbswidth.
90838         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90839         onceonly macros.
90840         * m4/mbrtowc.m4: Add comment.
90841
90842         Module memcasecmp.
90843         * m4/memcasecmp.m4: New file.
90844
90845         Module memcoll.
90846         * m4/memcoll.m4: New file.
90847
90848         Module unicodeio.
90849         * m4/unicodeio.m4: New file.
90850
90851         Module rpmatch.
90852         * m4/rpmatch.m4: New file.
90853
90854         Module yesno.
90855         * m4/yesno.m4: New file.
90856
90857         Module exitfail.
90858         * m4/exitfail.m4: New file.
90859
90860         Module c-stack.
90861         * m4/c-stack.m4 (gl_C_STACK): New macro.
90862         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90863
90864         Module error.
90865         * m4/error.m4 (gl_ERROR): New macro.
90866         (jm_PREREQ_ERROR): Use onceonly macros.
90867
90868         Module fatal.
90869         * m4/fatal.m4: New file.
90870
90871         Module getloadavg.
90872         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90873         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90874
90875         Module getpagesize.
90876         * m4/getpagesize.m4: New file.
90877
90878         Module getusershell.
90879         * m4/getusershell.m4: New file.
90880
90881         Module physmem.
90882         * m4/physmem.m4: New file.
90883
90884         Module posixver.
90885         * m4/posixver.m4: New file.
90886
90887         Module quotearg.
90888         * m4/quotearg.m4: New file.
90889
90890         Module quote.
90891         * m4/quote.m4: New file.
90892
90893         Module readutmp.
90894         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90895
90896         Module sig2str.
90897         * m4/sig2str.m4: New file.
90898
90899         Other.
90900         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90901         ulonglong.m4.
90902         * m4/intmax_t.m4: New file.
90903         * m4/d-type.m4: Indentation.
90904         * m4/jm-macros.m4: Update.
90905         * m4/prereq.m4 (jm_PREREQ): Update.
90906         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90907         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90908         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90909         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90910         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90911         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90912         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90913         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90914         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90915         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90916         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90917         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90918         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90919         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90920         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90921         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90922         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90923         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90924         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90925
90926 2002-12-24  Bruno Haible  <bruno@clisp.org>
90927
90928         * MODULES.txt: Update according to m4/ changes.
90929
90930         Module gettext.
90931         * config.rpath: New file, from gettext-0.11.5.
90932
90933         * modules/*: New module descriptions.
90934         * gnulib-tool: New file.
90935         * MODULES.html.sh: New file.
90936
90937 2002-12-21  Karl Berry  <karl@gnu.org>
90938
90939         * doc/fdl.texi: update to version 1.2.
90940
90941 2002-12-19  Karl Berry  <karl@gnu.org>
90942
90943         * config/config.guess: update from prep.
90944
90945 2002-12-18  Bruno Haible  <bruno@clisp.org>
90946
90947         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90948         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90949
90950 2002-12-17  Bruno Haible  <bruno@clisp.org>
90951
90952         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90953         stdlib.h, string.h.
90954
90955 2002-12-17  Bruno Haible  <bruno@clisp.org>
90956
90957         * lib/canon-host.c (strdup): Remove unused declaration.
90958
90959         * lib/fsusage.c: Include full_read.h.
90960         (get_fs_usage): Use full_read instead of safe_read.
90961
90962         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90963
90964 2002-12-12  Karl Berry  <karl@gnu.org>
90965
90966         * config/config.guess: update from prep.
90967
90968 2002-12-11  Bruno Haible  <bruno@clisp.org>
90969
90970         * m4/setenv.m4: New file, from gettext-0.11.5.
90971
90972 2002-12-11  Bruno Haible  <bruno@clisp.org>
90973
90974         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90975         not unsetenv().
90976         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90977         modifications:
90978
90979         2002-12-11  Bruno Haible  <bruno@clisp.org>
90980
90981                 * setenv.c (alloca): Fall back to malloc.
90982                 (freea): New macro.
90983                 (setenv): Use freea() to free memory allocated with alloca().
90984
90985         2002-11-13  Bruno Haible  <bruno@clisp.org>
90986
90987                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90988                 function declarations.
90989                 * unsetenv.c (unsetenv): Likewise.
90990
90991         2002-03-04  Bruno Haible  <bruno@clisp.org>
90992
90993                 Portability to AIX 4.3.3.
90994                 * unsetenv.c: New file, extracted from setenv.c.
90995                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90996
90997         2001-12-20  Bruno Haible  <bruno@clisp.org>
90998
90999                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91000                 use malloc instead. For SunOS 4.
91001
91002         2001-12-11  Bruno Haible  <bruno@clisp.org>
91003
91004                 * setenv.c: Declare alloca.
91005                 (compar_fn_t): New typedef.
91006                 (KNOWN_VALUE, STORE_VALUE): Use it.
91007
91008         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91009         setenv.h.
91010
91011 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91012
91013         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91014         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91015         Choose values that are less likely to collide with system fnmatch
91016         options.
91017         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91018         defined (e.g., a pure POSIX system).
91019         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91020         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91021
91022 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91023
91024         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91025         a pain in practice to deal with generated m4 files.  This change
91026         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91027
91028         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91029         and jm-glibc-io.m4, as they are no longer a special case.
91030         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91031         kludge and the auto-generation stuff.  Check only whether the
91032         functions are declared, not whether they exist, since older hosts
91033         that don't declare the functions can't use the optimization anyway.
91034
91035 2002-12-06  Jim Meyering  <jim@meyering.net>
91036
91037         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91038
91039         Merge in changes from libc's misc/error.c, in preparation
91040         for the merge of gnulib's changes back into libc.
91041
91042         * lib/error.c (_): Define only if not already defined.
91043         Move definition to follow all #include directives.
91044         Include unlocked-io.h only if !_LIBC.
91045         [_LIBC]: Include <libio/libioP.h>.
91046         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91047         (fflush): Tweak definition to use INTUSE.
91048         (putc): Define.
91049
91050 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91051
91052         * lib/alloca.c [defined emacs]: Include "lisp.h".
91053         (xalloc_die) [defined emacs]: New macro.
91054         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91055         [! defined emacs]: Include <xalloc.h>.
91056         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91057         (pointer): Typedef to POINTER_TYPE *.
91058         (malloc): Remove decl; we now always use xmalloc.
91059         (alloca): Use old-style definition, since Emacs needs this.
91060         Check for arithmetic overflow when computing combined size.
91061
91062 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91063
91064         Do not generate unlocked-io.h automatically, since it's easier to
91065         maintain it by hand.
91066
91067         * lib/unlocked-io.h: New file, from GNU diffutils,
91068         but with proper copyright notice and attribution.
91069         * lib/gen-uio: Remove.
91070         * lib/Makefile.am: Add copyright notice.
91071         (libfetish_a_SOURCES): Add unlocked-io.h.
91072         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91073         (DISTCLEANFILES, io_functions): Remove macros.
91074         (EXTRA_DIST): Remove gen_uio.
91075         (unlocked-io.h): Remove rule.
91076
91077 2002-12-04  Jim Meyering  <jim@meyering.net>
91078
91079         Reflect the fact that stat.c and lstat.c are no longer generated.
91080         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91081         (DISTCLEANFILES): Likewise.
91082         (EXTRA_DIST): Likewise.
91083         (all_local): Don't depend on stat.c or lstat.c.
91084         (stat.c, lstat.c): Remove rules.
91085         (EXTRA_DIST): Remove xstat.in.
91086
91087         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91088         * lib/stat.c: New file.  Contents mostly from xstat.in.
91089         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91090         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91091
91092         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91093         too.
91094         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91095
91096 2002-12-03  Jim Meyering  <jim@meyering.net>
91097
91098         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91099         but not semantics, to minimize the differences between these two files.
91100         (safe_read): Change comment to mention SAFE_READ_ERROR.
91101
91102         * lib/safe-read.c (IS_EINTR): Define.
91103         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91104
91105 2002-12-02  Jim Meyering  <jim@meyering.net>
91106
91107         * lib/safe-read.c (EINTR): Define.
91108         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91109         (INT_MAX): Provide fallback.
91110         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91111
91112         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91113
91114 2002-12-02  Bruno Haible  <bruno@clisp.org>
91115
91116         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91117         Define, taken from safe-read.c.
91118         (INT_MAX): Provide fallback.
91119         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91120         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91121
91122         * lib/safe-read.c (EINTR): Remove definition.
91123         (safe_read): Don't use EINTR if it is absent.
91124
91125 2002-12-01  Jim Meyering  <jim@meyering.net>
91126
91127         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91128         zero.
91129         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91130
91131 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91132
91133         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91134         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91135         with `if (! (value < limit)) abort ();', for readability.
91136
91137 2002-11-26  Karl Berry  <karl@gnu.org>
91138
91139         * lib/strdup.c: copy from libc again, with jim's ok.
91140         * lib/.cppi-disable: re-add strdup.c
91141
91142 2002-11-25  Karl Berry  <karl@gnu.org>
91143
91144         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91145         instead of "strtol.c".
91146
91147 2002-11-25  Karl Berry  <karl@gnu.org>
91148
91149         * config/install-sh: update from automake for variable quoting, $0 in
91150         error msgs, etc.
91151
91152         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91153         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91154         entry.
91155
91156 2002-11-25  Jim Meyering  <jim@meyering.net>
91157
91158         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91159
91160 2002-11-24  Karl Berry  <karl@gnu.org>
91161
91162         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91163         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91164
91165 2002-11-24  Jim Meyering  <jim@meyering.net>
91166
91167         Update from coreutils:
91168
91169         * lib/mktime.c: Merge in changes from libc.
91170
91171         Avoid a link-time failure on some Linux systems.
91172         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91173         (otherwise).
91174         (__mon_yday): Declare with the STATIC attribute.
91175         (__mktime_internal): Likewise.
91176         Based on a report from Greg Schafer.
91177
91178 2002-11-23  Jim Meyering  <jim@meyering.net>
91179
91180         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91181         Use `unsigned', not `int', as type of index.
91182
91183         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91184
91185         * lib/fsusage.c: Remove unneeded parentheses around operands of
91186         `defined'.
91187
91188 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91189
91190         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91191         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91192         so that we can be included first.
91193         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91194         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91195         No need to include stddef.h or sys/types.h any more.
91196         Surround local include files with "", not "<>".
91197         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91198         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91199         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91200         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91201         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91202         (ISPRINT): Remove; no longer needed now that we assume C89.
91203
91204         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91205         Preserve errno.
91206
91207         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91208         quotearg_char): Use SIZE_MAX rather than
91209         (size_t) -1 when we are talking about "infinity".
91210
91211         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91212
91213 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91214
91215         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91216         hint that one should use `if (! x) abort ();' rather than `assert
91217         (x);', and anyway it's one less thing to worry about configuring.
91218         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91219         hash_rehash, hash_insert): Use abort rather than assert.
91220
91221 2002-11-22  Bruno Haible  <bruno@clisp.org>
91222
91223         * lib/safe-read.h: Assume C89. Add comments.
91224         (safe_read): Change return type to size_t.
91225         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91226         byte counts > SSIZE_MAX correctly.
91227         * lib/safe-write.h: New file.
91228         * lib/safe-write.c: New file.
91229         * lib/full-read.h: New file.
91230         * lib/full-read.c: New file.
91231         * lib/full-write.h: Assume C89. Add comments.
91232         * lib/full-write.c: Include safe-write.h.
91233         (full_write): Rewritten to use safe_write.
91234         Suggested by Jim Meyering and Paul Eggert.
91235
91236 2002-11-21  Jim Meyering  <jim@meyering.net>
91237
91238         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91239
91240         Merge in changes from the coreutils.
91241
91242         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91243         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91244         <stdint.h>.
91245         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91246         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91247         int.  Work more efficiently if X is the same width as uintmax_t.
91248         Do not compare X to -1, to avoid bogus compiler warning.
91249         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91250         Don't assume that f_frsize and f_bsize are the same type.
91251
91252         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91253         warning on FreeBSD.
91254
91255         * lib/makepath.c (make_path): Restore umask *before* creating the final
91256         component.
91257         (make_path): Minor reformatting.
91258
91259         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91260         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91261         HAVE_MALLOC/HAVE_REALLOC.
91262
91263         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91264         dummy ones.  At least on GNU/Linux systems, `auto' means something
91265         else.
91266         From Michael Stone.
91267
91268 2002-11-21  Bruno Haible  <bruno@clisp.org>
91269
91270         Remove case insensitive option matching.
91271         * lib/argmatch.h (argcasematch): Remove declaration.
91272         (ARGCASEMATCH): Remove macro.
91273         (__xargmatch_internal): Remove case_sensitive argument.
91274         (XARGMATCH): Update.
91275         (XARGCASEMATCH): Remove macro.
91276         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91277         case_sensitive argument.
91278         (argcasematch): Remove function.
91279         (__xargmatch_internal): Remove case_sensitive argument.
91280         (main): Use XARGMATCH instead of XARGCASEMATCH.
91281
91282         * lib/xmalloc.c: Change compile-time error message. Add comment about
91283         required autoconf version.
91284
91285 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91286
91287         Merge argmatch cleanups from Bison.  Assume C89.
91288
91289         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91290         Include stdlib.h, for EXIT_FAILURE.
91291         Always include <string.h>, since we assume C89.
91292         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91293         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91294         Include <stddef.h> instead, since it's all we need for size_t.
91295         (PARAMS): Remove.  All uses removed.
91296         (ARRAY_CARDINALITY): Do not bother to #undef.
91297         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91298         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91299         Remove unnecessary parentheses.
91300         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91301         Insert necessary parentheses.
91302         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91303         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91304
91305 2002-11-19  Bruno Haible  <bruno@clisp.org>
91306
91307         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91308         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91309
91310         * lib/mbswidth.h (PARAMS): Remove macro.
91311         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91312         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91313
91314         * lib/gcd.h (PARAMS): Remove macro.
91315         (gcd): Use ANSI C function declarations.
91316         * lib/gcd.c (gcd): Likewise.
91317
91318 2002-11-15  Bruno Haible  <bruno@clisp.org>
91319
91320         * lib/strcspn.c: Include <stddef.h>.
91321         (strcspn): Use ANSI C function declaration. Change return type to
91322         size_t. Use NULL.
91323         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91324         (strpbrk): Use NULL.
91325         * lib/strpbrk.h (PARAMS): Remove macro.
91326         (strpbrk): Use ANSI C function declaration.
91327         * lib/strstr.c: Don't include <sys/types.h>.
91328         * lib/strstr.h (PARAMS): Remove macro.
91329         (strstr): Use ANSI C function declarations.
91330
91331 2002-11-14  Karl Berry  <karl@gnu.org>
91332
91333         * config/mkinstalldirs: `do' on separate line, instead of
91334         `for var; do'.
91335
91336 2002-11-06  Bruno Haible  <bruno@clisp.org>
91337
91338         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91339         * lib/gcd.c (gcd): Likewise.
91340
91341 2002-11-05  Bruno Haible  <bruno@clisp.org>
91342
91343         * lib/gcd.h: New file, from gettext-0.11.5.
91344         * lib/gcd.c: New file, from gettext-0.11.5.
91345
91346 2002-11-05  Bruno Haible  <bruno@clisp.org>
91347
91348         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91349         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91350         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91351         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91352
91353         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91354         <libintl.h>.
91355         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91356         <libintl.h>.
91357
91358         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91359         * lib/human.c: Include gettext.h instead of <libintl.h>.
91360         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91361         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91362         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91363         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91364         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91365         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91366         (textdomain): Remove definition.
91367         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91368
91369         * lib/long-options.c: Remove include of <libintl.h> and definition of
91370         _.
91371         * lib/same.c: Remove include of <libintl.h> and definition of _.
91372
91373 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91374
91375         * lib/config.charset: A few additions for Solaris.
91376
91377 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91378
91379         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91380         * lib/localcharset.c (locale_charset): Declare as extern "C".
91381
91382 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91383
91384         * lib/config.charset: msdos in uk_UA uses CP1125.
91385
91386 2002-11-04  Bruno Haible  <bruno@clisp.org>
91387
91388         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91389         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91390         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91391         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91392         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91393
91394 2002-11-04  Bruno Haible  <bruno@clisp.org>
91395
91396         * lib/localcharset.c (locale_charset): Don't return an empty string.
91397
91398 2002-11-04  Bruno Haible  <bruno@clisp.org>
91399
91400         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91401         aliases.
91402
91403 2002-11-04  Bruno Haible  <bruno@clisp.org>
91404
91405         * lib/config.charset: Update for newest glibc. Add canonical names
91406         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91407
91408 2002-11-04  Bruno Haible  <bruno@clisp.org>
91409
91410         * lib/config.charset: Add support for NetBSD.
91411
91412 2002-11-04  Bruno Haible  <bruno@clisp.org>
91413
91414         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91415
91416 2002-11-01  Bruno Haible  <bruno@clisp.org>
91417
91418         * configure.in: Add AC_CONFIG_AUX_DIR call.
91419         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91420         test/Makefile.
91421         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91422
91423 2002-09-28  Karl Berry  <karl@gnu.org>
91424
91425         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91426         installed automake until the next release, since changes have been
91427         made.
91428
91429 2002-09-25  Karl Berry  <karl@gnu.org>
91430
91431         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91432         * lib/getopt*: copy from libc/posix.
91433         * lib/gettext.h: copy from gettext.
91434         * lib/.cppi-disable: add strdup.c, gettext.h.
91435
91436 2002-09-25  Karl Berry  <karl@gnu.org>
91437
91438         * config/srclist.txt: enable gettext.h check.
91439         * config/config.{guess,sub}: update from prep.
91440         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91441                 from automake 1.6.3.
91442         See srclist*.
91443
91444 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91445
91446         * regex.c (PATFETCH): Remove the translating fetch.
91447         (PATFETCH_RAW): Rename to PATFETCH.
91448         (set_image_of_range): New fun.
91449         (SET_RANGE_TABLE_WORK_AREA): Use it.
91450         (regex_compile): Don't translate the pattern chars so eagerly.
91451         Only do it when inserting an `exactn' bytecode or when handling
91452         a char-range.
91453         (mutually_exclusive_p): Avoid empty statement.
91454
91455 2002-07-06  Jim Meyering  <meyering@lucent.com>
91456
91457         * m4/README: Don't mention Makefile.am.in.
91458         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91459
91460 2002-07-01  Jim Meyering  <meyering@lucent.com>
91461
91462         * lib/c-stack.c: Include sys/time.h.
91463         From Volker Borchert.
91464
91465 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91466
91467         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91468
91469 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91470
91471         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91472         New macro.  Use it uniformly instead of
91473         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91474         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91475         reported by Vin Shelton.
91476
91477 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91478
91479         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91480         Do not assume SA_SIGINFO behavior.
91481         Bug reported by Jim Meyering on NetBSD 1.5.2.
91482
91483 2002-06-22  Jim Meyering  <meyering@lucent.com>
91484
91485         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91486         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91487
91488         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91489         now that configure.ac uses AC_GNU_SOURCE.
91490         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91491         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91492
91493         Update to latest tools.  Suggestions from Paul Eggert.
91494         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91495         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91496         * m4/fnmatch.m4: Likewise.
91497         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91498         to AC_HEADER_STDBOOL
91499
91500 2002-06-22  Jim Meyering  <meyering@lucent.com>
91501
91502         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91503         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91504
91505 2002-06-22  Jim Meyering  <meyering@lucent.com>
91506
91507         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91508
91509         * lib/exitfail.c, exitfail.h: Likewise.
91510         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91511
91512         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91513         of fnmatch.h.
91514         (EXTRA_DIST): Add fnmatch_loop.c.
91515         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91516
91517         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91518         * lib/fnmatch.c: Update from diffutils-2.8.2.
91519         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91520         * lib/fnmatch.h: Remove file.
91521
91522 2002-06-21  Jim Meyering  <meyering@lucent.com>
91523
91524         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91525         * m4/mbrtowc.m4: Likewise.
91526
91527         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91528         * m4/mbswidth.m4: Reflect name change:
91529         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91530         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91531
91532         * m4/lib-link.m4: Update from gettext-0.11.2.
91533         * m4/gettext.m4: Likewise.
91534
91535         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91536         From Alfred M. Szmidt.
91537
91538 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91539
91540         * lib/file-type.h: Report an error if neither S_ISREG nor
91541         S_IFREG is defined, instead of using a test specific to glibc
91542         2.2.  This should be safe, since POSIX requires S_ISREG and
91543         Unix Version 7 had S_IFREG.  We don't need to check for
91544         <sys/types.h> since we don't use any symbols that it defines.
91545
91546 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91547
91548         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91549         $@-t, so that each temporary file name is unique and valid in the first
91550         8 characters, for operation under DOS.
91551
91552 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91553
91554         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91555
91556 2002-06-15  Jim Meyering  <meyering@lucent.com>
91557
91558         Work even with DJGPP 2.03, which lacks support for symlinks.
91559         From Richard Dawe.
91560         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91561         is defined.
91562         * lib/lchown.c (S_ISLNK): Likewise.
91563
91564 2002-06-15  Jim Meyering  <meyering@lucent.com>
91565
91566         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91567         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91568         have been included before this file.
91569
91570 2002-06-14  Jim Meyering  <meyering@lucent.com>
91571
91572         * lib/file-type.h: Use the version from diffutils-2.8.2.
91573         * lib/file-type.c: Likewise.
91574
91575 2002-06-07  Jim Meyering  <meyering@lucent.com>
91576
91577         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91578         They're needed at least for NetBSD 1.5.2.
91579         ($statxfs_includes): Include those same headers.
91580         ($statxfs_includes): Include sys/vfs.h if available.
91581         ($statxfs_includes): Likewise for sys/statvfs.h.
91582         Check for the following members in both structs statfs and statvfs:
91583         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91584
91585 2002-06-01  Jim Meyering  <meyering@lucent.com>
91586
91587         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91588         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91589
91590 2002-05-28  Jim Meyering  <meyering@lucent.com>
91591
91592         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91593         Reported by Volker Borchert.
91594
91595 2002-05-27  Jim Meyering  <meyering@lucent.com>
91596
91597         Fix a problem seen only on nonconforming systems whereby ls.c's
91598         use of localtime, and then of gettimeofday would cause trouble:
91599         the localtime call used to initialize rpl_gettimeofday's save
91600         mechanism would clobber ls's current local time information so
91601         that in any long listing the first file would always be listed
91602         with date 1970-01-01.  Analysis by Volker Borchert.
91603
91604         * lib/gettimeofday.c (localtime): Undefine.
91605         (rpl_localtime): New function.
91606
91607 2002-05-27  Jim Meyering  <meyering@lucent.com>
91608
91609         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91610         localtime.
91611
91612         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91613         use the replacement function; it wouldn't resolve at link time.
91614         Reported by Volker Borchert.
91615
91616 2002-05-22  Jim Meyering  <meyering@lucent.com>
91617
91618         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91619         file-type.h.
91620         * lib/file-type.h: New file.
91621         * lib/file-type.c (file_type): New file/function.  Extracted from
91622         diffutils.
91623
91624 2002-04-30  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91627
91628 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91629
91630         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91631
91632 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91633
91634         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91635         Do not check for alloca.h (no longer used) or stdbool.h (was never
91636         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91637
91638 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91639
91640         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91641
91642 2002-04-29  Jim Meyering  <meyering@lucent.com>
91643
91644         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91645         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91646         Use AC_FUNC_STRNLEN here instead.
91647
91648         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91649         With autoconf-2.53a, it's part of AC_PROG_CC.
91650
91651 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91652
91653         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91654         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91655
91656 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91657
91658         * lib/sig2str.h, lib/sig2str.c: New files.
91659         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91660
91661 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91662
91663         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91664         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91665         of 127, since 64 is the largest conceivable number for ancient
91666         nonstandard hosts.
91667         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91668
91669 2002-04-28  Jim Meyering  <meyering@lucent.com>
91670
91671         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91672
91673 2002-04-24  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91676         (jm_PREREQ): Use it.
91677
91678         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91679         mach/mach.h fcntl.h.
91680         Check for this function: setlocale.
91681
91682 2002-04-24  Jim Meyering  <meyering@lucent.com>
91683
91684         * lib/gettext.h: New file, from Gettext.
91685         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91686         (libfetish_a_SOURCES): Add gettext.h.
91687
91688 2002-04-16  Jim Meyering  <meyering@lucent.com>
91689
91690         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91691         ut_pid, ut_id, ut_exit.
91692
91693 2002-04-16  Jim Meyering  <meyering@lucent.com>
91694
91695         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91696         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91697         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91698
91699 2002-04-12  Jim Meyering  <meyering@lucent.com>
91700
91701         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91702         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91703         existence of the getmntinfo function.  Needed for Darwin 5.3.
91704
91705         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91706         This is necessary at least on Darwin 5.3.
91707
91708         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91709         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91710         strnlen.o in the library, and that makes some versions of ranlib
91711         object.
91712
91713 2002-04-12  Jim Meyering  <meyering@lucent.com>
91714
91715         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91716
91717 2002-04-09  Jim Meyering  <meyering@lucent.com>
91718
91719         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91720         to be more precise.  Rather than saying we're checking whether the
91721         function `works', say what we're testing.
91722         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91723         Reported by Bruno Haible.
91724
91725 2002-03-10  Jim Meyering  <meyering@lucent.com>
91726
91727         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91728         Suggestion from Santiago Vila.
91729
91730 2002-03-08  Jim Meyering  <meyering@lucent.com>
91731
91732         * lib/rename.c: Mention that this wrapper is needed also on
91733         mips-dec-ultrix4.4 systems.
91734
91735 2002-03-02  Jim Meyering  <meyering@lucent.com>
91736
91737         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91738         not HAVE_CLOCK_SETTIME.
91739
91740 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91741
91742         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91743         Check for clock_settime.
91744
91745 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91746
91747         * lib/nanosleep.h: Rename to....
91748         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91749
91750         * lib/gettime.c: New file.
91751         * lib/settime.c: New file.
91752         * lib/stime.c: Remove.
91753
91754         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91755         timespec.h.  Remove nanosleep.h.
91756
91757 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91758
91759         * m4/acl.m4: New file.
91760         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91761         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91762
91763 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91764
91765         * lib/acl.c, lib/acl.h: New files.
91766         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91767
91768 2002-02-24  Jim Meyering  <meyering@lucent.com>
91769
91770         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91771         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91772         cause trouble.  Reported by Nelson Beebe.
91773
91774 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91775
91776         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91777         compilers that don't know that xalloc_die never returns.
91778
91779 2002-02-20  Jim Meyering  <meyering@lucent.com>
91780
91781         * lib/getdate.c: Regenerate using bison-1.33.
91782
91783 2002-02-17  Jim Meyering  <meyering@lucent.com>
91784
91785         * config/config.guess (main): Don't use `head -1'; it's no longer
91786         portable. Use `sed 1q' instead.
91787
91788 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91789
91790         * m4/codeset.m4: Upgrade to gettext-0.11.
91791         * m4/gettext.m4: Upgrade to gettext-0.11.
91792         * m4/glibc21.m4: Upgrade to gettext-0.11.
91793         * m4/iconv.m4: Upgrade to gettext-0.11.
91794         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91795         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91796         * m4/lib-ld.m4: New file, from gettext-0.11.
91797         * m4/lib-link.m4: New file, from gettext-0.11.
91798         * m4/lib-prefix.m4: New file, from gettext-0.11.
91799         * m4/progtest.m4: Upgrade to gettext-0.11.
91800
91801 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91802
91803         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91804         (jm_PREREQ): Use it.
91805
91806 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91807
91808         * lib/posixver.c, lib/posixver.h: New files.
91809         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91810
91811 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91812             Bruno Haible  <bruno@clisp.org>
91813
91814         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91815         (fwrite_success_callback): New declaration.
91816         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91817         print_unicode_char. Call failure callback instead of error.
91818         (fwrite_success_callback): New function.
91819         (exit_failure_callback): New function.
91820         (fallback_failure_callback): New function.
91821         (print_unicode_char): Call unicode_to_mb.
91822
91823 2002-01-26  Jim Meyering  <meyering@lucent.com>
91824
91825         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91826         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91827
91828 2002-01-26  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91831
91832 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91833
91834         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91835
91836 2002-01-22  Jim Meyering  <meyering@lucent.com>
91837
91838         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91839         Otherwise, some versions of automake would omit the rule that makes
91840         Makefile from Makefile.in.
91841
91842 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91843
91844         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91845         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91846         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91847         (memcoll): Set errno to zero if there is no error.
91848
91849         * lib/quotearg.c (quotearg_buffer_restyled):
91850         Fix bug with quoting buffers containing NUL when backslashing escapes.
91851         This bug was exposed by the other changes in this patch.
91852         (quotearg_n_options): New arg ARGSIZE.
91853         All callers changed.
91854         (quoting_options_from_style): New function.
91855         (quotearg_n_style): Use it.
91856         (quotearg_n_style_mem): New function.
91857
91858         * lib/quotearg.h (quotearg_n_style_mem): New function.
91859
91860 2002-01-19  Jim Meyering  <meyering@lucent.com>
91861
91862         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91863         Remove useless quotes: DF_PROG="df".
91864         * m4/strnlen.m4: New file.
91865
91866 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91867
91868         * lib/backupfile.c (ISDIGIT): Comment fix.
91869         * lib/getdate.y (ISDIGIT): Likewise.
91870         * lib/posixtm.c (ISDIGIT, year): Likewise.
91871         * lib/strverscmp.c (ISDIGIT): Likewise.
91872         * lib/userspec.c (ISDIGIT): Likewise.
91873
91874 2002-01-16  Jim Meyering  <meyering@lucent.com>
91875
91876         * lib/getdate.y: Add three semicolons, each just before a closing
91877         brace. Bison (as of version 1.31) no longer papers over that mistake.
91878
91879 2002-01-05  Jim Meyering  <meyering@lucent.com>
91880
91881         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91882
91883 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91884
91885         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91886         not silently exit merely because the output buffer happens to
91887         have nothing pending.
91888
91889 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91890
91891         See the big note in ../ChangeLog.
91892         * lib/human.c (suffixes): Prefer K to k for 1024.
91893         (generate_suffix_backwards): New function.
91894         (human_readable_inexact): Use it.
91895         * lib/xstrtol.c (__xstrtol): If there is no number but there
91896         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91897         Accept 'K' as well as 'k'.
91898
91899 2001-12-15  Jim Meyering  <meyering@lucent.com>
91900
91901         * lib/regex.h (__restrict_arr): Update from libc.
91902
91903         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91904         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91905         (STREQ): Define.
91906
91907 2001-12-14  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91910         Suggestion from Bruno Haible.
91911
91912 2001-12-10  Jim Meyering  <meyering@lucent.com>
91913
91914         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91915         xrealloc, Instead, include "xalloc.h".
91916         (initbuffer): Don't cast xmalloc return value to char*.
91917         (readline): Reword comment.
91918         Don't cast xrealloc return value to char*
91919         Return NULL, not 0.
91920
91921 2001-12-09  Jim Meyering  <meyering@lucent.com>
91922
91923         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91924         about `signed and unsigned type in conditional expression'.
91925         * lib/posixtm.c (posix_time_parse): Likewise.
91926
91927         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91928
91929         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91930         to avoid a pedantic warning.
91931
91932         * lib/getstr.c: Don't include assert.h.
91933         (getstr): Remove warning-evoking assertions.
91934         Return -1 if offset parameter is out of bounds.
91935         Change the type of a local from int to size_t.
91936
91937         * lib/strftime.c (my_strftime_localtime_r): Include this function
91938         definition in the `#if ! HAVE_TM_GMTOFF' block.
91939
91940         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91941         Include xalloc.h instead.
91942
91943 2001-12-02  Jim Meyering  <meyering@lucent.com>
91944
91945         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91946         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91947         included.
91948
91949         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91950         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91951
91952 2001-11-30  Akim Demaille  <akim@epita.fr>
91953
91954         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91955         before being defined.
91956
91957 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91958
91959         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91960         First arg is int, not unsigned.
91961         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91962         (SIZE_MAX, UINT_MAX): New macros.
91963         (quotearg_n_options): Abort if N is negative.
91964         Avoid overflow check on hosts where size_t is 64 bits and int
91965         is 32 bits, as overflow is impossible there.
91966         Fix off-by-one typo that caused unnecessary reallocation.
91967
91968 2001-11-27  Jim Meyering  <meyering@lucent.com>
91969
91970         * lib/tempname.c: Merge with version from libc.
91971         * lib/regex.c: Likewise.
91972
91973         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91974         systems for which STDC_HEADERS is 0, it was not included, resulting in
91975         a warning about an integer-to-pointer conversion problem with getenv.
91976         Reported by Volker Borchert.
91977
91978 2001-11-26  Jim Meyering  <meyering@lucent.com>
91979
91980         * lib/gtod.h: Remove file.
91981         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91982         * lib/gettimeofday.c: Don't include gtod.h.
91983         (GTOD_init): Remove function.
91984         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91985         Suggestion from Volker Borchert.
91986
91987 2001-11-23  Jim Meyering  <meyering@lucent.com>
91988
91989         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91990         it.
91991         * lib/hash.c (struct hash_table): Define it here instead.
91992
91993 2001-11-22  Jim Meyering  <meyering@lucent.com>
91994
91995         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91996
91997 2001-11-20  Jim Meyering  <meyering@lucent.com>
91998
91999         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92000         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92001
92002 2001-11-19  Jim Meyering  <meyering@lucent.com>
92003
92004         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92005         directory.  Use "conftestXXXXXX" as the template.
92006         Suggestion from Paul Eggert.
92007
92008         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92009         immediately, so the test doesn't mistakenly hit the max-open-files
92010         limit.
92011
92012 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92013
92014         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92015         (TEMPORARIES): New macro.
92016         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92017         removes an artificial limitation (e.g. HP-UX 10.20, where
92018         TMP_MAX is 17576).
92019
92020 2001-11-18  Jim Meyering  <meyering@lucent.com>
92021
92022         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92023
92024 2001-11-18  Jim Meyering  <meyering@lucent.com>
92025
92026         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92027         on SunOS 4.
92028
92029         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92030         files will be created before anything else.
92031
92032 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92033
92034         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92035         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92036
92037 2001-11-17  Jim Meyering  <meyering@lucent.com>
92038
92039         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92040         Prompted by a report from Bob Proulx.
92041
92042         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92043         Instead, require UTILS_FUNC_MKSTEMP.
92044
92045 2001-11-17  Jim Meyering  <meyering@lucent.com>
92046
92047         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92048         Now, that's done as part of AC_FUNC_STRTOD.
92049
92050 2001-11-17  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92053         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92054         rather than group writable.  Patch by Juan F. Codagnone.
92055
92056         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92057         xrealloc, Instead, include "xalloc.h".
92058
92059         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92060         Remove explicit declarations of xmalloc, xrealloc,
92061         and xstrdup.  Instead, include "xalloc.h".
92062
92063         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92064         unlocked-io.h.
92065         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92066         Likewise.
92067         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92068
92069         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92070         Reported by Padraig Brady.
92071
92072         * lib/mkstemp.c: #undef mkstemp.
92073         Include config.h.
92074         (rpl_mkstemp): Rename from mkstemp.
92075         Protoize.
92076
92077 2001-11-16  Jim Meyering  <meyering@lucent.com>
92078
92079         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92080         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92081         determine the amount of total physical memory, use pstat_getstatic.
92082         HPUX-11 doesn't define _SC_PHYS_PAGES.
92083         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92084         If sysconf couldn't be used to determine the amount of available
92085         physical memory, use both pstat_getstatic and pstat_getdynamic.
92086         Based on a patch from Bob Proulx.
92087
92088 2001-11-10  Jim Meyering  <meyering@lucent.com>
92089
92090         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92091         (jm_PREREQ): Use it.
92092
92093 2001-11-09  Jim Meyering  <meyering@lucent.com>
92094
92095         * m4/jm-macros.m4: Require autoconf-2.52f.
92096         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92097         Use these AC_-prefixed names, not the AM_-prefixed ones.
92098
92099         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92100
92101 2001-11-05  Jim Meyering  <meyering@lucent.com>
92102
92103         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92104
92105 2001-11-04  Jim Meyering  <meyering@lucent.com>
92106
92107         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92108         $DEFS.
92109
92110 2001-11-03  Jim Meyering  <meyering@lucent.com>
92111
92112         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92113         of AC_DEFUN.
92114
92115         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92116         know the name of the variable in the macro definition.
92117
92118 2001-11-03  Jim Meyering  <meyering@lucent.com>
92119
92120         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92121         in argmatch_to_argument call.
92122
92123         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92124         argument.
92125
92126         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92127         e.g., a fault due to an attempt to free a NULL pointer.
92128
92129 2001-11-01  Jim Meyering  <meyering@lucent.com>
92130
92131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92132         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92133
92134 2001-11-01  Jim Meyering  <meyering@lucent.com>
92135
92136         * lib/dirfd.c, lib/dirfd.h: New files.
92137         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92138
92139         * lib/hash.c (hash_print) [TESTING]: Clean up.
92140
92141 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92142
92143         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92144         to avoid a warning if -Wall.
92145
92146 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92147
92148         * README: New file
92149         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92150         (per RMS's instructions, this is now the canonical source)
92151         * lgpl/, gpl/: New directories.
92152
92153 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92154
92155         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92156
92157 2001-10-21  Jim Meyering  <meyering@lucent.com>
92158
92159         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92160         this code would end up calling gettext even in packages built
92161         with --disable-nls.
92162         * lib/getopt.c (_): Likewise.
92163         * lib/regex.c (_): Likewise.
92164
92165 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92166
92167         * m4/error.m4 (jm_PREREQ_ERROR):
92168         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92169         AC_FUNC_STRERROR_R does that.
92170         Check for strerror declaration.
92171
92172         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92173         are supposed to have them these days.
92174         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92175         Merge changes from latest Autoconf CVS.
92176         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92177         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92178         POSIX decided to standardize on the int flavor of strerror_r.
92179
92180 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92181
92182         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92183         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92184         Use strerror_r that is only a macro, even if it is not a function.
92185         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92186         (private_strerror): Use prototypes, not old-style function definition.
92187         (print_errno_message): New function.
92188         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92189         char*-flavored one.
92190         (error_tail, error, error_at_line): Use it.
92191
92192 2001-10-11  Jim Meyering  <meyering@lucent.com>
92193
92194         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92195         and quote_n (1, ... to avoid clobbering a buffer.
92196
92197 2001-10-05  Jim Meyering  <meyering@lucent.com>
92198
92199         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92200         hash-pjw.h.
92201         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92202         * lib/hash-pjw.h: New file.
92203
92204 2001-09-30  Jim Meyering  <meyering@lucent.com>
92205
92206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92207         `struct fsstat' has the `f_fstypename' member.
92208         Use that to define FS_TYPE, which is now used to make
92209         the getfsstat link test tighter.
92210
92211 2001-09-30  Jim Meyering  <meyering@lucent.com>
92212
92213         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92214         Include <sys/ucred.h>, for Apple Darwin.
92215         Include sys/mount.h and sys/fs_types.h only if available.
92216         (FS_TYPE): Define.
92217         (read_filesystem_list): Use FS_TYPE.
92218
92219 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92220
92221         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92222         a boolean context.
92223
92224 2001-09-29  Jim Meyering  <meyering@lucent.com>
92225
92226         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92227         [one-argument getmntent function]): Include stdio.h before mntent.h.
92228         SunOS 4.1.x needs it for the declaration of `FILE'.
92229         Patch by Volker Borchert.
92230
92231         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92232         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92233         sys/fs_types.h, and make the link-test for getfsstat guard #include
92234         directives with appropriate #if HAVE_*_H tests so that we can
92235         detect getfsstat on Apple Darwin1.3.7 systems.
92236         Reported by Nelson Beebe.
92237         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92238
92239 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92240
92241         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92242         #defines strtoimax.  Also treat the other strto* functions
92243         like strtoimax.
92244
92245         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92246         Check for strtoul and strtoumax,
92247         as those declarations are made even in the signed case.
92248         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92249         Likewise, for strtol and strtoimax.
92250
92251 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92252
92253         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92254         #defines strtoimax.  Also treat the other strto* functions
92255         like strtoimax.
92256
92257         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92258         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92259         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92260
92261 2001-09-26  Jim Meyering  <meyering@lucent.com>
92262
92263         Most macros in unlocked-io.h had the wrong number of arguments.
92264         * lib/gen-uio: New script.
92265         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92266         * lib/unlocked-io.hin: Remove file.
92267         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92268         rather than trying to embed it here.
92269         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92270         Reported by Padraig Brady.
92271
92272 2001-09-25  Volker Borchert  <bt@teknon.de>
92273
92274         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92275         `result'.
92276
92277 2001-09-24  Jim Meyering  <meyering@lucent.com>
92278
92279         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92280
92281 2001-09-23  Jim Meyering  <meyering@lucent.com>
92282
92283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92284         instead of the mere test for existence of mntent.h.  The latter
92285         would get a false-positive on AIX 3.4 systems.
92286         In the outer getmntent if-block, don't die if neither of the getmntent
92287         tests succeeds.  Instead, just fall through and continue with the
92288         remaining tests.
92289
92290 2001-09-23  Jim Meyering  <meyering@lucent.com>
92291
92292         * lib/mountlist.c: Remove useless parentheses in #if directives.
92293         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92294         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92295
92296 2001-09-22  Jim Meyering  <meyering@lucent.com>
92297
92298         * m4/gettext.m4: New file.  From gettext.
92299         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92300         * m4/progtest.m4: Likewise
92301         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92302         * m4/glibc21.m4: Likewise.
92303
92304         * m4/libintl.m4: Remove.  No longer used.
92305
92306 2001-09-22  Jim Meyering  <meyering@lucent.com>
92307
92308         * lib/localcharset.c: Update from latest gettext.
92309         * lib/config.charset: Likewise.
92310
92311 2001-09-20  Jim Meyering  <meyering@lucent.com>
92312
92313         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92314         strtoimax.
92315         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92316         strtoumax.
92317
92318 2001-09-20  Jim Meyering  <meyering@lucent.com>
92319
92320         * lib/xstrtol.c (strtoimax): Guard declaration with
92321         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92322         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92323         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92324         (strtoumax): Likewise, for completeness (it wasn't necessary).
92325
92326 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92327
92328         * lib/strtoimax.c (HAVE_LONG_LONG):
92329         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92330         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92331         to work around bug in IBM C compiler.
92332
92333 2001-09-17  Jim Meyering  <meyering@lucent.com>
92334
92335         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92336         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92337         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92338         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92339         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92340         whenever the right hand side need not be expanded by the shell.
92341
92342 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92343
92344         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92345         library.  It's not correct, as some older glibcs are buggy.
92346         fnmatch wasn't fixed until glibc 2.2.
92347
92348         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92349         special shell magic here.
92350
92351 2001-09-16  Jim Meyering  <meyering@lucent.com>
92352
92353         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92354         * m4/jm-macros.m4: Require it.
92355
92356 2001-09-16  Jim Meyering  <meyering@lucent.com>
92357
92358         * lib/mkdir.c: New file.
92359
92360 2001-09-15  Jim Meyering  <meyering@lucent.com>
92361
92362         * m4/jm-macros.m4: Check for help2man.
92363
92364 2001-09-11  Jim Meyering  <meyering@lucent.com>
92365
92366         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92367         The body, by Paul Eggert, was moved here from configure.in.
92368         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92369
92370 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92371
92372         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92373         (jm_PREREQ): Use it.
92374
92375 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92378         Use ssize_t, not int, to store result of readlink.
92379         Check for ssize_t overflow as well as size_t overflow,
92380         as POSIX says the result of readlink is implementation-defined
92381         when ssize_t overflows.
92382         Remove unnecessary cast to char*.
92383         Use free+malloc instead of realloc, as the storage doesn't need
92384         to be preserved and it's clearer and can be more efficient that way.
92385         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92386         * lib/xreadlink.h (xreadlink): Update prototype.
92387
92388 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/xgetcwd.c: Revert some of the previous change; intead,
92391         fix the HAVE_GETCWD_NULL code to behave more like the
92392         !HAVE_GETCWD_NULL code used to.
92393
92394         Include "xalloc.h".
92395         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92396         invoke xalloc_die.
92397
92398 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92399
92400         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92401         sys/param.h, as pathmax.h includes them.
92402
92403 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92404
92405         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92406         (jm_PREREQ_XGETCWD): New macro.
92407
92408         * m4/getcwd.m4: New file.
92409
92410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92411
92412         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92413         like the HAVE_GETCWD_NULL code.
92414         Include pathmax.h if not HAVE_GETCWD.
92415         Do not include xalloc.h.
92416         (INITIAL_BUFFER_SIZE): New symbol.
92417         Do not use xmalloc / xrealloc, since the caller is responsible for
92418         handling errors.  Preserve errno around `free' during failure.
92419         Do not overrun buffer when using getwd.
92420
92421 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92422
92423         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92424         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92425         getcwd (NULL, 0).
92426
92427 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92428
92429         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92430         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92431         spotted by Jim Meyering.
92432
92433 2001-09-03  Jim Meyering  <meyering@lucent.com>
92434
92435         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92436         failure.
92437
92438 2001-09-02  Jim Meyering  <meyering@lucent.com>
92439
92440         * lib/error.c: Update from GNU libc.
92441
92442 2001-09-01  Jim Meyering  <meyering@lucent.com>
92443
92444         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92445         Used by df.
92446
92447 2001-09-01  Jim Meyering  <meyering@lucent.com>
92448
92449         * lib/xreadlink.c: New file.
92450         * lib/xreadlink.h: New file.
92451         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92452         xreadlink.h.
92453
92454         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92455         doesn't conflict with sparc Solaris 7's definition in
92456         /usr/include/sys/int_types.h.
92457
92458         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92459         files.
92460         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92461         and strncasecmp as r-values.  Unixware didn't have declarations.
92462
92463 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92464
92465         * lib/xstrtol.h: Add copyright notice.
92466         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92467         LONGINT_INVALID_SUFFIX_CHAR.
92468
92469 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92470
92471         * lib/xstrtol.c (strtoimax): New decl.
92472
92473 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92474
92475         * lib/xgetcwd.c: Don't include pathmax.h.
92476         Include stdlib.h and unistd.h if available.
92477         Include xalloc.h.
92478         (xmalloc, xstrdup, free): Remove decls.
92479         (xgetcwd): Don't assume sizes fit in unsigned.
92480         Check for overflow when computing sizes.
92481         Simplify reallocation code.
92482
92483 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92484
92485         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92486         a directory's st_size can have an arbitrary value, so the old
92487         usage could waste an arbitrary amount of memory.  All uses
92488         changed.
92489         * lib/savedir.h: Update prototype.
92490
92491 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92494
92495         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92496         old strtoimax.c.
92497
92498         Also, make the following further changes to make this file's
92499         configuration more similar to that of strtol.c:
92500         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92501         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92502         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92503         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92504         changed to signed values.
92505
92506         And make the following changes as well:
92507         Fix copyright notice, as 1999 was missing.
92508         (verify): New macro.
92509         (strtoimax): Check sizes at compile-time, not run-time.
92510         Prefer strtol to strtoll if both work.
92511         (main): Remove; it was not that useful and was a pain to maintain.
92512
92513         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92514
92515 2001-08-31  Jim Meyering  <meyering@lucent.com>
92516
92517         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92518         Use an initial, malloc'd, buffer of length 128 rather than
92519         a statically allocated one of length 1024.
92520
92521 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92522
92523         Simplify code, partly by assuming autoconf 2.52 semantics.
92524
92525         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92526
92527         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92528         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92529         All uses removed.
92530         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92531         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92532         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92533         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92534         jm_AC_HEADER_INTTYPES_H.
92535         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92536
92537         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92538
92539         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92540         Quote first arg of AC_DEFUN.
92541         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92542         since they are needed to parse the include file even if we need
92543         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92544         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92545         but with opposite signedness.
92546
92547 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92548
92549         Merge 'exclude' changes from tar 1.13.22.
92550         This fixes one or two unlikely storage allocation overflow bugs,
92551         but doesn't change user-visible behavior otherwise.
92552
92553 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92554
92555         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92556         (jm_PREREQ_EXCLUDE): New macro.
92557
92558 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92559
92560         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92561         tm to be declared.
92562
92563 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92564
92565         * lib/hash.c: Remove '2001' from copyright notice.
92566
92567 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92568
92569         * lib/full-write.h: New file.
92570         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92571         * lib/full-write.c: Correct credits, as cccp.c no longer
92572         exists and anyway it was so heavily changed from the old cccp
92573         code as to be unrecognizable.  Include full-write.h.
92574         (full_write): Return size_t, with short writes meaning failure.
92575         All callers changed.  This fixes a bug with large buffers
92576         on 64-bit hosts.
92577         * lib/utime.c: Include full-write.h.
92578
92579 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92580
92581         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92582         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92583         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92584         Include if available.
92585         (<xalloc.h>): Include
92586         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92587         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92588         collide with FNM macros.
92589         (struct patopts): New struct.
92590         (struct exclude): Use it, as exclude patterns now come with options.
92591         (new_exclude): Support above changes.
92592         (new_exclude, add_exclude_file):
92593         Initial size must now be a power of two to simplify overflow checking.
92594         (free_exclude, fnmatch_no_wildcards): New function.
92595         (excluded_filename): No longer requires options arg, as the options
92596         are determined by add_exclude.  Now returns bool, not int.
92597         (excluded_filename, add_exclude):
92598         Add support for the fancy new exclusion options.
92599         (add_exclude, add_exclude_file): Now takes int options arg.
92600         Check for arithmetic overflow when computing sizes.
92601         (add_exclude_file): xrealloc might modify errno, so don't
92602         realloc until after errno might be used.
92603
92604         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92605         New macros.
92606         (free_exclude): New decl.
92607         (add_exclude, add_exclude_file): Now takes int options arg.
92608         (excluded_filename): No longer requires options arg, as the options
92609         are determined by add_exclude.  Now returns bool, not int.
92610
92611 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92612
92613         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92614
92615 2001-08-27  Jim Meyering  <meyering@lucent.com>
92616
92617         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92618
92619         * lib/version-etc.c (N_): Remove definition.
92620         Revert most of last change.
92621         Instead, simply don't mark the `Copyright...' string for translation.
92622         Based on advice from Paul Eggert.
92623
92624         * lib/strtoxmax.c: Tweak comment.
92625
92626 2001-08-26  Jim Meyering  <meyering@lucent.com>
92627
92628         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92629
92630         * m4/xstrtoimax.m4: New file.
92631         * m4/xstrtoumax.m4: Add comments explaining why we
92632         AC_REPLACE_FUNCS(strtol).
92633
92634 2001-08-26  Jim Meyering  <meyering@lucent.com>
92635
92636         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92637         of copyright with `%s' so translators don't get an untranslated
92638         message in 2002.
92639         (COPYRIGHT_YEAR): Define.
92640         (version_etc): Use fprintf rather than fputs.
92641         Suggestion from Ulrich Drepper.
92642
92643         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92644
92645         * lib/strtoll.c: New file, from GNU libc.
92646         * lib/xstrtoimax.c: New file.
92647
92648         * lib/xstrtol.h: Add xstrtoimax.
92649         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92650         * lib/strtoimax.c: New file.  Likewise, but first define
92651         STRTOUXMAX_SIGNED.
92652
92653         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92654         ...
92655         * lib/strtoxmax.c: ... then renamed to this.
92656
92657 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92658
92659         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92660         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92661         (jm_AC_TYPE_INTMAX_T): New macro.
92662         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92663
92664         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92665
92666         * m4/longlong.m4: Renamed from ulonglong.m4.
92667         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92668         * m4/uintmax_t.m4: Removed.
92669
92670 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92671
92672         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92673         Port to Solaris 8, where 'sed' requires a space after the 'r'
92674         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92675         Redirect output to $tmp just once.
92676
92677 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92678
92679         * lib/addext.c (<errno.h>): Include.
92680         (errno): Declare if not defined.
92681         (addext): Work correctly when pathconf returns -1 and leaves
92682         errno alone because there is no limit.  Also, work even if
92683         pathconf returns a value greater than SIZE_MAX.
92684
92685 2001-08-12  Jim Meyering  <meyering@lucent.com>
92686
92687         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92688         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92689         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92690         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92691         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92692         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92693         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92694         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92695         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92696         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92697         utime.m4, utimes.m4, xstrtoumax.m4:
92698         Quote the first argument in each use of AC_DEFUN.
92699
92700 2001-08-12  Jim Meyering  <meyering@lucent.com>
92701
92702         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92703         Simply `return getcwd (NULL, 0);'.
92704         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92705         Use 1300 as initial value for length, not PATH_MAX.
92706
92707         * lib/pathmax.h: Clean up cpp syntax.
92708
92709 2001-08-12  Jim Meyering  <meyering@lucent.com>
92710
92711         * lib/gettimeofday.c: New file.
92712         * lib/gtod.h: New file.
92713         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92714
92715 2001-08-05  Jim Meyering  <meyering@lucent.com>
92716
92717         * m4/jm-macros.m4: Require autoconf-2.52.
92718
92719 2001-08-04  Jim Meyering  <meyering@lucent.com>
92720
92721         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92722         stmt, to get in sync with glibc.
92723
92724 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92725
92726         The following changes are from gettext 0.10.39 as maintained by
92727         Bruno Haible.
92728
92729         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92730         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92731         with inverted sense.  All uses changed.
92732
92733         * lib/mbswidth.c: Don't include <limits.h>.
92734         Include <stdlib.h> and <string.h> unconditionally.
92735         (iswcntrl, mbsinit, ISCNTRL): New macros.
92736         (mbsnwidth): Use K&R style function declarations.
92737         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92738         can optimize it when MB_CUR_MAX == 1.
92739         The width of control characters is zero, not 1.
92740
92741 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92742
92743         The following changes are from gettext 0.10.39 as maintained by
92744         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92745
92746         * m4/codeset.m4: Upgrade to serial AM1.
92747         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92748         all uses changed.  Quote first arg of AC_DEFUN.
92749         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92750
92751         * m4/iconv.m4: Upgrade to serial AM2.
92752         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92753         Add --with-libconv-prefix.
92754         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92755         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92756         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92757         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92758         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92759
92760         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92761         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92762         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92763         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92764         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92765         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92766         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92767         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92768         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92769
92770         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92771         string.h any more.
92772
92773         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92774         not the default value.
92775
92776         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92777         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92778         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92779         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92780         Also check for iswcntrl, used for wcwidth fallback.
92781         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92782         to Autoconf 2.13.
92783
92784 2001-08-03  Jim Meyering  <meyering@lucent.com>
92785
92786         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92787         as it was in the original.  Reported by Paul Eggert.
92788
92789 2001-07-16  Jim Meyering  <meyering@lucent.com>
92790
92791         * m4/gettimeofday.m4: New file.
92792         Prompted by a report from Bernhard Baehr.
92793
92794 2001-07-15  Jim Meyering  <meyering@lucent.com>
92795
92796         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92797         stuff. Now it's in ../Makefile.cfg.
92798
92799 2001-07-15  Jim Meyering  <meyering@lucent.com>
92800
92801         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92802         (BUILT_SOURCES): Add unlocked-io.h.
92803         (io_functions): Define.
92804         (unlocked-io.h): New rule.
92805         (DISTCLEANFILES): Add unlocked-io.h.
92806         (all-local): Depend on unlocked-io.h, to ensure it is created.
92807
92808         * lib/unlocked-io.hin: New file
92809
92810         * lib/regex.c: Update from glibc.
92811
92812 2001-07-05  Jim Meyering  <meyering@lucent.com>
92813
92814         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92815         recommendation.
92816         (libfetish_a_SOURCES): Put all .h files here instead.
92817         Remove a thus-exposed (better checks in automake) duplicate and
92818         two unnecessary .h files.
92819
92820 2001-07-04  Jim Meyering  <meyering@lucent.com>
92821
92822         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92823         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92824         distcheck failure.
92825
92826 2001-07-02  Jim Meyering  <meyering@lucent.com>
92827
92828         The following changes were prompted by suggestions from Bruno Haible.
92829
92830         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92831         is now generated.
92832         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92833         definition of EXTRA_DIST.
92834         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92835         ensure that the generated file is created/updated whenever the list
92836         of $(unlocked_functions) is changed.
92837         (jm-glibc-io.m4): New rule.
92838         (unlocked-io.h): New rule -- currently unused.
92839
92840 2001-06-24  Jim Meyering  <meyering@lucent.com>
92841
92842         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92843         unmatched right bracket, rather than kludging it with an extra,
92844         falsely-matching quote in a comment.  Patch by Akim Demaille.
92845
92846 2001-06-11  Jim Meyering  <meyering@lucent.com>
92847
92848         * lib/regex.c: Update from GNU libc.
92849
92850 2001-05-27  Jim Meyering  <meyering@lucent.com>
92851
92852         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92853         Check for ut_type in struct utmp.
92854
92855 2001-05-27  Jim Meyering  <meyering@lucent.com>
92856
92857         * lib/readutmp.h (UT_TYPE): Define.
92858
92859 2001-05-24  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/argmatch.c: Include "quote.h".
92862         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92863         quote function.  Reported by Göran Uddeborg.
92864
92865 2001-05-22  Jim Meyering  <meyering@lucent.com>
92866
92867         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92868         now that we use the package-supplied version unconditionally.
92869         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92870
92871 2001-05-21  Jim Meyering  <meyering@lucent.com>
92872
92873         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92874         shell syntax errors.
92875
92876 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92877
92878         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92879
92880 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92881
92882         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92883         Don't bother to check library strftime, since
92884         we'll be using our own my_strftime function anyway.
92885         Define my_strftime instead of strftime.
92886
92887 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92888
92889         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92890         which is not yet declared.
92891
92892 2001-05-15  Jim Meyering  <meyering@lucent.com>
92893
92894         * m4/regex.m4: Use proper quoting so brackets appear in the test
92895         program.
92896         Reported by, and with help from, Bruno Haible.
92897
92898 2001-05-13  Jim Meyering  <meyering@lucent.com>
92899
92900         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92901         undefined.
92902
92903 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92904
92905         dirname code cleanup.  base_name now behaves more compatibly
92906         with POSIX basename when given file names that have trailing
92907         slashes, and similarly for dir_name.  Add new primitives
92908         base_len and dir_len.  Put the directory-name-related decls
92909         into dirname.h.
92910
92911         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92912         * lib/backupfile.c (base_name): Likewise.
92913         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92914         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92915         * lib/makepath.c (strip_trailing_slashes): Likewise.
92916         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92917         ISSLASH): Likewise.
92918         * lib/rename.c (strip_trailing_slashes): Likewise.
92919         * lib/same.c (base_name): Likewise.
92920         * lib/stripslash.c (ISSLASH): Likewise.
92921
92922         * lib/addext.c: Include <dirname.h> after size_t is defined.
92923         * lib/backupfile.c: Likewise.
92924
92925         * lib/addext.c (addext): Use base_len to trim redundant
92926         trailing slashes instead of doing it ourselves.
92927         But do not trim the last slash if it is not redundant.
92928
92929         * lib/backupfile.c (find_backup_file_name,
92930         max_backup_version): Use base_len instead of rolling it ourselves.
92931         Handle the case of "" and (on DOS) "C:" correctly.
92932
92933         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92934         needed. Include <string.h>, <dirname.h>.
92935         (base_name): Allow file names ending in slashes, other than names
92936         that are all slashes.  In this case, return the basename followed
92937         by the slashes.  This is more general, and can be used in places
92938         where the original base_name purposely had an assertion failure.
92939         (base_len): New function.
92940
92941         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92942         Do not include <assert.h>; no longer needed.
92943         Include xalloc.h.
92944         (memrchr): Remove decl.
92945         (dir_name_r): Remove.
92946         (dir_len): Renamed from dirlen.  All callers changed.
92947         Rewrite in terms of base_name, for simplicity and consistency.
92948         (dir_name): Never return NULL.  All callers changed.
92949         Do not include <stdlib.h> in test program; no longer needed.
92950         return 0; is fine for test program.
92951
92952         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92953         New macros.
92954         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92955
92956         * lib/path-concat.c (path_concat): Use base_len to compute
92957         base length, not strlen; this means we cannot rely on memcpy
92958         to null-terminate.
92959
92960         * lib/same.c (STREQ): Remove.
92961         (same_name): Handle the case where the basename ends in trailing '/'.
92962
92963         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92964         a slash was stripped.  Do not strip the last slash after a
92965         file system prefix.
92966
92967 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92968
92969         * lib/Makefile.am (libfetish_a_SOURCES):
92970         Add strftime.c, since we now compile it on all hosts.
92971
92972         * lib/strftime.c (my_strftime):
92973         Define to nstrftime if emacs, but only if my_strftime is not defined.
92974         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92975         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92976         Add one more extra argument: a nanoseconds value.
92977         All uses changed.
92978         (ns): New macro.
92979         (my_strftime function): Add %N format.
92980         (emacs_strftimeu): Renamed from emacs_strftime,
92981         with extra ut argument.
92982
92983 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92984
92985         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92986
92987 2001-04-21  Jim Meyering  <meyering@lucent.com>
92988
92989         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92990         doesn't interfere.
92991
92992 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92993
92994         * m4/ftruncate.m4: Check for chsize.
92995         Link with ftruncate.o unconditionally if ftruncate is missing.
92996         This was required when cross-compiling to i586-mingw32msvc.
92997
92998 2001-04-08  Jim Meyering  <meyering@lucent.com>
92999
93000         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93001         recomputed; that's necessary when the offset spans a DST transition.
93002         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93003
93004 2001-04-02  Jim Meyering  <meyering@lucent.com>
93005
93006         * lib/regex.h, regex.c: Update from GNU libc.
93007
93008 2001-03-24  Jim Meyering  <meyering@lucent.com>
93009
93010         * m4/jm-macros.m4: Require autoconf-2.49d.
93011
93012 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93013
93014         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93015
93016 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93017
93018         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93019
93020 2001-03-17  Jim Meyering  <meyering@lucent.com>
93021
93022         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93023         now that the version in autoconf is equivalent.
93024         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93025
93026         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93027         Suggestion from Akim Demaille.
93028
93029         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93030         (jm_PREREQ_TEMPNAME): New function.
93031
93032 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93033
93034         * lib/tempname.c (uint64_t): Define to uintmax_t if
93035         not defined, and if UINT64_MAX is not defined.
93036         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93037         Reported by John David Anglin.
93038
93039 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93040
93041         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93042         resolve alias if codeset is empty.
93043         * lib/config.charset (BeOS): Use wildcard syntax.
93044
93045 2001-03-13  Jim Meyering  <meyering@lucent.com>
93046
93047         * lib/path-concat.c (path_concat)
93048         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93049         concatenating e.g., `C:' and `foo'.
93050         From Bruno Haible.
93051
93052 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93053
93054         * lib/localcharset.c (locale_charset): Don't use
93055         setlocale(LC_CTYPE,NULL). Don't return NULL.
93056         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93057
93058 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93059
93060         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93061         support for DOS/DJGPP.
93062
93063 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93064
93065         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93066         lacks mkstemp.  Compile our own tempname.c if we compile our own
93067         mkstemp.c, as mkstemp relies on tempname.
93068
93069 2001-03-01  Jim Meyering  <meyering@lucent.com>
93070
93071         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93072         AH_VERBATIM really does output its argument verbatim.
93073
93074 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93075
93076         * lib/Makefile.am (libfetish_a_SOURCES):
93077         Add dup-safer.c, fopen-safer.c.
93078         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93079
93080         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93081         * lib/unistd-safer.h: New files.
93082
93083 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93084
93085         The mkstemp replacement is taken from glibc 2.2.2, with some
93086         portability fixes for use outside glibc, as follows:
93087
93088         * lib/tempname.c (struct_stat64): New macro.
93089         (direxists, __gen_tempname): Use it.
93090         This avoids a portability problem with Solaris 8.
93091
93092         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93093         (<stddef.h>, <stdint.h>, <string.h>):
93094         Include only if STDC_HEADERS || _LIBC.
93095         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93096         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93097         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93098         (__set_errno): Define this macro if <errno.h> doesn't.
93099         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93100         Define these macros if <stdio.h> doesn't.
93101         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93102         Define these macros if <sys/stat.h>
93103         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93104         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93105         __xstat64): Define if not _LIBC.
93106         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93107         (__gen_tempname): Invoke gettimeofday only if
93108         HAVE_GETTIMEOFDAY || _LIBC;
93109         otherwise, fall back on plain "time".
93110         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93111
93112         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93113
93114         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93115
93116 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93117
93118         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93119
93120 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93121
93122         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93123         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93124         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93125         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93126
93127 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93128
93129         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93130         Remove workaround macros for hosts that have mbrtowc but not
93131         mbstate_t, as we now insist on proper declarations for both
93132         before using mbrtowc.
93133
93134 2001-02-17  Jim Meyering  <meyering@lucent.com>
93135
93136         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93137         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93138         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93139         UnixWare 7.1.1.
93140
93141         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93142         rather than AC_CACHE_VAL.
93143
93144 2001-02-17  Jim Meyering  <meyering@lucent.com>
93145
93146         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93147         around included file name.
93148
93149         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93150
93151         * lib/strftime.c: Update from GNU libc (the only changes were to
93152         comments).
93153
93154 2001-02-17  Jim Meyering  <meyering@lucent.com>
93155
93156         * lib/regex.c: Update from libc.
93157
93158 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93159
93160         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93161         clash.
93162
93163 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93164
93165         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93166         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93167         Reported by Mark Hounschell via Paul Eggert.
93168
93169 2001-02-07  Jim Meyering  <meyering@lucent.com>
93170
93171         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93172
93173 2001-02-05  Jim Meyering  <meyering@lucent.com>
93174
93175         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93176         it includes the patch required for `large file' support with at least
93177         HP-UX's 10.20 /bin/cc.
93178
93179 2001-02-03  Jim Meyering  <meyering@lucent.com>
93180
93181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93182         AS_IF, now that it works once again (mysteriously).
93183         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93184
93185 2001-01-30  Jim Meyering  <meyering@lucent.com>
93186
93187         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93188         * m4/chown.m4: Rename conftestchown to conftest.chown.
93189         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93190         s/conftestdir2/conftest.d2/.
93191         * m4/utimes.m4: s/conftestdata/conftest.data/
93192         Inspired by Pavel Roskin's change in autoconf.
93193
93194 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93195
93196         * lib/config.charset: Update for FreeBSD 4.2.
93197
93198 2001-01-27  Jim Meyering  <meyering@lucent.com>
93199
93200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93201         a use of AS_IF.
93202         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93203
93204 2001-01-26  Jim Meyering  <meyering@lucent.com>
93205
93206         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93207         quotearg.c includes it.
93208
93209 2001-01-26  Jim Meyering  <meyering@lucent.com>
93210
93211         * lib/quotearg.c: Include stddef.h.
93212         * lib/quote.c: Include stddef.h.
93213         Reported by Axel Kittenberger.
93214
93215         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93216         line in double quotes so that it evokes a better diagnostic.
93217         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93218         Reported by Axel Kittenberger.
93219
93220 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93221
93222         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93223         as if it was a `charset'.
93224
93225 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93226
93227         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93228         has const.
93229
93230 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93231
93232         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93233         to avoid a warning.  Add back 'const' to inptr.
93234
93235 2001-01-20  Jim Meyering  <meyering@lucent.com>
93236
93237         Be sure that headers are checked before used in code compiled
93238         for the type checks.
93239         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93240         In place of that, invoke jm_CHECK_ALL_TYPES.
93241         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93242         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93243         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93244         The check for ssize_t was mistakenly run before the test for unistd.h.
93245
93246         The configure-time check for stdbool.h was missing.
93247         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93248         (jm_PREREQ_HASH): New function.
93249
93250 2001-01-17  Jim Meyering  <meyering@lucent.com>
93251
93252         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93253         for autoconf-2.49c.
93254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93255
93256 2001-01-16  Jim Meyering  <meyering@lucent.com>
93257
93258         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93259         From Bruno Haible.
93260
93261 2001-01-14  Jim Meyering  <meyering@lucent.com>
93262
93263         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93264         foo and bar.  Create conftestdir/ in the script, not in the C code.
93265         Remove directories in the script, not in the C code.
93266         Remove conftestdir{,2} before trying to create the directory.
93267         Make the entire configure script fail if the mkdir fails.
93268
93269 2001-01-14  Jim Meyering  <meyering@lucent.com>
93270
93271         * lib/rename.c: New file.  From Volker Borchert.
93272         Include stdlib.h, string.h or strings.h, and xalloc.h.
93273         Use strip_trailing_slashes rather than open-coding it.
93274
93275 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93276
93277         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93278
93279 2001-01-03  Jim Meyering  <meyering@lucent.com>
93280
93281         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93282         of local `inptr' to avoid warning with some system declarations of
93283         iconv.
93284
93285 2001-01-02  Volker Borchert  <bt@teknon.de>
93286
93287         * m4/rename.m4: New file.
93288         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93289
93290 2001-01-01  Jim Meyering  <meyering@lucent.com>
93291
93292         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93293         even on systems with utmpx.h.  It's necessary for the declaration of
93294         utmp's ut_user member.  Reported by Andreas Jaeger.
93295
93296         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93297         available. They are required for the declarations of getgrgid and
93298         getpwuid resp.
93299         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93300         Reported by Andreas Jaeger.
93301
93302 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93303
93304         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93305         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93306         so `make install' also works in VPATH builds.
93307
93308 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93309
93310         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93311         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93312         can be used in subdirectories.
93313
93314 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93315
93316         * lib/modechange.c: Do not assume that mode_t uses the
93317         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93318         the other-execute bit of FOO even if S_IXOTH != 1.
93319
93320         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93321         WOTH, XOTH, ALLM): New macros.
93322         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93323          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93324         Use them.
93325         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93326         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93327         (mode_compile):
93328         No need to use uintmax_t; unsigned long is long enough.
93329         Don't bother to get suffix since we don't use it.
93330
93331 2000-12-26  Jim Meyering  <meyering@lucent.com>
93332
93333         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93334         better with autoheader.
93335
93336 2000-12-24  Jim Meyering  <meyering@lucent.com>
93337
93338         * lib/hash.c (is_prime): Return explicit boolean values.
93339         (hash_get_first): Return NULL to appease Irix5.6's 89.
93340         Reported by Nelson Beebe.
93341
93342 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93343
93344         * lib/localcharset.c (locale_charset): Add support for Win32.
93345
93346 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93347
93348         * lib/physmem.h, lib/physmem.c: New files.
93349
93350         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93351         (noinst_HEADERS): Add physmem.h.
93352
93353         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93354         't' for compatibility with Solaris 8 sort.
93355
93356 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93357
93358         * lib/config.charset: Add support for BeOS.
93359
93360 2000-12-17  Jim Meyering  <meyering@lucent.com>
93361
93362         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93363         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93364
93365 2000-12-16  Jim Meyering  <meyering@lucent.com>
93366
93367         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93368         N and M) would have treated it like `chown N:N FILE'.
93369
93370         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93371
93372 2000-12-16  Jim Meyering  <meyering@lucent.com>
93373
93374         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93375         SHELLS_FILE to a file name that's useful on djgpp systems.
93376         Include stdlib.h.
93377         (ADDITIONAL_DEFAULT_SHELLS): Define.
93378         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93379         Based mostly on a patch from Prashant TR.
93380
93381 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93382
93383         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93384         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93385         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93386
93387 2000-12-08  Andreas Schwab  <schwab@suse.de>
93388
93389         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93390         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93391
93392 2000-12-07  Jim Meyering  <meyering@lucent.com>
93393
93394         * lib/stripslash.c (ISSLASH): Define.
93395         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93396         `/'.
93397         From Prashant TR.
93398
93399         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93400         (dir_name_r): Declare this function as static.
93401         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93402         manifest itself on a name containing a mix of slashes and
93403         backslashes.
93404         Make this function work with names starting with a DOS-style
93405         drive letter and colon prefix.
93406         (dir_name): Append `.' if necessary.
93407         Based mostly on patches from Prashant TR and Eli Zaretskii.
93408
93409         * lib/dirname.h (dir_name_r): Remove prototype.
93410
93411 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93412
93413         * m4/off_t-format.m4: Remove this file.
93414         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93415
93416 2000-12-06  Jim Meyering  <meyering@lucent.com>
93417
93418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93419         replacement strtoull, we may well need the replacement strtoul, too.
93420         Check for declarations of strtoul and strtoull.
93421         Check for strtol.  Mainly as a cue to cause automake to include
93422         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93423         Check for limits.h -- strtol.c needs it.
93424
93425 2000-12-05  Jim Meyering  <meyering@lucent.com>
93426
93427         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93428
93429 2000-12-04  Jim Meyering  <meyering@lucent.com>
93430
93431         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93432         Also include memory.h, stdlib.h, unistd.h if appropriate.
93433         Reported by Andreas Jaeger (conflicting declaration of malloc).
93434
93435 2000-12-02  Jim Meyering  <meyering@lucent.com>
93436
93437         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93438         * m4/jm-macros.m4 (jm_MACROS): require it.
93439
93440 2000-12-02  Jim Meyering  <meyering@lucent.com>
93441
93442         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93443
93444 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93445
93446         * lib/memrchr.c: Include <config.h> before any system include file.
93447
93448 2000-11-30  Jim Meyering  <meyering@lucent.com>
93449
93450         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93451
93452 2000-11-30  Jim Meyering  <meyering@lucent.com>
93453
93454         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93455
93456 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93457
93458         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93459
93460 2000-11-26  Jim Meyering  <meyering@lucent.com>
93461
93462         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93463
93464 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93465
93466         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93467         size of (size_t) -1; it's not portable.
93468
93469 2000-11-17  Jim Meyering  <meyering@lucent.com>
93470
93471         * lib/strstr.c: Update from GNU libc.
93472
93473 2000-11-17  Akim Demaille  <akim@epita.fr>
93474
93475         * lib/obstack.h: Formatting changes.
93476         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93477         prevent type checking.
93478         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93479         cast the value to (void *): assigning a `foo *' to a `void *'
93480         variable is valid.
93481         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93482
93483 2000-11-16  Jim Meyering  <meyering@lucent.com>
93484
93485         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93486
93487 2000-11-11  Jim Meyering  <meyering@lucent.com>
93488
93489         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93490
93491 2000-11-10  Jim Meyering  <meyering@lucent.com>
93492
93493         * lib/obstack.h: Update from GNU libc.
93494         * lib/obstack.c: Likewise.
93495
93496 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93497
93498         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93499
93500 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93501
93502         * lib/getusershell.c (setusershell): Use rewind rather than
93503         fseek/fseeko, to avoid configuration hassles with fseeko.
93504         Don't bother opening SHELLS_FILE if shellstream is NULL;
93505         it's not necessary.
93506
93507 2000-11-05  Jim Meyering  <meyering@lucent.com>
93508
93509         * lib/makepath.h (make_dir): Declare.
93510         * lib/makepath.c (make_dir): Remove `static' attribute.
93511         Tweak a comment.
93512
93513 2000-11-04  Jim Meyering  <meyering@lucent.com>
93514
93515         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93516
93517 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93518
93519         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93520         last one in a bucket, advance to the next bucket.
93521
93522 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93523
93524         * lib/fnmatch.c: Do not comment out all the code if we are using
93525         the GNU C library, because in some cases we are replacing buggy
93526         code in the GNU C library itself.
93527
93528 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93529
93530         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93531         (regex_compile): Catch bogus \(\1\).
93532
93533 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93534
93535         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93536         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93537         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93538
93539 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93540
93541         * lib/error.h, getline.h, modechange.h:
93542         Remove "2000" from Copyright line, as the file hasn't been
93543         changed this year other than in the copyright notice.
93544
93545         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93546         was changed this year.
93547
93548 2000-10-29  Jim Meyering  <meyering@lucent.com>
93549
93550         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93551         renaming.
93552         * m4/ls-mntd-fs.m4: Likewise
93553
93554 2000-10-29  Jim Meyering  <meyering@lucent.com>
93555
93556         * lib/xstat.in: Fix grammar in comment.
93557
93558 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93559
93560         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93561         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93562         doesn't define __restrict_arr.
93563
93564 2000-10-28  Jim Meyering  <meyering@lucent.com>
93565
93566         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93567         (jm_PREREQ_MEMCHR): New function.
93568
93569 2000-10-28  Jim Meyering  <meyering@lucent.com>
93570
93571         * lib/memchr.c: Update from libc.
93572         Adjust for portability:
93573         [HAVE_STDLIB_H]: Include stdlib.h.
93574         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93575         Undef __memchr, too.
93576         [!weak_alias]: Define __memchr to memchr.
93577
93578         * lib/regex.c: Update from libc.
93579         * lib/regex.h: Likewise.
93580         * lib/getopt1.c: Likewise.
93581         * lib/memcmp.c: Likewise.
93582
93583         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93584         Avoid using fseek, when possible -- it's broken by design.
93585         Patch by Ulrich Drepper.
93586
93587 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93588
93589         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93590         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93591         Giving in to popular pressure to shut up the compiler with casts.
93592
93593 2000-10-26  Jim Meyering  <meyering@lucent.com>
93594
93595         * lib/strftime.c: Update from libc.
93596
93597 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93598
93599         * regex.c: More `unsigned char' -> `re_char' changes.
93600         Also change several `int' into `re_wchar_t'.
93601         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93602         (PUSH_FAILURE_POINTER): Don't cast any more.
93603         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93604         We want GCC to complain, since this piece of code makes
93605         re_match non-reentrant, which *should* be fixed.
93606         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93607         (EXTEND_BUFFER): Use RETALLOC.
93608         (SET_LIST_BIT): Don't cast.
93609         (re_wchar_t): New type.
93610         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93611         that those two functions will always properly return.
93612         (IMMEDIATE_QUIT_CHECK): Cast to void.
93613         (analyse_first): Use recursion rather than an explicit stack.
93614         (re_compile_fastmap): Can't fail anymore.
93615         (re_search_2): Don't check re_compile_fastmap for failure.
93616         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93617         Now also sets the new value (passed in a new argument).
93618         (re_match_2_internal): Use it.
93619         Also, use a new var `reg' of type size_t when looping through regs
93620         rather than reuse the inappropriate `mcnt'.
93621
93622 2000-10-25  Jim Meyering  <meyering@lucent.com>
93623
93624         * lib/obstack.c: Update from libc.
93625
93626 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93627
93628         * regex.c (regex_compile): Change the way of handling a range from
93629         a char less than 256 to a char not less than 256.
93630
93631 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93632
93633         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93634         NT-Emacs only.
93635         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93636         so that re_search functions only quit when callers expect them to.
93637
93638 2000-10-23  Jim Meyering  <meyering@lucent.com>
93639
93640         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93641         wrong.  That set_locale call must not have any side effects.
93642         From Paul Eggert.
93643
93644 2000-10-22  Jim Meyering  <meyering@lucent.com>
93645
93646         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93647         [CYCLIC]: Remove now-unused definition.
93648
93649         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93650         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93651         Suggestion from Ulrich Drepper.
93652
93653 2000-10-21  Jim Meyering  <meyering@lucent.com>
93654
93655         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93656         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93658
93659 2000-10-21  Jim Meyering  <meyering@lucent.com>
93660
93661         * lib/dirname.c (memrchr): Declare if necessary.
93662         (dir_name): Remove the restriction that there be no
93663         trailing slashes.  Now, this code skips past them, effectively
93664         ignoring them.
93665         [TEST_DIRNAME] (main): New unit tests.
93666
93667         * lib/memrchr.c: New file from GNU libc.
93668         Undef __memrchr, too.
93669         [!weak_alias]: Define __memrchr to memrchr.
93670         Guard weak_alias use with `#ifdef weak_alias'.
93671
93672 2000-10-21  Jim Meyering  <meyering@lucent.com>
93673
93674         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93675         (dir_name): Use dir_name_r.
93676         * lib/dirname.h (dir_name_r): Declare it.
93677
93678 2000-10-17  Jim Meyering  <meyering@lucent.com>
93679
93680         * lib/quote.h (PARAMS): Define and use.
93681         Reported by Akim Demaille.
93682
93683         * lib/getopt.c: Update from libc.
93684
93685 2000-10-16  Jim Meyering  <meyering@lucent.com>
93686
93687         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93688         setlocale.
93689         From Jan Fedak.
93690
93691 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93692
93693         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93694
93695 2000-09-25  Jim Meyering  <meyering@lucent.com>
93696
93697         * lib/md5.h (rol): Define (from GnuPG).
93698
93699         * lib/sha.c: Give credit (GnuPG) where due.
93700         (M): Use rol rather than open-coding it.
93701         Add a FIXME comment.
93702
93703 2000-09-21  Jim Meyering  <meyering@lucent.com>
93704
93705         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93706         Reported by Michael Stone.
93707
93708 2000-09-20  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93711         (noinst_HEADERS): Add sha.h.
93712         Based on code from Scott G. Miller and from GnuPG.
93713
93714 2000-09-18  Jim Meyering  <meyering@lucent.com>
93715
93716         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93717         LIBS. Otherwise, everyone ends up linking with -lelf for some
93718         configurations.
93719         Reported by Mike Stone.
93720
93721 2000-09-15  Jim Meyering  <meyering@lucent.com>
93722
93723         * lib/regex.c: Update from libc.
93724
93725 2000-09-10  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/getopt.c (_getopt_internal): Update from glibc.
93728
93729 2000-09-09  Jim Meyering  <meyering@lucent.com>
93730
93731         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93732         think it should be used as a general replacement for isascii.
93733         * lib/fnmatch.c: Likewise.
93734         * lib/mbswidth.c: Likewise
93735         * lib/regex.c: Likewise.
93736
93737         Don't use atoi.
93738         * lib/userspec.c: Include sys/param.h and limits.h.
93739         Include xstrtol.h.
93740         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93741         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93742         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93743         UID, GID.  Check range.
93744
93745 2000-09-06  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/getopt.c (_getopt_internal): Update from glibc.
93748
93749 2000-08-30  Jim Meyering  <meyering@lucent.com>
93750
93751         * lib/strftime.c: Merge in changes from GNU libc.
93752
93753 2000-08-26  Jim Meyering  <meyering@lucent.com>
93754
93755         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93756         * m4/fpending.m4: New file.
93757
93758 2000-08-26  Jim Meyering  <meyering@lucent.com>
93759
93760         * lib/closeout.c: Include "__fpending.h".
93761         (close_stdout_status): Return right away if there's nothing to flush.
93762
93763         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93764         * lib/__fpending.c: New file.
93765         * lib/__fpending.h: New file.
93766
93767 2000-08-20  Jim Meyering  <meyering@lucent.com>
93768
93769         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93770         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93771         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93772
93773 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93774
93775         Improve fileutils installation on systems where running
93776         programs (like install) can't be unlinked.
93777         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93778         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93779
93780 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93781
93782         Standardize on "memory exhausted" instead of "Memory exhausted"
93783         or "virtual memory exhausted".
93784         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93785         "virtual memory exhausted".
93786         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93787         our own message.
93788         * lib/userspec.c (parse_user_spec): Likewise.
93789         * lib/bumpalloc.h: comment fix
93790         * lib/same.c, userspec.c: Include xalloc.h.
93791
93792         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93793         not char *const and pointing to a constant array.
93794         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93795         (xrealloc): Comment fix.
93796
93797         * lib/userspec.c (parse_user_spec):
93798         Don't translate a message until just before returning,
93799         to avoid unnecessary translation.
93800
93801 2000-08-07  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93804         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93805         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93806         getgroups.c, gethostname.c, getopt.h, group-member.c,
93807         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93808         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93809         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93810         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93811         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93812         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93813         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93814         yesno.c: Back out Copyright date changes for each file with no change
93815         this year.  This eases coordination with other programs using the same
93816         source code modules.  From Paul Eggert.
93817
93818 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93819
93820         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93821         not char, for compatibility with glibc 2.1.3 strftime.c.
93822
93823 2000-08-03  Greg McGary  <greg@mcgary.org>
93824
93825         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93826         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93827         (EXTEND_BUFFER): Use them.
93828
93829 2000-08-01  Jim Meyering  <meyering@lucent.com>
93830
93831         * lib/dirname.c (ISSLASH): Define.
93832         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93833         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93834         both `\' and `/' may be use as path separators.
93835         Based on a patch from Prashant TR.
93836
93837 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93838
93839         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93840         slot vector a constant, since it might get modified.
93841
93842 2000-07-31  Jim Meyering  <meyering@lucent.com>
93843
93844         * lib/xmalloc.c: Use `virtual memory exhausted', not
93845         `Memory exhausted'.
93846         * lib/obstack.c (print_and_abort): Likewise.
93847
93848 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93849
93850         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93851         buffer, so that the caller can always quote one small
93852         component of a "memory exhausted" message in slot 0.
93853         From a suggestion by Jim Meyering.
93854
93855 2000-07-30  Jim Meyering  <meyering@lucent.com>
93856
93857         * lib/makepath.c (make_path): Quote the other instance, too.
93858
93859         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93860         (STATIC_BUF_SIZE): Define.
93861         (quotearg_n_options): Use only statically allocated storage when
93862         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93863         than STATIC_BUF_SIZE.
93864
93865 2000-07-29  Jim Meyering  <meyering@lucent.com>
93866
93867         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93868         * lib/dirname.c (dir_name): Likewise.
93869
93870         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93871         `/'.
93872
93873         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93874         (dir_name): Assert that there are no trailing slashes.
93875
93876 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93877
93878         * lib/mbswidth.h (mbswidth): Add a flags argument.
93879         (mbswidth): New declaration.
93880         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93881         * lib/mbswidth.c (mbswidth): Add a flags argument.
93882         (mbsnwidth): New function.
93883
93884 2000-07-24  Jim Meyering  <meyering@lucent.com>
93885
93886         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93887
93888 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93889
93890         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93891
93892 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93893
93894         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93895         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93896         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93897         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93898         invoke multibyte primitives.
93899
93900 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93901
93902         * lib/quotearg.c:
93903         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93904         so that mbstate_t is always defined.
93905
93906         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93907         be 1 in at least one GCC installation, and this configuration
93908         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93909         performance on hosts that have mbrtowc but have only unibyte
93910         locales, but I assume these hosts are rare.
93911
93912 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93913
93914         * lib/mbswidth.c (_XOPEN_SOURCE):
93915         Don't define; this causes problems on Solaris 7.
93916         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93917
93918 2000-07-23  Jim Meyering  <meyering@lucent.com>
93919
93920         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93921         too: getgrgid, getpwuid, getuid.
93922
93923 2000-07-23  Jim Meyering  <meyering@lucent.com>
93924
93925         * lib/basename.c (base_name): Add an assertion.
93926
93927 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93928
93929         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93930         shadow its mbsinit function.
93931
93932 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93933
93934         * lib/mbswidth.h: New file.
93935         * lib/mbswidth.c: New file.
93936         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93937         (noinst_HEADERS): Add mbswidth.h.
93938
93939 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93940
93941         * lib/config.charset: Add support for FreeBSD. Improve support for
93942         HP-UX and IRIX 6.
93943
93944 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93945
93946         * m4/mbswidth.m4: New file.
93947         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93948
93949 2000-07-15  Jim Meyering  <meyering@lucent.com>
93950
93951         * lib/makepath.c: Include quote.h.
93952         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93953         corresponding argument in a `quote (...)' call.
93954         Give better diagnostics.
93955
93956         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93957         (noinst_HEADERS): Add quote.h.
93958
93959         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93960         from tar's src/misc.c.
93961         * lib/quote.h: New file.  Prototypes for same.
93962
93963 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93964
93965         From a suggestion by Bruno Haible.
93966         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93967         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93968         to decide whether to define the BeOS workaround macro;
93969         this adjusts to the change to AC_MBSTATE_T.
93970
93971 2000-07-14  Jim Meyering  <meyering@lucent.com>
93972
93973         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93974         jm_AC_TYPE_UINTMAX_T.
93975
93976 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93977
93978         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93979
93980         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93981         quotearg_buffer_restyled): Add support for
93982         clocale_quoting_style.  Undo previous change to
93983         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93984         and "{RIGHT QUOTATION MARK}" msgids.
93985
93986 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93987
93988         From a suggestion by Bruno Haible.
93989         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93990         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93991         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93992         and mbstate_t, to a single-part test that simply defines mbstate_t.
93993         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93994         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93995
93996 2000-07-10  Jim Meyering  <meyering@lucent.com>
93997
93998         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93999
94000         * m4/gnu-source.m4: Output to confdefs.h directly.
94001         Suggestion from Akim Demaille.
94002
94003 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94004
94005         The old behavior of quoting `like this' doesn't look good with
94006         newer, ISO-style fonts.  See:
94007         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94008
94009         Instead, quote "like this" by default.  Let the translator
94010         tailor the locale-specific quoting behavior by providing
94011         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94012
94013         * lib/quotearg.c (N_): New macro.
94014         (gettext_default): New function.
94015         (quotearg_buffer_restyled): Use
94016         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94017         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94018
94019 2000-07-09  Jim Meyering  <meyering@lucent.com>
94020
94021         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94022         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94023
94024         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94026
94027 2000-07-09  Jim Meyering  <meyering@lucent.com>
94028
94029         * lib/Most files: Update copyright dates to include 2000.
94030
94031 2000-07-08  Jim Meyering  <meyering@lucent.com>
94032
94033         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94034         if not defined.
94035         (xgethostname): Remove now-unnecessary #ifdef.
94036         Move declaration of `err' into loop where it's used.
94037
94038 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94039         and Bruno Haible  <haible@clisp.cons.org>
94040
94041         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94042         only if the test for an object-type mbstate_t fails.  This
94043         prevents us from mistakenly reporting that mbstate_t is a
94044         system object type after we "#define mbstate_t int" to work
94045         around its lack.
94046
94047 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94048         and Bruno Haible  <haible@clisp.cons.org>
94049
94050         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94051
94052 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94053
94054         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94055         to strerror_r.
94056         Include <ctype.h> for use of isalpha.
94057
94058 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94059
94060         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94061         by allocating a larger buffer. Test the gethostname return value for
94062         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94063         returns an error and ENAMETOOLONG isn't defined.
94064
94065 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94066
94067         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94068         dimension.
94069
94070 2000-07-04  Jim Meyering  <meyering@lucent.com>
94071
94072         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94073         of the deprecated AC_CHECKING.
94074
94075 2000-07-04  Jim Meyering  <meyering@lucent.com>
94076
94077         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94078         Reported by Bruno Haible.
94079
94080 2000-07-04  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94083         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94084         lacks mbrtowc.
94085
94086 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94087
94088         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94089         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94090
94091 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94092         and Bruno Haible  <haible@clisp.cons.org>
94093
94094         * lib/quotearg.c (mbrtowc):
94095         Assign to *pwc, and return 1 only if result is nonzero.
94096         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94097
94098 2000-07-03  Jim Meyering  <meyering@lucent.com>
94099
94100         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94101
94102 2000-07-03  Jim Meyering  <meyering@lucent.com>
94103
94104         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94105         This is necessary to get a definition of e.g., UTMP_FILE on
94106         HP-UX 10.20.
94107         From Bob Proulx.
94108
94109 2000-07-02  Jim Meyering  <meyering@lucent.com>
94110
94111         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94112
94113         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94114         AC_LIBOBJ(function_name).
94115         * m4/chown.m4: Likewise.
94116         * m4/fnmatch.m4: Likewise.
94117         * m4/ftruncate.m4: Likewise.
94118         * m4/getgroups.m4: Likewise.
94119         * m4/getline.m4: Likewise.
94120         * m4/group-member.m4: Likewise.
94121         * m4/jm-macros.m4: Likewise.
94122         * m4/lstat.m4: Likewise.
94123         * m4/malloc.m4: Likewise.
94124         * m4/memcmp.m4: Likewise.
94125         * m4/nanosleep.m4: Likewise.
94126         * m4/putenv.m4: Likewise.
94127         * m4/realloc.m4: Likewise.
94128         * m4/regex.m4: Likewise.
94129         * m4/stat.m4: Likewise.
94130         * m4/strftime.m4: Likewise.
94131
94132 2000-07-02  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/quotearg.c (mbstate_t): Don't define here.
94135
94136 2000-07-02  Jim Meyering  <meyering@lucent.com>
94137
94138         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94139
94140 2000-07-01  Jim Meyering  <meyering@lucent.com>
94141
94142         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94143
94144 2000-07-01  Jim Meyering  <meyering@lucent.com>
94145
94146         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94147         problem.
94148
94149 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94150
94151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94152         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94153
94154 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94155
94156         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94157         per change in ../m4/ls-mntd-fs.m4.
94158         (read_filesystem_list): Ignore symbolic links.
94159
94160 2000-06-29  Jim Meyering  <meyering@lucent.com>
94161
94162         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94163         for declaration of strcmp.
94164
94165         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94166
94167         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94168         Avoid warning by casting result to `char *' to remove `const'.
94169
94170 2000-06-28  Jim Meyering  <meyering@lucent.com>
94171
94172         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94173         included by quotearg.c, for which we perform this test.  From
94174         Bruno Haible.
94175
94176 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94177
94178         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94179         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94180         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94181
94182 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94183
94184         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94185
94186 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94187
94188         savedir now sets errno on failure and invokes xmalloc to get memory.
94189         Fix a couple of other minor bugs while we're at it.
94190
94191         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94192         (NAMLEN): Remove macro.
94193         (malloc, realloc): Remove decls.
94194         (stpcpy): Likewise.
94195         ("xalloc.h"): Include.
94196         (NAME_SIZE_DEFAULT): New macro.
94197         (savedir): Use xmalloc / xrealloc to allocate memory.
94198         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94199         Skip "" directory entries.
94200         Use strlen to calculate directory entry length, since the old method
94201         is rarely used these days and isn't worth supporting.
94202         Don't use a pointer after freeing it.
94203         Check for integer overflow when calculating allocation size.
94204         Use memcpy to copy entries, instead of stpcpy.
94205         Set errno properly when returning NULL.
94206         Check for readdir error.
94207
94208 2000-06-26  Jim Meyering  <meyering@lucent.com>
94209
94210         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94211
94212 2000-06-25  Jim Meyering  <meyering@lucent.com>
94213
94214         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94215         Linux header bug when _XOPEN_SOURCE is defined to 500.
94216
94217 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94218
94219         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94220         deficiency.
94221
94222 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94223
94224         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94225         Include xalloc.h.
94226         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94227
94228 2000-06-24  Jim Meyering  <meyering@lucent.com>
94229
94230         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94231         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94232         for which strerror does return char*, but which lacks a conveniently
94233         accessible declaration of the function.  If the compile-test says
94234         strerror_r doesn't work, then resort to a `run'-test that works on
94235         BeOS and segfaults on DEC Unix.
94236
94237 2000-06-24  Jim Meyering  <meyering@lucent.com>
94238
94239         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94240
94241 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94242
94243         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94244         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94245
94246 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94247
94248         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94249         (mbrtowc, mbstate_t): Define substitutes if
94250         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94251         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94252         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94253
94254 2000-06-23  Jim Meyering  <meyering@lucent.com>
94255
94256         * m4/afs.m4: Add missing AC_MSG_RESULT.
94257         Reported by Bruno Haible.
94258
94259         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94260         Suggestion from Bruno Haible.
94261
94262 2000-06-23  Jim Meyering  <meyering@lucent.com>
94263
94264         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94265
94266 2000-06-21  Jim Meyering  <meyering@lucent.com>
94267
94268         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94269
94270 2000-06-21  Jim Meyering  <meyering@lucent.com>
94271
94272         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94273         (noinst_HEADERS): Add getstr.h.
94274
94275         * lib/getline.c (getstr): Move into a separate file.
94276         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94277         the following changes: new parameter, delim2; both delim[12]
94278         parameters have type `int', not `char'.  The latter would lose
94279         with 8-bit delimiters.
94280         * lib/getstr.h: New file.
94281
94282 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94283
94284         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94285         than 1024, return a memory chunk of least possible size, instead
94286         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94287         Use free/xmalloc instead of xrealloc to avoid copying for very long
94288         paths.
94289
94290 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94291
94292         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94293         the empty string.
94294
94295 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94296
94297         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94298         address, not strdup.  Include <stdlib.h> and don't declare free().
94299
94300 2000-06-19  Jim Meyering  <meyering@lucent.com>
94301
94302         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94303
94304 2000-06-18  Jim Meyering  <meyering@lucent.com>
94305
94306         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94307
94308         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94309         `checking whether...' message to be consistent with that of the
94310         lstat test.
94311
94312 2000-06-18  Jim Meyering  <meyering@lucent.com>
94313
94314         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94315         Besides, these days every porting target provides a mkdir function.
94316
94317         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94318         needed. (this snippet comes from src/system.h).
94319
94320 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94321
94322         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94323
94324 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94325
94326         * lib/human.c (adjust_value): New function.
94327         (human_readable_inexact): Apply rounding style even when
94328         printing approximate values.
94329
94330 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94331
94332         * lib/human.c (human_readable_inexact): Allow an input block
94333         size that is not a multiple of the output block size, and vice versa.
94334         Reported by Piergiorgio Sartor.
94335
94336 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94337
94338         * lib/getdate.y (get_date): Apply relative times after time
94339         zone indicator, not before.  Reported by Todd A. Jacobs.
94340
94341 2000-06-13  Jim Meyering  <meyering@lucent.com>
94342
94343         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94344
94345         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94346
94347 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94348
94349         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94350
94351 2000-06-12  Jim Meyering  <meyering@lucent.com>
94352
94353         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94354         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94355         optional argument.
94356         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94357         the optional argument, `lib'.
94358
94359 2000-06-08  Jim Meyering  <meyering@lucent.com>
94360
94361         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94362
94363 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94364
94365         Rewrite largefile configuration so that we don't need to run
94366         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94367         AC_CANONICAL_HOST in configure.in -- jmm]
94368
94369         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94370         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94371         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94372         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94373         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94374         All uses changed.
94375         Instead of inspecting the output of getconf, try to compile the
94376         test program without and with the macro definition.
94377         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94378         for getconf.  Instead, check for the needed flags by compiling
94379         test programs.
94380
94381 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94382
94383         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94384
94385 2000-06-04  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94388         SunOS 4.1.4 for which gid_t is an unsigned type.
94389
94390 2000-06-03  Jim Meyering  <meyering@lucent.com>
94391
94392         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94393         now that autoconf requires that.
94394
94395         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94396         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94397         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94398
94399 2000-06-03  Jim Meyering  <meyering@lucent.com>
94400
94401         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94402
94403 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94404
94405         * m4/glibc21.m4: New file.
94406         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94407
94408 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94409
94410         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94411         newer, don't install charset.alias.
94412         * lib/config.charset: Change the Linux/glibc rules so they become empty
94413         on glibc-2.1 or newer.
94414
94415 2000-06-02  Jim Meyering  <meyering@lucent.com>
94416
94417         * lib/mountlist.c: Back out last change.  Instead, do this...
94418         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94419         me_dummy member using the same `ignore'-testing code.
94420         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94421         fs_type strings.
94422         From Mark D. Roth.
94423
94424 2000-05-29  Jim Meyering  <meyering@lucent.com>
94425
94426         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94427         mounts with the `ignore' attribute.  Based on a patch from
94428         Mark D. Roth.
94429
94430 2000-05-28  Jim Meyering  <meyering@lucent.com>
94431
94432         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94433         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94434         * m4/stat.m4: Likewise.
94435         * m4/lstat.m4: Likewise.
94436         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94437
94438         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94439         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94440
94441 2000-05-26  Jim Meyering  <meyering@lucent.com>
94442
94443         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94444
94445 2000-05-24  Jim Meyering  <meyering@lucent.com>
94446
94447         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94448         autoconf requires that.
94449         * m4/lib-check.m4: Likewise.
94450         * m4/jm-macros.m4: Likewise.
94451         * m4/strftime.m4: Likewise.
94452
94453         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94454         AC_CHECK_DECLS, now that autoconf requires that.
94455
94456 2000-05-22  Jim Meyering  <meyering@lucent.com>
94457
94458         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94459         * m4/lstat.m4: Likewise.
94460
94461 2000-05-22  Jim Meyering  <meyering@lucent.com>
94462
94463         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94464
94465 2000-05-20  Jim Meyering  <meyering@lucent.com>
94466
94467         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94468         (jm_PREREQ): Use it.
94469
94470 2000-05-18  Jim Meyering  <meyering@lucent.com>
94471
94472         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94473         back, too, since it may have been modified by allocate_entry.
94474         (hash_delete): Rewrite to use neither the assignment operator
94475         nor the comma operator in an if-expression.
94476
94477 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94478
94479         * lib/closeout.c:
94480         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94481         Remove; no longer needed.
94482         "quotearg.h": Add include.
94483         (file_name): Do not bother to explicitly initialize to NULL; it's less
94484         efficient on some hosts.
94485         (close_stdout_status): Remove test as to whether stdout was already
94486         closed; it breaks for the case "echo x | sort >&-".
94487         Quote file name colons.
94488         Do not assume that _("write error") lacks format strings.
94489
94490 2000-05-15  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/version-etc.c (version_etc_copyright): Update the copyright
94493         string used in all --version output.
94494
94495 2000-05-14  Jim Meyering  <meyering@lucent.com>
94496
94497         * lib/closeout.c (close_stdout_set_file_name): New function.
94498         (close_stdout_status): Use new file-scoped global.
94499         Return right away if fstat says the stdout file descriptor is invalid.
94500         * lib/closeout.h (close_stdout_set_file_name): Declare.
94501
94502 2000-05-10  Jim Meyering  <meyering@lucent.com>
94503
94504         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94505         (close_stdout_set_status): New function.
94506         * lib/closeout.h (close_stdout_set_status): Declare.
94507
94508 2000-05-09  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/gettext.m4: Rename this...
94511         * m4/libintl.m4: ...to this.
94512
94513 2000-05-08  Jim Meyering  <meyering@lucent.com>
94514
94515         * lib/long-options.c: Don't include closeout.h.
94516         (parse_long_options): Don't call close_stdout for --version.
94517
94518 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94519
94520         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94521         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94522         2.1.3 bug.  This avoids a clash when files like regex.c define
94523         _GNU_SOURCE.
94524
94525 2000-05-06  Jim Meyering  <meyering@lucent.com>
94526
94527         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94528         (AC_REPLACE_FUNCS): Add strnlen.
94529
94530         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94531         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94532
94533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94534         AC_SEARCH_LIBS call for nanosleep.
94535         (LIB_NANOSLEEP): Set and AC_SUBST.
94536
94537 2000-05-06  Jim Meyering  <meyering@lucent.com>
94538
94539         * lib/strnlen.c: Undefine __strnlen and strnlen.
94540         [!weak_alias]: Define __strnlen to strnlen.
94541
94542         * lib/atexit.c: New file, from libiberty.
94543
94544 2000-05-06  Jim Meyering  <meyering@lucent.com>
94545
94546         * lib/closeout.c (close_stdout_status): Also check for errors on the
94547         stderr stream.
94548
94549 2000-05-05  Jim Meyering  <meyering@lucent.com>
94550
94551         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94552         AC_SEARCH_LIBS call for clock_gettime.
94553         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94554
94555         * m4/search-libs.m4: Update from autoconf.
94556
94557         su doesn't work on Solaris 2.6.
94558         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94559         <shadow.h>.  Reported by Dragos Harabor.
94560
94561 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94562
94563         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94564         memcpy instead of xmalloc, xrealloc, path_concat.
94565         (locale_charset): Treat empty environment variables as absent.
94566         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94567
94568 2000-05-04  Jim Meyering  <meyering@lucent.com>
94569
94570         * lib/getopt.c: Update from glibc.
94571         * lib/obstack.c: Likewise.
94572         * lib/obstack.h: Likewise.
94573         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94574         file
94575
94576         * lib/regex.h: Likewise.
94577         * lib/strndup.c: Likewise.
94578         * lib/strnlen.c: New file, from glibc.
94579
94580 2000-05-03  Jim Meyering  <meyering@lucent.com>
94581
94582         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94583
94584 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94585
94586         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94587         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94588         compile-time test, rather than inspecting host and OS, to
94589         decide whether to define _LARGEFILE_SOURCE.
94590
94591 2000-05-01  Jim Meyering  <meyering@lucent.com>
94592
94593         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94594
94595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94596         Based on a patch from Bruno Haible.
94597
94598 2000-05-01  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94601
94602 2000-04-29  Jim Meyering  <meyering@lucent.com>
94603
94604         * lib/path-concat.c: Declare strdup only if it's not defined.
94605         * lib/canon-host.c: Likewise.
94606
94607 2000-04-28  Jim Meyering  <meyering@lucent.com>
94608
94609         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94610         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94611         is included first, then limits.h is included by locale.h by libintl.h.
94612         From John David Anglin.
94613
94614 2000-04-25  Jim Meyering  <meyering@lucent.com>
94615
94616         * lib/makepath.c (S_IRWXUGO): Define.
94617         (make_path): Always perform explicit chmod if MODE specifies any
94618         of the `special' permission bits.  Prompted by a bug report against
94619         install from Mate Wierdl and Joost van Baal.
94620
94621 2000-04-18  Jim Meyering  <meyering@lucent.com>
94622
94623         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94624         (jm_PREREQ): Use it.
94625
94626 2000-04-18  Jim Meyering  <meyering@lucent.com>
94627
94628         * lib/README: New file.
94629
94630         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94631         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94632
94633 2000-04-17  Jim Meyering  <meyering@lucent.com>
94634
94635         Get it right :-)
94636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94637         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94638         Suggestion from Akim Demaille.
94639
94640 2000-04-17  Jim Meyering  <meyering@lucent.com>
94641
94642         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94643         the definition of it to rpl_strftime also defined-away the system's
94644         declaration.
94645
94646 2000-04-15  Jim Meyering  <meyering@lucent.com>
94647
94648         Use `C' to denote so-called `contiguous' files, the same way
94649         that tar does.
94650         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94651         (ftypelet): Use S_ISCTG.
94652         From Michael Deutschmann.
94653
94654 2000-04-14  Jim Meyering  <meyering@lucent.com>
94655
94656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94657         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94658         clobbered.
94659
94660 2000-04-14  Jim Meyering  <meyering@lucent.com>
94661
94662         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94663
94664 2000-04-13  Jim Meyering  <meyering@lucent.com>
94665
94666         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94667         AH_VERBATIM to insert required #ifndef into config.h.in.
94668         Suggestion from Akim Demaille.
94669
94670 2000-04-12  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94673         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94674         Christian Krackowizer.
94675
94676         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94677         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94678         (AC_SYS_LARGEFILE): Require.
94679         (AM_C_PROTOTYPES): Require.
94680
94681 2000-04-08  Jim Meyering  <meyering@lucent.com>
94682
94683         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94684         names don't conflict.  Reported by Eli Zaretskii.
94685
94686 2000-04-07  Jim Meyering  <meyering@lucent.com>
94687
94688         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94689         sys/types.h, to work around system header problems on AIX 3.2.5.
94690         From Bruno Haible.
94691
94692 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94693
94694         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94695         bug.  Deal with the different error behavior of Irix iconv.
94696
94697 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94698
94699         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94700         IRIX if the installer said otherwise.
94701
94702 2000-04-05  Jim Meyering  <meyering@lucent.com>
94703
94704         Portability tweaks required for ultrix4.3.
94705         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94706         (jm_CHECK_DECLS): Add getutent to the list of functions.
94707         (_jm_DECL_HEADERS): Add utmpx.h.
94708         From John David Anglin.
94709
94710         * m4/strftime.m4: Back out the 2000-04-02 change.
94711         Instead of that change, simply undefine putenv in the test program.
94712
94713 2000-04-05  Jim Meyering  <meyering@lucent.com>
94714
94715         Portability tweaks required for ultrix4.3.
94716         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94717         getutent.
94718         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94719         * lib/canon-host.c: Declare strdup.
94720         * lib/path-concat.c: Likewise.
94721         From John David Anglin.
94722
94723 2000-04-04  Jim Meyering  <meyering@lucent.com>
94724
94725         Be more DOS 8.3-friendly.
94726         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94727         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94728         * lib/Makefile.am: Reflect renaming.
94729         Reported by Eli Zaretskii.
94730
94731         Use a temporary file name that won't clash with `charset.alias'
94732         in the DOS 8.3 name space.
94733         * lib/Makefile.am (charset_tmp): Define.
94734         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94735         (uninstall-local): Likewise.
94736         Reported by Eli Zaretskii.
94737
94738 2000-04-03  Jim Meyering  <meyering@lucent.com>
94739
94740         * m4/gettext.m4: Fix typo in comment.
94741
94742         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94743         textutils/configure.in).  Suggestion from Paul Eggert.
94744         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94745
94746 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94747
94748         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94749         variable in the shell rather than using putenv, which isn't
94750         portable.  This avoids the configure-time inter-test dependency
94751         on the potentially-renamed putenv function.
94752
94753 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94754
94755         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94756         before checking struct stat.st_blksize, so that
94757         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94758
94759 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94760
94761         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94762         since strftime.c uses HAVE_STRFTIME to decide whether to use
94763         the underlying strftime.
94764
94765 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94766
94767         * lib/time/strftime.c (my_strftime): Make sure we call the system
94768         strftime, not ourselves, when invoking the underlying strftime.
94769
94770 2000-03-24  Jim Meyering  <meyering@lucent.com>
94771
94772         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94773         (charset_alias): Define.
94774         (install-exec-local): Factor out common code.
94775         (uninstall-local): Split lines longer than 80.
94776         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94777         (SUFFIXES): Define.
94778         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94779         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94780
94781 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94782
94783         * lib/config.charset: Output a line containing "Packages using this
94784         file".
94785         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94786         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94787         ref-del.sed): New rules.
94788
94789 2000-03-17  Jim Meyering  <meyering@lucent.com>
94790
94791         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94792         Otherwise, include <strings.h>
94793
94794 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94795
94796         * lib/unicodeio.c (utf8_wctomb): New function.
94797         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94798         format instead of in UCS-4 with platform dependent endianness.
94799
94800 2000-03-10  Jim Meyering  <meyering@lucent.com>
94801
94802         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94803         From Marco Franzen.
94804
94805 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94806
94807         * lib/savedir.c (savedir): Work even if directory size is
94808         negative; this can happen with some screwy NFS configurations.
94809
94810 2000-03-06  Jim Meyering  <meyering@lucent.com>
94811
94812         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94813         if it's NULL (because we ran out of memory).  From Bruno Haible.
94814
94815 2000-03-05  Jim Meyering  <meyering@lucent.com>
94816
94817         * lib/localcharset.c ("path-concat.h"): Include.
94818         (get_charset_aliases): Use path_concat instead of ANSI string
94819         concatenation.
94820
94821         * lib/unicodeio.h (PARAMS): Define.
94822         Use it to guard prototype.
94823
94824 2000-03-04  Jim Meyering  <meyering@lucent.com>
94825
94826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94827         for lib/localcharset.c.
94828
94829 2000-03-04  Jim Meyering  <meyering@lucent.com>
94830
94831         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94832         installing into it.
94833         (uninstall-local): Uncomment this rule so `make distcheck' works
94834         once again.
94835
94836         * lib/unicodeio.c (<errno.h>): Include it.
94837         (errno): Declare if not defined.
94838
94839         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94840
94841         * lib/config.charset: New version, incorporating remarks from a linux
94842         i18n mailing list.  From Bruno Haible.
94843
94844 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94845
94846         * m4/codeset.m4: New file.
94847         * m4/iconv.m4: New file.
94848         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94849
94850 2000-03-03  Jim Meyering  <meyering@lucent.com>
94851
94852         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94853
94854 2000-03-02  Jim Meyering  <meyering@lucent.com>
94855
94856         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94857         the messages come out on separate lines.
94858
94859         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94860         rather than jm_CHECK_DECLARATIONS.
94861         * m4/decl.m4: Remove now-unused file.
94862
94863         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94864         geteuid.
94865
94866 2000-03-02  Jim Meyering  <meyering@lucent.com>
94867
94868         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94869
94870 2000-03-01  Jim Meyering  <meyering@lucent.com>
94871
94872         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94873         * lib/unicodeio.c: Likewise.
94874
94875 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94876
94877         * lib/config.charset: New file.
94878         * lib/localcharset.c: New file.
94879         * lib/unicodeio.h, lib/unicodeio.c: New files.
94880         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94881         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94882         (noinst_HEADERS): Add unicodeio.h.
94883         (all-local, install-exec-local, charset.alias): New targets.
94884
94885 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94886
94887         * lib/quotearg.c (ALERT_CHAR): New macro.
94888         (quotearg_buffer_restyled): Use it.
94889
94890 2000-02-27  Jim Meyering  <meyering@lucent.com>
94891
94892         * m4/check-decl.m4: Add getenv to the list.
94893
94894 2000-02-27  Jim Meyering  <meyering@lucent.com>
94895
94896         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94897         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94898
94899         * lib/backupfile.c: Guard inclusion of stdlib.h with
94900         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94901         Declare malloc if needed.
94902
94903         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94904         `#ifndef HAVE_DECL..'
94905         now that autoconf always defines the HAVE_DECL_ symbols.
94906         * lib/human.c: Likewise.
94907         * lib/same.c: Likewise.
94908         * lib/strtoumax.c: Likewise.
94909
94910         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94911         declaration check was not run.
94912         * lib/hash.c: Likewise.
94913         * lib/human.c: Likewise.
94914         * lib/same.c: Likewise.
94915         * lib/strtoumax.c: Likewise.
94916
94917         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94918         `.', then first look up the entire `.'-containing string as a login
94919         name.
94920
94921 2000-02-23  Jim Meyering  <meyering@lucent.com>
94922
94923         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94924         in place of my hack.
94925
94926 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94927
94928         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94929         (textint): New typedef.
94930         (parser_control): Member year changed from int to textint.
94931         All uses changed.
94932         (YYSTYPE): Removed; replaced by %union with int and textint members.
94933         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94934         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94935         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94936         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94937         (date, number, to_year): Use width of number in digits, not its value,
94938         to determine whether it's a 2-digit year, or a 2-digit time.
94939         (yylex): Store number of digits of numeric tokens.
94940         Reported by John Kendall.
94941
94942         (parser_control): Changed from struct parser_control to typedef (for
94943         consistency).  All uses changed.
94944
94945         (tID): Removed; not used.
94946         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94947
94948 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94949
94950         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94951         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94952
94953 2000-02-12  Jim Meyering  <meyering@lucent.com>
94954
94955         * lib/userspec.c (ISDIGIT): Define it.
94956         (isdigit): Remove definition.
94957         (is_number): Use ISDIGIT, not isdigit.
94958         <libintl.h>: Include.
94959         (_ and N_): Define.
94960         (parse_user_spec): Mark translatable strings.
94961
94962 2000-02-10  Jim Meyering  <meyering@lucent.com>
94963
94964         With these changes, nanosleep.[ch] are finally enough like the other
94965         lib/* replacement files to compile on a few more losing systems.
94966
94967         * lib/nanosleep.h: Don't include config.h.
94968         Remove prototype from declaration of nanosleep.
94969         (PARAMS): Remove now-unneeded definition.
94970         * lib/nanosleep.c: #undef nanosleep.
94971         (rpl_nanosleep): Rename from nanosleep.
94972
94973 2000-02-10  Jim Meyering  <meyering@lucent.com>
94974
94975         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94976         gnu_nanosleep to rpl_nanosleep.
94977
94978 2000-02-09  Jim Meyering  <meyering@lucent.com>
94979
94980         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94981         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94982
94983 2000-02-08  Akim Demaille  <akim@epita.fr>
94984
94985         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94986         `[' and `]' and remove uses of `changequote'.
94987         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94988         (AC_SYS_LARGEFILE): Likewise.
94989         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94990         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94991         of changequote.
94992         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94993         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94994         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94995         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94996
94997 2000-02-05  Jim Meyering  <meyering@lucent.com>
94998
94999         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95000         Remove explicit use of AC_HEADER_TIME.  It is required by
95001         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95002         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95003         in autoconf whereby the expansion of the latter ended up preceding
95004         the expansion of its prerequisite, AC_HEADER_TIME.
95005         Reported by Volker Borchert.
95006
95007 2000-02-03  Jim Meyering  <meyering@lucent.com>
95008
95009         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95010
95011 2000-02-03  Jim Meyering  <meyering@lucent.com>
95012
95013         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95014         rather than with `#if HAVE_UTMPNAME'.
95015
95016 2000-02-02  Jim Meyering  <meyering@lucent.com>
95017
95018         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95019         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95020         Reported by Eli Zaretskii.
95021
95022 2000-02-01  Jim Meyering  <meyering@lucent.com>
95023
95024         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95025
95026 2000-01-31  Jim Meyering  <meyering@lucent.com>
95027
95028         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95029         functions.  Add the time.h and sys/time.h headers along with the
95030         AC_REQUIRE'ment of AC_HEADER_TIME.
95031
95032 2000-01-31  Jim Meyering  <meyering@lucent.com>
95033
95034         * lib/nanosleep.h (nanosleep): Guard declaration with
95035         `#if ! HAVE_DECL_NANOSLEEP'.
95036         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95037         the declaration in that vendor's sys/timers.h.
95038         Reported by Christian Krackowizer.
95039
95040         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95041         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95042         (ISPRINT): Likewise.
95043         Reported by Tom Tromey.
95044
95045 2000-01-30  Jim Meyering  <meyering@lucent.com>
95046
95047         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95048
95049         * m4/prereq.m4 (utmp_includes): Define.
95050         Check for ut_user and ut_name members in both struct utmpx
95051         and struct utmp.
95052
95053 2000-01-30  Jim Meyering  <meyering@lucent.com>
95054
95055         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95056         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95057         header files where only utmpx.ut_user is declared.
95058
95059         * lib/readutmp.h (UT_USER): Define.
95060
95061 2000-01-29  Jim Meyering  <meyering@lucent.com>
95062
95063         * m4/lib-check.m4: New file containing library-related checks from
95064         fileutils and sh-utils (textutils had none).
95065
95066 2000-01-28  Jim Meyering  <meyering@lucent.com>
95067
95068         * m4/perl.m4: Change format of warning message to look more like that
95069         from the missing script.  Suggestion from François Pinard.
95070
95071 2000-01-25  Jim Meyering  <meyering@lucent.com>
95072
95073         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95074         well as time.h in the compile check.
95075         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95076         Fix typo in cross-compiling case: s/yes/no/.
95077
95078 2000-01-23  Jim Meyering  <meyering@lucent.com>
95079
95080         * m4/jm-macros.m4: Move df-related tests here from
95081         fileutils/configure.in
95082
95083         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95084         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95085
95086         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95087         s/space/ac_fsusage_space/.
95088         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95089
95090         * m4/ftruncate.m4: New file (derived from part of
95091         fileutils/configure.in).
95092         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95093         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95094
95095         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95096         AC_SUBST these here, rather than just in sh-util/configure.in, so
95097         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95098         all the same.
95099         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95100         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95101         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95102         (AC_SUBST(POW_LIBM)): Likewise.
95103         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95104
95105 2000-01-23  Jim Meyering  <meyering@lucent.com>
95106
95107         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95108         obstack.c.
95109
95110 2000-01-22  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95113
95114         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95115
95116         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95117         configure.in
95118         (AC_CHECK_HEADERS): Likewise for sh-utils.
95119         (AC_CHECK_HEADERS): Likewise for textutils.
95120         Merge the three lists of headers.
95121
95122         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95123         from fileutils' configure.in.
95124
95125         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95126         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95127         check-decl.m4.
95128
95129         * m4/check-decl.m4: Use #if rather than #ifdef.
95130         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95131         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95132         (_jm_DECL_HEADERS): Define new function.
95133         (jm_CHECK_DECLARATIONS): Require it.
95134
95135 2000-01-22  Jim Meyering  <meyering@lucent.com>
95136
95137         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95138         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95139         Required for some AIX systems.  Reported by Christian Krackowizer.
95140         [TESTING] (main): New function.
95141
95142         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95143         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95144         letters.
95145
95146         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95147         iswprint.
95148
95149         * lib/strverscmp.c (ISDIGIT): Define.
95150         (strverscmp): Use ISDIGIT, not isdigit.
95151
95152 2000-01-19  Jim Meyering  <meyering@lucent.com>
95153
95154         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95155         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95156         defines `struct timespec' in <sys/time.h>
95157
95158         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95159         Thanks to Akim for explaining.
95160
95161 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95162
95163         * lib/nanosleep.c (nanosleep):
95164         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95165         POSIX.1 doesn't require SA_INTERRUPT and some systems
95166         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95167         it's been part of POSIX.1 since day 1 (in 1988).
95168
95169 2000-01-17  Jim Meyering  <meyering@lucent.com>
95170
95171         * lib/interlock: Remove unused file.  Reported by François Pinard.
95172
95173 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95174
95175         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95176         alert, backslash, formfeed, and vertical tab unnecessarily in
95177         shell quoting style.
95178
95179 2000-01-16  Jim Meyering  <meyering@lucent.com>
95180
95181         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95182         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95183         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95184         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95185
95186 2000-01-16  Jim Meyering  <meyering@lucent.com>
95187
95188         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95189         because the latter didn't work.
95190
95191 2000-01-15  Jim Meyering  <meyering@lucent.com>
95192
95193         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95194         (AC_REPLACE_FUNCS): Add memcpy and memset.
95195         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95196         Add strpbrk.
95197         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95198
95199 2000-01-12  Jim Meyering  <meyering@lucent.com>
95200
95201         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95202         (jm_PREREQ): Use it.
95203         (jm_PREREQ_READUTMP): New macro.
95204         (jm_PREREQ): Use it.
95205
95206 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95207
95208         Quote multibyte characters correctly.
95209         * m4/c-bs-a.m4: New file.
95210         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95211         (jm_PREREQ): Use it.
95212
95213 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95214
95215         * m4/uintmax_t.m4: Port to autoconf 2.13.
95216
95217 2000-01-08  Jim Meyering  <meyering@ascend.com>
95218
95219         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95220         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95221
95222 2000-01-04  Jim Meyering  <meyering@ascend.com>
95223
95224         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95225         jm_STRUCT_DIRENT_D_TYPE.
95226         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95227         jm_STRUCT_DIRENT_D_INO.
95228         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95229         jm_STRUCT_UTIMBUF.
95230         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95231         renamings.
95232         * m4/utime.m4: Likewise.
95233
95234         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95235         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95236
95237 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95238
95239         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95240         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95241
95242 2000-01-02  Jim Meyering  <meyering@ascend.com>
95243
95244         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95245         remember if this is necessary.
95246
95247 1999-12-26  Jim Meyering  <meyering@ascend.com>
95248
95249         * m4/jm-macros.m4: Use it here.
95250         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95251
95252 1999-12-23  Jim Meyering  <meyering@ascend.com>
95253
95254         * m4/jm-macros.m4: Check for clock_gettime (moved from
95255         fileutils/configure.in)
95256         Check for gettimeofday.
95257
95258 1999-12-20  Jim Meyering  <meyering@ascend.com>
95259
95260         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95261         autoconf-2.14a-1999-12-20.
95262
95263 1999-12-19  Jim Meyering  <meyering@ascend.com>
95264
95265         * m4/lstat-slash.m4: New file.
95266         * m4/jm-macros.m4: Use the new macro:
95267         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95268
95269 1999-12-07  Jim Meyering  <meyering@ascend.com>
95270
95271         * m4/perl.m4: Require that File::Compare be available, too.
95272         Too many systems seem to lack it.
95273
95274         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95275         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95276
95277 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95278
95279         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95280         problem with the QNX 4.25 shell, which doesn't propagate exit
95281         status of failed commands inside shell assignments.
95282
95283 1999-11-17  Jim Meyering  <meyering@ascend.com>
95284
95285         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95286
95287 1999-11-07  Jim Meyering  <meyering@ascend.com>
95288
95289         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95290
95291 1999-11-06  Jim Meyering  <meyering@ascend.com>
95292
95293         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95294         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95295
95296 1999-11-05  Jim Meyering  <meyering@ascend.com>
95297
95298         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95299         configure.in of textutils, fileutils, and sh-utils into this one
95300         (shared between those packages) file.
95301         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95302         AC_STRUCT_ST_BLKSIZE.
95303
95304 1999-11-03  Jim Meyering  <meyering@ascend.com>
95305
95306         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95307         of AC_CHECK_TYPE checks includes unistd.h.
95308         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95309         Suggestion from Akim Demaille.
95310
95311 1999-10-30  Jim Meyering  <meyering@ascend.com>
95312
95313         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95314         m4-quoted string.
95315         * m4/ls-mntd-fs.m4: Likewise.
95316         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95317         * m4/jm-winsz1.m4: Likewise.
95318
95319         * m4/const.m4: Remove file, since the fix made it into the experimental
95320         version of autoconf.
95321         * m4/mktime.m4: Likewise.
95322
95323         * m4/check-type.m4: Remove file, now that the latest version of
95324         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95325
95326         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95327         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95328         AC_CHECK_TYPE.
95329
95330 1999-10-04  Jim Meyering  <meyering@ascend.com>
95331
95332         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95333
95334 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95335
95336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95337         2.95.1 bug with HP-UX 10.20.
95338
95339 1999-09-17  Jim Meyering  <meyering@ascend.com>
95340
95341         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95342         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95343         due to missing strdup (against sh-utils-2.0).
95344
95345 1999-08-29  Jim Meyering  <meyering@ascend.com>
95346
95347         * m4/jm-macros.m4: Require jm_BISON.
95348         * m4/bison.m4: New file.
95349
95350 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95351
95352         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95353         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95354
95355 1999-08-05  Jim Meyering  <meyering@ascend.com>
95356
95357         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95358         to avoid conflicts with `conftest' on 8+3 filesystems.
95359         Suggestion from Eli Zaretskii.
95360
95361 1999-08-04  Jim Meyering  <meyering@ascend.com>
95362
95363         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95364         fileutils and sh-utils (textutils's getline test was inadequate).
95365         (AM_FUNC_GETLINE): Run this test.
95366         (AC_CHECK_FUNCS): Check for getdelim.
95367         Reported by Bob Proulx.
95368
95369 1999-08-02  Jim Meyering  <meyering@ascend.com>
95370
95371         * m4/jm-macros.m4: Add a comment.
95372
95373 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95374
95375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95376         <inttypes.h> defines strtoumax as a macro (and not as a
95377         function).
95378
95379 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95380
95381         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95382         that we can shift, multiply and divide unsigned long long
95383         values; Ultrix cc can't do it.
95384
95385 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95386
95387         * m4/mktime.m4: New file, which is a preview of what should appear
95388         in the next public autoconf release.
95389
95390 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95391
95392         * m4/lfs.m4: Remove this file.
95393         * m4/largefile.m4: New file.  It contains the old contents of
95394         lfs.m4, except that all names with prefix AC_LFS have been
95395         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95396         compatible with future autoconf versions.  Also, some minor m4
95397         quoting problems have been fixed.
95398
95399 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95400
95401         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95402         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95403         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95404         and simplify the shell code.
95405
95406 1999-08-01  Jim Meyering  <meyering@ascend.com>
95407
95408         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95409         m4.
95410
95411 1999-07-20  Jim Meyering  <meyering@ascend.com>
95412
95413         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95414
95415 1999-07-15  Jim Meyering  <meyering@ascend.com>
95416
95417         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95418
95419 1999-05-22  Jim Meyering  <meyering@ascend.com>
95420
95421         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95422
95423 1999-05-20  Jim Meyering  <meyering@ascend.com>
95424
95425         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95426         Add a colon after each `then' in case $4 is empty.
95427
95428 1999-05-16  Jim Meyering  <meyering@ascend.com>
95429
95430         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95431
95432 1999-05-10  Jim Meyering  <meyering@ascend.com>
95433
95434         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95435
95436         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95437         AC_FUNC_MKTIME.
95438
95439 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95440
95441         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95442
95443 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95444
95445         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95446         not CPPFLAGS, so that linking works correctly in IRIX.
95447
95448 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95449
95450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95451
95452 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95453
95454         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95455         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95456         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95457         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95458         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95459
95460         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95461
95462 1999-04-20  Jim Meyering  <meyering@ascend.com>
95463
95464         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95465         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95466         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95467
95468 1999-04-18  Jim Meyering  <meyering@ascend.com>
95469
95470         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95471         * m4/jm-macros.m4: Use it.
95472
95473 1999-04-06  Jim Meyering  <meyering@ascend.com>
95474
95475         * m4/strftime.m4: Remove test for %f.
95476
95477 1999-03-29  Jim Meyering  <meyering@ascend.com>
95478
95479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95480         superset of the AC_TYPE_* checks in the textutils, fileutils,
95481         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95482         AC_TYPE_PID_T.
95483
95484 1999-03-28  Jim Meyering  <meyering@ascend.com>
95485
95486         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95487         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95488         replaced e.g., in the *.sh files of the sh-utils.
95489
95490 1999-03-20  Jim Meyering  <meyering@ascend.com>
95491
95492         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95493         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95494         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95495
95496 1999-03-19  Jim Meyering  <meyering@ascend.com>
95497
95498         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95499
95500 1999-03-12  Jim Meyering  <meyering@ascend.com>
95501
95502         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95503
95504 1999-03-07  Jim Meyering  <meyering@ascend.com>
95505
95506         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95507         declared.
95508
95509 1999-02-17  Jim Meyering  <meyering@ascend.com>
95510
95511         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95512         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95513
95514 1999-02-07  Jim Meyering  <meyering@ascend.com>
95515
95516         * m4/group-member.m4: New file -- extracted from sh-utils'
95517         configure.in.
95518
95519         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95520         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95521
95522 1999-02-06  Jim Meyering  <meyering@ascend.com>
95523
95524         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95525         * m4/fnmatch.m4: Likewise.
95526         * m4/getgroups.m4: Likewise.
95527         * m4/lstat.m4: Likewise.
95528         * m4/malloc.m4: Likewise.
95529         * m4/putenv.m4: Likewise.
95530         * m4/realloc.m4: Likewise.
95531         * m4/regex.m4: Likewise.
95532         * m4/stat.m4: Likewise.
95533         * m4/strftime.m4: Likewise.
95534         Suggestion from Alain Magloire.
95535
95536         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95537         * m4/fnmatch.m4: Likewise.
95538         * m4/getgroups.m4: Likewise.
95539         * m4/getline.m4: Likewise.
95540         * m4/lstat.m4: Likewise.
95541         * m4/malloc.m4: Likewise.
95542         * m4/memcmp.m4: Likewise.
95543         * m4/putenv.m4: Likewise.
95544         * m4/realloc.m4: Likewise.
95545         * m4/regex.m4: Likewise.
95546         * m4/stat.m4: Likewise.
95547         * m4/strftime.m4: Likewise.
95548         Suggestion from Alain Magloire.
95549
95550         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95551         an argument.
95552
95553         * m4/regex.m4: Add a run-time Test for proper operation of
95554         re_compile_pattern.
95555
95556 1999-01-31  Jim Meyering  <meyering@ascend.com>
95557
95558         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95559
95560 1999-01-30  Jim Meyering  <meyering@ascend.com>
95561
95562         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95563
95564         * m4/jm-mktime.m4: Make this a wrapper around the official
95565         AM_FUNC_MKTIME rather than my private copy, now that the official one
95566         is up to date.
95567         * m4/mktime.m4: Remove file.
95568
95569         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95570         * m4/uptime.m4: Likewise.
95571         * m4/uintmax_t.m4: Likewise.
95572
95573 1999-01-28  Jim Meyering  <meyering@ascend.com>
95574
95575         * m4/jm-macros.m4: Use jm_AFS.
95576         * m4/afs.m4: New file (from fileutils' configure.in).
95577
95578         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95579         * m4/chown.m4: Likewise.
95580         * m4/d-ino.m4: Likewise.
95581         * m4/d-type.m4: Likewise.
95582         * m4/fnmatch.m4: Likewise.
95583         * m4/getgroups.m4: Likewise.
95584         * m4/gettext.m4: Likewise.
95585         * m4/jm-mktime.m4: Likewise.
95586         * m4/jm-winsz2.m4: Likewise.
95587         * m4/lcmessage.m4: Likewise.
95588         * m4/ls-mntd-fs.m4: Likewise.
95589         * m4/malloc.m4: Likewise.
95590         * m4/memcmp.m4: Likewise.
95591         * m4/putenv.m4: Likewise.
95592         * m4/realloc.m4: Likewise.
95593         * m4/st_mtim.m4: Likewise.
95594         * m4/strftime.m4: Likewise.
95595
95596 1999-01-16  Jim Meyering  <meyering@ascend.com>
95597
95598         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95599         (ARGMATCH_DIE_DECL): Define.
95600
95601 1999-01-12  Jim Meyering  <meyering@ascend.com>
95602
95603         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95604         Reported by Lars Hecking.
95605
95606 1999-01-10  Jim Meyering  <meyering@ascend.com>
95607
95608         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95609         gross kludge.
95610         * m4/inttypes_h.m4: Likewise.
95611         * m4/lstat.m4: Likewise.
95612         * m4/malloc.m4: Likewise.
95613         * m4/readdir.m4: Likewise.
95614         * m4/realloc.m4: Likewise.
95615         * m4/st_dm_mode.m4: Likewise.
95616         * m4/stat.m4: Likewise.
95617         * m4/utimbuf.m4: Likewise.
95618         * m4/utimes.m4: Likewise.
95619
95620         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95621         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95622         comments in config.h.in are meaningful.
95623
95624         * m4/jm-macros.m4: Require autoconf-2.13 here.
95625
95626         * m4/regex.m4: By default, don't use the included regex.c on systems
95627         with glibc 2.  Suggestion from Uli Drepper.
95628
95629 1999-01-02  Jim Meyering  <meyering@ascend.com>
95630
95631         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95632
95633 1998-12-18  Jim Meyering  <meyering@ascend.com>
95634
95635         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95636         Based on a suggestion from Lars Hecking.
95637
95638 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95639
95640         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95641
95642 1998-11-16  Jim Meyering  <meyering@ascend.com>
95643
95644         * m4/lfs.m4: Double-quote the `uname...` expression.
95645
95646 1998-11-14  Jim Meyering  <meyering@ascend.com>
95647
95648         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95649         * m4/stat.m4: Likewise.
95650
95651 1998-11-03  Jim Meyering  <meyering@ascend.com>
95652
95653         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95654         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95655
95656 1998-10-18  Jim Meyering  <meyering@ascend.com>
95657
95658         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95659
95660 1998-10-17  Jim Meyering  <meyering@ascend.com>
95661
95662         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95663         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95664         calls for those previously hard-coded headers.  Instead, take a new
95665         parameter.
95666         (jm_CHECK_DECLARATIONS): Reflect interface change.
95667         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95668         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95669
95670         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95671
95672 1998-10-14  Jim Meyering  <meyering@ascend.com>
95673
95674         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95675         instead of "TZ=America/Vancouver".  From Paul Eggert.
95676
95677 1998-10-11  Jim Meyering  <meyering@ascend.com>
95678
95679         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95680         This adds a test for a recently added compatibility fix for mktime.c.
95681         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95682
95683 1998-09-27  Jim Meyering  <meyering@ascend.com>
95684
95685         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95686
95687         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95688         ../configure.in, including a change from Gordon Matzigkeit to allow
95689         cross-compiling for the Hurd.
95690
95691         * m4/glibc.m4: New file/macro to test for the GNU C Library
95692         versions 1 and 2.  From Gordon Matzigkeit.
95693         Indent.
95694
95695 1998-09-21  Jim Meyering  <meyering@ascend.com>
95696
95697         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95698
95699 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95700
95701         Port nanosecond-resolution times to UnixWare 2.1.2 and
95702         pedantic Solaris 2.6.
95703
95704         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95705         AC_STRUCT_ST_MTIM.
95706         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95707         Generate name of ns member, instead of just 1 or undef.
95708         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95709
95710 1998-08-15  Jim Meyering  <meyering@ascend.com>
95711
95712         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95713         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95714         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95715         instead of jm_TYPE_SSIZE_T.
95716
95717 1998-08-12  Jim Meyering  <meyering@ascend.com>
95718
95719         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95720
95721 1998-08-02  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95724         in acconfig.h manually.
95725
95726 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95727
95728         * m4/st_mtim.m4: New file.
95729
95730 1998-07-28  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/utimes.m4: Undef stat.
95733
95734 1998-07-25  Jim Meyering  <meyering@ascend.com>
95735
95736         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95737         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95738
95739 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95740
95741         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95742         uid and gid actually remain unchanged.
95743
95744 1998-07-07  Jim Meyering  <meyering@ascend.com>
95745
95746         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95747
95748 1998-07-04  Jim Meyering  <meyering@ascend.com>
95749
95750         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95751         to prove that this macro can be used in packages without regex.c.
95752
95753 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95754
95755         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95756         is to be used.
95757
95758 1998-07-03  Jim Meyering  <meyering@ascend.com>
95759
95760         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95761
95762         * m4/gettext.m4: New file -- from gettext-0.10.35.
95763         * m4/lcmessage.m4: Likewise.
95764         * m4/progtest.m4: Likewise.
95765
95766         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95767         * m4/jm-macros.m4: Require the new macro.
95768
95769 1998-06-29  Jim Meyering  <meyering@ascend.com>
95770
95771         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95772         for the definition of NGROUPS (used in a system header included
95773         by sys/mount.h).
95774
95775 1998-06-28  Jim Meyering  <meyering@ascend.com>
95776
95777         * m4/ls-mntd-fs.m4: New file.
95778         * m4/fstypename.m4: New file.
95779
95780         * m4/jm-macros.m4: Require the new macro.
95781         * m4/jm-glibc-io.m4: New file.
95782
95783 1998-05-19  Jim Meyering  <meyering@ascend.com>
95784
95785         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95786         * m4/lchown.m4: New file.
95787
95788         * m4/Makefile.am.in: New file.
95789         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95790
95791 1998-05-14  Jim Meyering  <meyering@ascend.com>
95792
95793         * m4/Makefile.am (EXTRA_DIST): Add them.
95794         * m4/jm-macros.m4: New file.
95795         * m4/utimbuf.m4: New file.
95796
95797 1998-05-12  Jim Meyering  <meyering@ascend.com>
95798
95799         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95800
95801 1998-05-11  Jim Meyering  <meyering@ascend.com>
95802
95803         * m4/isc-posix.m4: New file.
95804
95805 1998-05-10  Jim Meyering  <meyering@ascend.com>
95806
95807         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95808
95809 1998-05-09  Jim Meyering  <meyering@ascend.com>
95810
95811         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95812         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95813         with automake.
95814
95815         * m4/ssize_t.m4: New file.
95816         * m4/mktime.m4: Remove file -- the new automake has this now.
95817
95818 1998-04-26  Jim Meyering  <meyering@ascend.com>
95819
95820         * m4/assert.m4: New file.
95821         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95822
95823 1998-04-05  Jim Meyering  <meyering@ascend.com>
95824
95825         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95826         (jm_PREREQ): Use it here.
95827
95828 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95829
95830         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95831         in acconfig.h.
95832
95833 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95834
95835         * m4/prereq.m4: New file.
95836         * m4/error.m4: New file.
95837         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95838
95839 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95840
95841         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95842         cache-check for the same variable -- that defeated the purpose of
95843         the test; the test program was never run.  This was a problem only
95844         on systems with losing getline functions -- HP-UX 10.20 is one.
95845         Reported by Bjorn Helgaas.
95846
95847 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95848
95849         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95850
95851 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95852
95853         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95854
95855         * m4/const.m4: New file.  Use an initializer in this declaration
95856         typedef int charset[2]; const charset x;
95857         Reported by Bob Glickstein.
95858
95859 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95860
95861         * m4/chown.m4: Fix reversed types on -1 args to chown.
95862         From Kaveh Ghazi.
95863
95864 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95865
95866         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95867         Add lseek and memchr.
95868
95869         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95870         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95871         have a 20-character limit on names.
95872
95873 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95874
95875         * m4/inttypes_h.m4: New file.
95876         * m4/uintmax_t.m4: New file.
95877         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95878
95879
95880         -----
95881
95882         Local Variables:
95883         coding: utf-8
95884         End:
95885
95886         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95887
95888         Copying and distribution of this file, with or without
95889         modification, are permitted provided the copyright notice
95890         and this notice are preserved.